Project Alice
Loading...
Searching...
No Matches
military::unit_definition Struct Reference

#include <military.hpp>

Inheritance diagram for military::unit_definition:
Collaboration diagram for military::unit_definition:

Public Member Functions

 unit_definition ()
 
- Public Member Functions inherited from sys::unit_variable_stats
void operator+= (unit_variable_stats const &other)
 
void operator-= (unit_variable_stats const &other)
 

Public Attributes

economy::commodity_set build_cost
 
economy::commodity_set supply_cost
 
float maneuver = 0.0f
 
int32_t colonial_points = 0
 
int32_t min_port_level = 0
 
int32_t supply_consumption_score = 0
 
int32_t icon = 0
 
int32_t naval_icon = 0
 
dcon::text_key name
 
bool is_land = true
 
bool capital = false
 
bool can_build_overseas = true
 
bool primary_culture = false
 
bool active = true
 
unit_type type = unit_type::infantry
 
uint16_t padding = 0
 
- Public Attributes inherited from sys::unit_variable_stats
int32_t build_time = 0
 
int32_t default_organisation = 0
 
float maximum_speed = 0.0f
 
float defence_or_hull = 0.0f
 
float attack_or_gun_power = 0.0f
 
float supply_consumption = 0.0f
 
float support = 0.0f
 
float siege_or_torpedo_attack = 0.0f
 
float reconnaissance_or_fire_range = 0.0f
 
float discipline_or_evasion = 0.0f
 

Detailed Description

Definition at line 95 of file military.hpp.

Constructor & Destructor Documentation

◆ unit_definition()

military::unit_definition::unit_definition ( )
inline

Definition at line 118 of file military.hpp.

Member Data Documentation

◆ active

bool military::unit_definition::active = true

Definition at line 113 of file military.hpp.

◆ build_cost

economy::commodity_set military::unit_definition::build_cost

Definition at line 96 of file military.hpp.

◆ can_build_overseas

bool military::unit_definition::can_build_overseas = true

Definition at line 111 of file military.hpp.

◆ capital

bool military::unit_definition::capital = false

Definition at line 110 of file military.hpp.

◆ colonial_points

int32_t military::unit_definition::colonial_points = 0

Definition at line 100 of file military.hpp.

◆ icon

int32_t military::unit_definition::icon = 0

Definition at line 104 of file military.hpp.

◆ is_land

bool military::unit_definition::is_land = true

Definition at line 109 of file military.hpp.

◆ maneuver

float military::unit_definition::maneuver = 0.0f

Definition at line 99 of file military.hpp.

◆ min_port_level

int32_t military::unit_definition::min_port_level = 0

Definition at line 101 of file military.hpp.

◆ name

dcon::text_key military::unit_definition::name

Definition at line 107 of file military.hpp.

◆ naval_icon

int32_t military::unit_definition::naval_icon = 0

Definition at line 105 of file military.hpp.

◆ padding

uint16_t military::unit_definition::padding = 0

Definition at line 116 of file military.hpp.

◆ primary_culture

bool military::unit_definition::primary_culture = false

Definition at line 112 of file military.hpp.

◆ supply_consumption_score

int32_t military::unit_definition::supply_consumption_score = 0

Definition at line 102 of file military.hpp.

◆ supply_cost

economy::commodity_set military::unit_definition::supply_cost

Definition at line 97 of file military.hpp.

◆ type

unit_type military::unit_definition::type = unit_type::infantry

Definition at line 115 of file military.hpp.


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