summaryrefslogtreecommitdiff
path: root/src/content_sao.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-12 11:59:56 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:39 +0200
commit526eedf98e45fc3b0ad768ecb1d0cbc1968def2f (patch)
tree0b972c05ad7609f1f0d8df269c2255223940499f /src/content_sao.h
parentdcedfdacd1ba77591cdc0aa2b8c123c6a5ef2f5d (diff)
downloadminetest-526eedf98e45fc3b0ad768ecb1d0cbc1968def2f.tar.gz
minetest-526eedf98e45fc3b0ad768ecb1d0cbc1968def2f.tar.bz2
minetest-526eedf98e45fc3b0ad768ecb1d0cbc1968def2f.zip
Scripting WIP
Diffstat (limited to 'src/content_sao.h')
-rw-r--r--src/content_sao.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h
index ef22f2974..4bb35b70d 100644
--- a/src/content_sao.h
+++ b/src/content_sao.h
@@ -215,11 +215,20 @@ public:
u16 punch(const std::string &toolname, v3f dir,
const std::string &playername);
void rightClick(Player *player);
+
+ void setPos(v3f pos);
+ void moveTo(v3f pos);
private:
+ void sendPosition(bool do_interpolate);
+
std::string m_init_name;
std::string m_init_state;
bool m_registered;
struct LuaEntityProperties *m_prop;
+
+ float m_yaw;
+ float m_last_sent_yaw;
+ v3f m_last_sent_position;
};
#endif