#include <taskactor.h>

Public Member Functions | |
| TaskActorProxy () | |
| Constructs the task actor proxy. | |
| virtual void | BuildPropertyMap () |
| Builds the property map for the task actor proxy. | |
| virtual void | BuildInvokables () |
| Registers any invokables used by the task actor proxy. | |
| virtual bool | IsPlaceable () const |
| Task actors are global actors, so they are not placeable. | |
| virtual bool | RequestScoreChange (const TaskActorProxy &childTask, const TaskActorProxy &origTask) |
| This method is called by a child task on its parent to request from its parent permission to change its score. | |
| virtual void | NotifyScoreChanged (const TaskActorProxy &childTask) |
| Informs the parent of this task that the score was changed. | |
| virtual void | NotifyActorUpdate () |
| This method is called when a task property is changed. | |
| const TaskActorProxy * | GetParentTask () const |
| Gets a const pointer to the parent of this task. | |
| TaskActorProxy * | GetParentTask () |
| Gets a pointer to the parent of this task. | |
| void | AddSubTask (TaskActorProxy &subTask) |
| Adds a new sub task to this task. | |
| void | RemoveSubTask (const TaskActorProxy &subTask) |
| Removes an existing task from this task's list of children. | |
| void | RemoveSubTask (const std::string &name) |
| Removes an existing task from this task's list of children. | |
| TaskActorProxy * | FindSubTask (const std::string &name) |
| Searches this task's list of sub tasks for the specified child. | |
| TaskActorProxy * | FindSubTask (const dtCore::UniqueId &id) |
| Searches this task's list of sub tasks for the specified child. | |
| const std::vector < dtCore::RefPtr < TaskActorProxy > > & | GetAllSubTasks () const |
| |
| void | GetAllSubTasks (std::vector< TaskActorProxy * > &toFill) |
| Fills the specified vector with all of this task's direct children. | |
| void | GetAllSubTasks (std::vector< const TaskActorProxy * > &toFill) const |
| Fills the specified vector with all of this task's direct children. | |
| unsigned | GetSubTaskCount () const |
| Gets the number of sub tasks owned by this task. | |
| void | SetTopLevelTask (bool flag) |
| This method exists for the property system. | |
| bool | IsTopLevelTask () const |
| Gets whether or not this task is a top level task. | |
| float | GetPassingScore () const |
| Wrapper for the actor method. | |
| float | GetScore () const |
| Wrapper for the actor method. | |
| virtual dtDAL::ActorProxyIcon * | GetBillBoardIcon () |
| Gets the billboard used to represent static mesh if this proxy's render mode is RenderMode::DRAW_BILLBOARD_ICON. | |
| virtual const ActorProxy::RenderMode & | GetRenderMode () |
| Gets the method by which this static mesh is rendered. | |
Protected Member Functions | |
| void | SetSubTaskGroup (const dtDAL::NamedGroupParameter &subTasks) |
| Sets the group parameter to populate the list of subtasks. | |
| dtCore::RefPtr < dtDAL::NamedGroupParameter > | GetSubTaskGroup () const |
| |
| virtual | ~TaskActorProxy () |
| Destroys the task actor proxy. | |
| virtual void | CreateActor () |
| Called by the game manager during creation of the proxy. | |
| virtual void | OnEnteredWorld () |
| Called when the proxy has been added to the game manager. | |
| void | SetParentTaskProxy (TaskActorProxy *parent) |
| Sets the parent task to this one. | |
| dtActors::TaskActorProxy::TaskActorProxy | ( | ) |
Constructs the task actor proxy.
| dtActors::TaskActorProxy::~TaskActorProxy | ( | ) | [protected, virtual] |
Destroys the task actor proxy.
| void dtActors::TaskActorProxy::BuildPropertyMap | ( | ) | [virtual] |
Builds the property map for the task actor proxy.
These properties wrap the specified properties located in the task actor.
Reimplemented from dtGame::GameActorProxy.
Reimplemented in dtActors::TaskActorGameEventProxy, and dtActors::TaskActorOrderedProxy.
| void dtActors::TaskActorProxy::BuildInvokables | ( | ) | [virtual] |
Registers any invokables used by the task actor proxy.
The invokables allow the task actor to hook into the game manager messages system.
Reimplemented from dtGame::GameActorProxy.
Reimplemented in dtActors::TaskActorGameEventProxy.
| virtual bool dtActors::TaskActorProxy::IsPlaceable | ( | ) | const [inline, virtual] |
Task actors are global actors, so they are not placeable.
Reimplemented from dtDAL::TransformableActorProxy.
| bool dtActors::TaskActorProxy::RequestScoreChange | ( | const TaskActorProxy & | childTask, | |
| const TaskActorProxy & | origTask | |||
| ) | [virtual] |
This method is called by a child task on its parent to request from its parent permission to change its score.
This method allows the parent task control over whether or not its children may be changed. For example, the TaskActorOrdered task uses this to ensure that if a subtask or any of its children are not completed out of order.
| childTask | The child task in question. | |
| origTask | The tree node in the task list that first instigated the request. |
Reimplemented in dtActors::TaskActorOrderedProxy.
| void dtActors::TaskActorProxy::NotifyScoreChanged | ( | const TaskActorProxy & | childTask | ) | [virtual] |
Informs the parent of this task that the score was changed.
This is useful for tasks whos score is dependent on the cummulative scores of its children.
| childTask | The child task that issued the score changed notify. |
Reimplemented in dtActors::TaskActorOrderedProxy, and dtActors::TaskActorRollupProxy.
| void dtActors::TaskActorProxy::NotifyActorUpdate | ( | ) | [virtual] |
This method is called when a task property is changed.
Reimplemented from dtGame::GameActorProxy.
| const TaskActorProxy* dtActors::TaskActorProxy::GetParentTask | ( | ) | const [inline] |
Gets a const pointer to the parent of this task.
| TaskActorProxy* dtActors::TaskActorProxy::GetParentTask | ( | ) | [inline] |
Gets a pointer to the parent of this task.
| void dtActors::TaskActorProxy::AddSubTask | ( | TaskActorProxy & | subTask | ) |
Adds a new sub task to this task.
If the subtask is already a subtask of a different parent, the subtask is reparented and its old parent task is notified.
| subTask | The task to add as a subtask to this one. |
| void dtActors::TaskActorProxy::RemoveSubTask | ( | const TaskActorProxy & | subTask | ) |
Removes an existing task from this task's list of children.
| subTask | The task to remove. |
| void dtActors::TaskActorProxy::RemoveSubTask | ( | const std::string & | name | ) |
Removes an existing task from this task's list of children.
| name | The name of the task to remove. |
| TaskActorProxy * dtActors::TaskActorProxy::FindSubTask | ( | const std::string & | name | ) |
Searches this task's list of sub tasks for the specified child.
| name | The name of the child task to find. |
| TaskActorProxy * dtActors::TaskActorProxy::FindSubTask | ( | const dtCore::UniqueId & | id | ) |
Searches this task's list of sub tasks for the specified child.
| id | The unique id of the task to search for. |
| const std::vector<dtCore::RefPtr<TaskActorProxy> >& dtActors::TaskActorProxy::GetAllSubTasks | ( | ) | const [inline] |
| void dtActors::TaskActorProxy::GetAllSubTasks | ( | std::vector< TaskActorProxy * > & | toFill | ) |
Fills the specified vector with all of this task's direct children.
| void dtActors::TaskActorProxy::GetAllSubTasks | ( | std::vector< const TaskActorProxy * > & | toFill | ) | const |
Fills the specified vector with all of this task's direct children.
| unsigned dtActors::TaskActorProxy::GetSubTaskCount | ( | ) | const [inline] |
Gets the number of sub tasks owned by this task.
| void dtActors::TaskActorProxy::SetTopLevelTask | ( | bool | flag | ) | [inline] |
This method exists for the property system.
Note, this method is a no-op. IsTopLevelTask() is set if this task is added as a child to another.
| flag |
| bool dtActors::TaskActorProxy::IsTopLevelTask | ( | ) | const [inline] |
Gets whether or not this task is a top level task.
A top level task is a task with no parent.
| float dtActors::TaskActorProxy::GetPassingScore | ( | ) | const [inline] |
Wrapper for the actor method.
| float dtActors::TaskActorProxy::GetScore | ( | ) | const [inline] |
Wrapper for the actor method.
| virtual dtDAL::ActorProxyIcon* dtActors::TaskActorProxy::GetBillBoardIcon | ( | ) | [inline, virtual] |
Gets the billboard used to represent static mesh if this proxy's render mode is RenderMode::DRAW_BILLBOARD_ICON.
Used by STAGE.
Reimplemented from dtDAL::ActorProxy.
| virtual const ActorProxy::RenderMode& dtActors::TaskActorProxy::GetRenderMode | ( | ) | [inline, virtual] |
Gets the method by which this static mesh is rendered.
This is used by STAGE.
Reimplemented from dtDAL::ActorProxy.
| void dtActors::TaskActorProxy::SetSubTaskGroup | ( | const dtDAL::NamedGroupParameter & | subTasks | ) | [protected] |
Sets the group parameter to populate the list of subtasks.
| subTasks | the group of tasks. It should contain NamedActorParameters with the ids of all the subtask proxies. |
| dtCore::RefPtr< dtDAL::NamedGroupParameter > dtActors::TaskActorProxy::GetSubTaskGroup | ( | ) | const [protected] |
| void dtActors::TaskActorProxy::CreateActor | ( | ) | [protected, virtual] |
Called by the game manager during creation of the proxy.
This method creates a TaskActor and returns it.
Implements dtGame::GameActorProxy.
Reimplemented in dtActors::TaskActorGameEventProxy, dtActors::TaskActorOrderedProxy, and dtActors::TaskActorRollupProxy.
| void dtActors::TaskActorProxy::OnEnteredWorld | ( | ) | [protected, virtual] |
Called when the proxy has been added to the game manager.
Reimplemented from dtGame::GameActorProxy.
Reimplemented in dtActors::TaskActorGameEventProxy.
| void dtActors::TaskActorProxy::SetParentTaskProxy | ( | TaskActorProxy * | parent | ) | [inline, protected] |
Sets the parent task to this one.
Called when a subtask is added.
| The | parent task. |