Beispiel #1
0
        public Ant(ControlAnt control, PlayerUnit playerUnit)
        {
            PlayerUnit = playerUnit;
            Control    = control;

            Energy = MaxEnergy;
        }
Beispiel #2
0
        public Player(Game game, PlayerModel playerModel)
        {
            Game        = game;
            PlayerModel = playerModel;

            if (playerModel.ControlLevel == 1)
            {
                Control = new ControlAnt(game, playerModel, game.GameModel);
            }
            else
            {
                Control = new ControlLevelI(game, playerModel, game.GameModel);
            }

            /*
             * else if (playerModel.ControlLevel == 2)
             *  Control = new ControlLevelII(game, playerModel, game.GameModel); */
            //else if (playerModel.ControlLevel == 3)
            //    Control = new ControlLevelIII(game, playerModel, game.GameModel);

            /*else if (playerModel.ControlLevel == 4)
             *  Control = new ControlLevel4(game, playerModel, game.GameModel);
             * else if (playerModel.ControlLevel == 5)
             *  Control = new ControlLevel5(game, playerModel, game.GameModel);*/
        }
Beispiel #3
0
 public AntWorker(ControlAnt control) : base(control)
 {
 }
Beispiel #4
0
 public AntFactory(ControlAnt control, PlayerUnit playerUnit) : base(control, playerUnit)
 {
 }
Beispiel #5
0
 public AntContainer(ControlAnt control, PlayerUnit playerUnit) : base(control, playerUnit)
 {
 }
Beispiel #6
0
 public AntContainer(ControlAnt control) : base(control)
 {
 }
Beispiel #7
0
 public Ant(ControlAnt control)
 {
     Control = control;
 }