Methapolis
0.27
|
Public Member Functions | |
int | getAnimationsPerSecond () |
Public Attributes | |
PAUSED = ( 999, 0) | |
SLOW = ( 625, 1) | |
NORMAL = ( 125, 1) | |
FAST = ( 25, 1) | |
SUPER_FAST = ( 25, 5) | |
final int | animationDelay |
final int | simStepsPerUpdate |
Private Member Functions | |
Speed (int delay, int simSteps) |
Lists the simulation speeds available. Contains properties identifying how often the animation timer fires, and how many animation steps are fired at each interval. Note: for every 2 animation steps, one simulation step is triggered.
Definition at line 17 of file Speed.java.
|
private |
Definition at line 32 of file Speed.java.
int micropolisj.engine.Speed.getAnimationsPerSecond | ( | ) |
Definition at line 38 of file Speed.java.
Referenced by micropolisj.engine.RocketSprite.moveImpl().
final int micropolisj.engine.Speed.animationDelay |
The animation speed, expressed as an interval in milliseconds.
Definition at line 26 of file Speed.java.
Referenced by micropolisj.gui.MainWindow.startTimer().
micropolisj.engine.Speed.FAST = ( 25, 1) |
Definition at line 22 of file Speed.java.
Referenced by micropolisj.gui.MainWindow.makeMenu().
micropolisj.engine.Speed.NORMAL = ( 125, 1) |
Definition at line 21 of file Speed.java.
Referenced by micropolisj.gui.MainWindow.makeMenu(), and micropolisj.gui.BudgetDialog.onContinueClicked().
micropolisj.engine.Speed.PAUSED = ( 999, 0) |
Definition at line 19 of file Speed.java.
Referenced by micropolisj.gui.MainWindow.makeMenu(), micropolisj.gui.BudgetDialog.makeOptionsPane(), micropolisj.gui.BudgetDialog.onContinueClicked(), and micropolisj.gui.MainWindow.startTimer().
final int micropolisj.engine.Speed.simStepsPerUpdate |
For faster speeds, how many simulation steps should occur for every update to the screen.
Definition at line 30 of file Speed.java.
Referenced by micropolisj.gui.MainWindow.startTimer().
micropolisj.engine.Speed.SLOW = ( 625, 1) |
Definition at line 20 of file Speed.java.
Referenced by micropolisj.gui.MainWindow.makeMenu().
micropolisj.engine.Speed.SUPER_FAST = ( 25, 5) |
Definition at line 23 of file Speed.java.
Referenced by micropolisj.gui.MainWindow.makeMenu().