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