Emergency 20 Dokumentation  4.2.0
DummyEventFactory.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 //[-------------------------------------------------------]
15 
16 
17 //[-------------------------------------------------------]
18 //[ Namespace ]
19 //[-------------------------------------------------------]
20 namespace em5
21 {
22 
23 
24  //[-------------------------------------------------------]
25  //[ Classes ]
26  //[-------------------------------------------------------]
32  {
33 
34 
35  //[-------------------------------------------------------]
36  //[ Public definitions ]
37  //[-------------------------------------------------------]
38  public:
40 
41 
42  //[-------------------------------------------------------]
43  //[ Public methods ]
44  //[-------------------------------------------------------]
45  public:
51 
56  virtual ~DummyEventFactory();
57 
58 
59  //[-------------------------------------------------------]
60  //[ Public virtual em5::FreeplayEventFactory methods ]
61  //[-------------------------------------------------------]
62  public:
63  virtual FreeplayEvent* tryTriggerEvent() override;
64 
65 
66  //[-------------------------------------------------------]
67  //[ Protected methods ]
68  //[-------------------------------------------------------]
69  protected:
70  qsf::Entity* findCandidate() const;
71 
72 
73  //[-------------------------------------------------------]
74  //[ Private methods ]
75  //[-------------------------------------------------------]
76  private:
77  bool checkCandidate(qsf::Entity& candidateEntity) const;
78 
79 
80  //[-------------------------------------------------------]
81  //[ Private data ]
82  //[-------------------------------------------------------]
83  private:
84  AgeBitmask mAgeBitmask;
85 
86 
87  //[-------------------------------------------------------]
88  //[ CAMP reflection system ]
89  //[-------------------------------------------------------]
90  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
91 
92 
93  };
94 
95 
96 //[-------------------------------------------------------]
97 //[ Namespace ]
98 //[-------------------------------------------------------]
99 } // em5
100 
101 
102 //[-------------------------------------------------------]
103 //[ CAMP reflection system ]
104 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
qsf::EnumBitmask< uint8, PersonComponent::Age > AgeBitmask
Definition: DummyEventFactory.h:39
EMERGENCY 5 freeplay event factory for "medical emergency".
Definition: DummyEventFactory.h:31
#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
Abstract EMERGENCY 5 freeplay event base class.
Definition: FreeplayEvent.h:66