From 8ec41b4410aba535008daf991ea59a8740951d44 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Tue, 7 Mar 2017 20:57:09 +0100 Subject: + Initial commit. Added source, sprites and final executable. --- GameStructures.h | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 GameStructures.h (limited to 'GameStructures.h') diff --git a/GameStructures.h b/GameStructures.h new file mode 100644 index 0000000..315c22b --- /dev/null +++ b/GameStructures.h @@ -0,0 +1,62 @@ +#ifndef __GAME_STRUCTURES__HEADER__ +#define __GAME_STRUCTURES__HEADER__ + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +/* ************************************* + * Defines + * *************************************/ + +/* ************************************* + * Structs and enums + * *************************************/ + +typedef struct t_Camera +{ + int16_t X_Offset; + int16_t Y_Offset; + int8_t X_Speed; + int8_t Y_Speed; + uint8_t Speed_Timer; +}TYPE_CAMERA; + +typedef struct t_Building +{ + uint16_t x; + uint16_t y; + uint8_t hp; + uint8_t id; + bool built; +}TYPE_BUILDING; + +typedef struct t_Unit +{ + uint16_t x; + uint16_t y; + uint8_t hp; + uint8_t id; + bool alive; +}TYPE_UNIT; + +typedef struct t_CollisionBlock +{ + uint16_t x; + uint16_t y; + uint8_t w; + uint8_t h; +}TYPE_COLLISION_BLOCK; + +typedef struct t_Resource +{ + uint8_t Wood; + uint8_t Gold; + uint8_t Food; +}TYPE_RESOURCES; + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif // __GAME_STRUCTURES__HEADER__ -- cgit v1.2.3