예제 #1
0
 public StrategoGame()
 {
     bank = new PieceBank();
     bank.Initialize();
     state = new GameState();
     state.Board[2, 4] = GamePieceFactory.Create(GamePieceType.Block, false);
     state.Board[2, 5] = GamePieceFactory.Create(GamePieceType.Block, false);
     state.Board[3, 4] = GamePieceFactory.Create(GamePieceType.Block, false);
     state.Board[3, 5] = GamePieceFactory.Create(GamePieceType.Block, false);
     state.Board[6, 4] = GamePieceFactory.Create(GamePieceType.Block, false);
     state.Board[6, 5] = GamePieceFactory.Create(GamePieceType.Block, false);
     state.Board[7, 4] = GamePieceFactory.Create(GamePieceType.Block, false);
     state.Board[7, 5] = GamePieceFactory.Create(GamePieceType.Block, false);
 }
예제 #2
0
 public GameState()
 {
     Board = new GamePiece[10, 10];
     Turn = PlayerTurn.Setup;
     Bank = new PieceBank();
 }