#include <System.h>
Inheritance diagram for Odyssey::System:
Public Member Functions | |
System () | |
Creates a new, empty System. | |
void | setName (const String &name) |
Changes the name of the System to the one given. | |
const String & | getName () const |
Returns the current name of the System. | |
void | setUpdateFrequency (float32 freq) |
Sets the locked update frequency for this system. | |
float32 | getUpdateFrequency () const |
Returns the update frequncy of the system. | |
void | setMaxUpdateTime (float32 time) |
Sets the max amount of time that can occur between updates. | |
float32 | getMaxUpdateTime () const |
Returns the max amount of time allowed between updates. | |
void | create () |
An overridable function that initializes the system. | |
void | destroy () |
An overridable function that destroys the system. | |
void | setActive (bool active=true) |
Sets the active status of the system. | |
bool | getActive () const |
Returns the active status of the system. | |
void | update () |
This function updates the system. | |
MessageQueue & | getMessageQueue () |
Returns a reference to the system's message queue. | |
void | setAttribute (const String &name, const Variable &attr) |
Sets the given attribute. | |
Variable | getAttribute (const String &name) const |
Returns the value of the given attribute. | |
std::set< String > | getAttributes () const |
Returns a set of all the attributes handled by the system. | |
bool | containsAttribute (const String &name) const |
Returns true if the named attribute is handled by this system. | |
virtual bool | onAdding (Manager< SystemPtr > &) const |
virtual bool | onRemoving (Manager< SystemPtr > &) const |
Protected Types | |
typedef std::map< String, Variable > | AttributeMap |
Protected Member Functions | |
virtual void | onCreated () |
virtual void | onDestroyed () |
virtual void | onActivated () |
virtual void | onDeactivated () |
virtual void | onUpdate () |
virtual bool | onAttributeChanged (const String &name, const Variable &value) |
void | onRemoved (MessageQueue &queue) |
This event is called when this listener is removed as a listener from the message queue. | |
Protected Attributes | |
String | _name |
bool | _active |
float32 | _freq |
float32 | _maxDelta |
float32 | _accumulator |
Timer | _timer |
AttributeMap | _attrs |
This class wraps the interfaces (facade/adapter) for the large subsystems that make up the simulation (like physics, graphics, etc.)
|
|
|
Creates a new, empty System.
|
|
Returns true if the named attribute is handled by this system.
|
|
An overridable function that initializes the system.
|
|
An overridable function that destroys the system.
|
|
Returns the active status of the system.
|
|
Returns the value of the given attribute.
|
|
Returns a set of all the attributes handled by the system.
|
|
Returns the max amount of time allowed between updates.
|
|
Returns a reference to the system's message queue.
|
|
Returns the current name of the System.
|
|
Returns the update frequncy of the system.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This event is called when this listener is removed as a listener from the message queue.
Reimplemented from Odyssey::MessageAdapter. |
|
|
|
|
|
Sets the active status of the system.
|
|
Sets the given attribute.
|
|
Sets the max amount of time that can occur between updates. This function set the max amount of time allowed between update calls. If the delta time between updates exceeds this, the system will "skip" over that time. A negative value means that infinite time may pass.
|
|
Changes the name of the System to the one given.
|
|
Sets the locked update frequency for this system. This function sets the desired locked update frequency. The system will attempt to stay locked at this frequency when it is updated. A negative value will mean that the system will update at one frame every update call. Essentially, the frequency will not be locked.
|
|
This function updates the system.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|