Emergency 20 Dokumentation  4.2.0
TreeAndBushFireEventFactory.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 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace qsf
22 {
23  class Entity;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
42  {
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public static methods ]
47  //[-------------------------------------------------------]
48  public:
49  static qsf::Entity* findTreeCandidate(const std::string& eventTag, const std::string& difficultyTags);
50  static qsf::Entity* findHedgeCandidate(const std::string& eventTag, const std::string& difficultyTags);
51 
52 
53  //[-------------------------------------------------------]
54  //[ Public methods ]
55  //[-------------------------------------------------------]
56  public:
62 
67  virtual ~TreeAndBushFireEventFactory();
68 
69  QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(DifficultyTags, const std::string&, mDifficultyTags)
70 
71 
72  //[-------------------------------------------------------]
73  //[ Public virtual em5::FreeplayEventFactory methods ]
74  //[-------------------------------------------------------]
75  public:
76  virtual FreeplayEvent* tryTriggerEvent() override;
77 
78 
79  //[-------------------------------------------------------]
80  //[ Private methods ]
81  //[-------------------------------------------------------]
82  private:
83  qsf::Entity* findCandidate() const;
84 
85 
86  //[-------------------------------------------------------]
87  //[ Private data ]
88  //[-------------------------------------------------------]
89  private:
90  std::string mDifficultyTags;
91 
92 
93  //[-------------------------------------------------------]
94  //[ CAMP reflection system ]
95  //[-------------------------------------------------------]
96  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
97 
98 
99  };
100 
101 
102 //[-------------------------------------------------------]
103 //[ Namespace ]
104 //[-------------------------------------------------------]
105 } // em5
106 
107 
108 //[-------------------------------------------------------]
109 //[ CAMP reflection system ]
110 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
EMERGENCY 5 freeplay event factory for "tree and bush fire event".
Definition: TreeAndBushFireEventFactory.h:41
Definition: PickupPersonByParamedicAction.h:21
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
EMERGENCY 5 freeplay event factory base class.
Definition: FreeplayEventFactory.h:56
#define QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(name, type, variable)
Definition: PropertyHelper.h:16
Abstract EMERGENCY 5 freeplay event base class.
Definition: FreeplayEvent.h:66