Rabbit Escape  2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
rabbitescape.render.gameloop.GeneralPhysics Class Reference
Inheritance diagram for rabbitescape.render.gameloop.GeneralPhysics:
Inheritance graph
[legend]
Collaboration diagram for rabbitescape.render.gameloop.GeneralPhysics:
Collaboration graph
[legend]

Classes

class  WorldModifier
 

Public Member Functions

 GeneralPhysics (World world, LevelWinListener winListener, boolean fast)
 
 GeneralPhysics (World world, WaterAnimation waterAnimation, LevelWinListener winListener, boolean fast)
 
 GeneralPhysics (World world, WaterAnimation water, LevelWinListener winListener, boolean fast, SolutionRecorderTemplate solutionRecorder, SolutionInterpreter solutionInterpreter, UiPlayback uiPlayback, boolean noFrameSkipping)
 
long step (long simulation_time, long frame_start_time)
 
int frameNumber ()
 
boolean gameRunning ()
 
int addToken (int tileX, int tileY, Token.Type ability)
 
void addStatsChangedListener (StatsChangedListener listener)
 
void dispose ()
 
World world ()
 

Public Attributes

int frame
 
boolean fast
 
final World world
 
final SolutionInterpreter solutionInterpreter
 

Static Public Attributes

static final long simulation_time_step_ms = 70
 

Private Member Functions

void doInterpreterActions ()
 
void notifyStatsListeners ()
 
void checkWon ()
 

Private Attributes

final long max_allowed_skips
 
final WaterAnimation water
 
final WorldModifier worldModifier
 
final LevelWinListener winListener
 
final List< StatsChangedListenerstatsListeners
 
final UiPlayback uiPlayback
 

Static Private Attributes

static final int FAST_FRAME_SKIP = 3
 

Constructor & Destructor Documentation

rabbitescape.render.gameloop.GeneralPhysics.GeneralPhysics ( World  world,
LevelWinListener  winListener,
boolean  fast 
)
rabbitescape.render.gameloop.GeneralPhysics.GeneralPhysics ( World  world,
WaterAnimation  waterAnimation,
LevelWinListener  winListener,
boolean  fast 
)
rabbitescape.render.gameloop.GeneralPhysics.GeneralPhysics ( World  world,
WaterAnimation  water,
LevelWinListener  winListener,
boolean  fast,
SolutionRecorderTemplate  solutionRecorder,
SolutionInterpreter  solutionInterpreter,
UiPlayback  uiPlayback,
boolean  noFrameSkipping 
)

Member Function Documentation

void rabbitescape.render.gameloop.GeneralPhysics.addStatsChangedListener ( StatsChangedListener  listener)
int rabbitescape.render.gameloop.GeneralPhysics.addToken ( int  tileX,
int  tileY,
Token.Type  ability 
)
void rabbitescape.render.gameloop.GeneralPhysics.checkWon ( )
private
void rabbitescape.render.gameloop.GeneralPhysics.dispose ( )
void rabbitescape.render.gameloop.GeneralPhysics.doInterpreterActions ( )
private

Take actions for demo mode, eg drop tokens.

int rabbitescape.render.gameloop.GeneralPhysics.frameNumber ( )
boolean rabbitescape.render.gameloop.GeneralPhysics.gameRunning ( )
void rabbitescape.render.gameloop.GeneralPhysics.notifyStatsListeners ( )
private
long rabbitescape.render.gameloop.GeneralPhysics.step ( long  simulation_time,
long  frame_start_time 
)
World rabbitescape.render.gameloop.GeneralPhysics.world ( )

Member Data Documentation

boolean rabbitescape.render.gameloop.GeneralPhysics.fast
final int rabbitescape.render.gameloop.GeneralPhysics.FAST_FRAME_SKIP = 3
staticprivate
int rabbitescape.render.gameloop.GeneralPhysics.frame
final long rabbitescape.render.gameloop.GeneralPhysics.max_allowed_skips
private
final long rabbitescape.render.gameloop.GeneralPhysics.simulation_time_step_ms = 70
static
final SolutionInterpreter rabbitescape.render.gameloop.GeneralPhysics.solutionInterpreter
final List<StatsChangedListener> rabbitescape.render.gameloop.GeneralPhysics.statsListeners
private
final UiPlayback rabbitescape.render.gameloop.GeneralPhysics.uiPlayback
private
final WaterAnimation rabbitescape.render.gameloop.GeneralPhysics.water
private
final LevelWinListener rabbitescape.render.gameloop.GeneralPhysics.winListener
private
final World rabbitescape.render.gameloop.GeneralPhysics.world
final WorldModifier rabbitescape.render.gameloop.GeneralPhysics.worldModifier
private

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