summaryrefslogtreecommitdiff
path: root/GameStructures.h
diff options
context:
space:
mode:
Diffstat (limited to 'GameStructures.h')
-rw-r--r--GameStructures.h62
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__