public Configuration()
        {
            // defaults
            calibration = null;
            calibration_corners = new PointF[4];

            camera_index = 0;


            teama = new Team("Team1", new Person("", "", Person.DefaultPosition.Left, Person.Role.Player), new Person("", "", Person.DefaultPosition.Right, Person.Role.Player));
            teamb = new Team("Team2", new Person("", "", Person.DefaultPosition.Left, Person.Role.Player), new Person("", "", Person.DefaultPosition.Right, Person.Role.Player));
            
            teamAup = false;
            teama.Player1.Current_position = Rally.PlayerPosition.lowerLeft;
            teama.Player2.Current_position = Rally.PlayerPosition.lowerRight;
            teamb.Player1.Current_position = Rally.PlayerPosition.upperLeft;
            teamb.Player2.Current_position = Rally.PlayerPosition.upperRight;

            location = "";
            tournamentType = "";
            freeText = "";
            outputDir = "";
            gameID = "";

            loadXmlFile = "Please choose a XML file";
        }
Example #2
0
        // constructor
        public Game(Team teamA, Team teamB)
        {
            this.location = "";
            this.teamA = teamA;
            this.teamB = teamB;
            this.winner = null;

            this.sets = new List<Set>();

            this.startDate = DateTime.Now;
        }
Example #3
0
        public void addWinner(Team winner)
        {
            String teamname = winner.Name;

        }