diff options
author | Thomas Szepe <HG1_public@gmx.net> | 2015-10-11 16:41:40 +0300 |
---|---|---|
committer | Thomas Szepe <HG1_public@gmx.net> | 2015-10-11 16:41:40 +0300 |
commit | 83721682bb12a5b3c277e832241e0752fdb2df2e (patch) | |
tree | d3c4b1d6dc4e9a22e98a68dfd2427acc6da41156 /source/gameengine/Physics/common | |
parent | 5295202c2ca3ae6a57a0af0ddbd637c220760826 (diff) |
BGE: Change character jumping to char
* Change the character jumping variables and methods from int to char.
* Limit the maxJumps integer value from 0 to 255.
* Allow to set the minimum jump amount to 0.
Reviewers: panzergame, lordloki, moguri
Reviewed By: lordloki, moguri
Subscribers: agoose77
Projects: #game_engine
Differential Revision: https://developer.blender.org/D1305
Diffstat (limited to 'source/gameengine/Physics/common')
-rw-r--r-- | source/gameengine/Physics/common/PHY_ICharacter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Physics/common/PHY_ICharacter.h b/source/gameengine/Physics/common/PHY_ICharacter.h index a3d3000a143..81c567ef08a 100644 --- a/source/gameengine/Physics/common/PHY_ICharacter.h +++ b/source/gameengine/Physics/common/PHY_ICharacter.h @@ -23,10 +23,10 @@ public: virtual float GetGravity()= 0; virtual void SetGravity(float gravity)= 0; - virtual int GetMaxJumps()= 0; - virtual void SetMaxJumps(int maxJumps)= 0; + virtual unsigned char GetMaxJumps() = 0; + virtual void SetMaxJumps(unsigned char maxJumps) = 0; - virtual int GetJumpCount()= 0; + virtual unsigned char GetJumpCount() = 0; virtual void SetWalkDirection(const class MT_Vector3& dir)=0; virtual MT_Vector3 GetWalkDirection()=0; |