#include <EntityGroupProcesses.h>
Public Member Functions | |
| void | followEntity (ptr< CscEntityReflexion > master, ptr< CscEntityReflexion > slave, const CscMoveForwardInGroup::FollowParameters *params) |
| void | followObject (const string &objectId, ptr< CscEntityReflexion > slave, const CscMoveForwardInGroup::FollowParameters *params) |
| void | stopFollowEntity (ptr< CscEntityReflexion > slave) |
| void | stopFollowObject (ptr< CscEntityReflexion > slave) |
| vector< CscMoveForwardInGroup * > * | getMoveForwardInGroupList () const |
Static Public Member Functions | |
| static EntityGroupProcesses * | getInstance () |
| void conscience_core::ai::multi_entity::EntityGroupProcesses::followEntity | ( | ptr< CscEntityReflexion > | master, |
| ptr< CscEntityReflexion > | slave, | ||
| const CscMoveForwardInGroup::FollowParameters * | params | ||
| ) |
This method creates a new object of type CscMoveForwardInGroup and adapt instance of EntityGroupProcesses to this new element.
| master | The master entity to follow within the group. |
| slave | The slave entity to be moved within the group. |
| params | The distance between the master and slave entities. The angle between the master and slave entities. And the height difference between the master and slave entities. |
| void conscience_core::ai::multi_entity::EntityGroupProcesses::followObject | ( | const string & | objectId, |
| ptr< CscEntityReflexion > | slave, | ||
| const CscMoveForwardInGroup::FollowParameters * | params | ||
| ) |
|
static |
| vector< CscMoveForwardInGroup * > * conscience_core::ai::multi_entity::EntityGroupProcesses::getMoveForwardInGroupList | ( | ) | const |
| void conscience_core::ai::multi_entity::EntityGroupProcesses::stopFollowEntity | ( | ptr< CscEntityReflexion > | slave | ) |
This method removes a object of type CscMoveForwardInGroup and possibly removes the entire CscMoveForwardInGroup if this was the last slave. And stop thread if it was the last CscMoveForwardInGroup.
| slave | The slave entity to be removed within the group. |
| void conscience_core::ai::multi_entity::EntityGroupProcesses::stopFollowObject | ( | ptr< CscEntityReflexion > | slave | ) |