bubolo
 All Classes Namespaces Functions Variables Enumerator
Public Member Functions | Static Public Attributes | List of all members
bubolo.BuboloApplication Class Reference
Inheritance diagram for bubolo.BuboloApplication:
bubolo.GameApplication

Public Member Functions

 BuboloApplication (int windowWidth, int windowHeight)
 
boolean isReady ()
 
void create ()
 
void render ()
 
void dispose ()
 
void pause ()
 
void resize (int width, int height)
 
void resume ()
 

Static Public Attributes

static final int TICKS_PER_SECOND = 30
 
static final float MILLIS_PER_TICK = 1000 / TICKS_PER_SECOND
 

Detailed Description

The Game: this is where the subsystems are initialized, as well as where the main game loop is.

Author
BU CS673 - Clone Productions

Definition at line 12 of file BuboloApplication.java.

Constructor & Destructor Documentation

bubolo.BuboloApplication.BuboloApplication ( int  windowWidth,
int  windowHeight 
)

Constructs an instance of the game application. Only one instance should ever exist.

Parameters
windowWidththe width of the window.
windowHeightthe height of the window.

Definition at line 40 of file BuboloApplication.java.

Member Function Documentation

void bubolo.BuboloApplication.create ( )

Create anything that relies on graphics, sound, windowing, or input devices here.

See Also
ApplicationListener

Definition at line 57 of file BuboloApplication.java.

void bubolo.BuboloApplication.dispose ( )

Called when the application is destroyed.

See Also
ApplicationListener

Definition at line 108 of file BuboloApplication.java.

boolean bubolo.BuboloApplication.isReady ( )

Returns true if the game's subsystems have been set up, or false otherwise.

Returns
true if the game's subsystems have been set up.

Implements bubolo.GameApplication.

Definition at line 47 of file BuboloApplication.java.

void bubolo.BuboloApplication.pause ( )

Definition at line 113 of file BuboloApplication.java.

void bubolo.BuboloApplication.render ( )

Called automatically by the rendering library.

See Also
ApplicationListener

Definition at line 75 of file BuboloApplication.java.

References bubolo.BuboloApplication.MILLIS_PER_TICK, and bubolo.graphics.Graphics.MILLIS_PER_TICK.

void bubolo.BuboloApplication.resize ( int  width,
int  height 
)

Definition at line 118 of file BuboloApplication.java.

void bubolo.BuboloApplication.resume ( )

Definition at line 123 of file BuboloApplication.java.

Member Data Documentation

final float bubolo.BuboloApplication.MILLIS_PER_TICK = 1000 / TICKS_PER_SECOND
static

The number of milliseconds per game tick.

Definition at line 32 of file BuboloApplication.java.

Referenced by bubolo.BuboloApplication.render().

final int bubolo.BuboloApplication.TICKS_PER_SECOND = 30
static

The number of game ticks (calls to update) per second.

Definition at line 27 of file BuboloApplication.java.