PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
debugger.h
1 /*
2  * Platformer Game Engine by Wohlstand, a free platform for game making
3  * Copyright (c) 2015 Vitaly Novichkov <admin@wohlnet.ru>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef DEBUGGER_H
20 #define DEBUGGER_H
21 
22 #include <scenes/scene.h>
23 
28 {
29 public:
34  static void executeCommand(Scene* parent);
35 
37  static bool cheat_allowed;
38 
40  static bool cheat_pagangod;
42  static bool cheat_chucknorris;
44  static bool cheat_superman;
46  static bool cheat_worldfreedom;
47 
51  static void resetEverything();
52 
57  static void setRestriction(bool denyed);
58 
59 };
60 
61 #endif // DEBUGGER_H
static void resetEverything()
Sets all cheat flags to "false".
Definition: debugger.cpp:115
static bool cheat_allowed
Allows cheating features such a god mode, chuck-norris, superman, etc.
Definition: debugger.h:37
The PGE_Debugger class contains flags to enable/disable special debug features of engine...
Definition: debugger.h:27
static bool cheat_worldfreedom
Allows playable character walk everywhere on world map with no limits.
Definition: debugger.h:46
static void setRestriction(bool denyed)
Toggles restriction to execution of cheating commands.
Definition: debugger.cpp:122
static bool cheat_pagangod
All Playable characters are will take no damage from enemies/bullets and there are will not burn in l...
Definition: debugger.h:40
Definition: scene.h:36
static void executeCommand(Scene *parent)
Spawn text input box where user can type a special command which will be executed.
Definition: debugger.cpp:36
static bool cheat_superman
Allows playable characterls unlimitely fly up via Alt-Jump key.
Definition: debugger.h:44
static bool cheat_chucknorris
Allows to playable character destroy any nearest objects at front, at top or at bottom via Alt-Run ke...
Definition: debugger.h:42