src/direction.h
branchcpp_gui
changeset 6268 4b5241e5dd10
parent 5838 9c3129cb019b
child 6298 c30fe89622df
equal deleted inserted replaced
6267:7c8ec33959b1 6268:4b5241e5dd10
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file direction.h */
     2 
     4 
     3 #ifndef DIRECTION_H
     5 #ifndef DIRECTION_H
     4 #define DIRECTION_H
     6 #define DIRECTION_H
     5 
     7 
     6 #include "helpers.hpp"
     8 #include "helpers.hpp"
     7 
     9 
     8 /* Direction as commonly used in v->direction, 8 way. */
    10 /* Direction as commonly used in v->direction, 8 way. */
     9 typedef enum Direction {
    11 typedef enum Direction {
    10 	DIR_BEGIN = 0,
    12 	DIR_BEGIN = 0,
    11 	DIR_N   = 0,
    13 	DIR_N   = 0,
    12 	DIR_NE  = 1,      /* Northeast, upper right on your monitor */
    14 	DIR_NE  = 1,      ///< Northeast, upper right on your monitor
    13 	DIR_E   = 2,
    15 	DIR_E   = 2,
    14 	DIR_SE  = 3,
    16 	DIR_SE  = 3,
    15 	DIR_S   = 4,
    17 	DIR_S   = 4,
    16 	DIR_SW  = 5,
    18 	DIR_SW  = 5,
    17 	DIR_W   = 6,
    19 	DIR_W   = 6,
    57 
    59 
    58 
    60 
    59 /* Direction commonly used as the direction of entering and leaving tiles, 4-way */
    61 /* Direction commonly used as the direction of entering and leaving tiles, 4-way */
    60 typedef enum DiagDirection {
    62 typedef enum DiagDirection {
    61 	DIAGDIR_BEGIN = 0,
    63 	DIAGDIR_BEGIN = 0,
    62 	DIAGDIR_NE  = 0,      /* Northeast, upper right on your monitor */
    64 	DIAGDIR_NE  = 0,      ///< Northeast, upper right on your monitor
    63 	DIAGDIR_SE  = 1,
    65 	DIAGDIR_SE  = 1,
    64 	DIAGDIR_SW  = 2,
    66 	DIAGDIR_SW  = 2,
    65 	DIAGDIR_NW  = 3,
    67 	DIAGDIR_NW  = 3,
    66 	DIAGDIR_END,
    68 	DIAGDIR_END,
    67 	INVALID_DIAGDIR = 0xFF,
    69 	INVALID_DIAGDIR = 0xFF,