Peoplemon  0.1.0
Peoplemon 3 game source documentation
GameTesting.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_PAGES_SUBPAGES_GAMETESTING_HPP
2 #define EDITOR_PAGES_SUBPAGES_GAMETESTING_HPP
3 
4 #include <BLIB/Interfaces/GUI.hpp>
8 
9 namespace editor
10 {
11 namespace page
12 {
19 class GameTesting {
20 public:
25  GameTesting();
26 
31  void registerGUI(bl::gui::GUI* gui);
32 
40  void notifyClick(const std::string& map, unsigned int level, const sf::Vector2i& pos);
41 
46  const bl::gui::Box::Ptr& getContent() const;
47 
48 private:
49  std::vector<core::file::GameSave> saves;
50  core::file::GameSave newSave;
51 
52  bl::gui::GUI* gui;
53  bl::gui::Box::Ptr content;
54  bl::gui::ComboBox::Ptr saveSelector;
55  bl::gui::Label::Ptr posLabel;
57 
58  void sync();
59  void updatePosLabel(unsigned int level, const glm::i32vec2& pos);
60  void launchGame();
61 };
62 
63 } // namespace page
64 } // namespace editor
65 
66 #endif
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
Represents a game save and provides functionality to load and save.
Definition: GameSave.hpp:24
Subpage in the map editor for creating and testing game saves.
Definition: GameTesting.hpp:19
void notifyClick(const std::string &map, unsigned int level, const sf::Vector2i &pos)
Notifies of the spawn being set.
Definition: GameTesting.cpp:86
GameTesting()
Construct a new Game Testing page.
Definition: GameTesting.cpp:9
const bl::gui::Box::Ptr & getContent() const
Returns the content to pack.
Definition: GameTesting.cpp:75
void registerGUI(bl::gui::GUI *gui)
Sets the primary GUI object.
Definition: GameTesting.cpp:73