HoverRace  2.0
PlayGameScene.h
Go to the documentation of this file.
1 
2 // PlayGameScene.h
3 //
4 // Copyright (c) 2014-2016 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 "GameScene.h"
25 
26 namespace HoverRace {
27 namespace Client {
28 
38 class PlayGameScene : public GameScene
39 {
40  typedef GameScene SUPER;
41 
42 public:
44  Script::Core &scripting, std::shared_ptr<Rules> rules,
45  std::shared_ptr<Util::Loader> loader);
46  virtual ~PlayGameScene();
47 
48 public:
50  ConnList &conns) override;
52  ConnList &conns) override;
53 
54 private:
55  void OnCameraZoom(int increment);
56  void OnCameraPan(int increment);
57  void OnCameraReset();
58  void OnPause();
59 };
60 
61 } // namespace Client
62 } // namespace HoverRace
virtual ~PlayGameScene()
Definition: PlayGameScene.cpp:43
Base for scenes that render and interact with tracks.
Definition: GameScene.h:69
Interface for game client shells.
Definition: GameDirector.h:57
Display::Display & display
Definition: GameScene.h:130
void OnCameraZoom(int increment)
Definition: PlayGameScene.cpp:92
GameScene SUPER
Definition: PlayGameScene.h:40
void OnPause()
Fired when the pause button (e.g. ESC) is pressed.
Definition: PlayGameScene.cpp:114
std::shared_ptr< Rules > rules
Definition: GameScene.h:133
std::array< boost::signals2::scoped_connection, 2 > conns
Definition: ProfileEditScene.cpp:152
PlayGameScene(Display::Display &display, GameDirector &director, Script::Core &scripting, std::shared_ptr< Rules > rules, std::shared_ptr< Util::Loader > loader)
Definition: PlayGameScene.cpp:36
void AttachController(Control::InputEventController &controller, ConnList &conns) override
Configure the controller mappings.
Definition: PlayGameScene.cpp:47
The actual, genuine gameplay scene.
Definition: PlayGameScene.h:38
Base class for display managers.
Definition: Display.h:73
Script::Core & scripting
Definition: GameScene.h:132
void DetachController(Control::InputEventController &controller, ConnList &conns) override
Remove the controller mappings.
Definition: PlayGameScene.cpp:77
GameDirector & director
Definition: GameScene.h:131
Tracks connections as a group.
Definition: Scene.h:69
void OnCameraPan(int increment)
Definition: PlayGameScene.cpp:99
Definition: Announcement.h:24
void OnCameraReset()
Definition: PlayGameScene.cpp:106
Translates input events into actions.
Definition: Controller.h:106
A script environment.
Definition: Core.h:66