aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/sprites.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/sprites.h')
-rw-r--r--engines/mads/sprites.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/mads/sprites.h b/engines/mads/sprites.h
index 49f13add21..2061a41043 100644
--- a/engines/mads/sprites.h
+++ b/engines/mads/sprites.h
@@ -201,11 +201,25 @@ public:
};
class SpriteSets : public Common::Array<SpriteAsset *> {
+private:
+ MADSEngine *_vm;
public:
/**
+ * Constructor
+ */
+ SpriteSets(MADSEngine *vm) : _vm(vm) {}
+
+ /**
* Add a sprite asset to the list
*/
int add(SpriteAsset *asset, int idx = 0);
+
+ /**
+ * Adds a sprite asset to the list by name
+ */
+ int addSprites(const Common::String &resName, int flags = 0);
+
+ int startCycle(int srcSpriteIndex, bool flipped, int cycleIndex);
};
} // End of namespace MADS