aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/minigames/geisha/diving.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/minigames/geisha/diving.h')
-rw-r--r--engines/gob/minigames/geisha/diving.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/gob/minigames/geisha/diving.h b/engines/gob/minigames/geisha/diving.h
index af224401e3..ee2f8d8451 100644
--- a/engines/gob/minigames/geisha/diving.h
+++ b/engines/gob/minigames/geisha/diving.h
@@ -96,6 +96,12 @@ private:
int16 x, y;
};
+ struct ManagedPearl {
+ ANIObject *pearl;
+
+ bool black;
+ };
+
GobEngine *_vm;
DECFile *_background;
@@ -110,6 +116,7 @@ private:
ManagedEvilFish _evilFish[kEvilFishCount];
ManagedDecorFish _decorFish[kDecorFishCount];
ManagedPlant _plant[kPlantCount];
+ ManagedPearl _pearl;
ANIObject *_shot[kMaxShotCount];
@@ -129,6 +136,8 @@ private:
SoundDesc _soundWhitePearl;
SoundDesc _soundBlackPearl;
+ bool _hasPearlLocation;
+
void init();
void deinit();
@@ -138,6 +147,7 @@ private:
void initPlants();
void enterPlant(ManagedPlant &plant, int16 prevPlantX);
+ void enterPearl(int16 x);
void foundBlackPearl();
void foundWhitePearl();
@@ -145,6 +155,7 @@ private:
void updateEvilFish();
void updateDecorFish();
void updatePlants();
+ void updatePearl();
void updateAnims();
int16 checkInput(int16 &mouseX, int16 &mouseY, MouseButtons &mouseButtons);