Symphony Of Empires
|
Type for military outposts. More...
#include <building.hpp>
Public Member Functions | |
bool | can_plot_on_sea () const |
bool | can_plot_on_land () const |
bool | can_build_land_units () const |
bool | can_build_naval_units () const |
bool | can_build_air_units () const |
bool | can_build_military () const |
Can this building type build a military unit. More... | |
void | can_plot_on_sea (bool b) |
void | can_plot_on_land (bool b) |
void | can_build_land_units (bool b) |
void | can_build_naval_units (bool b) |
void | can_build_air_units (bool b) |
Public Member Functions inherited from Entity< T > | |
constexpr | Entity () noexcept=default |
constexpr | Entity (Entity &&) noexcept=default |
constexpr | Entity (const Entity &) noexcept=default |
constexpr Entity & | operator= (const Entity &) noexcept=default |
constexpr | ~Entity () noexcept=default |
constexpr bool | is_invalid () const |
Checks if the current id is invalid. More... | |
constexpr bool | is_valid () const |
Checks if the current id is valid. More... | |
constexpr | operator Id () const noexcept |
constexpr | operator size_t () const noexcept |
constexpr Id | get_id () const |
Public Attributes | |
Eng3D::StringRef | name |
std::bitset< 4 > | flags |
float | num_req_workers = 0.f |
CommodityId | output_id |
std::vector< CommodityId > | input_ids |
std::vector< std::pair< CommodityId, float > > | req_goods |
std::vector< TechnologyId > | req_technologies |
Public Attributes inherited from RefnameEntity< BuildingTypeId > | |
Eng3D::StringRef | ref_name |
Public Attributes inherited from Entity< T > | |
Id | cached_id |
Id used to speed up Id lookups on any context. More... | |
Additional Inherited Members | |
Public Types inherited from Entity< T > | |
using | Id = T |
Static Public Member Functions inherited from Entity< T > | |
constexpr static Id | invalid () |
Returns an invalid id. More... | |
constexpr static bool | is_invalid (Id id) |
Checks if the id is not valid. More... | |
constexpr static bool | is_valid (Id id) |
Checks if the id is valid. More... | |
Type for military outposts.
Definition at line 38 of file building.hpp.
|
inline |
|
inline |
Definition at line 54 of file building.hpp.
|
inline |
|
inline |
Definition at line 52 of file building.hpp.
|
inline |
Can this building type build a military unit.
Definition at line 46 of file building.hpp.
|
inline |
|
inline |
Definition at line 53 of file building.hpp.
|
inline |
Definition at line 40 of file building.hpp.
|
inline |
Definition at line 51 of file building.hpp.
|
inline |
Definition at line 39 of file building.hpp.
|
inline |
Definition at line 50 of file building.hpp.
std::bitset<4> BuildingType::flags |
Definition at line 57 of file building.hpp.
std::vector<CommodityId> BuildingType::input_ids |
Definition at line 63 of file building.hpp.
Eng3D::StringRef BuildingType::name |
Definition at line 56 of file building.hpp.
float BuildingType::num_req_workers = 0.f |
Definition at line 61 of file building.hpp.
CommodityId BuildingType::output_id |
Definition at line 62 of file building.hpp.
std::vector<std::pair<CommodityId, float> > BuildingType::req_goods |
Definition at line 65 of file building.hpp.
std::vector<TechnologyId> BuildingType::req_technologies |
Definition at line 66 of file building.hpp.