summaryrefslogtreecommitdiff
path: root/src/floor_item.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-09 01:44:18 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-09 01:44:18 +0000
commit3c214ff26a33555e3744608d7047286eb9eb5780 (patch)
tree46f5dce9cee082509cfa588b4cf93e7eb937e931 /src/floor_item.h
parent4408659ea0f7c25e1d73718576822b562a29d0b4 (diff)
downloadMana-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.h10
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,