From 786dccd2bc0946d48b8a2758ef2c607678bc8dd9 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Fri, 8 Sep 2017 18:39:22 +0200 Subject: Removed Building and GameStructures modules. Restructured SW for Unit and Player, still a lot TODO --- GameStructures.h | 79 -------------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 GameStructures.h (limited to 'GameStructures.h') 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__ -- cgit v1.2.3