From 72d350a37aa67936361ac8a374472b7e0227da61 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sat, 26 Aug 2017 17:55:06 +0200 Subject: * TYPE_BUILDING_ID and TYPE_UNIT_ID partially implemented --- GameStructures.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'GameStructures.h') 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; -- cgit v1.2.3