13#ifndef FC__UNITTOOLS_H
14#define FC__UNITTOOLS_H
21#define SPECENUM_NAME unit_loss_reason
22#define SPECENUM_VALUE0 ULR_KILLED
23#define SPECENUM_VALUE0NAME "killed"
24#define SPECENUM_VALUE1 ULR_RETIRED
25#define SPECENUM_VALUE1NAME "retired"
26#define SPECENUM_VALUE2 ULR_DISBANDED
27#define SPECENUM_VALUE2NAME "disbanded"
28#define SPECENUM_VALUE3 ULR_BARB_UNLEASH
29#define SPECENUM_VALUE3NAME "barb_unleash"
30#define SPECENUM_VALUE4 ULR_CITY_LOST
31#define SPECENUM_VALUE4NAME "city_lost"
32#define SPECENUM_VALUE5 ULR_STARVED
33#define SPECENUM_VALUE5NAME "starved"
34#define SPECENUM_VALUE6 ULR_SOLD
35#define SPECENUM_VALUE6NAME "sold"
37#define SPECENUM_VALUE7 ULR_UPKEEP
38#define SPECENUM_VALUE7NAME "upkeep"
39#define SPECENUM_VALUE8 ULR_USED
40#define SPECENUM_VALUE8NAME "used"
41#define SPECENUM_VALUE9 ULR_EXECUTED
42#define SPECENUM_VALUE9NAME "executed"
43#define SPECENUM_VALUE10 ULR_ELIMINATED
44#define SPECENUM_VALUE10NAME "eliminated"
45#define SPECENUM_VALUE11 ULR_EDITOR
46#define SPECENUM_VALUE11NAME "editor"
47#define SPECENUM_VALUE12 ULR_NONNATIVE_TERR
48#define SPECENUM_VALUE12NAME "nonnative_terr"
49#define SPECENUM_VALUE13 ULR_PLAYER_DIED
50#define SPECENUM_VALUE13NAME "player_died"
51#define SPECENUM_VALUE14 ULR_ARMISTICE
52#define SPECENUM_VALUE14NAME "armistice"
53#define SPECENUM_VALUE15 ULR_SDI
54#define SPECENUM_VALUE15NAME "sdi"
55#define SPECENUM_VALUE16 ULR_DETONATED
56#define SPECENUM_VALUE16NAME "detonated"
57#define SPECENUM_VALUE17 ULR_MISSILE
58#define SPECENUM_VALUE17NAME "missile"
59#define SPECENUM_VALUE18 ULR_NUKE
60#define SPECENUM_VALUE18NAME "nuke"
61#define SPECENUM_VALUE19 ULR_HP_LOSS
62#define SPECENUM_VALUE19NAME "hp_loss"
63#define SPECENUM_VALUE20 ULR_FUEL
64#define SPECENUM_VALUE20NAME "fuel"
65#define SPECENUM_VALUE21 ULR_STACK_CONFLICT
66#define SPECENUM_VALUE21NAME "stack_conflict"
67#define SPECENUM_VALUE22 ULR_BRIBED
68#define SPECENUM_VALUE22NAME "bribed"
69#define SPECENUM_VALUE23 ULR_CAPTURED
70#define SPECENUM_VALUE23NAME "captured"
71#define SPECENUM_VALUE24 ULR_CAUGHT
72#define SPECENUM_VALUE24NAME "caught"
73#define SPECENUM_VALUE25 ULR_TRANSPORT_LOST
74#define SPECENUM_VALUE25NAME "transport_lost"
86 int *att_hp,
int *def_hp,
94 const struct player *pplayer,
static void enter_hut(QVariant data1, QVariant data2)
static void frighten_hut(QVariant data1, QVariant data2)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
#define fc__warn_unused_result