Add invalid coord variables

This commit is contained in:
Marc Di Luzio 2014-12-16 13:13:00 +00:00
parent da1cb32583
commit a6e1319fad
2 changed files with 15 additions and 0 deletions

View file

@ -1,10 +1,16 @@
#ifndef _BASETYPES_H_
#define _BASETYPES_H_
#include <limits> // std::numeric_limits
// Coordinate types
typedef short coord_t;
typedef unsigned short ucoord_t;
// Invalid values
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
{