forked from External/mage
fixed bug in pvp phase stops (now based on uuid, not player's name)
This commit is contained in:
parent
5df3a6e488
commit
33d29bcdac
4 changed files with 31 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue