aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
authorStrangerke2015-10-20 14:07:26 +0200
committerStrangerke2015-10-20 14:07:26 +0200
commite2d86c32489a318327778f3626b2dbe1a1d2a067 (patch)
tree8d0153e76d9296e7ec7b31b491f79cb2e1cf7e7c /engines/mads/scene.cpp
parent340016f423f8f8982a70496d9b00aea244d18ce8 (diff)
downloadscummvm-rg350-e2d86c32489a318327778f3626b2dbe1a1d2a067.tar.gz
scummvm-rg350-e2d86c32489a318327778f3626b2dbe1a1d2a067.tar.bz2
scummvm-rg350-e2d86c32489a318327778f3626b2dbe1a1d2a067.zip
MADS: Phantom: Implement scene 113, some renaming
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index d62e33363e..ea5943cd37 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -61,6 +61,7 @@ Scene::Scene(MADSEngine *vm)
_spritesCount = 0;
_variant = 0;
_initialVariant = 0;
+ _speechReady = -1;
_paletteUsageF.push_back(PaletteUsage::UsageEntry(0xF));
@@ -432,10 +433,7 @@ void Scene::doFrame() {
_sequences.tick();
// Handle any active animation
- for (int i = 0; i < 10; i++) {
- if (_animation[i])
- _animation[i]->update();
- }
+ animations_tick();
}
// If the debugget flag is set, show the mouse position
@@ -794,4 +792,13 @@ void Scene::playSpeech(int idx) {
void Scene::sceneScale(int front_y, int front_scale, int back_y, int back_scale) {
warning("TODO: Scene:scaleRoom");
}
+
+void Scene::animations_tick() {
+ warning("TODO: Implement _animations as an AnimationList and refactor (and check implementation)");
+ for (int i = 0; i < 10; i++) {
+ if (_animation[i])
+ _animation[i]->update();
+ }
+}
+
} // End of namespace MADS