Symphony Of Empires
TerrainType Struct Reference

#include <indpobj.hpp>

Inheritance diagram for TerrainType:
Collaboration diagram for TerrainType:

Public Member Functions

std::string get_icon_path () const
 
- Public Member Functions inherited from Entity< T >
constexpr Entity () noexcept=default
 
constexpr Entity (Entity &&) noexcept=default
 
constexpr Entity (const Entity &) noexcept=default
 
constexpr Entityoperator= (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
 
uint32_t color
 
bool is_water_body = false
 
float penalty = 1.f
 
- Public Attributes inherited from RefnameEntity< TerrainTypeId >
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...
 

Detailed Description

Definition at line 327 of file indpobj.hpp.

Member Function Documentation

◆ get_icon_path()

std::string TerrainType::get_icon_path ( ) const
inline

Definition at line 332 of file indpobj.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ color

uint32_t TerrainType::color

Definition at line 329 of file indpobj.hpp.

◆ is_water_body

bool TerrainType::is_water_body = false

Definition at line 330 of file indpobj.hpp.

◆ name

Eng3D::StringRef TerrainType::name

Definition at line 328 of file indpobj.hpp.

◆ penalty

float TerrainType::penalty = 1.f

Definition at line 331 of file indpobj.hpp.


The documentation for this struct was generated from the following file: