]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/localplayer.h
Add a callback: minetest.register_on_craft(itemstack, player,
[dragonfireclient.git] / src / localplayer.h
index e46ca6147cd5d2152a51509fa13ece6fa08796e0..b6a3ed1f6c8b951a5020da2a809c228b435ed8bd 100644 (file)
@@ -23,6 +23,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "player.h"
 #include <list>
 
+class ClientEnvironment;
+
+class ClientActiveObject;
+
 class LocalPlayer : public Player
 {
 public:
@@ -33,14 +37,16 @@ class LocalPlayer : public Player
        {
                return true;
        }
+       
+       ClientActiveObject *parent;
 
        bool isAttached;
 
        v3f overridePosition;
        
-       void move(f32 dtime, Map &map, f32 pos_max_d,
+       void move(f32 dtime, ClientEnvironment *env, f32 pos_max_d,
                        std::list<CollisionInfo> *collision_info);
-       void move(f32 dtime, Map &map, f32 pos_max_d);
+       void move(f32 dtime, ClientEnvironment *env, f32 pos_max_d);
 
        void applyControl(float dtime);
 
@@ -53,6 +59,11 @@ class LocalPlayer : public Player
        float last_yaw;
        unsigned int last_keyPressed;
 
+       float camera_impact;
+
+       std::string hotbar_image;
+       std::string hotbar_selected_image;
+
 private:
        // This is used for determining the sneaking range
        v3s16 m_sneak_node;