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) |
Contains static methods for creating controllers.
Definition at line 15 of file Controllers.java.
|
package |
Adds a controller to the list.
controller | the 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.
entity | reference to the entity. |
factory | reference to a controller factory, or null if the default behavior should be used. |
Definition at line 74 of file Controllers.java.
|
package |
Returns the number of controllers.
Definition at line 48 of file Controllers.java.
|
static |
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.
w | the world object. |
Definition at line 57 of file Controllers.java.