diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-08-26 17:55:06 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-08-26 17:55:06 +0200 |
| commit | 72d350a37aa67936361ac8a374472b7e0227da61 (patch) | |
| tree | acf8c4f6e0cbfd277a8ee312889794ddad39cb54 /GameStructures.h | |
| parent | 4ca8c2d15b51c479dd890773643ea24440b3991f (diff) | |
| download | pocketempires-72d350a37aa67936361ac8a374472b7e0227da61.tar.gz | |
* TYPE_BUILDING_ID and TYPE_UNIT_ID partially implemented
Diffstat (limited to 'GameStructures.h')
| -rw-r--r-- | GameStructures.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/GameStructures.h b/GameStructures.h index 72958a3..b81ca45 100644 --- a/GameStructures.h +++ b/GameStructures.h @@ -6,6 +6,10 @@ extern "C" { #endif //__cplusplus /* ************************************* + * Includes + * *************************************/ + + /* ************************************* * Defines * *************************************/ @@ -22,12 +26,18 @@ typedef struct t_Camera 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; - uint8_t id; + TYPE_BUILDING_ID id; bool built; bool selected; }TYPE_BUILDING; |
