* Fixed that player turn counter was not reset if game was reset (e.g. Karn Liberated).

This commit is contained in:
LevelX2 2014-05-10 18:21:22 +02:00
parent 8e56d06121
commit e93cd580dd
2 changed files with 7 additions and 1 deletions

View file

@ -336,6 +336,10 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
}
}
/**
* Cast e.g. from Karn Liberated to restart the current game
* @param game
*/
@Override
public void init(Game game) {
init(game, false);
@ -359,6 +363,7 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
this.timerTimeout = false;
this.idleTimeout = false;
this.turns = 0;
this.passed = false;
this.passedTurn = false;
this.passedAllTurns = false;