1 #ifndef HEX_MAP_RULES_H
2 #define HEX_MAP_RULES_H
9 enum DirectionId
{ NE
, E
, SE
, SW
, W
, NW
};
18 Direction (DirectionId dir
);
21 bool checkBounds (unsigned int x
, unsigned int y
,
22 unsigned int w
, unsigned int h
) const;
24 std::pair
<unsigned int , unsigned int> move (
25 unsigned int x
, unsigned int y
) const;
29 static const Direction NorthEast
;
30 static const Direction East
;
31 static const Direction SouthEast
;
32 static const Direction SouthWest
;
33 static const Direction West
;
34 static const Direction NorthWest
;
37 #endif /* HEX_MAP_RULES_H */