Peoplemon  0.1.0
Peoplemon 3 game source documentation
TypeSelector.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_COMPONENTS_TYPESELECTOR_HPP
2 #define EDITOR_COMPONENTS_TYPESELECTOR_HPP
3 
4 #include <BLIB/Interfaces/GUI.hpp>
6 #include <functional>
7 
8 namespace editor
9 {
10 namespace component
11 {
18 class TypeSelector : public bl::gui::ComboBox {
19 public:
21  using Ptr = std::shared_ptr<TypeSelector>;
22 
27  static Ptr create();
28 
34 
41 
42 private:
43  TypeSelector();
44 };
45 
46 } // namespace component
47 } // namespace editor
48 
49 #endif
Type
Represents a type that a move or Peoplemon can be. Types may be combined.
Definition: Type.hpp:18
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
Wrapper around ComboBox for Peoplemon types.
void setCurrentType(core::pplmn::Type type)
Sets the currently selected type.
static Ptr create()
Create a new TypeSelector.
core::pplmn::Type currentType() const
Returns the type that is currently selected.
std::shared_ptr< TypeSelector > Ptr
Pointer to a TypeSelector component.