diff options
author | Eugene Sandulenko | 2014-01-02 21:11:37 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-02 21:11:37 +0200 |
commit | 073fe02b38f5aef5b203422c97a6b635c1a9e3c9 (patch) | |
tree | d57eed08f4b2f59d5e111da6cccaffa54f4f8969 /engines/fullpipe/scenes | |
parent | b3a9832b6f4821092b99defb4b1e5f59a91755d0 (diff) | |
download | scummvm-rg350-073fe02b38f5aef5b203422c97a6b635c1a9e3c9.tar.gz scummvm-rg350-073fe02b38f5aef5b203422c97a6b635c1a9e3c9.tar.bz2 scummvm-rg350-073fe02b38f5aef5b203422c97a6b635c1a9e3c9.zip |
FULLPIPE: Implement scene22_setBagState() and updateCursor()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene22.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene22.cpp b/engines/fullpipe/scenes/scene22.cpp index 7b36c63674..d28ea922f3 100644 --- a/engines/fullpipe/scenes/scene22.cpp +++ b/engines/fullpipe/scenes/scene22.cpp @@ -74,4 +74,35 @@ void scene22_initScene(Scene *sc) { g_fp->initArcadeKeys("SC_22"); } +int scene22_updateCursor() { + g_fp->updateCursorCommon(); + + if (g_fp->_objectIdAtCursor != ANI_HANDLE_L) + return g_fp->_cursorId; + + int sel = g_fp->_inventory->getSelectedItemId(); + + if (!sel) { + g_fp->_cursorId = PIC_CSR_ITN; + return g_fp->_cursorId; + } + + if (g_vars->scene22_var07 || (sel != ANI_INV_STOOL && sel != ANI_INV_BOX)) + ; //empty + else + g_fp->_cursorId = PIC_CSR_ITN_INV; + + return g_fp->_cursorId; +} + +void scene22_setBagState() { + if (g_vars->scene22_var10) { + g_fp->_behaviorManager->setBehaviorEnabled(g_vars->scene22_bag, ST_MSH_SIT, QU_MSH_CRANEOUT, 1); + g_fp->_behaviorManager->setBehaviorEnabled(g_vars->scene22_bag, ST_MSH_SIT, QU_MSH_MOVE, 0); + } else { + g_fp->_behaviorManager->setBehaviorEnabled(g_vars->scene22_bag, ST_MSH_SIT, QU_MSH_CRANEOUT, 0); + g_fp->_behaviorManager->setBehaviorEnabled(g_vars->scene22_bag, ST_MSH_SIT, QU_MSH_MOVE, 1); + } +} + } // End of namespace Fullpipe |