summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-07-27 19:32:32 -0400
committerChuck Miller <shadowmil@gmail.com>2009-07-27 19:33:40 -0400
commit5a27795be5450add2cf3da3c03b2fe8771325e3e (patch)
treedaedd1beba82a87966317b81c92f9662caae2dda /src/being.h
parent99648c2c8693de68ebe0449e139413864e5dd6f1 (diff)
downloadmana-client-5a27795be5450add2cf3da3c03b2fe8771325e3e.tar.gz
mana-client-5a27795be5450add2cf3da3c03b2fe8771325e3e.tar.bz2
mana-client-5a27795be5450add2cf3da3c03b2fe8771325e3e.tar.xz
mana-client-5a27795be5450add2cf3da3c03b2fe8771325e3e.zip
Makes mX and mY in the being class private
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/being.h b/src/being.h
index 9213a2dc..e16e464d 100644
--- a/src/being.h
+++ b/src/being.h
@@ -149,7 +149,6 @@ class Being : public Sprite, public ConfigListener
enum { DOWN = 1, LEFT = 2, UP = 4, RIGHT = 8 };
#ifdef EATHENA_SUPPORT
- Uint16 mX, mY; /**< Tile coordinates */
int mFrame;
int mWalkTime;
#endif
@@ -210,6 +209,21 @@ class Being : public Sprite, public ConfigListener
#endif
/**
+ * Returns the tile x or y coord
+ */
+ int getTileX() const
+ { return mX; }
+
+ int getTileY() const
+ { return mY; }
+
+ /**
+ * Sets the tile x or y coord
+ */
+ void setTileCoords(int x, int y)
+ { mX = x; mY = y; }
+
+ /**
* Puts a "speech balloon" above this being for the specified amount
* of time.
*
@@ -603,6 +617,7 @@ class Being : public Sprite, public ConfigListener
Vector mPos;
Vector mDest;
int mPx, mPy; /**< Position in pixels */
+ int mX, mY; /**< Position on tile */
/** Target cursor being used */
SimpleAnimation* mUsedTargetCursor;