|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uiuc.cs397rhc.game.Simulator
Provides a GUI to allow testing of various game events.
| Constructor Summary | |
|---|---|
Simulator()
Constructs a new game event simulator. |
|
| Method Summary | |
|---|---|
void |
addGameListener(GameListener l)
Registers a GameListener to receive events from this source. |
void |
fireGameEvent(GameEvent ge)
Fires a game event off to every registered listener. |
void |
gameUpdate(GameEvent ge)
Notifies this listener that an event has happened in the game. |
static void |
main(java.lang.String[] args)
Launches the event simulation GUI. |
void |
removeGameListener(GameListener l)
Removes a registered listener from the list receiving events. |
void |
setMood(GameUtils.Mood mood)
|
void |
setScores(java.util.EnumMap<GameUtils.Team,java.lang.Integer> scores)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Simulator()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void gameUpdate(GameEvent ge)
GameListener
gameUpdate in interface GameListenerge - the event that has transpiredpublic void setMood(GameUtils.Mood mood)
public void setScores(java.util.EnumMap<GameUtils.Team,java.lang.Integer> scores)
public void addGameListener(GameListener l)
GameListener to receive events from this source.
addGameListener in interface GameEventSourcepublic void removeGameListener(GameListener l)
removeGameListener in interface GameEventSourcepublic void fireGameEvent(GameEvent ge)
fireGameEvent in interface GameEventSourcege - the game event to fire
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||