summaryrefslogtreecommitdiff
path: root/src/sprite.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-06-04 21:48:47 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-06-04 21:48:47 +0000
commita353543dd4da3c489a84f6f17125fdd0e1be2349 (patch)
tree5e447a0f9a3fd50f58a48f39bbb77d392d78af36 /src/sprite.h
parentab072dddb231895ba7b6762eda9fa70af961b0fb (diff)
downloadmana-client-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.gz
mana-client-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.bz2
mana-client-a353543dd4da3c489a84f6f17125fdd0e1be2349.tar.xz
mana-client-a353543dd4da3c489a84f6f17125fdd0e1be2349.zip
Merged 0.0 changes from revision 3234 to 3317 to trunk.
Diffstat (limited to 'src/sprite.h')
-rw-r--r--src/sprite.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sprite.h b/src/sprite.h
index 51811149..89780519 100644
--- a/src/sprite.h
+++ b/src/sprite.h
@@ -50,6 +50,22 @@ class Sprite
draw(Graphics *graphics, int offsetX, int offsetY) const = 0;
/**
+ * Returns the horizontal size of the sprites graphical representation
+ * in pixels or 0 when it is undefined.
+ */
+ virtual int
+ getWidth() const
+ { return 0; }
+
+ /**
+ * Returns the vertical size of the sprites graphical representation
+ * in pixels or 0 when it is undefined.
+ */
+ virtual int
+ getHeight() const
+ { return 0; }
+
+ /**
* Returns the pixel Y coordinate of the sprite.
*/
virtual int