aboutsummaryrefslogtreecommitdiff
path: root/gst/gst.h
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-24 16:38:42 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-24 16:38:42 +0100
commit0b338bbd007048551526ab4fa4130d53b414e650 (patch)
tree1eabc6fcd6954de07cf1304435b1f70fd58e29f2 /gst/gst.h
parentf26a86bcc78c1946f55b6a399039e3bd8fb5dd16 (diff)
fire and movement animations
Diffstat (limited to 'gst/gst.h')
-rw-r--r--gst/gst.h12
1 files changed, 11 insertions, 1 deletions
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 <info.h>
#include <units.h>
#include <map.h>
+#include <fxs.h>
+#include <render_text.h>
+
+#include <SDL.h>
+#include <SDL_mixer.h>
#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