summaryrefslogtreecommitdiffstats
path: root/src/BlockTracer.h
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 16:52:51 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 16:52:51 +0100
commit173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93 (patch)
treef22cc0530050584e430ede31481b34bff48b3e2f /src/BlockTracer.h
parentfixed bad merge (diff)
parentremoved unneccisary cast (diff)
downloadcuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.gz
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.bz2
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.lz
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.xz
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.zst
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.zip
Diffstat (limited to 'src/BlockTracer.h')
-rw-r--r--src/BlockTracer.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/BlockTracer.h b/src/BlockTracer.h
index d0a34811d..40d80da1a 100644
--- a/src/BlockTracer.h
+++ b/src/BlockTracer.h
@@ -36,7 +36,14 @@ public:
/** Called on each block encountered along the path, including the first block (path start), if chunk data is not loaded
When this callback returns true, the tracing is aborted.
*/
- virtual bool OnNextBlockNoData(int a_BlockX, int a_BlockY, int a_BlockZ, char a_EntryFace) { return false; }
+ virtual bool OnNextBlockNoData(int a_BlockX, int a_BlockY, int a_BlockZ, char a_EntryFace)
+ {
+ UNUSED(a_BlockX);
+ UNUSED(a_BlockY);
+ UNUSED(a_BlockZ);
+ UNUSED(a_EntryFace);
+ return false;
+ }
/** Called when the path goes out of world, either below (a_BlockY < 0) or above (a_BlockY >= cChunkDef::Height)
The coords specify the exact point at which the path exited the world.
@@ -44,7 +51,13 @@ public:
Note that some paths can go out of the world and come back again (parabola),
in such a case this callback is followed by OnIntoWorld() and further OnNextBlock() calls
*/
- virtual bool OnOutOfWorld(double a_BlockX, double a_BlockY, double a_BlockZ) { return false; }
+ virtual bool OnOutOfWorld(double a_BlockX, double a_BlockY, double a_BlockZ)
+ {
+ UNUSED(a_BlockX);
+ UNUSED(a_BlockY);
+ UNUSED(a_BlockZ);
+ return false;
+ }
/** Called when the path goes into the world, from either below (a_BlockY < 0) or above (a_BlockY >= cChunkDef::Height)
The coords specify the exact point at which the path entered the world.
@@ -52,7 +65,13 @@ public:
Note that some paths can go out of the world and come back again (parabola),
in such a case this callback is followed by further OnNextBlock() calls
*/
- virtual bool OnIntoWorld(double a_BlockX, double a_BlockY, double a_BlockZ) { return false; }
+ virtual bool OnIntoWorld(double a_BlockX, double a_BlockY, double a_BlockZ)
+ {
+ UNUSED(a_BlockX);
+ UNUSED(a_BlockY);
+ UNUSED(a_BlockZ);
+ return false;
+ }
/** Called when the path is sure not to hit any more blocks.
Note that for some shapes this might never happen (line with constant Y)