Emergency 20 Dokumentation  4.2.0
qsf::ai::reactionrules::StandardRule Class Referenceabstract

#include <StandardRule.h>

Inheritance diagram for qsf::ai::reactionrules::StandardRule:
qsf::ai::ReactionRule em5::CivilianFireReactionRule qsf::ai::reactionrules::CheckWaitingPoint qsf::ai::reactionrules::EntityInteraction qsf::ai::reactionrules::ForwardLocalEventRule qsf::ai::reactionrules::GlobalEvent qsf::ai::reactionrules::GlobalEventStartEnd qsf::ai::reactionrules::HandleForwardedLocalEventRule qsf::ai::reactionrules::RandomInteruption qsf::ai::reactionrules::WaitAtWaitingPoint

Public Member Functions

 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 handle (const EvaluationParameters &parameters)=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

EvaluationParameters::PerceptionEventIterator checkForEvent (const EvaluationParameters &parameters) const
 
- Protected Member Functions inherited from qsf::ai::ReactionRule
bool pushEventToEntity (const PerceptionEvent &perceptionEvent) const
 

Protected Attributes

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

StandardRule is the base class for most of the common concrete reaction-rules you find in this folder. It also provides a semi-automatic interface to name the rule for registration with the reaction-system.

Additional JSON configuration tags: EventId

Constructor & Destructor Documentation

qsf::ai::reactionrules::StandardRule::StandardRule ( EvaluationParameters::PerceptionEventSource  eventSource)
inline

Member Function Documentation

EvaluationParameters::PerceptionEventIterator qsf::ai::reactionrules::StandardRule::checkForEvent ( const EvaluationParameters parameters) const
inlineprotected
virtual const char* qsf::ai::reactionrules::StandardRule::getRegistrationName ( ) const
pure virtual

Member Data Documentation

NamedIdentifier qsf::ai::reactionrules::StandardRule::mEventId
protected
EvaluationParameters::PerceptionEventSource qsf::ai::reactionrules::StandardRule::mEventSource
protected

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