diff options
author | Mattes D <github@xoft.cz> | 2015-06-17 15:21:20 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-06-17 17:13:45 +0200 |
commit | c6012a95bd8181dbda7cb770f6ec42e0498aa2c8 (patch) | |
tree | 7d8c37bc1f34ecb70a1ce4a6e6086c0d7585746b /src/Defines.h | |
parent | Fixes #2245 (diff) | |
download | cuberite-c6012a95bd8181dbda7cb770f6ec42e0498aa2c8.tar cuberite-c6012a95bd8181dbda7cb770f6ec42e0498aa2c8.tar.gz cuberite-c6012a95bd8181dbda7cb770f6ec42e0498aa2c8.tar.bz2 cuberite-c6012a95bd8181dbda7cb770f6ec42e0498aa2c8.tar.lz cuberite-c6012a95bd8181dbda7cb770f6ec42e0498aa2c8.tar.xz cuberite-c6012a95bd8181dbda7cb770f6ec42e0498aa2c8.tar.zst cuberite-c6012a95bd8181dbda7cb770f6ec42e0498aa2c8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Defines.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/Defines.h b/src/Defines.h index b167f69e3..f3b742e09 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -29,16 +29,16 @@ enum -/// Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc +/** Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc */ enum eBlockFace { BLOCK_FACE_NONE = -1, // Interacting with no block face - swinging the item in the air - BLOCK_FACE_XM = 4, // Interacting with the X- face of the block - BLOCK_FACE_XP = 5, // Interacting with the X+ face of the block - BLOCK_FACE_YM = 0, // Interacting with the Y- face of the block - BLOCK_FACE_YP = 1, // Interacting with the Y+ face of the block - BLOCK_FACE_ZM = 2, // Interacting with the Z- face of the block - BLOCK_FACE_ZP = 3, // Interacting with the Z+ face of the block + BLOCK_FACE_XM = 4, // Interacting with the X- face of the block + BLOCK_FACE_XP = 5, // Interacting with the X+ face of the block + BLOCK_FACE_YM = 0, // Interacting with the Y- face of the block + BLOCK_FACE_YP = 1, // Interacting with the Y+ face of the block + BLOCK_FACE_ZM = 2, // Interacting with the Z- face of the block + BLOCK_FACE_ZP = 3, // Interacting with the Z+ face of the block // Synonyms using the (deprecated) world directions: BLOCK_FACE_BOTTOM = BLOCK_FACE_YM, // Interacting with the bottom face of the block @@ -47,6 +47,10 @@ enum eBlockFace BLOCK_FACE_SOUTH = BLOCK_FACE_ZP, // Interacting with the southern face of the block BLOCK_FACE_WEST = BLOCK_FACE_XM, // Interacting with the western face of the block BLOCK_FACE_EAST = BLOCK_FACE_XP, // Interacting with the eastern face of the block + + // Bounds, used for range-checking: + BLOCK_FACE_MIN = -1, + BLOCK_FACE_MAX = 5, } ; |