diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-03-07 20:57:09 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-03-07 20:57:09 +0100 |
| commit | 8ec41b4410aba535008daf991ea59a8740951d44 (patch) | |
| tree | 01ee0846f579d9d139ee46a6a43f67ba522c7196 /GameStructures.h | |
| download | pocketempires-8ec41b4410aba535008daf991ea59a8740951d44.tar.gz | |
+ Initial commit. Added source, sprites and final executable.
Diffstat (limited to 'GameStructures.h')
| -rw-r--r-- | GameStructures.h | 62 |
1 files changed, 62 insertions, 0 deletions
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__ |
