コード例 #1
0
ファイル: Ant.cs プロジェクト: reiswind/CrazyBots
        public Ant(ControlAnt control, PlayerUnit playerUnit)
        {
            PlayerUnit = playerUnit;
            Control    = control;

            Energy = MaxEnergy;
        }
コード例 #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);*/
        }
コード例 #3
0
ファイル: AntWorker.cs プロジェクト: reiswind/CrazyBots
 public AntWorker(ControlAnt control) : base(control)
 {
 }
コード例 #4
0
 public AntFactory(ControlAnt control, PlayerUnit playerUnit) : base(control, playerUnit)
 {
 }
コード例 #5
0
 public AntContainer(ControlAnt control, PlayerUnit playerUnit) : base(control, playerUnit)
 {
 }
コード例 #6
0
 public AntContainer(ControlAnt control) : base(control)
 {
 }
コード例 #7
0
ファイル: Ant.cs プロジェクト: reiswind/CrazyBots
 public Ant(ControlAnt control)
 {
     Control = control;
 }