Пример #1
0
 void Start()
 {
     InitMoveProcessor();
     _checkEndGameProcessor = new CheckEndGame(_player1, _player2);
     InitStateMachine();
     FillFieldWithChips();
     _player1.Init(_grid, _moveProcessor);
     _player2.Init(_grid, _moveProcessor);
     _checkEndGameProcessor.Init();
 }
Пример #2
0
    public EndGameState(UI_EndGameScreen endGameMenu, UI_Game gameUI, CheckEndGame checkEndGameProcessor,
                        Grid grid, Player whitePlayer, Player blackPlayer)
    {
        _endGameMenu           = endGameMenu;
        _gameUI                = gameUI;
        _checkEndGameProcessor = checkEndGameProcessor;

        _grid        = grid;
        _whitePlayer = whitePlayer;
        _blackPlayer = blackPlayer;
    }
Пример #3
0
 public CheckEndGameState(CheckEndGame processor)
 {
     _processor = processor;
 }