diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-13 12:49:52 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-13 12:49:52 +0000 |
commit | 10b881f997384378a299bff358716db5183b65a5 (patch) | |
tree | 2231d834a69c1db68980c1ccefdc6586df351fc0 /src/being.cpp | |
parent | da5a71f65682dbb3f830be4d5ffcd0046aa7b7ce (diff) | |
download | mana-10b881f997384378a299bff358716db5183b65a5.tar.gz mana-10b881f997384378a299bff358716db5183b65a5.tar.bz2 mana-10b881f997384378a299bff358716db5183b65a5.tar.xz mana-10b881f997384378a299bff358716db5183b65a5.zip |
Huge header cleanup to reduce dependencies and compile time.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/being.cpp b/src/being.cpp index 98f19748..04a07152 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -21,18 +21,25 @@ * $Id$ */ -#include <sstream> +#include "being.h" + #include <iostream> +#include <sstream> -#include "being.h" -#include "log.h" #include "game.h" -#include "net/protocol.h" -#include "net/network.h" -#include "resources/resourcemanager.h" +#include "graphics.h" +#include "log.h" +#include "map.h" + #include "graphic/spriteset.h" + #include "gui/gui.h" +#include "net/network.h" +#include "net/protocol.h" + +#include "resources/resourcemanager.h" + extern Being* autoTarget; extern std::map<int, Spriteset*> monsterset; @@ -139,7 +146,7 @@ void sort() { Being::Being(): job(0), - x(0), y(0), direction(0), + x(0), y(0), direction(SOUTH), action(0), frame(0), speech_color(0), walk_time(0), @@ -250,7 +257,6 @@ void Being::nextStep() int oldY = y; int newX = node.x; int newY = node.y; - direction = 0; if (newX > oldX) { if (newY > oldY) direction = SE; |