PlayerState¶
-
public class
PlayerState
implements Serializable, DeepEquatable¶
Methods¶
addToCurrentResourceAmount¶
-
public void
addToCurrentResourceAmount
(ResourceType type, int increase)¶
getCurrentResourceAmount¶
-
public int
getCurrentResourceAmount
(ResourceType type)¶
getCurrentSupplyCap¶
-
public int
getCurrentSupplyCap
()¶ Returns the maximum supply earned by the player.
setCurrentResourceAmount¶
-
public void
setCurrentResourceAmount
(ResourceType type, int amount)¶