Ejemplo n.º 1
0
 public void EndTurn()
 {
     Board.OnDeselectActivePiece();
     ActivePlayer = GetOppositeToActivePlayer();
     ActivePlayer.GenerateAllPossibleMoves(Board.ChessGrid, true, true);
     GetOppositeToActivePlayer().GenerateAllPossibleMoves(Board.ChessGrid, false, false);
     SetGameState();
 }
Ejemplo n.º 2
0
 public void StartNewGame()
 {
     CameraController.ResetCamera();
     CameraController.EnableCam();
     State = GameState.Normal;
     OnEnteredNormalMode();
     InitializePlayers();
     InitializeInputRecievers(whitePlayer.InputHandler as IInputReader, blackPlayer.InputHandler as IInputReader);
     Board.ChessGrid.ResetGrid();
     ImplementBoardLayout();
     ActivePlayer.GenerateAllPossibleMoves(Board.ChessGrid, true, true);
 }