summaryrefslogtreecommitdiff
path: root/src/direction_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 08:11:28 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit96097b34a57feb7547c789b352e9b650fb2a9fea (patch)
treeba2a5b1917994b3956dfd626874fb6f61c5bceb0 /src/direction_type.h
parent9f3928658bb3f8aaf21b17e0144cb09722474fff (diff)
downloadopenttd-96097b34a57feb7547c789b352e9b650fb2a9fea.tar.xz
Codechange: Remove Direction*Byte types
Diffstat (limited to 'src/direction_type.h')
-rw-r--r--src/direction_type.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/direction_type.h b/src/direction_type.h
index e6e08a182..cf6b9f5cf 100644
--- a/src/direction_type.h
+++ b/src/direction_type.h
@@ -23,7 +23,7 @@
* your viewport and not rotated by 45 degrees left or right to get
* a "north" used in you games.
*/
-enum Direction {
+enum Direction : byte {
DIR_BEGIN = 0, ///< Used to iterate
DIR_N = 0, ///< North
DIR_NE = 1, ///< Northeast
@@ -42,7 +42,6 @@ DECLARE_POSTFIX_INCREMENT(Direction)
/** Define basic enum properties */
template <> struct EnumPropsT<Direction> : MakeEnumPropsT<Direction, byte, DIR_BEGIN, DIR_END, INVALID_DIR, 3> {};
-typedef TinyEnumT<Direction> DirectionByte; ///< typedefing-enumification of Direction
/**
@@ -77,7 +76,7 @@ enum DirDiff {
*
* This enumeration is used for the 4 direction of the tile-edges.
*/
-enum DiagDirection {
+enum DiagDirection : byte {
DIAGDIR_BEGIN = 0, ///< Used for iterations
DIAGDIR_NE = 0, ///< Northeast, upper right on your monitor
DIAGDIR_SE = 1, ///< Southeast
@@ -92,7 +91,6 @@ DECLARE_POSTFIX_INCREMENT(DiagDirection)
/** Define basic enum properties */
template <> struct EnumPropsT<DiagDirection> : MakeEnumPropsT<DiagDirection, byte, DIAGDIR_BEGIN, DIAGDIR_END, INVALID_DIAGDIR, 2> {};
-typedef TinyEnumT<DiagDirection> DiagDirectionByte; ///< typedefing-enumification of DiagDirection
/**