17 constexpr std::size_t typeCount =
sizeof(indexToType) /
sizeof(indexToType[0]);
22 TypeSelector::TypeSelector()
26 addOption(
"Intelligent");
28 addOption(
"Athletic");
31 addOption(
"PartyAnimal");
39 for (std::size_t i = 0; i < typeCount; ++i) {
40 if (type == indexToType[i]) {
45 BL_LOG_WARN <<
"Received bad peoplemon type: " << type;
Type
Represents a type that a move or Peoplemon can be. Types may be combined.
All classes and functionality used for implementing the game editor.
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.