Peoplemon  0.1.0
Peoplemon 3 game source documentation
Peoplemon.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_PAGES_PEOPLEMON_HPP
2 #define EDITOR_PAGES_PEOPLEMON_HPP
3 
6 #include <Editor/Pages/Page.hpp>
7 
8 namespace editor
9 {
10 namespace page
11 {
18 class Peoplemon : public Page {
19 public:
26 
31  virtual ~Peoplemon() = default;
32 
38  virtual void update(float dt) override;
39 
40 private:
41  core::file::PeoplemonDB peoplemonDb;
43  bl::gui::Button::Ptr saveBut;
44  bl::gui::ScrollArea::Ptr rowArea;
45  bool firstSync;
46 
47  void onChange();
48  void makeDirty();
49  void save();
50  void newPeoplemon();
51  void editPeoplemon(core::pplmn::Id move);
52  void deletePeoplemon(core::pplmn::Id move);
53  void sync();
54  void reset();
55 };
56 
57 } // namespace page
58 } // namespace editor
59 
60 #endif
Id
The id of a peoplemon.
Definition: Id.hpp:16
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
Data structure that holds the underlaying data for all the peoplemon.
Definition: PeoplemonDB.hpp:26
Owns all primary systems and a reference to the engine.
Definition: Systems.hpp:47
Base class for all editor pages.
Definition: Page.hpp:32
core::system::Systems & systems
Definition: Page.hpp:68
Page for editing Peoplemon metadata.
Definition: Peoplemon.hpp:18
Peoplemon(core::system::Systems &systems)
Construct a new Peoplemon page.
Definition: Peoplemon.cpp:11
virtual ~Peoplemon()=default
Destroy the Page.
virtual void update(float dt) override
Does nothing.
Definition: Peoplemon.cpp:35