diff options
author | Sven Hesse | 2011-09-15 21:22:13 +0200 |
---|---|---|
committer | Sven Hesse | 2011-09-15 21:24:08 +0200 |
commit | a607247262a7dcb5698d601da9529a856aa7a411 (patch) | |
tree | d0d03039f052f3129d3fd43720c663c2f93321db /engines/gob/minigames/geisha/diving.h | |
parent | 79f2bb52b655e73badef5155b7c772c705ae44e9 (diff) | |
download | scummvm-rg350-a607247262a7dcb5698d601da9529a856aa7a411.tar.gz scummvm-rg350-a607247262a7dcb5698d601da9529a856aa7a411.tar.bz2 scummvm-rg350-a607247262a7dcb5698d601da9529a856aa7a411.zip |
GOB: Randomize when the evil fishes enter and leave
Diffstat (limited to 'engines/gob/minigames/geisha/diving.h')
-rw-r--r-- | engines/gob/minigames/geisha/diving.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/gob/minigames/geisha/diving.h b/engines/gob/minigames/geisha/diving.h index e2f5dd428f..cb1abd8898 100644 --- a/engines/gob/minigames/geisha/diving.h +++ b/engines/gob/minigames/geisha/diving.h @@ -53,6 +53,13 @@ private: static const uint kEvilFishCount = 3; static const uint kMaxShotCount = 10; + struct ManagedEvilFish { + EvilFish *evilFish; + + uint32 enterAt; + uint32 leaveAt; + }; + GobEngine *_vm; DECFile *_background; @@ -64,7 +71,7 @@ private: ANIObject *_lungs; ANIObject *_heart; - EvilFish *_evilFish[kEvilFishCount]; + ManagedEvilFish _evilFish[kEvilFishCount]; ANIObject *_shot[kMaxShotCount]; @@ -91,11 +98,10 @@ private: void initScreen(); void initCursor(); - void evilFishEnter(); - void foundBlackPearl(); void foundWhitePearl(); + void updateEvilFish(); void updateAnims(); int16 checkInput(int16 &mouseX, int16 &mouseY, MouseButtons &mouseButtons); |