diff --git a/maths/basetypes.h b/maths/mathtypes.h similarity index 70% rename from maths/basetypes.h rename to maths/mathtypes.h index a0d88c2..8dfdd5f 100644 --- a/maths/basetypes.h +++ b/maths/mathtypes.h @@ -1,9 +1,11 @@ #ifndef _BASETYPES_H_ #define _BASETYPES_H_ +// Coordinate types typedef short coord_t; typedef unsigned short ucoord_t; +// Direction representation enum dir_t : char { N = 'N', diff --git a/maths/vector2.h b/maths/vector2.h index 446a68d..fe00dec 100644 --- a/maths/vector2.h +++ b/maths/vector2.h @@ -1,7 +1,7 @@ #ifndef _VECTOR2_H_ #define _VECTOR2_H_ -#include "basetypes.h" +#include "mathtypes.h" struct vector2 { diff --git a/ui/board.h b/ui/board.h index d36ab3a..38703a4 100644 --- a/ui/board.h +++ b/ui/board.h @@ -2,7 +2,7 @@ #define _BOARD_H_ #include "gametypes.h" -#include "basetypes.h" +#include "mathtypes.h" #include // std::numeric_limits #include // std::vector