Controller Class Reference
[Controller]
#include <Controller.hh>
Inheritance diagram for Controller:

Detailed Description
Base class for all controllers.
Public Member Functions | |
| Controller (Entity *parent) | |
| Constructor. | |
| virtual | ~Controller () |
| Destructor. | |
| void | Load (XMLConfigNode *node) |
| Load the controller. | |
| void | Save () |
| Save the controller. | |
| void | Init () |
| Initialize the controller. | |
| void | Reset () |
| Reset the controller. | |
| void | Update (UpdateParams ¶ms) |
| Update the controller. | |
| void | Fini () |
| Finialize the controller. Called once on completion. | |
| std::string | GetName () const |
| Return the name of this controller. | |
Protected Member Functions | |
| virtual void | LoadChild (XMLConfigNode *) |
| Load function for the child class. | |
| virtual void | SaveChild (XMLConfigNode *) |
| Save function for the child class. | |
| virtual void | InitChild () |
| Init function for the child class. | |
| virtual void | ResetChild () |
| Reset function for the child class. | |
| virtual void | UpdateChild (UpdateParams &) |
| Update function for the child class. | |
| virtual void | FiniChild () |
| Fini function for the child class. | |
Protected Attributes | |
| std::string | name |
| The controller's name. | |
| Entity * | parent |
| The entity that owns this controller. | |
| double | updatePeriod |
| Update period. | |
| double | lastUpdate |
| Last update time. | |
| std::vector< Iface * > | ifaces |
| Array of all the iface for this controller. | |
| XMLConfigNode * | xmlNode |
Constructor & Destructor Documentation
| Controller | ( | Entity * | parent | ) |
Member Function Documentation
| void Load | ( | XMLConfigNode * | node | ) |
| void Save | ( | ) |
Save the controller.
- Parameters:
-
node The XMLConfigWriter node pointer
| void Init | ( | ) |
Initialize the controller.
Called once on startup.
- Returns:
- 0 on success
| void Update | ( | UpdateParams & | params | ) |
Update the controller.
Called every cycle.
- Parameters:
-
params Parameters to the update cycle
| std::string GetName | ( | ) | const |
Return the name of this controller.
- Returns:
- The name of the controller
The documentation for this class was generated from the following file: