summaryrefslogtreecommitdiff
path: root/Unit.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-07-10 00:04:16 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2018-07-10 00:04:16 +0200
commit14c12aeea30d59e9c811f1cc8c7019053d646033 (patch)
tree7bff078a702a1b2949c37930adfc6fd2fc45c3cb /Unit.h
parent188d74cb789f33967daf6daa5af17d41b6f59d4e (diff)
downloadpocketempires-14c12aeea30d59e9c811f1cc8c7019053d646033.tar.gz
More work on Unit/BaseUnit concepts.
Diffstat (limited to 'Unit.h')
-rw-r--r--Unit.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/Unit.h b/Unit.h
new file mode 100644
index 0000000..960154a
--- /dev/null
+++ b/Unit.h
@@ -0,0 +1,53 @@
+#ifndef UNIT_H__
+#define UNIT_H__
+
+/* *******************************************************************
+ * Includes
+ * ******************************************************************/
+
+#include "BaseUnit.h"
+#include <stdbool.h>
+#include <stdint.h>
+
+/* *******************************************************************
+ * Defines
+ * ******************************************************************/
+
+/* *******************************************************************
+ * Global types definition
+ * ******************************************************************/
+
+/* *******************************************************************
+ * Global variables declaration
+ * ******************************************************************/
+
+/* *******************************************************************
+ * Global functions declaration
+ * ******************************************************************/
+
+/* *******************************************************************
+ * Class definition
+ * ******************************************************************/
+
+class Unit : public BaseUnit
+{
+ public:
+ enum tUnitID
+ {
+ UNIT_ID_NONE,
+ UNIT_ID_PEASANT,
+ UNIT_ID_SWORDMAN,
+
+ MAX_UNIT_ID
+ };
+
+ explicit Unit(const Unit::tUnitID eUnitID = UNIT_ID_NONE);
+ void create(const enum Unit::tUnitID eUnitID);
+ void handler(void);
+
+ private:
+ void drawHandler(void);
+ enum tUnitID _eUnitID;
+};
+
+#endif /* UNIT_H__ */