LocalPlayer::accelerateHorizontal: cleanups
[oweals/minetest.git] / src / content_cao.h
index 526f10ea3b2f1274436f1f3fb4fc63b046663486..dc254ad5b4eb9489f76edefa544a85bb643aa0d4 100644 (file)
@@ -129,13 +129,13 @@ public:
 
        void processInitData(const std::string &data);
 
-       ClientActiveObject *getParent();
+       ClientActiveObject *getParent() const;
 
        bool getCollisionBox(aabb3f *toset) const;
 
        bool collideWithObjects() const;
 
-       aabb3f *getSelectionBox();
+       virtual bool getSelectionBox(aabb3f *toset) const;
 
        v3f getPosition();
        inline float getYaw() const
@@ -147,6 +147,11 @@ public:
 
        scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode();
 
+       inline f32 getStepHeight() const
+       {
+               return m_prop.stepheight;
+       }
+
        inline bool isLocalPlayer() const
        {
                return m_is_local_player;