Beispiel #1
0
    public void EndPlayerTurn()
    {
        int         playerIndex = playerGroup.activePlayer.index;
        PlayerState playerState = playerGroup.GetPlayerByIndex(playerIndex);

        _replaceIngredientCards(playerState.hand);

        ICommand command = ChangePlayerTurn.Create(playerGroup);

        _commandFactory.Execute(command);
        _endTurnEvent();
    }
Beispiel #2
0
    public void ApplyNextPlayerTurn()
    {
        ICommand command = ChangePlayerTurn.Create(matchState.playerGroup);

        _commandFactory.Execute(command);
    }