Emergency 20 Dokumentation  4.2.0
PersonJumpOutOfWindowLogic.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 
17 #include <qsf/job/JobProxy.h>
18 
19 
20 //[-------------------------------------------------------]
21 //[ Namespace ]
22 //[-------------------------------------------------------]
23 namespace em5
24 {
25 
26 
27  //[-------------------------------------------------------]
28  //[ Classes ]
29  //[-------------------------------------------------------]
35  {
36 
37 
38  //[-------------------------------------------------------]
39  //[ Public definitions ]
40  //[-------------------------------------------------------]
41  public:
42  static const uint32 GAMELOGIC_TYPE_ID; // "em5::PersonJumpOutOfWindowLogic" game logic type ID
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public methods ]
47  //[-------------------------------------------------------]
48  public:
54 
62  void updateSimulationJump(const qsf::JobArguments& jobArguments);
63  void updateSimulationBalcony(const qsf::JobArguments& jobArguments);
64 
65 
66  //[-------------------------------------------------------]
67  //[ Public virtual qsf::GameLogic methods ]
68  //[-------------------------------------------------------]
69  public:
70  virtual bool onStartup() override;
71  virtual void onShutdown() override;
72 
73 
74  //[-------------------------------------------------------]
75  //[ Private methods ]
76  //[-------------------------------------------------------]
77  private:
78  void personHitsGround();
79 
80 
81  //[-------------------------------------------------------]
82  //[ Private data ]
83  //[-------------------------------------------------------]
84  private:
85  qsf::JobProxy mSimulationJumpJobProxy;
86  qsf::JobProxy mSimulationBalconyJobProxy;
87  qsf::MessageProxy mMessageProxy;
88  glm::vec3 mJump;
89  qsf::Time mJumpWaitTime;
90 
91 
92  //[-------------------------------------------------------]
93  //[ CAMP reflection system ]
94  //[-------------------------------------------------------]
95  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
96 
97 
98  };
99 
100 
101 //[-------------------------------------------------------]
102 //[ Namespace ]
103 //[-------------------------------------------------------]
104 } // em5
105 
106 
107 //[-------------------------------------------------------]
108 //[ CAMP reflection system ]
109 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
static const uint32 GAMELOGIC_TYPE_ID
Definition: PersonJumpOutOfWindowLogic.h:42
Message listener proxy class.
Definition: MessageProxy.h:47
Logic for persons jumping out of burning buildings' windows.
Definition: PersonJumpOutOfWindowLogic.h:34
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
#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
Game logic base class.
Definition: GameLogic.h:44
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32