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

@ -1,18 +1,22 @@
#ifndef _UNITV_H_
#define _UNITV_H_
#include "unit.h"
// V unit
class CUnitV
: public CUnit<'V'>
{
public:
CUnitV() = default;
CUnitV();
virtual ~CUnitV() = default;
virtual unitVis_c getVisual() const;
private:
// V also has a direction
char dir;
dir_t dir;
};
#endif
#endif //_UNITV_H_