diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-25 16:29:19 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-25 16:29:19 +0100 |
commit | e8bc1eab9a45b8893701e3acbd008fe259c53a4c (patch) | |
tree | eac29a2ee78245122b48dd8ec4fdfd6581d97f98 /gst/units.h | |
parent | 83c2ceb9cbe890ec50399b6e4908218477a3088f (diff) |
before was messy, now is MACRO(MACRO(MACRO(MACRO(clean))))
Diffstat (limited to 'gst/units.h')
-rw-r--r-- | gst/units.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gst/units.h b/gst/units.h index c7cc575..2b401e9 100644 --- a/gst/units.h +++ b/gst/units.h @@ -15,6 +15,8 @@ typedef struct unit_ { float move_points; float cooldown[8]; float charge; + float reduced_armor[7]; + float stun; } unit; typedef struct army_ { @@ -32,14 +34,15 @@ void unit_init (infos *info, army *ar, map *m, int x, int y, info_unit *iu, int owner, unit *u); void unit_remove (army *ar, map *m, unit *u); -void army_grid_init(army *ar); +void army_grid_init (army *ar); void army_init (army *ar, map *m); -void army_destory(army *ar); +void army_destory (army *ar); void army_spawn (army *ar, map *m, unit u); -int army_move (infos *info, army *ar, map *m); +int army_move (infos *info, army *ar, map *m, stats_unit *ustats); typedef struct { unit *u, *t; float dam; } a_dmg; -int army_fire (infos *info, army *ar, map *m, a_dmg dmgs[]); -void army_upkeep (infos *info, army *ar, map *m); +int army_fire (infos *info, army *ar, map *m, a_dmg dmgs[], + stats_unit *ustats); +void army_upkeep (infos *info, army *ar, map *m, stats_unit *ustats); #endif
\ No newline at end of file |