Emergency 20 Dokumentation  4.2.0
StopGuidePersonAction.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 //[-------------------------------------------------------]
13 #include "em5/Export.h"
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 definitions ]
47  //[-------------------------------------------------------]
48  public:
50 
51 
52  //[-------------------------------------------------------]
53  //[ Public static methods ]
54  //[-------------------------------------------------------]
55  public:
56  static void restorePolicemanAndGangster(qsf::Entity& policeman, qsf::Entity& gangster);
57  static bool freeGangster(qsf::Entity& policeman, qsf::Entity& gangster);
58 
59 
60  //[-------------------------------------------------------]
61  //[ Public methods ]
62  //[-------------------------------------------------------]
63  public:
69 
74  virtual ~StopGuidePersonAction();
75 
76 
77  //[-------------------------------------------------------]
78  //[ Public virtual qsf::Actions methods ]
79  //[-------------------------------------------------------]
80  public:
81  virtual void serialize(qsf::BinarySerializer& serializer) override;
82 
83 
84  //[-------------------------------------------------------]
85  //[ Protected virtual qsf::Action methods ]
86  //[-------------------------------------------------------]
87  protected:
88  virtual bool onStartup() override;
89  virtual qsf::action::Result updateAction(const qsf::Clock& clock) override;
90 
91 
92  //[-------------------------------------------------------]
93  //[ Private data ]
94  //[-------------------------------------------------------]
95  private:
96  uint64 mTargetEntityId;
97 
98 
99  //[-------------------------------------------------------]
100  //[ CAMP reflection system ]
101  //[-------------------------------------------------------]
102  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
103 
104 
105  };
106 
107 
108 //[-------------------------------------------------------]
109 //[ Namespace ]
110 //[-------------------------------------------------------]
111 } // em5
112 
113 
114 //[-------------------------------------------------------]
115 //[ CAMP reflection system ]
116 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
static const qsf::NamedIdentifier ACTION_ID
"em5::StopGuidePersonAction" unique action identifier
Definition: StopGuidePersonAction.h:49
Entity class.
Definition: Entity.h:46
Clock class.
Definition: Clock.h:33
#define EM5_API_EXPORT
Definition: Export.h:28
uint64_t uint64
Definition: PlatformTypes.h:184
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
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
Abstract action base class.
Definition: Action.h:59
EMERGENCY 5 stop guide person action.
Definition: StopGuidePersonAction.h:41
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
Binary serializer class.
Definition: BinarySerializer.h:35
Result
Definition: ActionResult.h:20