コード例 #1
0
        public void StartTurn()
        {
            if (_thisTurn != null)
            {
                _thisTurn.commitTurn();
            }

            //start next turn
            if (_currentPlayerTurn == 1)
            {
                _currentPlayerTurn = 2;
            }
            else if (_currentPlayerTurn == 2)
            {
                _currentPlayerTurn = 1;
                currentRound++;
            }

            if (_currentPlayerTurn == 0)
            {
                _currentPlayerTurn = 1;
                currentRound = 1;
            }

            _currentPlayer = Players[_currentPlayerTurn];

            _thisTurn = new Turn(_currentPlayer);
            _thisTurn.tick(this);

            _render(this);
        }
コード例 #2
0
ファイル: Turn.cs プロジェクト: davidwhitney/StarBastardCore
 public Turn(Player player)
 {
     _player = player;
     _actionQueue = new List<object>();
 }