Emergency 20 Dokumentation  4.2.0
CivilianReactions.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
24  {
25  public:
28  virtual bool handle(const qsf::ai::EvaluationParameters& parameters, const qsf::ai::PerceptionEvent* event);
29  };
30 
32  {
33  public:
36  virtual bool handle(const qsf::ai::EvaluationParameters& parameters, const qsf::ai::PerceptionEvent* event);
37  private:
38  qsf::ai::MinMaxDuration mDuration;
39  };
40 
42  {
43  public:
46  virtual bool handle(const qsf::ai::EvaluationParameters& parameters, const qsf::ai::PerceptionEvent* event);
47  };
48 
50  {
51  public:
54  virtual bool handle(const qsf::ai::EvaluationParameters& parameters, const qsf::ai::PerceptionEvent* event);
55  };
56 
58  {
59  public:
62  virtual bool handle(const qsf::ai::EvaluationParameters& parameters, const qsf::ai::PerceptionEvent* event);
63  void cancel(const qsf::ai::EvaluationParameters& parameters);
64  private:
65  qsf::ai::MinMaxDuration mDuration;
66  };
67 
68 
69 //[-------------------------------------------------------]
70 //[ Namespace ]
71 //[-------------------------------------------------------]
72 } // em5
Definition: ActionPriority.h:13
Definition: CivilianReactions.h:23
Definition: CivilianReactions.h:57
virtual bool handle(const qsf::ai::EvaluationParameters &parameters, const qsf::ai::PerceptionEvent *event)
Definition: Reaction.h:35
void cancel(const qsf::ai::EvaluationParameters &parameters)
Definition: EvaluationParameters.h:47
Definition: ReactionHelpers.h:70
virtual bool handle(const qsf::ai::EvaluationParameters &parameters, const qsf::ai::PerceptionEvent *event)
Definition: CivilianReactions.h:49
virtual bool handle(const qsf::ai::EvaluationParameters &parameters, const qsf::ai::PerceptionEvent *event)
virtual bool handle(const qsf::ai::EvaluationParameters &parameters, const qsf::ai::PerceptionEvent *event)
A PerceptionEvent is used to communicate perception-information, usually from sensor-components to re...
Definition: PerceptionEvent.h:35
Definition: CivilianReactions.h:31
Definition: CivilianReactions.h:41
#define CLONEABLE_REACTION(ClassName)
Definition: Reaction.h:25
virtual bool handle(const qsf::ai::EvaluationParameters &parameters, const qsf::ai::PerceptionEvent *event)