forked from External/mage
I used Intellij IDEA to automatically refactor code to achive 3 goals. 1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog). 2) make effectively final variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible. 3) Get rid of unused imports (most of the changes) in whole project classes.
35 lines
718 B
Java
35 lines
718 B
Java
package mage.client.util;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* Controls game state on client side.
|
|
*
|
|
* @author nantuko
|
|
*/
|
|
public class GameManager {
|
|
private static final 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;
|
|
}
|