aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/stateloader.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-13 11:51:36 +0300
committerEugene Sandulenko2013-09-06 14:48:17 +0300
commitcb38892ce8dbb3841b5731554e63214803109b08 (patch)
tree06305fbdcdd39c99e4d78bd3d652aef5b1a9112f /engines/fullpipe/stateloader.cpp
parentd4e572843df01ce2307ca696ebc1db2775701205 (diff)
downloadscummvm-rg350-cb38892ce8dbb3841b5731554e63214803109b08.tar.gz
scummvm-rg350-cb38892ce8dbb3841b5731554e63214803109b08.tar.bz2
scummvm-rg350-cb38892ce8dbb3841b5731554e63214803109b08.zip
FULLPIPE: Continued on scene loading
Diffstat (limited to 'engines/fullpipe/stateloader.cpp')
-rw-r--r--engines/fullpipe/stateloader.cpp36
1 files changed, 35 insertions, 1 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp
index 1f9b090d01..17faba41d5 100644
--- a/engines/fullpipe/stateloader.cpp
+++ b/engines/fullpipe/stateloader.cpp
@@ -100,7 +100,8 @@ bool FullpipeEngine::loadGam(const char *fname) {
#endif
_inventory->rebuildItemRects();
- // TODO
+
+ warning("STUB: loadGam()");
} else
return false;
@@ -185,6 +186,39 @@ bool CGameLoader::load(MfcArchive &file) {
return true;
}
+bool CGameLoader::loadScene(int num) {
+ SceneTag *st;
+
+ int idx = getSceneTagBySceneId(num, &st);
+
+ if (st->_scene)
+ st->loadScene();
+
+ if (st->_scene) {
+ st->_scene->init();
+
+ applyPicAniInfos(st->_scene, _sc2array[idx]._defPicAniInfos, _sc2array[idx]._defPicAniInfosCount);
+ applyPicAniInfos(st->_scene, _sc2array[idx]._picAniInfos, _sc2array[idx]._picAniInfosCount);
+
+ _sc2array[idx]._scene = st->_scene;
+ _sc2array[idx]._isLoaded = 1;
+
+ return true;
+ }
+
+ return false;
+}
+
+int CGameLoader::getSceneTagBySceneId(int num, SceneTag **st) {
+ warning("STUB: CGameLoader::getSceneTagBySceneId()");
+
+ return 0;
+}
+
+void CGameLoader::applyPicAniInfos(Scene *sc, PicAniInfo **picAniInfo, int picAniInfoCount) {
+ warning("STUB: CGameLoader::applyPicAniInfo()");
+}
+
GameProject::GameProject() {
_field_4 = 0;
_headerFilename = 0;