Add more code to units to help distinguish between types and visual values

This commit is contained in:
Marc Di Luzio 2014-12-16 13:12:55 +00:00
parent ea426c70c6
commit 9fc5f33de8
8 changed files with 67 additions and 29 deletions

View file

@ -6,10 +6,13 @@
#include "vector2.h"
// Type for the unit type-id
typedef char unit_c;
typedef char unitType_c;
// Typedef for unit visual representations
typedef char unitVis_c;
// Base unit type
template < unit_c unit_cype >
template < unitType_c unit_type >
class CUnit
{
public:
@ -17,6 +20,8 @@ public:
CUnit() = default;
virtual ~CUnit() = default;
virtual unitVis_c getVisual() const = 0;
private:
// All units must have position