Emergency 20 Dokumentation  4.2.0
em5::EntityLogicHelper Class Reference

Static entity logic helper class. More...

#include <EntityLogicHelper.h>

Static Public Member Functions

template<typename T >
static bool checkAndExecuteAutomatism (qsf::Entity *caller, qsf::Entity *target, const boost::optional< glm::vec3 > hitPosition=boost::optional< glm::vec3 >())
 Check if the given command is able to execute for the caller. More...
 

Detailed Description

Static entity logic helper class.

Member Function Documentation

template<typename T >
bool em5::EntityLogicHelper::checkAndExecuteAutomatism ( qsf::Entity caller,
qsf::Entity target,
const boost::optional< glm::vec3 >  hitPosition = boost::optional<glm::vec3>() 
)
static

Check if the given command is able to execute for the caller.

Note
Use this inside the automatism to execute checked commandos
EntityLogicHelper::checkAndExecuteCommand<PickupPersonByParamedicCommand>(getEntity(), target);

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