fixed bug in pvp phase stops (now based on uuid, not player's name)

This commit is contained in:
magenoxx 2010-12-28 13:32:25 +03:00
parent 5df3a6e488
commit 33d29bcdac
4 changed files with 31 additions and 8 deletions

View file

@ -1,5 +1,7 @@
package mage.client.util;
import java.util.UUID;
/**
* Controls game state on client side.
*
@ -7,15 +9,27 @@ package mage.client.util;
*/
public class GameManager {
private static GameManager fInstance = new GameManager();
public static GameManager getInstance() {
return fInstance;
}
public void setStackSize(int stackSize) {
this.stackSize = stackSize;
}
public int getStackSize() {
return stackSize;
}
public UUID getCurrentPlayerUUID() {
return currentPlayerUUID;
}
public void setCurrentPlayerUUID(UUID currentPlayerUUID) {
this.currentPlayerUUID = currentPlayerUUID;
}
private int stackSize;
private UUID currentPlayerUUID;
}