diff options
Diffstat (limited to 'src/graphic/spriteset.h')
-rw-r--r-- | src/graphic/spriteset.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/graphic/spriteset.h b/src/graphic/spriteset.h index 2f4e50ca..08ff65f5 100644 --- a/src/graphic/spriteset.h +++ b/src/graphic/spriteset.h @@ -34,9 +34,6 @@ class Image; */ class Spriteset { public: - // Vector storing the whole spriteset. - std::vector<Image*> spriteset; - /* * Cuts the passed image in a grid of sub images. */ @@ -46,6 +43,15 @@ class Spriteset { * Destructor. */ ~Spriteset(); + + typedef std::vector<Image*>::size_type size_type; + Image* get(size_type i) { return mSpriteset[i]; } + + size_type size() { return mSpriteset.size(); } + + private: + // Vector storing the whole spriteset. + std::vector<Image*> mSpriteset; }; #endif |