diff options
author | Eugene Sandulenko | 2013-07-13 11:51:36 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:48:17 +0300 |
commit | cb38892ce8dbb3841b5731554e63214803109b08 (patch) | |
tree | 06305fbdcdd39c99e4d78bd3d652aef5b1a9112f /engines/fullpipe/stateloader.cpp | |
parent | d4e572843df01ce2307ca696ebc1db2775701205 (diff) | |
download | scummvm-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.cpp | 36 |
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; |