diff options
Diffstat (limited to 'Minecraft.World/Facing.cpp')
| -rw-r--r-- | Minecraft.World/Facing.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Minecraft.World/Facing.cpp b/Minecraft.World/Facing.cpp new file mode 100644 index 00000000..9df4187d --- /dev/null +++ b/Minecraft.World/Facing.cpp @@ -0,0 +1,22 @@ +#include "stdafx.h" +#include "Facing.h" + +const int Facing::OPPOSITE_FACING[6] = +{ + UP, DOWN, SOUTH, NORTH, EAST, WEST +}; + +const int Facing::STEP_X[6] = +{ + 0, 0, 0, 0, -1, 1 +}; + +const int Facing::STEP_Y[6] = +{ + -1, 1, 0, 0, 0, 0 +}; + +const int Facing::STEP_Z[6] = +{ + 0, 0, -1, 1, 0, 0 +}; |
