More skeleton code for simulating a turn
Use enum classes for safe enums
This commit is contained in:
parent
b43248e89f
commit
e310acfaf8
9 changed files with 983 additions and 25 deletions
|
@ -17,12 +17,12 @@ static const coord_t coord_invalid = std::numeric_limits<coord_t>::max();
|
|||
static const ucoord_t ucoord_invalid = std::numeric_limits<ucoord_t>::max();
|
||||
|
||||
// Direction representation
|
||||
enum dir_t : char
|
||||
enum class dir_t : char
|
||||
{
|
||||
N = 'N',
|
||||
S = 'S',
|
||||
E = 'E',
|
||||
W = 'W',
|
||||
W = 'W'
|
||||
};
|
||||
|
||||
#endif //_BASETYPES_H_
|
||||
#endif //_BASETYPES_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue