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

            Energy = MaxEnergy;
        }
Example #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);*/
        }
Example #3
0
 public AntWorker(ControlAnt control) : base(control)
 {
 }
Example #4
0
 public AntFactory(ControlAnt control, PlayerUnit playerUnit) : base(control, playerUnit)
 {
 }
Example #5
0
 public AntContainer(ControlAnt control, PlayerUnit playerUnit) : base(control, playerUnit)
 {
 }
Example #6
0
 public AntContainer(ControlAnt control) : base(control)
 {
 }
Example #7
0
 public Ant(ControlAnt control)
 {
     Control = control;
 }