From 0b338bbd007048551526ab4fa4130d53b414e650 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Wed, 24 Feb 2021 16:38:42 +0100 Subject: fire and movement animations --- gst/units.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gst/units.h') 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 -- cgit v1.2.3-54-g00ecf