HoverRace  2.0
DebugScene.h
Go to the documentation of this file.
1 
2 // DebugScene.h
3 //
4 // Copyright (c) 2015 Michael Imamura.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 
22 #pragma once
23 
24 #include "GameDirector.h"
25 
26 #include "UiScene.h"
27 
28 namespace HoverRace {
29  namespace Client {
30  class Scene;
31  }
32  namespace Display {
33  class Display;
34  class ActiveText;
35  class FillBox;
36  }
37 }
38 
39 namespace HoverRace {
40 namespace Client {
41 
46 class DebugScene : public UiScene
47 {
48  using SUPER = UiScene;
49 
50 public:
52  virtual ~DebugScene();
53 
54 public:
55  bool IsMouseCursorEnabled() const override { return true; }
56 
57 public:
58  void Advance(Util::OS::timestamp_t tick) override;
59  void PrepareRender() override;
60  void Render() override;
61 
62 private:
65  std::unique_ptr<Display::ActiveText> debugLbl;
66  std::unique_ptr<Display::FillBox> debugBox;
67 };
68 
69 } // namespace HoverScript
70 } // namespace Client
Interface for game client shells.
Definition: GameDirector.h:57
Base class for UI-centric scenes.
Definition: UiScene.h:42
GameDirector & director
Definition: TestLabScene.cpp:160
Overlay for displaying debug information.
Definition: DebugScene.h:46
std::unique_ptr< Display::FillBox > debugBox
Definition: DebugScene.h:66
Base class for display managers.
Definition: Display.h:73
GameDirector & director
Definition: DebugScene.h:63
Definition: Announcement.h:24
Util::OS::timestamp_t prevUpdateTick
Definition: DebugScene.h:64
bool IsMouseCursorEnabled() const override
Determine if the mouse cursor is enabled for this scene.
Definition: DebugScene.h:55
MR_Int64 timestamp_t
Definition: OS.h:55
std::unique_ptr< Display::ActiveText > debugLbl
Definition: DebugScene.h:65