summaryrefslogtreecommitdiff
path: root/Unit.h
diff options
context:
space:
mode:
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__ */