Пример #1
0
        public static void Main(string[] args)
        {
            // instance Players Classes
            Player playerA = new Player("Player", "A", "Player A");
            Player playerB = new Player("Player", "B", "Player B");
            Player playerC = new Player("Player", "C", "Player C");
            Player playerD = new Player("Player", "D", "Player D");

            // instance Teams Classes
            Team teamA = new Team ("TeamA", "Best team ever");
            Team teamB = new Team ("TeamB", "Best team ever");
            Team teamC = new Team ("TeamC", "Best team ever");
            Team teamD = new Team ("TeamD", "Best team ever");

            Gladiator gladiatorA1 = new Gladiator ("Gladiator 1 Team A");
            Gladiator gladiatorA2 = new Gladiator ("Gladiator 2 Team A");
            Gladiator gladiatorA3 = new Gladiator ("Gladiator 3 Team A");

            Gladiator gladiatorB1 = new Gladiator ("Gladiator 1 Team A");
            Gladiator gladiatorB2 = new Gladiator ("Gladiator 2 Team A");
            Gladiator gladiatorB3 = new Gladiator ("Gladiator 3 Team A");

            Gladiator gladiatorC1 = new Gladiator ("Gladiator 1 Team A");
            Gladiator gladiatorC2 = new Gladiator ("Gladiator 2 Team A");
            Gladiator gladiatorC3 = new Gladiator ("Gladiator 3 Team A");

            Gladiator gladiatorD1 = new Gladiator ("Gladiator 1 Team A");
            Gladiator gladiatorD2 = new Gladiator ("Gladiator 2 Team A");
            Gladiator gladiatorD3 = new Gladiator ("Gladiator 3 Team A");

            teamA.addGladiatorToTeam (gladiatorA1);
            teamA.addGladiatorToTeam (gladiatorA2);
            teamA.addGladiatorToTeam (gladiatorA3);

            teamB.addGladiatorToTeam (gladiatorB1);
            teamB.addGladiatorToTeam (gladiatorB2);
            teamB.addGladiatorToTeam (gladiatorB3);

            teamC.addGladiatorToTeam (gladiatorC1);
            teamC.addGladiatorToTeam (gladiatorC2);
            teamC.addGladiatorToTeam (gladiatorC3);

            teamD.addGladiatorToTeam (gladiatorD1);
            teamD.addGladiatorToTeam (gladiatorD2);
            teamD.addGladiatorToTeam (gladiatorD3);

            playerA.addTeamToPlayerTeamList(teamA);
            playerB.addTeamToPlayerTeamList(teamB);
            playerC.addTeamToPlayerTeamList(teamC);
            playerD.addTeamToPlayerTeamList(teamD);

            Stuff dague = Stuff.getDagueInstance ();
            Stuff bouclier = Stuff.getBouclierRectangulaireInstance ();
            gladiatorA1.addEquipementToGladiatorStuff (dague);
            gladiatorA1.addEquipementToGladiatorStuff (bouclier);
        }
Пример #2
0
 public Round(Gladiator PGladiatorTeamOne, Gladiator PGladiatorTeamTwo)
 {
     this._gladiatorTeamOne = PGladiatorTeamOne;
     this._gladiatorTeamTwo = PGladiatorTeamTwo;
 }