diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-24 16:38:42 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-24 16:38:42 +0100 |
commit | 0b338bbd007048551526ab4fa4130d53b414e650 (patch) | |
tree | 1eabc6fcd6954de07cf1304435b1f70fd58e29f2 /gst/units.h | |
parent | f26a86bcc78c1946f55b6a399039e3bd8fb5dd16 (diff) |
fire and movement animations
Diffstat (limited to 'gst/units.h')
-rw-r--r-- | gst/units.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/units.h b/gst/units.h index d574b79..c7cc575 100644 --- a/gst/units.h +++ b/gst/units.h @@ -31,12 +31,15 @@ typedef struct army_ { 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_init (army *ar, map *m); 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_fire (infos *info, army *ar, map *m); + +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); #endif
\ No newline at end of file |