|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.engine.GameEngine
This class will manage the states of the game and their transitions. It will know when to go to the splash screen or the menu, or the game itself, and when to quit.
| Field Summary | |
static boolean |
DEBUG
Display a lot of debug information? |
static boolean |
VERBOSE
Display debug information? |
| Method Summary | |
AbstractGameState |
getCurrentState()
Access method for the currentState property. |
EstablishingConnectionState |
getEcs()
Accessor for EstablishingConnectionState |
static GameEngine |
getInstance()
Singleton implementation. |
void |
receiveMessage(AbstractMessage msg)
Describe receiveMessage method here. |
void |
setCurrentState(AbstractGameState aCurrentState)
Sets the value of the currentState property. |
void |
showNetworkError(java.lang.String error)
When a network error occurs, this function will be called. |
void |
startMultiGame()
Describe startMultiGame method here. |
void |
startMultiLevel(int count,
int lemmings)
stuff. |
void |
startSingleLevel(java.lang.String name)
Starts a single-player game with the specified level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean VERBOSE
public static final boolean DEBUG
| Method Detail |
public static GameEngine getInstance()
GameEngine valuepublic void showNetworkError(java.lang.String error)
error - a String valuepublic void startSingleLevel(java.lang.String name)
name - a String valuepublic EstablishingConnectionState getEcs()
public void startMultiGame()
startMultiGame method here.
public void startMultiLevel(int count,
int lemmings)
count - an int valuelemmings - an int valuepublic AbstractGameState getCurrentState()
public void setCurrentState(AbstractGameState aCurrentState)
aCurrentState - the new value of the currentState propertypublic void receiveMessage(AbstractMessage msg)
receiveMessage method here.
msg - an AbstractMessage value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||