|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object group1.model.Game
public class Game
Constructor Summary | |
---|---|
Game()
The game constructor. |
Method Summary | |
---|---|
Jeff |
getJeff()
Returns Jeff to the master class |
int |
getLevelCount()
Returns the result of the level counter. |
void |
incrementLevelCount()
Increment the level counter by one (when Jeff reaches the end of a level |
int |
inTheMainMenu()
In the main menu... |
java.lang.String |
levelName()
Returns the appropriate level name when passed the level counter. |
void |
run()
Run |
void |
setBuyMenuListener(ModelListener m)
Sets the buy menu listener |
void |
setContinueMenuListener(ModelListener m)
Sets the continue menu listener |
void |
setEndOfLevelListener(ModelListener m)
Sets the end of level listener |
void |
setInGameListener(ModelListener m)
Sets the in game listener |
void |
setInstructionsListener(ModelListener m)
Sets the instructions listener |
void |
setJeffDiesListener(ModelListener m)
Sets the Jeff dies listener |
void |
setLoadListener(ModelListener m)
Sets the load listener |
void |
setMainMenuListener(ModelListener m)
Sets the main menu listener |
void |
setNewGameListener(ModelListener m)
Sets the new game listener |
void |
setPauseMenuListener(ModelListener m)
Sets the pause menu listener |
void |
setSaveListener(ModelListener m)
Sets the save listener |
void |
setStartOfLevelListener(ModelListener m)
Sets the set start of level listener |
void |
setWeaponsSwtichMenuListener(ModelListener m)
Sets the weapon switch menu listener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Game()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void incrementLevelCount()
public int getLevelCount()
public java.lang.String levelName()
public Jeff getJeff()
public void setMainMenuListener(ModelListener m)
m
- the model listenerpublic void setPauseMenuListener(ModelListener m)
m
- the model listenerpublic void setBuyMenuListener(ModelListener m)
m
- the model listenerpublic void setContinueMenuListener(ModelListener m)
m
- the model listenerpublic void setWeaponsSwtichMenuListener(ModelListener m)
m
- the model listenerpublic void setNewGameListener(ModelListener m)
m
- the model listenerpublic void setSaveListener(ModelListener m)
m
- the model listenerpublic void setLoadListener(ModelListener m)
m
- the model listenerpublic void setInstructionsListener(ModelListener m)
m
- the model listenerpublic void setStartOfLevelListener(ModelListener m)
m
- the model listenerpublic void setEndOfLevelListener(ModelListener m)
m
- the model listenerpublic void setJeffDiesListener(ModelListener m)
m
- the model listenerpublic void setInGameListener(ModelListener m)
m
- the model listenerpublic int inTheMainMenu()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |