summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-15 18:54:54 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-15 18:54:54 +0100
commit0efd74f114dad98c4fadc0318718f2e0203bca8b (patch)
tree1211414d56a59c73d61c1d6cf7c1b9765f40fbbb /src/Entities/Player.cpp
parentAPIDump: Documented New functions (diff)
downloadcuberite-0efd74f114dad98c4fadc0318718f2e0203bca8b.tar
cuberite-0efd74f114dad98c4fadc0318718f2e0203bca8b.tar.gz
cuberite-0efd74f114dad98c4fadc0318718f2e0203bca8b.tar.bz2
cuberite-0efd74f114dad98c4fadc0318718f2e0203bca8b.tar.lz
cuberite-0efd74f114dad98c4fadc0318718f2e0203bca8b.tar.xz
cuberite-0efd74f114dad98c4fadc0318718f2e0203bca8b.tar.zst
cuberite-0efd74f114dad98c4fadc0318718f2e0203bca8b.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index c2a76342d..ab7075121 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1069,6 +1069,16 @@ Vector3d cPlayer::GetThrowSpeed(double a_SpeedCoeff) const
+void cPlayer::ShootTo(Vector3d a_Direction)
+{
+ SetSpeed(a_Direction);
+ m_ClientHandle->SendEntityVelocity(*this);
+}
+
+
+
+
+
void cPlayer::MoveTo( const Vector3d & a_NewPos )
{
if ((a_NewPos.y < -990) && (GetPosY() > -100))