summaryrefslogtreecommitdiff
path: root/src/resources/imageset.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-08 18:43:44 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-08 18:43:44 +0000
commit720f716ba8d98a85266b8e81a534737c6fcdcf5f (patch)
tree192c702c463db0661f42fa34addf8f957e19e169 /src/resources/imageset.h
parentf25d5640eba5b1a0bbbc050a858aa4cdbdffdc7f (diff)
downloadmana-client-720f716ba8d98a85266b8e81a534737c6fcdcf5f.tar.gz
mana-client-720f716ba8d98a85266b8e81a534737c6fcdcf5f.tar.bz2
mana-client-720f716ba8d98a85266b8e81a534737c6fcdcf5f.tar.xz
mana-client-720f716ba8d98a85266b8e81a534737c6fcdcf5f.zip
Implemented support for an arbitrary number of map layers. The only layer
requirement for map layers are now that the fringe layer is called "Fringe" and that the collision layer is called "Collision".
Diffstat (limited to 'src/resources/imageset.h')
-rw-r--r--src/resources/imageset.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/resources/imageset.h b/src/resources/imageset.h
index 15c21d90..fa1840ec 100644
--- a/src/resources/imageset.h
+++ b/src/resources/imageset.h
@@ -47,14 +47,20 @@ class ImageSet : public Resource
*/
~ImageSet();
- int getWidth() { return mWidth; };
+ /**
+ * Returns the width of the images in the image set.
+ */
+ int getWidth() const { return mWidth; };
- int getHeight() { return mHeight; };
+ /**
+ * Returns the height of the images in the image set.
+ */
+ int getHeight() const { return mHeight; };
typedef std::vector<Image*>::size_type size_type;
- Image* get(size_type i);
+ Image* get(size_type i) const;
- size_type size() { return mImages.size(); }
+ size_type size() const { return mImages.size(); }
private:
std::vector<Image*> mImages;