예제 #1
0
 public GameController(IBattleResolver battleResolver, Board board, Waves waves)
 {
     this.battleResolver = battleResolver;
     this.waves          = waves;
     this.board          = board;
     troopMap            = new TroopMap(board);
     validator           = new MoveValidator(troopMap, board, activePlayer);
     troopAi             = new TroopAi(troopMap, board);
 }
예제 #2
0
 public TroopAi(TroopMap troopMap, Board board)
 {
     this.troopMap = troopMap;
     this.board    = board;
 }
예제 #3
0
 public MoveValidator(TroopMap map, Board area, PlayerSide player0)
 {
     this.map     = map;
     this.area    = area;
     activePlayer = player0;
 }