|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectggz.client.mod.ModState
public class ModState
Each table has a current "state" that is tracked by ggzmod. First the table is executed and begins running. Then it receives a launch event from GGZ and begins waiting for players. At some point a game will be started and played at the table, after which it may return to waiting. Eventually the table will probably halt and then the program will exit. More specifically, the game is in the CREATED state when it is first executed. It moves to the CONNECTED state after GGZ first communicates with it, and to WAITING after the connection is established with the game server. After this, the game server may use ggzmod_set_state to change between WAITING, PLAYING, and DONE states. A WAITING game is considered waiting for players (or whatever), while a PLAYING game is actively being played (this information may be, but currently is not, propogated back to GGZ for display purposes). Once the state is changed to DONE, the table is considered dead and will exit shortly thereafter (ggzmod_loop will stop looping, etc.) (see the kill_on_exit game option). Each time the game state changes, a GGZMOD_EVENT_STATE event will be propogated to the game server.
Field Summary | |
---|---|
static ModState |
GGZMOD_STATE_CONNECTED
Connected state. |
static ModState |
GGZMOD_STATE_CREATED
Initial state. |
static ModState |
GGZMOD_STATE_DONE
Done state. |
static ModState |
GGZMOD_STATE_PLAYING
Playing state. |
static ModState |
GGZMOD_STATE_WAITING
Waiting state. |
static java.util.ArrayList |
values
|
Method Summary | |
---|---|
int |
ordinal()
|
java.lang.String |
toString()
|
static ModState |
valueOf(int ordinal)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.ArrayList values
public static final ModState GGZMOD_STATE_CREATED
public static final ModState GGZMOD_STATE_CONNECTED
public static final ModState GGZMOD_STATE_WAITING
public static final ModState GGZMOD_STATE_PLAYING
public static final ModState GGZMOD_STATE_DONE
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static ModState valueOf(int ordinal)
public int ordinal()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |