diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-15 12:17:21 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-15 12:17:21 +0300 |
commit | 5341bf59c20c770ab50b80d6b336b47ed509f8d8 (patch) | |
tree | deb77dc90ab68027a8f840096b1419292f110507 /src/clientobject.h | |
parent | 43a28f04fa3ddf4b612f58c25a896293a01567e3 (diff) | |
download | minetest-5341bf59c20c770ab50b80d6b336b47ed509f8d8.tar.gz minetest-5341bf59c20c770ab50b80d6b336b47ed509f8d8.tar.bz2 minetest-5341bf59c20c770ab50b80d6b336b47ed509f8d8.zip |
Improve mobv2
Diffstat (limited to 'src/clientobject.h')
-rw-r--r-- | src/clientobject.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/clientobject.h b/src/clientobject.h index 6a12c718b..60d293ff4 100644 --- a/src/clientobject.h +++ b/src/clientobject.h @@ -60,7 +60,7 @@ public: virtual void processMessage(const std::string &data){} virtual std::string infoText() {return "";} - + /* This takes the return value of ServerActiveObject::getClientInitializationData @@ -70,6 +70,10 @@ public: // Create a certain type of ClientActiveObject static ClientActiveObject* create(u8 type); + // If returns true, punch will not be sent to the server + virtual bool directReportPunch(const std::string &toolname, v3f dir) + { return false; } + protected: // Used for creating objects based on type typedef ClientActiveObject* (*Factory)(); |