Peoplemon  0.1.0
Peoplemon 3 game source documentation
PeoplemonSelector.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_COMPONENTS_PEOPLEMONSELECTOR_HPP
2 #define EDITOR_COMPONENTS_PEOPLEMONSELECTOR_HPP
3 
4 #include <BLIB/Interfaces/GUI.hpp>
5 #include <Core/Peoplemon/Id.hpp>
6 
7 namespace editor
8 {
9 namespace component
10 {
17 class PeoplemonSelector : public bl::gui::ComboBox {
18 public:
19  using Ptr = std::shared_ptr<PeoplemonSelector>;
20 
27  static Ptr create(bool allowUnknown = false);
28 
34 
40 
45  void refresh();
46 
47 private:
48  const bool allowUnknown;
49 
50  PeoplemonSelector(bool allowUnknown);
51 };
52 
53 } // namespace component
54 } // namespace editor
55 
56 #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
Special combobox for Peoplemon ids.
static Ptr create(bool allowUnknown=false)
Creates a new peoplemon selector.
core::pplmn::Id currentPeoplemon() const
Returns the currently selected peoplemon.
std::shared_ptr< PeoplemonSelector > Ptr
void setPeoplemon(core::pplmn::Id id)
Sets the currently selected Peoplemon.
void refresh()
Refreshes the list of peoplemon.