summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2017-08-11 21:16:09 +0200
committerparamat <mat.gregory@virginmedia.com>2017-08-13 21:39:08 +0100
commit2ea26e655d90be538c75aad5cc7ede2c5709179f (patch)
tree286ad2790a6c97048c85554e5ec9d43f022ddc25 /src/localplayer.h
parent4381fe0a0a0921e6ba79c072045be2dc04be646a (diff)
downloadminetest-2ea26e655d90be538c75aad5cc7ede2c5709179f.tar.gz
minetest-2ea26e655d90be538c75aad5cc7ede2c5709179f.tar.bz2
minetest-2ea26e655d90be538c75aad5cc7ede2c5709179f.zip
Add slippery group for nodes (players/items slide)
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 9f7e92128..67b22b656 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -29,6 +29,7 @@ class Client;
class Environment;
class GenericCAO;
class ClientActiveObject;
+class ClientEnvironment;
class IGameDef;
enum LocalPlayerAnimations
@@ -78,7 +79,7 @@ public:
void old_move(f32 dtime, Environment *env, f32 pos_max_d,
std::vector<CollisionInfo> *collision_info);
- void applyControl(float dtime);
+ void applyControl(float dtime, ClientEnvironment *env);
v3s16 getStandingNodePos();
v3s16 getFootstepNodePos();
@@ -143,7 +144,8 @@ public:
void setCollisionbox(const aabb3f &box) { m_collisionbox = box; }
private:
- void accelerateHorizontal(const v3f &target_speed, const f32 max_increase);
+ void accelerateHorizontal(const v3f &target_speed,
+ const f32 max_increase, bool slippery);
void accelerateVertical(const v3f &target_speed, const f32 max_increase);
bool updateSneakNode(Map *map, const v3f &position, const v3f &sneak_max);