Emergency 20 Dokumentation  4.2.0
GangsterEvent.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 #include <qsf/map/Entity.h>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23  class GangsterBaseLogic;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
42  {
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public methods ]
47  //[-------------------------------------------------------]
48  public:
53  uint64 getGangsterId() const;
54 
59  void setGangster(qsf::Entity& entity, bool resolveSpawnPoint = true);
60 
65  uint64 getVictimId() const;
66 
71  void setVictim(qsf::Entity& entity);
72 
73  GangsterBaseLogic* getGangsterLogic() const;
74 
75  QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(EscapeTargetTag, const std::string&, mEscapeTargetTag);
76 
77 
78  //[-------------------------------------------------------]
79  //[ Protected methods ]
80  //[-------------------------------------------------------]
81  protected:
86  GangsterEvent();
87 
92  virtual ~GangsterEvent();
93 
94 
95  //[-------------------------------------------------------]
96  //[ Protected data ]
97  //[-------------------------------------------------------]
98  protected:
101  std::string mEscapeTargetTag;
102 
103 
104  //[-------------------------------------------------------]
105  //[ CAMP reflection system ]
106  //[-------------------------------------------------------]
107  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
108 
109 
110  };
111 
112 
113 //[-------------------------------------------------------]
114 //[ Namespace ]
115 //[-------------------------------------------------------]
116 } // em5
117 
118 
119 //[-------------------------------------------------------]
120 //[ CAMP reflection system ]
121 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
qsf::WeakPtr< qsf::Entity > mVictim
Definition: GangsterEvent.h:100
Entity class.
Definition: Entity.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
uint64_t uint64
Definition: PlatformTypes.h:184
std::string mEscapeTargetTag
Definition: GangsterEvent.h:101
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
qsf::WeakPtr< qsf::Entity > mGangster
Definition: GangsterEvent.h:99
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
Base game logic for gangster.
Definition: GangsterBaseLogic.h:52
#define QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(name, type, variable)
Definition: PropertyHelper.h:16
EMERGENCY 5 gangster freeplay event base class.
Definition: GangsterEvent.h:41
Abstract EMERGENCY 5 freeplay event base class.
Definition: FreeplayEvent.h:66