unit.hp
|
int
|
|
the unit's remaining hit points
|
|
unit.location
|
location
|
|
the unit's location
|
|
unit.name
|
str
|
|
the unit's name, only useful in string replacements
|
Apolyton-thread
|
unit.owner
|
int
|
|
the unit's owner
|
|
unit.type
|
int
|
|
the unit's database index
|
Apolyton-thread
|
unit.valid
|
int
|
|
true if the unit still exists, false otherwise
|
|
unitrecord.attack
|
int
|
|
the unit type's attack value
|
|
unitrecord.cost
|
int
|
|
the production cost of the unit type
|
|
unitrecord.defense
|
int
|
|
the unit type's defense value
|
|
unitrecord.movement
|
int
|
|
the unit type's move points
|
|
unitrecord.name
|
str
|
|
the unit type's name
|
|
unitrecord.ranged
|
int
|
|
the unit type's ranged attack value
|
|