diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-09-09 22:59:22 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-09-09 22:59:22 +0000 |
commit | 81c7e13077dde99ea360f2ab8432aa48444f3b88 (patch) | |
tree | eb9afd47e2e5dd2b8c6a3de1278fa77765d8b85b /src/being.h | |
parent | d342307c408c687405bae557c1fff7ac0e9891b9 (diff) | |
download | mana-81c7e13077dde99ea360f2ab8432aa48444f3b88.tar.gz mana-81c7e13077dde99ea360f2ab8432aa48444f3b88.tar.bz2 mana-81c7e13077dde99ea360f2ab8432aa48444f3b88.tar.xz mana-81c7e13077dde99ea360f2ab8432aa48444f3b88.zip |
Fitted being trajectories to synchronization messages.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h index b2495a29..d8db9375 100644 --- a/src/being.h +++ b/src/being.h @@ -127,7 +127,17 @@ class Being : public Sprite /** * Sets a new destination for this being to walk to. */ - virtual void setDestination(Uint16 destX, Uint16 destY); + void setDestination(Uint16 destX, Uint16 destY); + + /** + * Adjusts course to expected stat point. + */ + void adjustCourse(Uint16, Uint16); + + /** + * Adjusts course to expected start and end points. + */ + void adjustCourse(Uint16, Uint16, Uint16, Uint16); /** * Puts a "speech balloon" above this being for the specified amount @@ -340,7 +350,7 @@ class Being : public Sprite * Sets the new path for this being. */ void - setPath(const Path &path); + setPath(const Path &path, int mod = 1024); /** * Returns the sprite direction of this being. @@ -352,6 +362,7 @@ class Being : public Sprite Uint8 mSex; /**< Character's gender */ Uint16 mWeapon; /**< Weapon picture id */ Uint16 mWalkSpeed; /**< Walking speed */ + Uint16 mSpeedModifier; /**< Modifier to keep course on sync (1024 = normal speed) */ Map *mMap; /**< Map on which this being resides */ SpriteIterator mSpriteIterator; |