Emergency 20 Dokumentation  4.2.0
CollisionSensorCommandMode.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>
17 
18 
19 //[-------------------------------------------------------]
20 //[ Namespace ]
21 //[-------------------------------------------------------]
22 namespace em5
23 {
24 
25 
26  //[-------------------------------------------------------]
27  //[ Classes ]
28  //[-------------------------------------------------------]
37  {
38 
39 
40  //[-------------------------------------------------------]
41  //[ Public definitions ]
42  //[-------------------------------------------------------]
43  public:
44  static const uint32 PLUGINABLE_ID;
45 
46 
47  //[-------------------------------------------------------]
48  //[ Public methods ]
49  //[-------------------------------------------------------]
50  public:
56 
61  virtual ~CollisionSensorCommandMode();
62 
63 
64  //[-------------------------------------------------------]
65  //[ Public virtual qsf::game::CommandMode methods ]
66  //[-------------------------------------------------------]
67  public:
68  virtual void startup() override;
69  virtual void shutdown() override;
70  virtual bool executeCommandContext(qsf::game::CommandContext& commandContext, const EntityIdSet& callerIds) override;
71  virtual void updateCommandMode(const qsf::Clock& clock) override;
72 
73 
74  //[-------------------------------------------------------]
75  //[ Private data ]
76  //[-------------------------------------------------------]
77  private:
78  qsf::WeakPtr<qsf::Entity> mSensorEntity;
79  qsf::DebugDrawProxy mDebugDrawProxy;
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
unsigned int uint32
Definition: PlatformTypes.h:181
Clock class.
Definition: Clock.h:33
#define EM5_API_EXPORT
Definition: Export.h:28
Collision sensor command mode.
Definition: CollisionSensorCommandMode.h:36
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
static const uint32 PLUGINABLE_ID
"em5::CollisionSensorCommandMode" unique command pluginable ID
Definition: CollisionSensorCommandMode.h:44
boost::container::flat_set< uint64 > EntityIdSet
Definition: CommandMode.h:59
Command context base class.
Definition: CommandContext.h:48