summaryrefslogtreecommitdiff
path: root/src/content_sao.h
diff options
context:
space:
mode:
authorsapier <sapier at gmx dot net>2012-02-07 21:37:42 +0100
committersapier <sapier at gmx dot net>2012-02-07 21:37:42 +0100
commit52996cd5eb8939686b8a3eb9f075043c67d1355c (patch)
tree1489a64b177f77020de9510ff5568bda885ffb20 /src/content_sao.h
parent61ae136431bebd88796ea0789842611a36b7c424 (diff)
downloadminetest-sapier-20120207.tar.xz
maualy merged object linking interface from cao_sao_split patchsapier-20120207
Diffstat (limited to 'src/content_sao.h')
-rw-r--r--src/content_sao.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/content_sao.h b/src/content_sao.h
index 6db320ab4..1036bdcd4 100644
--- a/src/content_sao.h
+++ b/src/content_sao.h
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "serverobject.h"
#include "content_object.h"
#include "collidableobject.h"
+#include "serverlinkableobject.h"
class TestSAO : public ServerActiveObject
{
@@ -193,7 +194,7 @@ private:
struct LuaEntityProperties;
-class LuaEntitySAO : public ServerActiveObject, public CollidableObject
+class LuaEntitySAO : public ServerActiveObject, public CollidableObject , public ServerLinkableObject
{
public:
LuaEntitySAO(ServerEnvironment *env, v3f pos,
@@ -224,6 +225,8 @@ public:
bool select_horiz_by_yawpitch);
std::string getName();
aabb3f* getCollisionBox();
+ bool sendLinkMsg(ServerActiveObject* parent,v3f offset);
+ bool sendUnlinkMsg();
private:
void sendPosition(bool do_interpolate, bool is_movement_end);