Methapolis
0.27
|
Public Member Functions | |
void | cityMessage (MicropolisMessage message, CityLocation loc) |
void | citySound (Sound sound, CityLocation loc) |
void | censusChanged () |
void | demandChanged () |
void | evaluationChanged () |
void | fundsChanged () |
void | optionsChanged () |
The listener interface for receiving miscellaneous events that occur in the Micropolis city. Use the Micropolis class's addListener interface to register an object that implements this interface.
Definition at line 379 of file Micropolis.java.
void micropolisj.engine.Micropolis.Listener.censusChanged | ( | ) |
Fired whenever the "census" is taken, and the various historical counters have been updated. (Once a month in game.)
Implemented in micropolisj.gui.MainWindow, micropolisj.gui.EvaluationPane, micropolisj.gui.GraphsPane, and micropolisj.gui.DemandIndicator.
void micropolisj.engine.Micropolis.Listener.cityMessage | ( | MicropolisMessage | message, |
CityLocation | loc | ||
) |
void micropolisj.engine.Micropolis.Listener.citySound | ( | Sound | sound, |
CityLocation | loc | ||
) |
void micropolisj.engine.Micropolis.Listener.demandChanged | ( | ) |
Fired whenever playerInfo.resValve, playerInfo.comValve, or playerInfo.indValve changes. (Twice a month in game.)
Implemented in micropolisj.gui.MainWindow, micropolisj.gui.EvaluationPane, micropolisj.gui.GraphsPane, and micropolisj.gui.DemandIndicator.
void micropolisj.engine.Micropolis.Listener.evaluationChanged | ( | ) |
Fired whenever the city playerInfo.evaluation is recalculated. (Once a year.)
Implemented in micropolisj.gui.MainWindow, micropolisj.gui.EvaluationPane, micropolisj.gui.DemandIndicator, and micropolisj.gui.GraphsPane.
void micropolisj.engine.Micropolis.Listener.fundsChanged | ( | ) |
Fired whenever the mayor's money changes.
Implemented in micropolisj.gui.MainWindow, micropolisj.gui.EvaluationPane, micropolisj.gui.DemandIndicator, and micropolisj.gui.GraphsPane.
void micropolisj.engine.Micropolis.Listener.optionsChanged | ( | ) |
Fired whenever autoBulldoze, autoBudget, noDisasters, or simSpeed change.
Implemented in micropolisj.gui.MainWindow, micropolisj.gui.EvaluationPane, micropolisj.gui.DemandIndicator, and micropolisj.gui.GraphsPane.