diff options
author | Sven Hesse | 2012-06-07 04:02:42 +0200 |
---|---|---|
committer | Sven Hesse | 2012-06-07 04:21:29 +0200 |
commit | 95454ab52c3e8f251b08aa62b18f071374de85b9 (patch) | |
tree | 2bb71967ff23711c1d46d126e7a69c6c27f06197 /engines/gob/minigames/geisha/penetration.h | |
parent | f3fba318466d8afdfe14d42e4ef9f1902375166d (diff) | |
download | scummvm-rg350-95454ab52c3e8f251b08aa62b18f071374de85b9.tar.gz scummvm-rg350-95454ab52c3e8f251b08aa62b18f071374de85b9.tar.bz2 scummvm-rg350-95454ab52c3e8f251b08aa62b18f071374de85b9.zip |
GOB: Better controls in Geisha's Penetration
You can actually move diagonally now
Diffstat (limited to 'engines/gob/minigames/geisha/penetration.h')
-rw-r--r-- | engines/gob/minigames/geisha/penetration.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/engines/gob/minigames/geisha/penetration.h b/engines/gob/minigames/geisha/penetration.h index 3f03bfaf38..0f36453017 100644 --- a/engines/gob/minigames/geisha/penetration.h +++ b/engines/gob/minigames/geisha/penetration.h @@ -94,6 +94,15 @@ private: void setPosition(uint16 pX, uint16 pY); }; + enum Keys { + kKeyUp = 0, + kKeyDown, + kKeyLeft, + kKeyRight, + kKeySpace, + kKeyCount + }; + GobEngine *_vm; bool _hasAccessPass; @@ -102,6 +111,9 @@ private: bool _needFadeIn; + bool _quit; + bool _keys[kKeyCount]; + Surface *_background; CMPFile *_sprites; ANIFile *_objects; @@ -146,12 +158,14 @@ private: void updateAnims(); - int16 checkInput(int16 &mouseX, int16 &mouseY, MouseButtons &mouseButtons); + void checkInput(); - void handleSub(int16 key); + void handleSub(); void subMove(int x, int y, Submarine::Direction direction); void subShoot(); + Submarine::Direction getDirection(int &x, int &y) const; + bool isWalkable(int16 x, int16 y) const; void checkExits(); |