(svn r3766) Add a function to get the RoadBits from an arbitrary tile

This commit is contained in:
tron
2006-03-05 12:22:20 +00:00
parent ebec656110
commit f007ad282c
6 changed files with 73 additions and 37 deletions

6
tile.h
View File

@@ -44,6 +44,12 @@ typedef enum DiagonalDirections {
INVALID_DIAGDIR = 0xFF,
} DiagDirection;
static inline DiagDirection ReverseDiagDir(DiagDirection d)
{
return 2 ^ d;
}
/* the 2 axis */
typedef enum Axis {
AXIS_X = 0,