ttrts/game/unit.h
2014-12-16 13:12:54 +00:00

26 lines
No EOL
327 B
C++

#ifndef _UNIT_H_
#define _UNIT_H_
#include <string>
#include "vector2.h"
// Type for the unit type-id
typedef char unit_c;
// Base unit type
template < unit_c unit_cype >
class CUnit
{
public:
CUnit() = default;
virtual ~CUnit() = default;
private:
// All units must have position
uvector2 pos;
};
#endif //_UNIT_H_