Emergency 20 Dokumentation  4.2.0
BuriedPersonEventFactory.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 ~BuriedPersonEventFactory();
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  //[ CAMP reflection system ]
82  //[-------------------------------------------------------]
83  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
84 
85 
86  };
87 
88 
89 //[-------------------------------------------------------]
90 //[ Namespace ]
91 //[-------------------------------------------------------]
92 } // em5
93 
94 
95 //[-------------------------------------------------------]
96 //[ CAMP reflection system ]
97 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
EMERGENCY 5 freeplay event factory for "buried person".
Definition: BuriedPersonEventFactory.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
qsf::EnumBitmask< uint8, PersonComponent::Age > AgeBitmask
Definition: BuriedPersonEventFactory.h:39