bubolo
 All Classes Namespaces Functions Variables Enumerator
Public Member Functions | Static Public Member Functions | Package Functions | List of all members
bubolo.controllers.Controllers Class Reference

Public Member Functions

void update (World w)
 
void createController (Entity entity, ControllerFactory factory)
 

Static Public Member Functions

static Controllers getInstance ()
 

Package Functions

long getCount ()
 
void addController (Controller controller)
 

Detailed Description

Contains static methods for creating controllers.

Author
BU CS673 - Clone Productions

Definition at line 15 of file Controllers.java.

Member Function Documentation

void bubolo.controllers.Controllers.addController ( Controller  controller)
package

Adds a controller to the list.

Parameters
controllerthe controller to add.

Definition at line 92 of file Controllers.java.

void bubolo.controllers.Controllers.createController ( Entity  entity,
ControllerFactory  factory 
)

Instantiates controllers for the specified entity. The optional ControllerFactory can be used to specify the exact controllers that will be created for the entity. Alternatively, passing a null reference will result in the creation of the default controllers for the entity.

Parameters
entityreference to the entity.
factoryreference to a controller factory, or null if the default behavior should be used.

Definition at line 74 of file Controllers.java.

long bubolo.controllers.Controllers.getCount ( )
package

Returns the number of controllers.

Returns
the number of controllers.

Definition at line 48 of file Controllers.java.

static Controllers bubolo.controllers.Controllers.getInstance ( )
static

Returns the instance of this singleton.

Returns
the instance of this singleton.

Definition at line 27 of file Controllers.java.

void bubolo.controllers.Controllers.update ( World  w)

Calls the update method on all controllers.

Parameters
wthe world object.

Definition at line 57 of file Controllers.java.