From 930eeae09a3a7dc31c047d199c77ef9e284d37ba Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Mar 2012 23:17:55 +0300 Subject: Extend sequence animation tag. Allow set in attribute value any frame numbers. Examples what doing same: Other examples: p mean pause. --- src/resources/spritedef.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/spritedef.h') diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h index e167cf188..35b066296 100644 --- a/src/resources/spritedef.h +++ b/src/resources/spritedef.h @@ -34,6 +34,7 @@ #include class Action; +class Animation; class ImageSet; struct SpriteReference @@ -126,10 +127,16 @@ class SpriteDef : public Resource * Converts a string into a SpriteDirection enum. */ static SpriteDirection + makeSpriteDirection(const std::string &direction); void addAction(unsigned hp, std::string name, Action *action); + bool addSequence(int start, int end, int delay, + int offsetX, int offsetY, int variant_offset, + int repeat, int rand, ImageSet *imageSet, + Animation *animation); + private: /** * Constructor. -- cgit v1.2.3-60-g2f50