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

#include <WaitingPointRules.h>

Inheritance diagram for qsf::ai::reactionrules::CheckWaitingPoint:
qsf::ai::reactionrules::StandardRule qsf::ai::ReactionRule

Public Member Functions

 CheckWaitingPoint ()
 
virtual void serialize (BinarySerializer &serializer) override
 
virtual bool handle (const EvaluationParameters &parameters) override
 
- Public Member Functions inherited from qsf::ai::reactionrules::StandardRule
 StandardRule (EvaluationParameters::PerceptionEventSource eventSource)
 
virtual const char * getRegistrationName () const =0
 
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::ReactionRule
 ReactionRule ()
 
 ReactionRule (const ReactionRule &src)
 
virtual ~ReactionRule ()
 
virtual ReactionRuleclone () const =0
 
virtual bool wantsHandlingDespiteOfLowerPriority () const
 
const std::string & getName () const
 
uint32 getId () const
 
Percentage getProbability () const
 
void setProbability (Percentage probability)
 
action::Priority getPriority () const
 

Protected Attributes

uint64 mCaughtEntityId
 
- 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)
 
- 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
 

Detailed Description

CheckWaitingPoint is a ReactionRule to be attached to a waiting-point's ReactionComponent. It works in combination with a SensorComponent also attached to that waiting-point. If the sensor detects a potential entity that should wait it is supposed to create a WaitingPoint event. This rule checks the sensor's events and if there is a WaitingPoint-event it

  • forwards the WaitingPoint-event to the target-entity if there is no "caught" entity yet.
  • does nothing if the "caught" entity is still visible by the sensor.
  • returns to "forwarding"-behaviour if the formerly "caught" entity is not seen by the sensor anymore.

Sensor-Configuration: The corresponding sensor has to be configured to AutoPushEvents=true EventsOnPerceptionBegin=true EventsOnPerceptionContinue=false EventsOnPerceptionEnd=true

Constructor & Destructor Documentation

qsf::ai::reactionrules::CheckWaitingPoint::CheckWaitingPoint ( )

Member Function Documentation

virtual bool qsf::ai::reactionrules::CheckWaitingPoint::handle ( const EvaluationParameters parameters)
overridevirtual

Implements qsf::ai::ReactionRule.

virtual void qsf::ai::reactionrules::CheckWaitingPoint::serialize ( BinarySerializer serializer)
overridevirtual

Reimplemented from qsf::ai::ReactionRule.

Member Data Documentation

uint64 qsf::ai::reactionrules::CheckWaitingPoint::mCaughtEntityId
protected

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