HoverRace  2.0
DebugPeer.h
Go to the documentation of this file.
1 
2 // DebugPeer.h
3 //
4 // Copyright (c) 2013-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 <luabind/luabind.hpp>
25 #include <luabind/object.hpp>
26 
27 #include "../../../engine/Script/Handlers.h"
28 #include "../../../engine/Script/Peer.h"
29 
30 namespace HoverRace {
31  namespace Client {
32  class GameDirector;
33  }
34  namespace Display {
35  class Display;
36  }
37  namespace Script {
38  class Core;
39  }
40 }
41 
42 namespace HoverRace {
43 namespace Client {
44 namespace HoverScript {
45 
50 class DebugPeer : public Script::Peer
51 {
53 
54 public:
55  DebugPeer(Script::Core &scripting, GameDirector &gameDirector);
56  virtual ~DebugPeer() { }
57 
58 public:
59  static void Register(Script::Core &scripting);
60 
61 public:
62  void LOpenLink(const std::string &url);
63  void LOpenPath(const std::string &path);
64  void LShowPalette();
65  void LStartTestLab();
66  void LStartTestLab_N(const std::string &startingModuleName);
67  bool LToggleDebugOverlay();
68 
69  void LTest();
70 
71 private:
73 };
74 
75 } // namespace HoverScript
76 } // namespace Client
77 } // namespace HoverRace
std::string startingModuleName
Definition: TestLabScene.cpp:161
Interface for game client shells.
Definition: GameDirector.h:57
GameDirector & gameDirector
Definition: DebugPeer.h:72
virtual ~DebugPeer()
Definition: DebugPeer.h:56
Provides access to debugging tools.
Definition: DebugPeer.h:50
Base class for script peers.
Definition: Peer.h:47
Definition: Announcement.h:24
A script environment.
Definition: Core.h:66