diff options
Diffstat (limited to 'src/resources/spritedef.h')
-rw-r--r-- | src/resources/spritedef.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <vector> 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. |