diff options
author | Sven Hesse | 2011-08-26 09:04:51 +0200 |
---|---|---|
committer | Sven Hesse | 2011-08-26 09:11:11 +0200 |
commit | 8fd8c913af7536781a8a59bb27006b3f54087aa8 (patch) | |
tree | ee36ec54fa82ad2f0ce09035811c7919e877646e /engines/gob/inter_geisha.cpp | |
parent | 3062bc1df6c1dd9f39c2f4415f7ea0a49068466a (diff) | |
download | scummvm-rg350-8fd8c913af7536781a8a59bb27006b3f54087aa8.tar.gz scummvm-rg350-8fd8c913af7536781a8a59bb27006b3f54087aa8.tar.bz2 scummvm-rg350-8fd8c913af7536781a8a59bb27006b3f54087aa8.zip |
GOB: Implement oGeisha_caress1 and oGeisha_caress2
Used in the Mastermind minigame in Chapter 2: Caress
Diffstat (limited to 'engines/gob/inter_geisha.cpp')
-rw-r--r-- | engines/gob/inter_geisha.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/gob/inter_geisha.cpp b/engines/gob/inter_geisha.cpp index 3b8747e903..3f79088ac8 100644 --- a/engines/gob/inter_geisha.cpp +++ b/engines/gob/inter_geisha.cpp @@ -29,6 +29,7 @@ #include "gob/resources.h" #include "gob/game.h" #include "gob/draw.h" +#include "gob/video.h" #include "gob/sound/sound.h" #include "gob/sound/sounddesc.h" @@ -58,6 +59,8 @@ void Inter_Geisha::setupOpcodesFunc() { OPCODEGOB(2, oGeisha_loadTitleMusic); OPCODEGOB(3, oGeisha_playMusic); OPCODEGOB(4, oGeisha_stopMusic); + OPCODEGOB(6, oGeisha_caress1); + OPCODEGOB(7, oGeisha_caress2); } void Inter_Geisha::setupOpcodesGob() { @@ -152,4 +155,14 @@ void Inter_Geisha::oGeisha_stopMusic(OpGobParams ¶ms) { _vm->_sound->adlibUnload(); } +void Inter_Geisha::oGeisha_caress1(OpGobParams ¶ms) { + if (_vm->_draw->_spritesArray[0]) + _vm->_video->drawPackedSprite("hp1.cmp", *_vm->_draw->_spritesArray[0]); +} + +void Inter_Geisha::oGeisha_caress2(OpGobParams ¶ms) { + if (_vm->_draw->_spritesArray[1]) + _vm->_video->drawPackedSprite("hpsc1.cmp", *_vm->_draw->_spritesArray[1]); +} + } // End of namespace Gob |