Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
micropolisj.engine.Speed Enum Reference

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)

Detailed Description

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.

Constructor & Destructor Documentation

micropolisj.engine.Speed.Speed ( int  delay,
int  simSteps 
)
private

Definition at line 32 of file Speed.java.

Member Function Documentation

int micropolisj.engine.Speed.getAnimationsPerSecond ( )

Definition at line 38 of file Speed.java.

Referenced by micropolisj.engine.RocketSprite.moveImpl().

Member Data Documentation

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


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