summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-23 13:30:43 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-23 13:30:43 +0000
commit2aa377c9f3c5a1a6079be6c91a14777a357e270a (patch)
treeba308874148089e319f2ca796964d089d9beb344 /src/being.cpp
parenta9f0bca7aab054aae146a4044a4a904d0c54020b (diff)
downloadmana-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.cpp15
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;