diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-05-29 19:53:14 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-05-29 19:53:14 -0400 |
commit | b30faa4c18fbbf804104e07c9d295bebf7d815ce (patch) | |
tree | 5a611e4baeb4704d109b48e13d6116143fb62a86 /src/being.h | |
parent | ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd (diff) | |
download | mana-client-b30faa4c18fbbf804104e07c9d295bebf7d815ce.tar.gz mana-client-b30faa4c18fbbf804104e07c9d295bebf7d815ce.tar.bz2 mana-client-b30faa4c18fbbf804104e07c9d295bebf7d815ce.tar.xz mana-client-b30faa4c18fbbf804104e07c9d295bebf7d815ce.zip |
Some movement fixes for TMWServ build.
Looked pretty good so I removed annoying debug information.
Also should note that movement between two players is still off.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/being.h b/src/being.h index 6c849350..040d55a9 100644 --- a/src/being.h +++ b/src/being.h @@ -183,12 +183,15 @@ class Being : public Sprite, public ConfigListener #ifdef EATHENA_SUPPORT virtual void setDestination(Uint16 destX, Uint16 destY); #else - void setDestination(int x, int y); + /** + * Creates a path for the being from sx,sy to ex,ey + */ + void setDestination(int sx, int sy, int ex, int ey); /** - * Returns the destination for this being. + * Creates a path for the being from currect position to ex and ey */ - const Vector &getDestination() const { return mDest; } + void setDestination(int ex, int ey); /** * Adjusts course to expected start point. @@ -196,9 +199,9 @@ class Being : public Sprite, public ConfigListener void adjustCourse(int srcX, int srcY); /** - * Adjusts course to expected start and end points. + * Returns the destination for this being. */ - void adjustCourse(int srcX, int srcY, int destX, int destY); + const Vector &getDestination() const { return mDest; } #endif /** |