|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.huguesjohnson.tiamat.BaseGameState
public abstract class BaseGameState
BaseGameState - base game state
| Constructor Summary | |
|---|---|
BaseGameState()
Creates an empty BaseGameState. |
|
BaseGameState(java.lang.String[] conditions)
Creates a BaseGameState with conditions. |
|
| Method Summary | |
|---|---|
void |
addCondition(java.lang.String condition)
Add a condition (something that has happened in the game). |
java.lang.String[] |
getConditions()
Returns all conditions (things that have happened in the game). |
boolean |
hasCondition(java.lang.String condition)
Tests if a specific condition has occured. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.huguesjohnson.serialization.Storable |
|---|
onDeserialize |
| Constructor Detail |
|---|
public BaseGameState()
public BaseGameState(java.lang.String[] conditions)
conditions - The initial conditions for this BaseGameState.| Method Detail |
|---|
public void addCondition(java.lang.String condition)
condition - The condition to add.public java.lang.String[] getConditions()
public boolean hasCondition(java.lang.String condition)
condition - The condition to search for.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||