diff options
Diffstat (limited to 'src/graphic/spriteset.h')
-rw-r--r-- | src/graphic/spriteset.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/graphic/spriteset.h b/src/graphic/spriteset.h index 08ff65f5..94ccb742 100644 --- a/src/graphic/spriteset.h +++ b/src/graphic/spriteset.h @@ -44,14 +44,21 @@ class Spriteset { */ ~Spriteset(); + int getWidth() { return mWidth; }; + + int getHeight() { return mHeight; }; + typedef std::vector<Image*>::size_type size_type; - Image* get(size_type i) { return mSpriteset[i]; } + Image * get(size_type i); size_type size() { return mSpriteset.size(); } private: // Vector storing the whole spriteset. std::vector<Image*> mSpriteset; + //height and width of the images in the spriteset + int mHeight; + int mWidth; }; #endif |