summaryrefslogtreecommitdiff
path: root/src/resources/imageset.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-03 20:44:04 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-03 20:44:04 +0300
commitf2bf0b4459f4d2595688ca374feed5b756959b28 (patch)
tree9a7ccc520102793884e390f785fa821f30755062 /src/resources/imageset.h
parent51975cd8624fff3b20aa3b7b1932555e32786561 (diff)
downloadManaVerse-f2bf0b4459f4d2595688ca374feed5b756959b28.tar.gz
ManaVerse-f2bf0b4459f4d2595688ca374feed5b756959b28.tar.bz2
ManaVerse-f2bf0b4459f4d2595688ca374feed5b756959b28.tar.xz
ManaVerse-f2bf0b4459f4d2595688ca374feed5b756959b28.zip
Add default offsets in imageset tag for all animations.
Diffstat (limited to 'src/resources/imageset.h')
-rw-r--r--src/resources/imageset.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resources/imageset.h b/src/resources/imageset.h
index 9ca8bb678..fd320295a 100644
--- a/src/resources/imageset.h
+++ b/src/resources/imageset.h
@@ -63,11 +63,25 @@ class ImageSet : public Resource
size_type size() const
{ return mImages.size(); }
+ int getOffsetX()
+ { return mOffsetX; }
+
+ void setOffsetX(int n)
+ { mOffsetX = n; }
+
+ int getOffsetY()
+ { return mOffsetY; }
+
+ void setOffsetY(int n)
+ { mOffsetY = n; }
+
private:
std::vector<Image*> mImages;
int mHeight; /**< Height of the images in the image set. */
int mWidth; /**< Width of the images in the image set. */
+ int mOffsetX;
+ int mOffsetY;
};
#endif