diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-18 14:14:23 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-18 14:14:23 +0100 |
commit | 5f0fce4191309e9526b7109a0d87c092ce6a4193 (patch) | |
tree | 105257f876551814aa74a0760ec116bd1bf307a5 /gst/gst.h | |
parent | ead78d51e662057467b79d3a65b20c4ba83cbf07 (diff) |
main
Diffstat (limited to 'gst/gst.h')
-rw-r--r-- | gst/gst.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gst/gst.h b/gst/gst.h new file mode 100644 index 0000000..8acb699 --- /dev/null +++ b/gst/gst.h @@ -0,0 +1,30 @@ +#ifndef GST_H +#define GST_H + +#include <info.h> +#include <units.h> +#include <map.h> + +#define MAXMAP 10 + +typedef struct { + map map_editor; + army army_bp[8]; + int playernum; + map map_battle; + army ar; + int state; + float cam[2]; + float starttime; + float coveredtime; + int turn; + float turnspeed; +} gamestate; + +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_process (gamestate *gst, infos *info, float t); + +#endif
\ No newline at end of file |