aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/sprites.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/sprites.cpp')
-rw-r--r--engines/mads/sprites.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp
index 87a23d1296..82e45deffc 100644
--- a/engines/mads/sprites.cpp
+++ b/engines/mads/sprites.cpp
@@ -70,7 +70,6 @@ MSprite::MSprite(Common::SeekableReadStream *source, const Common::Point &offset
MSprite::~MSprite() {
}
-
// TODO: The sprite outlines (pixel value 0xFD) are not shown
void MSprite::loadSprite(Common::SeekableReadStream *source) {
byte *outp, *lineStart;
@@ -217,6 +216,21 @@ void SpriteSlots::fullRefresh(bool clearAll) {
push_back(SpriteSlot(ST_FULL_SCREEN_REFRESH, -1));
}
+void SpriteSlots::deleteTimer(int seqIndex) {
+ for (uint idx = 0; idx < size(); ++idx) {
+ if ((*this)[idx]._seqIndex == seqIndex) {
+ remove_at(idx);
+ return;
+ }
+ }
+}
+
+int SpriteSlots::add() {
+ SpriteSlot ss;
+ push_back(ss);
+ return size() - 1;
+}
+
void SpriteSlots::drawBackground() {
Scene &scene = _vm->_game->_scene;