FemtoIDE Java API  v0.0.18b
femto.State Class Reference

Inherited by femto.MenuState.

Public Member Functions

void preinit ()
 preinit is called on the new state, before shutdown is called in the old state. This is only useful when you need to get some information from the old state.
 
void init ()
 init is called when entering a state. Here, you can create objects knowing that the old state has cleaned up after itself.
 
void update ()
 update is called every frame. This is the heartbeat, or "tick", of the game.
 
void shutdown ()
 shutdown is called when leaving a state. This can be used to free up memory by setting variables to null, leaving more memory available for the next state.
 

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