diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-01-25 17:11:11 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-01-25 17:11:11 -0700 |
commit | 4537ab846edaf7a70cac7edd3348266ccf655bf3 (patch) | |
tree | b9bad951b10b9bf2b763baf4fd629a41917496f0 /src/being.h | |
parent | b067009a35caf3c97b636a0512609c8dc72675cd (diff) | |
download | Mana-4537ab846edaf7a70cac7edd3348266ccf655bf3.tar.gz Mana-4537ab846edaf7a70cac7edd3348266ccf655bf3.tar.bz2 Mana-4537ab846edaf7a70cac7edd3348266ccf655bf3.tar.xz Mana-4537ab846edaf7a70cac7edd3348266ccf655bf3.zip |
Simplify Being position a bit
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/being.h b/src/being.h index fe4ab475..9f50b2cc 100644 --- a/src/being.h +++ b/src/being.h @@ -161,16 +161,19 @@ class Being : public Sprite, public ConfigListener #endif /** - * Returns the tile x or y coord + * Returns the tile x coord */ int getTileX() const { return mX; } + /** + * Returns the tile y coord + */ int getTileY() const { return mY; } /** - * Sets the tile x or y coord + * Sets the tile x and y coord */ void setTileCoords(int x, int y) { mX = x; mY = y; } @@ -348,7 +351,7 @@ class Being : public Sprite, public ConfigListener * Returns the X coordinate in pixels. */ int getPixelX() const - { return mPx; } + { return mPos.x; } /** * Returns the Y coordinate in pixels. @@ -356,7 +359,7 @@ class Being : public Sprite, public ConfigListener * @see Sprite::getPixelY() */ int getPixelY() const - { return mPy; } + { return mPos.y; } #ifdef EATHENA_SUPPORT /** @@ -596,7 +599,6 @@ class Being : public Sprite, public ConfigListener Vector mPos; Vector mDest; - int mPx, mPy; /**< Position in pixels */ int mX, mY; /**< Position on tile */ int mTakedDamage; |