Emergency 20 Dokumentation  4.2.0
TrapPersonsCommandMode.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 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
34  {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Public definitions ]
39  //[-------------------------------------------------------]
40  public:
41  static const uint32 PLUGINABLE_ID;
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public methods ]
46  //[-------------------------------------------------------]
47  public:
53 
58  virtual ~TrapPersonsCommandMode();
59 
60  void spawnGangster(bool spawnGangster, bool spawnHostage);
61 
62 
63  //[-------------------------------------------------------]
64  //[ Public virtual qsf::game::CommandMode methods ]
65  //[-------------------------------------------------------]
66  public:
67  virtual void startup() override;
68  virtual void shutdown() override;
69  virtual bool executeCommandContext(qsf::game::CommandContext& commandContext, const EntityIdSet& callerIds) override;
70  virtual void updateCommandMode(const qsf::Clock& clock) override;
71 
72 
73  //[-------------------------------------------------------]
74  //[ Private data ]
75  //[-------------------------------------------------------]
76  private:
77  qsf::DebugDrawProxy mDebugDrawProxy;
78  bool mSpawnGangster;
79  bool mSpawnHostage;
80 
81 
82  //[-------------------------------------------------------]
83  //[ CAMP reflection system ]
84  //[-------------------------------------------------------]
85  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
86 
87 
88  };
89 
90 
91 //[-------------------------------------------------------]
92 //[ Namespace ]
93 //[-------------------------------------------------------]
94 } // em5
95 
96 
97 //[-------------------------------------------------------]
98 //[ CAMP reflection system ]
99 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
static const uint32 PLUGINABLE_ID
"em5::TrapPersonsCommandMode" unique command pluginable ID
Definition: TrapPersonsCommandMode.h:41
unsigned int uint32
Definition: PlatformTypes.h:181
Clock class.
Definition: Clock.h:33
#define EM5_API_EXPORT
Definition: Export.h:28
Trap persons in building or vehicles (there only when the vehicle contains persons) command mode...
Definition: TrapPersonsCommandMode.h:33
Debug draw proxy class.
Definition: DebugDrawProxy.h:46
Debug command mode abstract base class.
Definition: DebugCommandMode.h:47
#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
boost::container::flat_set< uint64 > EntityIdSet
Definition: CommandMode.h:59
Command context base class.
Definition: CommandContext.h:48