UFO: Alien Invasion
Loading...
Searching...
No Matches
autoUnit_t Struct Reference

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

Collaboration diagram for autoUnit_t:
Collaboration graph

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

◆ attackStrength

double autoUnit_t::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.

◆ chr

◆ defendStrength

double autoUnit_t::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.

◆ idx

int autoUnit_t::idx

◆ team

autoMissionTeamType_t autoUnit_t::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: