Symphony Of Empires
Pop Class Reference

#include <indpobj.hpp>

Inheritance diagram for Pop:
Collaboration diagram for Pop:

Public Member Functions

constexpr bool operator== (const Pop &rhs) const
 
- Public Member Functions inherited from Entity< PopId >
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

PopTypeId type_id
 
float size = 1.f
 
float life_needs_met = 0.f
 
float literacy = 0.f
 
float militancy = 0.f
 
float budget = 0.f
 
Policies wanted_policies
 
- Public Attributes inherited from Entity< PopId >
Id cached_id
 Id used to speed up Id lookups on any context. More...
 

Friends

class Province
 

Additional Inherited Members

- Public Types inherited from Entity< PopId >
using Id = PopId
 
- Static Public Member Functions inherited from Entity< PopId >
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 264 of file indpobj.hpp.

Member Function Documentation

◆ operator==()

constexpr bool Pop::operator== ( const Pop rhs) const
inlineconstexpr

Definition at line 268 of file indpobj.hpp.

Friends And Related Function Documentation

◆ Province

friend class Province
friend

Definition at line 266 of file indpobj.hpp.

Member Data Documentation

◆ budget

float Pop::budget = 0.f

Definition at line 277 of file indpobj.hpp.

◆ life_needs_met

float Pop::life_needs_met = 0.f

Definition at line 274 of file indpobj.hpp.

◆ literacy

float Pop::literacy = 0.f

Definition at line 275 of file indpobj.hpp.

◆ militancy

float Pop::militancy = 0.f

Definition at line 276 of file indpobj.hpp.

◆ size

float Pop::size = 1.f

Definition at line 273 of file indpobj.hpp.

◆ type_id

PopTypeId Pop::type_id

Definition at line 272 of file indpobj.hpp.

◆ wanted_policies

Policies Pop::wanted_policies

Definition at line 278 of file indpobj.hpp.


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