From 4b54b291ae2ba5a5f214cadad74f0bed29376f84 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 8 Apr 2011 00:47:14 +0300 Subject: Some progress on transitioning from MapBlockObject to ActiveObject. --- src/client.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 611116d45..0616cc914 100644 --- a/src/client.h +++ b/src/client.h @@ -316,6 +316,14 @@ public: core::line3d shootline_on_map ); + // Gets closest object pointed by the shootline + // Returns NULL if not found + ClientActiveObject * getSelectedActiveObject( + f32 max_d, + v3f from_pos_f_on_map, + core::line3d shootline_on_map + ); + // Prints a line or two of info void printDebugInfo(std::ostream &os); -- cgit v1.2.3