A property that an ActionQueue runs.
It is active only while it is the front of its entity's queue. The queue does not run the property: it says which property is at the front, and the entity's activation pass is what activates it. An implementation says its action is done by answering true to ShouldDeactivate, and the queue moves on once the property is no longer running.
A property that is taken off its entity while it is at the front of the queue leaves the queue when the queue next looks at it.
|
| override bool | ShouldActivate () |
| | A property in a queue runs when the queue says it is at the front.
|
| void | BecomeFrontOfQueue () |
| | Called by the queue when this property becomes the action at the front of it.
|
| void | RemovedFromQueue () |
| | Called by the queue when this property is no longer the action at the front of it.
|
| virtual void | OnBecomeFrontOfQueue () |
| | Override in subclass for what the property does when it becomes the front of the queue.
|
| virtual void | OnRemovedFromQueue () |
| | Override in subclass for what the property does when it is taken out of the queue.
|
| virtual bool | ShouldDeactivate () |
| | Override in subclass to tell the entity that this property should stop running.
|
| virtual Nebula.Game.FrameEvent[] | AcceptedEvents () |
| | Override in subclass to tell the property manager which methods to call for this class.
|
| virtual uint | FixedTimeSource () |
| | The time source this property's fixed events run on.
|
| virtual void | OnMessage (in Msg msg) |
| | Called when a message is sent to the property's associated entity.
|
| override string | ToString () |
| | String representation of this property.
|
| virtual void | OnActivate () |
| | Called when the property is attached to an entity, or when Property.Active is changed to true.
|
| virtual void | OnDeactivate () |
| | Called when the property is detached from an entity, or when Property.Active is changed to false.
|
| virtual void | OnBeginFrame () |
| | Called once every frame at the beginning of the frame.
|
| virtual void | OnFixedFrame () |
| | Called once for every fixed step the time source has available this frame.
|
| virtual void | OnFrame () |
| | Called once every frame.
|
| virtual void | OnPhysicsFrame () |
| | Called once for every step the physics time source has available this frame.
|
| virtual void | OnEndFrame () |
| | Called once every frame at the end of the frame.
|
| void | Destroy () |
| | Destroys the property.
|