- Added new bonus system for victories. Unlock and bonuses need to be tested :/
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-04-11 09:43:29 +00:00
parent fab150414b
commit e9cb57dbb1
9 changed files with 265 additions and 106 deletions

View File

@@ -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;