diff options
author | Roderic Morris <roderic@ccs.neu.edu> | 2009-07-01 20:39:28 -0400 |
---|---|---|
committer | Roderic Morris <roderic@ccs.neu.edu> | 2009-07-01 20:41:17 -0400 |
commit | 0bca1b9756a93d876cbf4a411b47634b87775162 (patch) | |
tree | 50eb8a593b1499c694add8e582823dc78b1459cb /src/being.h | |
parent | cc8faa31bfae9f7bbce453a4ae69ef3d6eacbb96 (diff) | |
download | mana-0bca1b9756a93d876cbf4a411b47634b87775162.tar.gz mana-0bca1b9756a93d876cbf4a411b47634b87775162.tar.bz2 mana-0bca1b9756a93d876cbf4a411b47634b87775162.tar.xz mana-0bca1b9756a93d876cbf4a411b47634b87775162.zip |
Remove complex path finding for players. Add a simple path finding algorithm to map.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h index 6eef83c6..9213a2dc 100644 --- a/src/being.h +++ b/src/being.h @@ -184,12 +184,17 @@ class Being : public Sprite, public ConfigListener virtual void setDestination(Uint16 destX, Uint16 destY); #else /** + * Returns the path to the being's current destination + */ + virtual Path findPath(); + + /** * Creates a path for the being from sx,sy to ex,ey */ void setDestination(int sx, int sy, int ex, int ey); /** - * Creates a path for the being from currect position to ex and ey + * Creates a path for the being from current position to ex and ey */ void setDestination(int ex, int ey); @@ -410,7 +415,6 @@ class Being : public Sprite, public ConfigListener */ const Vector &getPosition() const { return mPos; } - /** * Returns the horizontal size of the current base sprite of the being. */ |