diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-09 01:44:18 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-09 01:44:18 +0000 |
commit | 3c214ff26a33555e3744608d7047286eb9eb5780 (patch) | |
tree | 46f5dce9cee082509cfa588b4cf93e7eb937e931 /src/floor_item.h | |
parent | 4408659ea0f7c25e1d73718576822b562a29d0b4 (diff) | |
download | mana-3c214ff26a33555e3744608d7047286eb9eb5780.tar.gz mana-3c214ff26a33555e3744608d7047286eb9eb5780.tar.bz2 mana-3c214ff26a33555e3744608d7047286eb9eb5780.tar.xz mana-3c214ff26a33555e3744608d7047286eb9eb5780.zip |
Use new animation system in character selection/creation. Shows equipment and
allowed for some cleanup. Had a bit of help from the patch by VictorSan.
Diffstat (limited to 'src/floor_item.h')
-rw-r--r-- | src/floor_item.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/floor_item.h b/src/floor_item.h index 386d0759..36f81585 100644 --- a/src/floor_item.h +++ b/src/floor_item.h @@ -53,25 +53,25 @@ class FloorItem : public Sprite * Returns instance id of this item. */ unsigned int - getId() { return mId; } + getId() const { return mId; } /** * Returns the item id. */ unsigned int - getItemId() { return mItemId; } + getItemId() const { return mItemId; } /** * Returns the x coordinate. */ unsigned short - getX() { return mX; } + getX() const { return mX; } /** * Returns the y coordinate. */ unsigned short - getY() { return mY; } + getY() const { return mY; } /** * Returns the pixel y coordinate. @@ -87,7 +87,7 @@ class FloorItem : public Sprite * @see Sprite::draw(Graphics, int, int) */ void - draw(Graphics *graphics, int offsetX, int offsetY) + draw(Graphics *graphics, int offsetX, int offsetY) const { graphics->drawImage(mImage, mX * 32 + offsetX, |