Constructor and Description |
---|
DummyGameState() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String s) |
GameState |
cloneState()
Clone the game state creating a (deep) copy of it that can be modified
We use this to clone the initial game state so we can restart from there
and replay transactions
|
JSONObject |
serialize()
Create a serialized form of the game state that later can be recreated
|
java.lang.String |
toString() |
public GameState cloneState()
GameState
cloneState
in interface GameState
public JSONObject serialize()
GameState
serialize
in interface GameState
GameStateFactory
public void add(java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Object