Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
micropolisj.engine.Micropolis.Listener Interface Reference
Inheritance diagram for micropolisj.engine.Micropolis.Listener:

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 ()

Detailed Description

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.

Member Function Documentation

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 ( )
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.


The documentation for this interface was generated from the following file: