aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/minigames/geisha/diving.h
diff options
context:
space:
mode:
authorSven Hesse2011-09-15 21:22:13 +0200
committerSven Hesse2011-09-15 21:24:08 +0200
commita607247262a7dcb5698d601da9529a856aa7a411 (patch)
treed0d03039f052f3129d3fd43720c663c2f93321db /engines/gob/minigames/geisha/diving.h
parent79f2bb52b655e73badef5155b7c772c705ae44e9 (diff)
downloadscummvm-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.h12
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);