aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-02 20:50:35 -0500
committerPaul Gilbert2014-03-02 20:50:35 -0500
commita0996b7384e5c3321af97347613120d2f90ab64e (patch)
tree81d45e5b2559fe8f7855e294396776e672ba1319 /engines/mads/scene.cpp
parent72163a233f980a385c432fbf66fd6bb21f6acdf2 (diff)
downloadscummvm-rg350-a0996b7384e5c3321af97347613120d2f90ab64e.tar.gz
scummvm-rg350-a0996b7384e5c3321af97347613120d2f90ab64e.tar.bz2
scummvm-rg350-a0996b7384e5c3321af97347613120d2f90ab64e.zip
MADS: Implemented more of the multi-scene loop
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 2f12139246..2c6cb8a112 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -39,6 +39,8 @@ Scene::Scene(MADSEngine *vm): _vm(vm), _spriteSlots(vm), _action(_vm) {
_animVal1 = 0;
_depthStyle = 0;
_v1A = _v1C = 0;
+ _roomChanged = false;
+ _reloadSceneFlag = false;
_verbList.push_back(VerbInit(VERB_LOOK, 2, 0));
_verbList.push_back(VerbInit(VERB_TAKE, 2, 0));
@@ -254,6 +256,19 @@ void Scene::initPaletteAnimation(Common::Array<RGB4> &animData, bool animFlag) {
_animFlag = animFlag;
}
+bool Scene::getDepthHighBits(const Common::Point &pt) {
+ if (_sceneInfo->_depthStyle == 2) {
+ return 0;
+ } else {
+ const byte *p = _depthSurface.getBasePtr(pt.x, pt.y);
+ return (*p & 0x70) >> 4;
+ }
+}
+
+void Scene::loop() {
+
+}
+
void Scene::free() {
warning("TODO: Scene::free");
}