|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.events.SingleEventSource<GameEventListener>
unc.cdva.renderingengine.gui.FengGUIEventRouter
public class FengGUIEventRouter
Utility class that is used by the UI manager to notify some GameEventListeners (GameEngine!)
Field Summary |
---|
Fields inherited from class unc.cdva.events.SingleEventSource |
---|
listeners |
Constructor Summary | |
---|---|
FengGUIEventRouter()
Create a FengGUIEventRouter |
Method Summary | |
---|---|
void |
notifyAddProblem(Id problemId,
float x,
float y)
Notify the listeners that a problem is being added with an id and a position on screen |
void |
notifyCancelProblem(Id problemId)
Notify the listeners that a problem is being cancelled |
void |
notifyFire(Id problemId)
Notify the listeners that a gun is firing with the data of a problem |
void |
notifyFreeze()
Notify the listeners that the game is pausing |
void |
notifyLoadMainMenu()
Notify the listeners that the main menu is loading |
void |
notifyLoadNextLevel()
Notify the listeners that the next level is loading |
void |
notifyLoadOptionMenu()
Notify the listeners that the option menu is loading |
void |
notifyLoadSinglePlayer()
Notify the listeners that a single player game is loading |
void |
notifyQuit()
Notify the listeners that the game is quitting |
void |
notifySetMasterVolume(float masterVolume)
Notify the listeners that the master volume is being set |
void |
notifySetMusicFolder(java.lang.String musicFolder)
Notify the listeners that the music folder is being set |
void |
notifySetProblemValue(Id problemId,
long value)
Notify the listeners that a problem value is being set |
void |
notifySetVideoResolution(java.awt.Dimension dimension)
Notify the listeners that the video resolution is being set |
void |
notifyUnfreezeGame()
Notify the listeners that the game is resuming |
Methods inherited from class unc.cdva.events.SingleEventSource |
---|
addListener, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FengGUIEventRouter()
Method Detail |
---|
public void notifyLoadSinglePlayer()
public void notifyLoadMainMenu()
public void notifyLoadOptionMenu()
public void notifyLoadNextLevel()
public void notifyAddProblem(Id problemId, float x, float y)
problemId
- id of the problemx
- x coordinate of the problemy
- y coordinate of the problempublic void notifyCancelProblem(Id problemId)
problemId
- id of the problempublic void notifySetProblemValue(Id problemId, long value)
problemId
- id of the problemvalue
- user valuepublic void notifyFire(Id problemId)
problemId
- id of the problempublic void notifyQuit()
public void notifySetVideoResolution(java.awt.Dimension dimension)
dimension
- new resolution of the game screenpublic void notifySetMusicFolder(java.lang.String musicFolder)
musicFolder
- path of the music folderpublic void notifySetMasterVolume(float masterVolume)
masterVolume
- value of the master volumepublic void notifyFreeze()
public void notifyUnfreezeGame()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |