HoverRace  2.0
TestLabScene.h
Go to the documentation of this file.
1 
2 // TestLabScene.h
3 //
4 // Copyright (c) 2013-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 "../../engine/Display/UiViewModel.h"
25 
26 #include "GameDirector.h"
27 
28 #include "FormScene.h"
29 
30 namespace HoverRace {
31  namespace Display {
32  class Display;
33  class ScreenFade;
34  }
35 }
36 
37 namespace HoverRace {
38 namespace Client {
39 
44 class TestLabScene : public FormScene
45 {
46  using SUPER = FormScene;
47 
48 public:
50  const std::string &startingModuleName = "");
51  virtual ~TestLabScene();
52 
53 public:
54  class LabModule;
55  class ModuleButtonBase;
56 
57 public:
58  void OnScenePushed() override;
59  void PrepareRender() override;
60  void Render() override;
61 
62 private:
63  const std::string startingModuleName;
64  std::unique_ptr<Display::ScreenFade> fader;
65  std::shared_ptr<ModuleButtonBase> startingModuleBtn;
66 };
67 
68 } // namespace Client
69 } // namespace HoverRace
std::unique_ptr< Display::ScreenFade > fader
Definition: TestLabScene.h:64
Definition: TestLabScene.cpp:61
std::string startingModuleName
Definition: TestLabScene.cpp:161
const std::string startingModuleName
Definition: TestLabScene.h:63
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
Base class for display managers.
Definition: Display.h:73
Base class for full-scene menus and the like.
Definition: FormScene.h:48
std::shared_ptr< ModuleButtonBase > startingModuleBtn
Definition: TestLabScene.h:65
Definition: Announcement.h:24
A zoo of renderable components.
Definition: TestLabScene.h:44