BGE: Adding a jumpCount to KX_CharacterWrapper. This can be used to have different logic for a single jump versus a double jump. For example, a different animation for the second jump.

This commit is contained in:
Mitchell Stokes
2012-12-29 10:22:19 +00:00
parent 7d6ea8cddf
commit 18f134304c
7 changed files with 30 additions and 0 deletions

View File

@@ -412,6 +412,8 @@ public:
void setMaxJumps(int maxJumps);
int getJumpCount() const;
virtual bool canJump() const;
virtual void jump();