Freeciv21
Develop your civilization from humble roots to a global empire
unit_type Struct Reference

#include <unittype.h>

+ Collaboration diagram for unit_type:

Public Attributes

Unit_type_id item_number
 
struct name_translation name
 
bool ruledit_disabled
 
char graphic_str [MAX_LEN_NAME]
 
char graphic_alt [MAX_LEN_NAME]
 
char sound_move [MAX_LEN_NAME]
 
char sound_move_alt [MAX_LEN_NAME]
 
char sound_fight [MAX_LEN_NAME]
 
char sound_fight_alt [MAX_LEN_NAME]
 
int build_cost
 
int pop_cost
 
int attack_strength
 
int defense_strength
 
int move_rate
 
int unknown_move_cost
 
struct advancerequire_advance
 
struct requirement_vector build_reqs
 
int vision_radius_sq
 
int transport_capacity
 
int hp
 
int firepower
 
struct combat_bonus_list * bonuses
 
const struct unit_typeobsoleted_by
 
const struct unit_typeconverted_to
 
int convert_time
 
int fuel
 
bv_unit_type_flags flags
 
bv_unit_type_roles roles
 
int happy_cost
 
int upkeep [O_LAST]
 
int paratroopers_range
 
struct veteran_systemveteran
 
int bombard_rate
 
int city_size
 
int city_slots
 
struct unit_classuclass
 
bv_unit_classes cargo
 
bv_unit_classes targets
 
bv_unit_classes embarks
 
bv_unit_classes disembarks
 
enum vision_layer vlayer
 
QVector< QString > * helptext
 
struct {
   bool   igwall
 
   bool   worker
 
adv
 
struct {
   int   max_defense_mp_pct
 
   int   defense_mp_bonuses_pct [U_LAST]
 
cache
 
struct {
   int   paratroopers_mr_req
 
   int   paratroopers_mr_sub
 
rscompat_cache
 
void * ais [FREECIV_AI_MOD_LAST]
 

Detailed Description

Definition at line 465 of file unittype.h.

Member Data Documentation

◆ 

◆ ais

void* unit_type::ais[FREECIV_AI_MOD_LAST]

Definition at line 554 of file unittype.h.

Referenced by utype_ai_data(), and utype_set_ai_data().

◆ attack_strength

◆ bombard_rate

◆ bonuses

◆ build_cost

int unit_type::build_cost

◆ build_reqs

◆ 

◆ cargo

bv_unit_classes unit_type::cargo

Definition at line 521 of file unittype.h.

Referenced by can_unit_type_transport(), and handle_ruleset_unit().

◆ city_size

int unit_type::city_size

◆ city_slots

int unit_type::city_slots

◆ convert_time

int unit_type::convert_time

◆ converted_to

◆ defense_mp_bonuses_pct

int unit_type::defense_mp_bonuses_pct[U_LAST]

Definition at line 545 of file unittype.h.

Referenced by assess_danger(), defense_multiplication(), and move_type_from_extra().

◆ defense_strength

◆ disembarks

bv_unit_classes unit_type::disembarks

Definition at line 530 of file unittype.h.

Referenced by handle_ruleset_unit(), helptext_unit(), and utype_can_freely_unload().

◆ embarks

bv_unit_classes unit_type::embarks

Definition at line 527 of file unittype.h.

Referenced by handle_ruleset_unit(), helptext_unit(), and utype_can_freely_load().

◆ firepower

◆ flags

bv_unit_type_flags unit_type::flags

Definition at line 499 of file unittype.h.

Referenced by handle_ruleset_unit(), utype_has_flag(), and utype_upkeep_cost().

◆ fuel

int unit_type::fuel

Definition at line 497 of file unittype.h.

Referenced by handle_ruleset_unit(), and help_widget::uclass_max_values().

◆ graphic_alt

char unit_type::graphic_alt[MAX_LEN_NAME]

Definition at line 471 of file unittype.h.

Referenced by handle_ruleset_unit(), and tileset_setup_unit_type().

◆ graphic_str

char unit_type::graphic_str[MAX_LEN_NAME]

Definition at line 470 of file unittype.h.

Referenced by handle_ruleset_unit(), and tileset_setup_unit_type().

◆ happy_cost

◆ helptext

QVector<QString>* unit_type::helptext

Definition at line 534 of file unittype.h.

Referenced by handle_ruleset_unit(), helptext_unit(), unit_type_free(), and unit_types_init().

◆ hp

◆ igwall

bool unit_type::igwall

Definition at line 537 of file unittype.h.

Referenced by dai_unit_attack_desirability().

◆ item_number

Unit_type_id unit_type::item_number

Definition at line 466 of file unittype.h.

Referenced by unit_types_init(), and utype_number().

◆ max_defense_mp_pct

int unit_type::max_defense_mp_pct

Definition at line 542 of file unittype.h.

Referenced by assess_danger(), dai_unit_defence_desirability(), and move_type_from_extra().

◆ move_rate

◆ name

◆ obsoleted_by

◆ paratroopers_mr_req

int unit_type::paratroopers_mr_req

Definition at line 550 of file unittype.h.

◆ paratroopers_mr_sub

int unit_type::paratroopers_mr_sub

Definition at line 551 of file unittype.h.

◆ paratroopers_range

◆ pop_cost

◆ require_advance

◆ roles

bv_unit_type_roles unit_type::roles

Definition at line 500 of file unittype.h.

Referenced by handle_ruleset_unit(), and utype_has_role().

◆ 

struct { ... } unit_type::rscompat_cache

◆ ruledit_disabled

bool unit_type::ruledit_disabled

Definition at line 468 of file unittype.h.

Referenced by tab_unit::delete_now(), tab_unit::name_given(), and unit_types_init().

◆ sound_fight

char unit_type::sound_fight[MAX_LEN_NAME]

Definition at line 474 of file unittype.h.

Referenced by handle_ruleset_unit().

◆ sound_fight_alt

char unit_type::sound_fight_alt[MAX_LEN_NAME]

Definition at line 475 of file unittype.h.

Referenced by handle_ruleset_unit().

◆ sound_move

char unit_type::sound_move[MAX_LEN_NAME]

Definition at line 472 of file unittype.h.

Referenced by handle_ruleset_unit().

◆ sound_move_alt

char unit_type::sound_move_alt[MAX_LEN_NAME]

Definition at line 473 of file unittype.h.

Referenced by handle_ruleset_unit().

◆ targets

bv_unit_classes unit_type::targets

◆ transport_capacity

◆ uclass

struct unit_class* unit_type::uclass

◆ unknown_move_cost

int unit_type::unknown_move_cost

◆ upkeep

◆ veteran

◆ vision_radius_sq

◆ vlayer

enum vision_layer unit_type::vlayer

◆ worker

bool unit_type::worker

Definition at line 538 of file unittype.h.

Referenced by auto_settlers_player(), can_unit_do_autosettlers(), and handle_ruleset_unit().