|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGameState
public class GameState
Keeps track of the state of the game Generates random topics from a file
Field Summary | |
---|---|
static int |
IN_GAME
|
static java.lang.String |
TOPIC_FILE_NAME
|
static int |
WAITING_FOR_PLAYERS
|
Constructor Summary | |
---|---|
GameState()
Constructs a GameState |
Method Summary | |
---|---|
void |
endGame()
Ends the game |
int |
getGameMode()
Gets the current game mode |
java.lang.String |
getTopic()
Gets a random topic and stores that for when the game starts |
static void |
main(java.lang.String[] args)
|
void |
startGame()
Starts the game |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int WAITING_FOR_PLAYERS
public static final int IN_GAME
public static final java.lang.String TOPIC_FILE_NAME
Constructor Detail |
---|
public GameState()
Method Detail |
---|
public java.lang.String getTopic()
public int getGameMode()
public void startGame()
public void endGame()
public static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |