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/gst.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gst/gst.h') diff --git a/gst/gst.h b/gst/gst.h index 171e213..ad0a685 100644 --- a/gst/gst.h +++ b/gst/gst.h @@ -4,6 +4,11 @@ #include #include #include +#include +#include + +#include +#include #define MAXMAP 10 @@ -13,6 +18,7 @@ typedef struct { int playernum; map map_battle; army ar; + float ar_lastpos[MAXUNITS][2]; int state; float cam[2]; float starttime; @@ -26,8 +32,12 @@ typedef struct { void gst_init (gamestate *gst); void gst_destroy (gamestate *gst); void gst_get_maparmy(gamestate *gst, map **m, army **ar); + void gst_tobattle (gamestate *gst); void gst_toeditor (gamestate *gst); -void gst_process (gamestate *gst, infos *info, float t); + +void gst_process (gamestate *gst, infos *info, fxs *fx, float t); +void gst_render (SDL_Renderer *rend, SDL_Texture *txsprites, txtd *textd, + gamestate *gst, infos *info, float t); #endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf