diff options
Diffstat (limited to 'Unit.h')
| -rw-r--r-- | Unit.h | 53 |
1 files changed, 53 insertions, 0 deletions
@@ -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__ */ |
