summaryrefslogtreecommitdiff
path: root/Unit.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-08-26 11:13:20 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-08-26 11:13:20 +0200
commit54ea724c5d2f3a2c5bdf3cfe6f6807d43a5ae9d7 (patch)
tree0cc7c34c790799cd1c29a186f7ab031b9465b970 /Unit.h
parent6628e7de58425b3e93da9ae6fcb7347137d96096 (diff)
downloadpocketempires-54ea724c5d2f3a2c5bdf3cfe6f6807d43a5ae9d7.tar.gz
+ Added MouseSpr and Unit modules.
* Unit actions, building actions.
Diffstat (limited to 'Unit.h')
-rw-r--r--Unit.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/Unit.h b/Unit.h
new file mode 100644
index 0000000..f8ad6ad
--- /dev/null
+++ b/Unit.h
@@ -0,0 +1,50 @@
+#ifndef __UNIT_HEADER__
+#define __UNIT_HEADER__
+
+/* **************************************
+ * Includes *
+ * **************************************/
+
+#include "Global_Inc.h"
+#include "Gfx.h"
+#include "GameStructures.h"
+#include "Camera.h"
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif //__cplusplus
+
+/* **************************************
+ * Defines *
+ * **************************************/
+
+ /* **************************************
+ * Structs and enums *
+ * **************************************/
+
+enum
+{
+ PEASANT = 0
+};
+
+/* **************************************
+ * Global prototypes *
+ * **************************************/
+
+void UnitInit(void);
+uint8_t UnitGetHpFromID(uint8_t id);
+uint8_t UnitGetWidthFromID(uint8_t id);
+uint8_t UnitGetHeightFromID(uint8_t id);
+void UnitDraw(TYPE_CAMERA * ptrCamera, TYPE_UNIT * ptrUnit, bool bSelected);
+const char* UnitSelectedOptions(TYPE_UNIT* ptrUnit);
+void UnitMoveTo(TYPE_UNIT * ptrUnit, uint16_t x, uint16_t y);
+void UnitHandler(TYPE_UNIT * ptrUnit);
+void UnitAcceptAction(TYPE_UNIT* ptrUnit);
+void UnitResetMenuLevel(void);
+
+#ifdef __cplusplus
+}
+#endif //__cplusplus
+
+#endif //__UNIT_HEADER__