diff options
author | Paul Gilbert | 2014-03-08 10:53:10 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-03-08 10:53:10 -0500 |
commit | 984099ae2ca9dd53b47e44e7815c560c68acbd61 (patch) | |
tree | c1497c4e34a3c990d83dd15c97f9bc14dbb40767 /engines/mads/sprites.cpp | |
parent | 9c88ed16828ef6dde467fc03bb9af8d04b0bb3e2 (diff) | |
download | scummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.tar.gz scummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.tar.bz2 scummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.zip |
MADS: Implemented stubbed SpriteSlots methods
Diffstat (limited to 'engines/mads/sprites.cpp')
-rw-r--r-- | engines/mads/sprites.cpp | 16 |
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; |