summaryrefslogtreecommitdiff
path: root/src/clientobject.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-05-20 08:15:56 +0200
committerGitHub <noreply@github.com>2017-05-20 08:15:56 +0200
commitce9802266ef1def339ec2e119c59090d0fd07c90 (patch)
tree7a408a21c0448030d162cbcc88b74febf5aefb87 /src/clientobject.h
parent35267406aa849195b72bf2edf63fecb16be013bc (diff)
downloadminetest-ce9802266ef1def339ec2e119c59090d0fd07c90.tar.gz
minetest-ce9802266ef1def339ec2e119c59090d0fd07c90.tar.bz2
minetest-ce9802266ef1def339ec2e119c59090d0fd07c90.zip
Various code cleanup & little performance improvement on HTTP download (#5772)
* Disable or remove unused enum members/functions * Tiny code style fixes * Make some functions const * Replace ClientMediaDownloader std::unordered_map with std::map
Diffstat (limited to 'src/clientobject.h')
-rw-r--r--src/clientobject.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/clientobject.h b/src/clientobject.h
index 1db5bcf24..aa0ec9c56 100644
--- a/src/clientobject.h
+++ b/src/clientobject.h
@@ -49,18 +49,13 @@ public:
virtual aabb3f *getSelectionBox() { return NULL; }
virtual bool getCollisionBox(aabb3f *toset) const { return false; }
virtual bool collideWithObjects() const { return false; }
- virtual v3f getPosition(){return v3f(0,0,0);}
- virtual float getYaw() const {return 0;}
- virtual scene::ISceneNode *getSceneNode(){return NULL;}
- virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;}
- virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;}
- virtual WieldMeshSceneNode *getWieldMeshSceneNode(){return NULL;}
- virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;}
- virtual bool isPlayer() const {return false;}
+ virtual v3f getPosition(){ return v3f(0,0,0); }
+ virtual float getYaw() const { return 0; }
+ virtual scene::ISceneNode *getSceneNode() { return NULL; }
+ virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode() { return NULL; }
virtual bool isLocalPlayer() const {return false;}
- virtual void setAttachments(){}
+ virtual void setAttachments() {}
virtual bool doShowSelectionBox(){return true;}
- virtual void updateCameraOffset(v3s16 camera_offset){};
// Step object in time
virtual void step(float dtime, ClientEnvironment *env){}