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

#include <parsers_declarations.hpp>

Inheritance diagram for parsers::unit_definition:
Collaboration diagram for parsers::unit_definition:

Public Member Functions

void unit_type_text (association_type, std::string_view value, error_handler &err, int32_t line, scenario_building_context &context)
 
void type_text (association_type, std::string_view value, error_handler &err, int32_t line, scenario_building_context &context)
 
void finish (scenario_building_context &)
 
- Public Member Functions inherited from military::unit_definition
 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)
 

Additional Inherited Members

- Public Attributes inherited from military::unit_definition
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 1416 of file parsers_declarations.hpp.

Member Function Documentation

◆ finish()

void parsers::unit_definition::finish ( scenario_building_context )

Definition at line 367 of file parsers_declarations.cpp.

◆ type_text()

void parsers::unit_definition::type_text ( association_type  ,
std::string_view  value,
error_handler err,
int32_t  line,
scenario_building_context context 
)
inline

Definition at line 1436 of file parsers_declarations.hpp.

Here is the call graph for this function:

◆ unit_type_text()

void parsers::unit_definition::unit_type_text ( association_type  ,
std::string_view  value,
error_handler err,
int32_t  line,
scenario_building_context context 
)
inline

Definition at line 1417 of file parsers_declarations.hpp.

Here is the call graph for this function:

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