summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-17 20:10:51 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-17 20:10:51 +0100
commit1b3cb122be1a418ce82b66fb9ce1ecf3aa5813fb (patch)
tree02556c7271844901a023b84b0fa84982ccff9bff /src/being.h
parent3dba40474d5b1525e8723139ae7be7576967feea (diff)
downloadmana-client-1b3cb122be1a418ce82b66fb9ce1ecf3aa5813fb.tar.gz
mana-client-1b3cb122be1a418ce82b66fb9ce1ecf3aa5813fb.tar.bz2
mana-client-1b3cb122be1a418ce82b66fb9ce1ecf3aa5813fb.tar.xz
mana-client-1b3cb122be1a418ce82b66fb9ce1ecf3aa5813fb.zip
Code reformatting
Mainly making sure 'const std::string &' is used everywhere instead of 'std::string const &'. The former has always been the preferred order in this project.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/being.h b/src/being.h
index f9e6c58f..aeb03564 100644
--- a/src/being.h
+++ b/src/being.h
@@ -130,14 +130,14 @@ class Being : public Sprite
const Vector &getDestination() const { return mDest; }
/**
- * Adjusts course to expected stat point.
+ * Adjusts course to expected start point.
*/
- void adjustCourse(int, int);
+ void adjustCourse(int srcX, int srcY);
/**
* Adjusts course to expected start and end points.
*/
- void adjustCourse(int, int, int, int);
+ void adjustCourse(int srcX, int srcY, int destX, int destY);
/**
* Puts a "speech balloon" above this being for the specified amount
@@ -298,7 +298,8 @@ class Being : public Sprite
int getPixelY() const { return (int) mPos.y; }
/**
- * Sets the position of this being.
+ * Sets the position of this being. When the being was walking, it also
+ * clears the destination and the path.
*/
void setPosition(const Vector &pos);