Conscience Core
Public Member Functions | Static Public Member Functions | List of all members
conscience_core::ai::multi_entity::EntityGroupProcesses Class Reference

#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 EntityGroupProcessesgetInstance ()
 

Member Function Documentation

◆ followEntity()

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.

Parameters
masterThe master entity to follow within the group.
slaveThe slave entity to be moved within the group.
paramsThe 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.

◆ followObject()

void conscience_core::ai::multi_entity::EntityGroupProcesses::followObject ( const string &  objectId,
ptr< CscEntityReflexion slave,
const CscMoveForwardInGroup::FollowParameters params 
)

◆ getInstance()

EntityGroupProcesses * conscience_core::ai::multi_entity::EntityGroupProcesses::getInstance ( )
static

◆ getMoveForwardInGroupList()

vector< CscMoveForwardInGroup * > * conscience_core::ai::multi_entity::EntityGroupProcesses::getMoveForwardInGroupList ( ) const

◆ stopFollowEntity()

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.

Parameters
slaveThe slave entity to be removed within the group.

◆ stopFollowObject()

void conscience_core::ai::multi_entity::EntityGroupProcesses::stopFollowObject ( ptr< CscEntityReflexion slave)

The documentation for this class was generated from the following files: