diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-09-08 18:39:22 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-09-08 18:39:22 +0200 |
| commit | 786dccd2bc0946d48b8a2758ef2c607678bc8dd9 (patch) | |
| tree | 47952d77e5646a993671134b50c16f32ebe35b1c /GameStructures.h | |
| parent | 72d350a37aa67936361ac8a374472b7e0227da61 (diff) | |
| download | pocketempires-786dccd2bc0946d48b8a2758ef2c607678bc8dd9.tar.gz | |
Removed Building and GameStructures modules. Restructured SW for Unit and Player, still a lot TODO
Diffstat (limited to 'GameStructures.h')
| -rw-r--r-- | GameStructures.h | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/GameStructures.h b/GameStructures.h deleted file mode 100644 index b81ca45..0000000 --- a/GameStructures.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef __GAME_STRUCTURES__HEADER__ -#define __GAME_STRUCTURES__HEADER__ - -#ifdef __cplusplus -extern "C" { -#endif //__cplusplus - -/* ************************************* - * Includes - * *************************************/ - - /* ************************************* - * 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 enum t_buildingIds -{ - BARRACKS = 0 , - TOWER , -}TYPE_BUILDING_ID; - -typedef struct t_Building -{ - uint16_t x; - uint16_t y; - uint8_t hp; - TYPE_BUILDING_ID id; - bool built; - bool selected; -}TYPE_BUILDING; - -typedef struct t_Unit -{ - uint16_t x; - uint16_t y; - uint16_t target_x; - uint16_t target_y; - uint8_t hp; - uint8_t id; - bool dir; // False = up-down; true = left-right - bool mirror; // True = down or left; true = up or right - bool walking; - bool alive; - bool selected; -}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__ |
