From b32a60106f78971da034a457cd091c7e69c5aec8 Mon Sep 17 00:00:00 2001 From: "keyboard.osh@gmail.com" Date: Sat, 23 Mar 2013 04:33:47 +0000 Subject: Added helper functions AddSpeed, AddSpeedX, AddSpeedY, AddSpeedZ, AddPosition, AddPosX, AddPosY, AddPosZ. Made sure that all entites use these helper functions. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1299 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Entity.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source/Entity.h') diff --git a/source/Entity.h b/source/Entity.h index b7789c627..e40827cf4 100644 --- a/source/Entity.h +++ b/source/Entity.h @@ -138,7 +138,16 @@ public: void SetSpeedY (double a_SpeedY); void SetSpeedZ (double a_SpeedZ); - void AddSpeed(const Vector3d & a_AddSpeed); + void AddPosX (double a_AddPosX); + void AddPosY (double a_AddPosY); + void AddPosZ (double a_AddPosZ); + void AddPosition(double a_AddPosX, double a_AddPosY, double a_AddPosZ); + void AddPosition(const Vector3d & a_AddPos) { AddPosition(a_AddPos.x,a_AddPos.y,a_AddPos.z);} + void AddSpeed (double a_AddSpeedX, double a_AddSpeedY, double a_AddSpeedZ); + void AddSpeed (const Vector3d & a_AddSpeed) { AddSpeed(a_AddSpeed.x,a_AddSpeed.y,a_AddSpeed.z);} + void AddSpeedX (double a_AddSpeedX); + void AddSpeedY (double a_AddSpeedY); + void AddSpeedZ (double a_AddSpeedZ); // tolua_end -- cgit v1.2.3