From 5341bf59c20c770ab50b80d6b336b47ed509f8d8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 15 Oct 2011 12:17:21 +0300 Subject: Improve mobv2 --- src/content_sao.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/content_sao.h') diff --git a/src/content_sao.h b/src/content_sao.h index 078feb273..0586ef434 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -155,8 +155,10 @@ public: std::string getClientInitializationData(); void step(float dtime, bool send_recommended); InventoryItem* createPickedUpItem(){return NULL;} - u16 punch(const std::string &toolname, v3f dir); + u16 punch(const std::string &toolname, v3f dir, + const std::string &playername); private: + void sendPosition(); void setPropertyDefaults(); void readProperties(); void updateProperties(); @@ -182,6 +184,8 @@ private: float m_die_age; v2f m_size; bool m_falling; + float m_disturb_timer; + std::string m_disturbing_player; Settings *m_properties; }; -- cgit v1.2.3