Emergency 20 Dokumentation  4.2.0
qsf::ai::reactionrules::WaitAtWaitingPointTurnAndAnimate Class Reference

#include <WaitingPointRules.h>

Inheritance diagram for qsf::ai::reactionrules::WaitAtWaitingPointTurnAndAnimate:
qsf::ai::reactionrules::WaitAtWaitingPoint qsf::ai::reactionrules::StandardRule qsf::ai::ReactionRule

Public Member Functions

 WaitAtWaitingPointTurnAndAnimate ()
 
virtual void deserialize (const boost::property_tree::ptree &tree)
 
virtual void serialize (boost::property_tree::ptree &tree) const
 
- Public Member Functions inherited from qsf::ai::reactionrules::WaitAtWaitingPoint
 WaitAtWaitingPoint ()
 
virtual bool handle (const EvaluationParameters &parameters)
 
- Public Member Functions inherited from qsf::ai::reactionrules::StandardRule
 StandardRule (EvaluationParameters::PerceptionEventSource eventSource)
 
virtual const char * getRegistrationName () const =0
 
- Public Member Functions inherited from qsf::ai::ReactionRule
 ReactionRule ()
 
 ReactionRule (const ReactionRule &src)
 
virtual ~ReactionRule ()
 
virtual ReactionRuleclone () const =0
 
virtual bool wantsHandlingDespiteOfLowerPriority () const
 
virtual void serialize (BinarySerializer &serializer)
 
const std::string & getName () const
 
uint32 getId () const
 
Percentage getProbability () const
 
void setProbability (Percentage probability)
 
action::Priority getPriority () const
 

Protected Member Functions

virtual bool onWait (const EvaluationParameters &parameters, const PerceptionEvent &event)
 
- Protected Member Functions inherited from qsf::ai::reactionrules::StandardRule
EvaluationParameters::PerceptionEventIterator checkForEvent (const EvaluationParameters &parameters) const
 
- Protected Member Functions inherited from qsf::ai::ReactionRule
bool pushEventToEntity (const PerceptionEvent &perceptionEvent) const
 

Protected Attributes

Animation mAnimation
 
TurnToPerceiver mTurnToPerceiver
 
- Protected Attributes inherited from qsf::ai::reactionrules::WaitAtWaitingPoint
MinMaxDuration mDuration
 
- Protected Attributes inherited from qsf::ai::reactionrules::StandardRule
NamedIdentifier mEventId
 
EvaluationParameters::PerceptionEventSource mEventSource
 

Additional Inherited Members

- Static Public Member Functions inherited from qsf::ai::ReactionRule
static bool compareByPriority (const ReactionRule *a, const ReactionRule *b)
 

Detailed Description

WaitAtWaitingPointTurnAndAnimate specializes WaitAtWaitingPoint by providing functionality to automatically let the waiting entity face the waiting-point and play an animation.

Sensor-Configuration: no sensor required.

Additional JSON configuration tags: MinDuration, MaxDuration, Animation, TurnReverse

Constructor & Destructor Documentation

qsf::ai::reactionrules::WaitAtWaitingPointTurnAndAnimate::WaitAtWaitingPointTurnAndAnimate ( )

Member Function Documentation

virtual void qsf::ai::reactionrules::WaitAtWaitingPointTurnAndAnimate::deserialize ( const boost::property_tree::ptree tree)
virtual
virtual bool qsf::ai::reactionrules::WaitAtWaitingPointTurnAndAnimate::onWait ( const EvaluationParameters parameters,
const PerceptionEvent event 
)
protectedvirtual
virtual void qsf::ai::reactionrules::WaitAtWaitingPointTurnAndAnimate::serialize ( boost::property_tree::ptree tree) const
virtual

Member Data Documentation

Animation qsf::ai::reactionrules::WaitAtWaitingPointTurnAndAnimate::mAnimation
protected
TurnToPerceiver qsf::ai::reactionrules::WaitAtWaitingPointTurnAndAnimate::mTurnToPerceiver
protected

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