|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.engine.data.AbstractContext
Captures common context behaviours.
FIXME refactor with battlehex turn management.
| Constructor Summary | |
AbstractContext(java.lang.String name)
Create a context. |
|
| Method Summary | |
java.lang.String |
getName()
Get the context name. |
int |
getTurn()
Get the current turn. |
void |
nextTurn()
Increments the current turn. |
protected abstract void |
turnEnded()
Turn end event. |
protected abstract void |
turnStarted()
Turn start event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jtge.engine.data.IContext |
get, put, register |
| Constructor Detail |
public AbstractContext(java.lang.String name)
name - the game name.| Method Detail |
public final java.lang.String getName()
public final int getTurn()
public final void nextTurn()
protected abstract void turnStarted()
protected abstract void turnEnded()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||