From 2c3c1f15273835923d9bd4950a19ee88a95ee0f4 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 11 May 2017 14:34:36 +0200 Subject: Tracer replacement (#3704) * Replaced cTracer usage with cLineBlockTracer. * Exported new cLineBlockTracer utility functions to Lua API. --- src/Tracer.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/Tracer.h') diff --git a/src/Tracer.h b/src/Tracer.h index 8d1f494f7..e4ff1b12c 100644 --- a/src/Tracer.h +++ b/src/Tracer.h @@ -35,7 +35,10 @@ public: cTracer(cWorld * a_World); ~cTracer(); - /** Determines if a collision occures along a line. Returns true if a collision occurs. */ + // tolua_end + + /** Determines if a collision occures along a line. Returns true if a collision occurs. + Exported manually to add deprecation warnings. */ bool Trace(const Vector3f & a_Start, const Vector3f & a_Direction, int a_Distance) { return Trace(a_Start, a_Direction, a_Distance, false); @@ -44,9 +47,12 @@ public: /** Determines if a collision occures along a line. Returns true if a collision occurs. When a_LineOfSight is true, we don't use the standard collision detection rules. Instead we use the rules for monster vision. E.g. Only water and air do not block vision. - a_Distance is the number of iterations (blocks hits) that are tested. */ + a_Distance is the number of iterations (blocks hits) that are tested. + Exported manually to add deprecation warnings. */ bool Trace(const Vector3f & a_Start, const Vector3f & a_Direction, int a_Distance, bool a_LineOfSight); + // tolua_begin + private: /** Preps Tracer object for call of Trace function. Only used internally. */ -- cgit v1.2.3