Erwan
- Added new bonus system for victories. Unlock and bonuses need to be tested :/
This commit is contained in:
@@ -73,6 +73,7 @@ int GameObserver::enteringPhase(int phase){
|
||||
}
|
||||
|
||||
void GameObserver::nextPlayer(){
|
||||
turn++;
|
||||
currentPlayerId = (currentPlayerId+1)%nbPlayers;
|
||||
currentPlayer = players[currentPlayerId];
|
||||
currentActionPlayer = currentPlayer;
|
||||
@@ -84,6 +85,7 @@ void GameObserver::nextGamePhase(){
|
||||
currentGamePhase = cPhase->id;
|
||||
if (currentPlayer != cPhase->player) nextPlayer();
|
||||
|
||||
|
||||
//init begin of turn
|
||||
if (currentGamePhase == Constants::MTG_PHASE_BEFORE_BEGIN){
|
||||
cleanupPhase();
|
||||
@@ -153,6 +155,7 @@ void GameObserver::startGame(int shuffle, int draw){
|
||||
for (i=0; i<nbPlayers; i++){
|
||||
players[i]->game->initGame(shuffle, draw);
|
||||
}
|
||||
turn = 0;
|
||||
phaseRing->goToPhase(Constants::MTG_PHASE_FIRSTMAIN, players[0]);
|
||||
currentGamePhase = Constants::MTG_PHASE_FIRSTMAIN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user