Peoplemon  0.1.0
Peoplemon 3 game source documentation
DebugOverrides.hpp
Go to the documentation of this file.
1 #ifndef GAME_BATTLES_BATTLESKIPPER_HPP
2 #define GAME_BATTLES_BATTLESKIPPER_HPP
3 
4 #include <BLIB/Events.hpp>
6 #include <SFML/Window/Event.hpp>
7 
8 #ifdef PEOPLEMON_DEBUG
9 
17 namespace core
18 {
20 namespace debug
21 {
28 struct DebugOverrides : private bl::event::Listener<sf::Event> {
29 public:
31  bool skipBattles;
32 
34  bool alwaysCatch;
35 
37  bool alwaysRun;
38 
43  static const DebugOverrides& get();
44 
50  static void subscribe();
51 
52 private:
53  DebugOverrides();
54  static DebugOverrides& instance();
55  virtual void observe(const sf::Event& event) override;
56 };
57 
58 } // namespace debug
59 } // namespace core
60 
61 #endif
62 #endif
Core classes and functionality for both the editor and game.