UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
autoUnit_s Struct Reference

One unit (soldier/alien/civilian) of the autobattle. More...

Data Fields

int idx
 
autoMissionTeamType_t team
 
character_tchr
 
double attackStrength
 
double defendStrength
 

Detailed Description

One unit (soldier/alien/civilian) of the autobattle.

Todo:
add attack and defence scores

Definition at line 54 of file cp_auto_mission.cpp.

Field Documentation

double autoUnit_s::attackStrength

How good at attacking a unit is, from 0.0 (can't fight at all) to 1.0 (Higher is better)

Definition at line 58 of file cp_auto_mission.cpp.

double autoUnit_s::defendStrength

A unit's armor or protection, from 0.0 (no armor, can't even dodge/stationary) to 1.0 (Higher is better)

Definition at line 59 of file cp_auto_mission.cpp.

int autoUnit_s::idx
autoMissionTeamType_t autoUnit_s::team

Team of the unit

Definition at line 56 of file cp_auto_mission.cpp.

Referenced by AM_CheckFire(), AM_FillTeamFromAircraft(), AM_FillTeamFromBattleParams(), and AM_UnitAttackEnemy().


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