Пример #1
0
 private void onTurnEnded(GameTurnModel gameTurn)
 {
     updateTauntTiles();
 }
Пример #2
0
        private void onTurnEnded(GameTurnModel turns)
        {
            var opponentId = players.OpponentId(gameTurn.currentPlayerId);

            var text = "End Turn";
            if (gameTurn.currentPlayerId == opponentId)
            {
                text = "Enemy Turn";
            }
            view.onTurnEnded(text);
        }
Пример #3
0
 private void onTurnEnded(GameTurnModel turns)
 {
     view.init(PlayerCards(), OpponentCards());
     UpdateCardsPlayableStatus(cards.Cards);
 }
Пример #4
0
 private void onResourcesUpdated(GameTurnModel turns)
 {
     var currentResource = playerResources.resources[turns.currentPlayerId];
     var maxResources = playerResources.maxResources[turns.currentPlayerId];
     view.updateText(currentResource, maxResources);
 }
Пример #5
0
 private void onTurnEnd(GameTurnModel turn)
 {
     //for hotseat mode update the colors each turn to reflect the current player
     if (players.isHotseat)
     {
         view.UpdatePlayerColors();
     }
 }
Пример #6
0
 private void onTurnEnded(GameTurnModel turns)
 {
     updateDecks();
 }
Пример #7
0
 private void onTurnEnded(GameTurnModel turns)
 {
     var opponentId = players.OpponentId(turns.currentPlayerId);
     foreach (var piece in pieces.Pieces)
     {
         piece.pieceView.UpdateTurn(opponentId, turns.currentPlayerId);
     }
 }