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
10
game/unitv.h
10
game/unitv.h
|
@ -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_
|
Loading…
Add table
Add a link
Reference in a new issue