Freeciv-3.3
Loading...
Searching...
No Matches
Data Fields
unit_type Struct Reference

#include <unittype.h>

Data Fields

Unit_type_id item_number
 
struct name_translation name
 
bool ruledit_disabled
 
voidruledit_dlg
 
char graphic_str [MAX_LEN_NAME]
 
char graphic_alt [MAX_LEN_NAME]
 
char graphic_alt2 [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 requirement_vector build_reqs
 
int vision_radius_sq
 
int transport_capacity
 
int hp
 
int firepower
 
struct combat_bonus_listbonuses
 
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
 
enum transp_def_type tp_defense
 
struct unit_classuclass
 
bv_unit_classes cargo
 
bv_unit_classes targets
 
bv_unit_classes embarks
 
bv_unit_classes disembarks
 
enum vision_layer vlayer
 
struct strvechelptext
 
struct { 
 
   bool   igwall 
 
   bool   worker 
 
adv 
 
struct { 
 
   int   max_defense_mp_bonus_pct 
 
   int   defense_mp_bonuses_pct [U_LAST
 
   int   scramble_coeff [U_LAST
 
cache 
 
voidais [FREECIV_AI_MOD_LAST]
 

Detailed Description

Definition at line 507 of file unittype.h.

Field Documentation

◆ [struct]

struct { ... } unit_type::adv

◆ ais

void* unit_type::ais[FREECIV_AI_MOD_LAST]

Definition at line 595 of file unittype.h.

◆ attack_strength

int unit_type::attack_strength

◆ bombard_rate

int unit_type::bombard_rate

◆ bonuses

struct combat_bonus_list* unit_type::bonuses

Definition at line 533 of file unittype.h.

Referenced by handle_ruleset_unit_bonus(), helptext_unit(), and unit_types_init().

◆ build_cost

int unit_type::build_cost

◆ build_reqs

struct requirement_vector unit_type::build_reqs

◆ [struct]

struct { ... } unit_type::cache

Referenced by assess_danger().

◆ cargo

bv_unit_classes unit_type::cargo

Definition at line 565 of file unittype.h.

Referenced by can_unit_type_transport(), handle_ruleset_unit(), and invasion_funct().

◆ city_size

int unit_type::city_size

◆ city_slots

int unit_type::city_slots

Definition at line 559 of file unittype.h.

Referenced by actres_possible(), city_unit_slots_available(), and handle_ruleset_unit().

◆ convert_time

int unit_type::convert_time

◆ converted_to

const struct unit_type* unit_type::converted_to

Definition at line 537 of file unittype.h.

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

◆ defense_mp_bonuses_pct

int unit_type::defense_mp_bonuses_pct[U_LAST]

Definition at line 589 of file unittype.h.

Referenced by assess_danger().

◆ defense_strength

int unit_type::defense_strength

◆ disembarks

bv_unit_classes unit_type::disembarks

Definition at line 574 of file unittype.h.

Referenced by handle_ruleset_unit(), and helptext_unit().

◆ embarks

bv_unit_classes unit_type::embarks

Definition at line 571 of file unittype.h.

Referenced by handle_ruleset_unit(), and helptext_unit().

◆ firepower

int unit_type::firepower

◆ flags

bv_unit_type_flags unit_type::flags

Definition at line 541 of file unittype.h.

Referenced by edit_utype::closeEvent(), edit_utype::edit_utype(), and handle_ruleset_unit().

◆ fuel

int unit_type::fuel

Definition at line 539 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]

◆ graphic_alt2

char unit_type::graphic_alt2[MAX_LEN_NAME]

◆ graphic_str

char unit_type::graphic_str[MAX_LEN_NAME]

Definition at line 512 of file unittype.h.

Referenced by edit_utype::gfx_tag_given(), handle_ruleset_unit(), and edit_utype::refresh().

◆ happy_cost

int unit_type::happy_cost

◆ helptext

struct strvec* unit_type::helptext

◆ hp

int unit_type::hp

◆ igwall

bool unit_type::igwall

Definition at line 581 of file unittype.h.

Referenced by adv_data_phase_init(), and adv_units_ruleset_init().

◆ item_number

Unit_type_id unit_type::item_number

Definition at line 508 of file unittype.h.

Referenced by unit_types_init().

◆ max_defense_mp_bonus_pct

int unit_type::max_defense_mp_bonus_pct

Definition at line 586 of file unittype.h.

Referenced by assess_danger().

◆ move_rate

int unit_type::move_rate

◆ name

struct name_translation unit_type::name

Definition at line 509 of file unittype.h.

Referenced by handle_ruleset_unit(), and tab_unit::name_given().

◆ obsoleted_by

const struct unit_type* unit_type::obsoleted_by

◆ paratroopers_range

int unit_type::paratroopers_range

◆ pop_cost

int unit_type::pop_cost

◆ roles

bv_unit_type_roles unit_type::roles

Definition at line 542 of file unittype.h.

Referenced by handle_ruleset_unit().

◆ ruledit_disabled

bool unit_type::ruledit_disabled

◆ ruledit_dlg

void* unit_type::ruledit_dlg

◆ scramble_coeff

int unit_type::scramble_coeff[U_LAST]

Definition at line 590 of file unittype.h.

Referenced by assess_danger().

◆ sound_fight

char unit_type::sound_fight[MAX_LEN_NAME]

◆ sound_fight_alt

char unit_type::sound_fight_alt[MAX_LEN_NAME]

◆ sound_move

char unit_type::sound_move[MAX_LEN_NAME]

◆ sound_move_alt

char unit_type::sound_move_alt[MAX_LEN_NAME]

◆ targets

bv_unit_classes unit_type::targets

Definition at line 568 of file unittype.h.

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

◆ tp_defense

enum transp_def_type unit_type::tp_defense

Definition at line 561 of file unittype.h.

Referenced by handle_ruleset_unit().

◆ transport_capacity

int unit_type::transport_capacity

◆ uclass

struct unit_class* unit_type::uclass

◆ unknown_move_cost

int unit_type::unknown_move_cost

◆ upkeep

int unit_type::upkeep[O_LAST]

◆ veteran

struct veteran_system* unit_type::veteran

◆ vision_radius_sq

int unit_type::vision_radius_sq

◆ vlayer

enum vision_layer unit_type::vlayer

◆ worker

bool unit_type::worker

Definition at line 582 of file unittype.h.

Referenced by auto_workers_player(), can_unit_do_autoworker(), and handle_ruleset_unit().