diff options
author | uruk | 2013-12-20 12:53:21 +0100 |
---|---|---|
committer | uruk | 2013-12-20 12:53:21 +0100 |
commit | 6a2e38b10a5a018855fd480b9d949a1976a7a7a7 (patch) | |
tree | 96e25fc962f363773342d1aa70ab6f2d6628ae2d /engines/avalanche/nim.h | |
parent | 762f2487407b566978f2cf0f0eefd2440e8f7b87 (diff) | |
download | scummvm-rg350-6a2e38b10a5a018855fd480b9d949a1976a7a7a7.tar.gz scummvm-rg350-6a2e38b10a5a018855fd480b9d949a1976a7a7a7.tar.bz2 scummvm-rg350-6a2e38b10a5a018855fd480b9d949a1976a7a7a7.zip |
AVALANCHE: Add keyboard support to Nim.
Diffstat (limited to 'engines/avalanche/nim.h')
-rw-r--r-- | engines/avalanche/nim.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/avalanche/nim.h b/engines/avalanche/nim.h index 79787373cb..7e5f55e69f 100644 --- a/engines/avalanche/nim.h +++ b/engines/avalanche/nim.h @@ -48,7 +48,7 @@ private: bool _dogfoodsTurn; byte _stonesLeft; bool _clicked; - byte _row; + int8 _row; byte _number; bool _squeak; byte _playedNim; // How many times you've played Nim. @@ -64,7 +64,9 @@ private: void startMove(); void showChanges(); void blip(); - bool checkInput(); + void findNextUp(); // Inner function for checkInput(). + void findNextDown(); // Same as above. + bool checkInput(); // It returns TRUE if the player confirmed his selection of stones either by pressing RETURN or by clicking on a stone. void takeSome(); void endOfGame(); bool find(byte x); // This gives TRUE if there's a pile with x stones in. |