Add more code to units to help distinguish between types and visual values
This commit is contained in:
parent
ea426c70c6
commit
9fc5f33de8
8 changed files with 67 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue