Cafu Engine
ClientStateIdle.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_CLIENT_STATE_IDLE_HPP_INCLUDED
8 #define CAFU_CLIENT_STATE_IDLE_HPP_INCLUDED
9 
10 #include "ClientState.hpp"
11 #include "Fonts/Font.hpp"
12 
13 
14 class ClientT;
15 
16 
17 /// This class implements the idle state of the client.
19 {
20  public:
21 
22  ClientStateIdleT(ClientT& Client_);
23 
24  // Implement the ClientStateT interface.
25  int GetID() const override;
26  bool ProcessInputEvent(const CaKeyboardEventT& KE) override;
27  bool ProcessInputEvent(const CaMouseEventT& ME) override;
28  void Render(float FrameTime) override;
29  void MainLoop(float FrameTime) override;
30 
31 
32  private:
33 
34  ClientT& Client; ///< The context this state is a part of.
35 };
36 
37 #endif
This struct describes a mouse event.
Definition: OpenGLWindow.hpp:185
This struct describes a keyboard event.
Definition: OpenGLWindow.hpp:20
Definition: Client.hpp:24
int GetID() const override
Returns some client-specific, unique ID for this state.
Definition: ClientStateIdle.cpp:24
This is the base class for the concrete classes that implement the states of the client.
Definition: ClientState.hpp:18
This class implements the idle state of the client.
Definition: ClientStateIdle.hpp:18