Emergency 20 Dokumentation  4.2.0
DebugInputHandler.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 //[-------------------------------------------------------]
15 
16 
17 //[-------------------------------------------------------]
18 //[ Forward declarations ]
19 //[-------------------------------------------------------]
20 namespace qsf
21 {
22  class KeyboardEvent;
23  class MouseButtonEvent;
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  explicit DebugInputHandler(uint32 id);
54 
59  virtual ~DebugInputHandler();
60 
61 
62  //[-------------------------------------------------------]
63  //[ Protected virtual qsf::InputHandler methods ]
64  //[-------------------------------------------------------]
65  protected:
66  virtual void updateInputHandler(const qsf::Time& timePassed) override;
67 
68 
69  //[-------------------------------------------------------]
70  //[ Protected virtual qsf::InputListener methods ]
71  //[-------------------------------------------------------]
72  protected:
73  virtual void eventReceived(const qsf::InputEvent& inputEvent, Response& response) override;
74 
75 
76  //[-------------------------------------------------------]
77  //[ Private methods ]
78  //[-------------------------------------------------------]
79  private:
80  void processKeyboardEvent(const qsf::KeyboardEvent& keyboardEvent);
81  void processMouseButtonEvent(const qsf::MouseButtonEvent& mouseButtonEvent);
82 
83  void clearFreeplayEvents();
84 
85  // Camera switch
86  void switchToCameraView(int number);
87  void onScreenFadedOutForCameraView(const qsf::MessageParameters& parameters, int number);
88  void onCutsceneFinishedForCameraView(const qsf::MessageParameters& parameters, int number);
89 
90 
91  //[-------------------------------------------------------]
92  //[ Private data ]
93  //[-------------------------------------------------------]
94  private:
95  uint32 mCurrentWeatherStateIndex;
96  qsf::MessageProxy mMessageProxy;
97 
98 
99  };
100 
101 
102 //[-------------------------------------------------------]
103 //[ Namespace ]
104 //[-------------------------------------------------------]
105 } // em5
Definition: ActionPriority.h:13
Message parameters class.
Definition: MessageParameters.h:34
Input handler base class.
Definition: InputHandler.h:40
unsigned int uint32
Definition: PlatformTypes.h:181
Input event base class.
Definition: InputEvent.h:40
Message listener proxy class.
Definition: MessageProxy.h:47
virtual ~DebugInputHandler()
Destructor.
Definition: PickupPersonByParamedicAction.h:21
EMERGENCY 5 debug input handler class.
Definition: DebugInputHandler.h:41
Mouse button event class.
Definition: MouseButtonEvent.h:46
DebugInputHandler(uint32 id)
Constructor.
Keyboard event class.
Definition: KeyboardEvent.h:44
virtual void updateInputHandler(const qsf::Time &timePassed) override
Update the input handler.
virtual void eventReceived(const qsf::InputEvent &inputEvent, Response &response) override
React to input events.
Definition: InputListener.h:51
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32