diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-23 13:30:43 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-07-23 13:30:43 +0000 |
commit | 2aa377c9f3c5a1a6079be6c91a14777a357e270a (patch) | |
tree | ba308874148089e319f2ca796964d089d9beb344 /src/being.cpp | |
parent | a9f0bca7aab054aae146a4044a4a904d0c54020b (diff) | |
download | mana-client-2aa377c9f3c5a1a6079be6c91a14777a357e270a.tar.gz mana-client-2aa377c9f3c5a1a6079be6c91a14777a357e270a.tar.bz2 mana-client-2aa377c9f3c5a1a6079be6c91a14777a357e270a.tar.xz mana-client-2aa377c9f3c5a1a6079be6c91a14777a357e270a.zip |
Removed knowledge about the engine and maps from the being class..
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/being.cpp b/src/being.cpp index 0d1933bb..069172c3 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -169,7 +169,7 @@ void sort() { Being::Being(): job(0), - x(0), y(0), destX(0), destY(0), direction(0), + x(0), y(0), direction(0), action(0), frame(0), speech_color(0), walk_time(0), @@ -208,19 +208,6 @@ void Being::setPath(std::list<PATH_NODE> path) } } -void Being::setDestination(int destX, int destY) -{ - this->destX = destX; - this->destY = destY; - - Map *map = engine->getCurrentMap(); - - if (map != NULL) - { - setPath(map->findPath(x, y, destX, destY)); - } -} - void Being::setHairColor(int color) { hairColor = color; |