diff options
author | urukgit | 2013-11-23 07:50:24 +0100 |
---|---|---|
committer | urukgit | 2013-11-23 07:50:29 +0100 |
commit | 13449472f2b2930cb09bcb685bf1d9a49c0d8ed1 (patch) | |
tree | 3512c9c6b0dde6a8b7c1084340a119ec89097e84 /engines/avalanche/nim.h | |
parent | d58775f792c40c99d06c8041c0c52a6494a21eb9 (diff) | |
download | scummvm-rg350-13449472f2b2930cb09bcb685bf1d9a49c0d8ed1.tar.gz scummvm-rg350-13449472f2b2930cb09bcb685bf1d9a49c0d8ed1.tar.bz2 scummvm-rg350-13449472f2b2930cb09bcb685bf1d9a49c0d8ed1.zip |
AVALANCHE: Implement Nim::playNim().
Repair naming of variables in Nim and add some helper functions.
Diffstat (limited to 'engines/avalanche/nim.h')
-rw-r--r-- | engines/avalanche/nim.h | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/engines/avalanche/nim.h b/engines/avalanche/nim.h index fba34f5b01..a76afcfe22 100644 --- a/engines/avalanche/nim.h +++ b/engines/avalanche/nim.h @@ -33,23 +33,27 @@ namespace Avalanche { class Nim { public: Nim(AvalancheEngine *vm); + void resetVariables(); + void synchronize(Common::Serializer &sz); void playNim(); private: AvalancheEngine *_vm; - static const char * const names[2]; - byte old[3]; - byte stones[3]; - byte stonePic[4][23][7]; // Picture of Nimstone. - byte turns; - bool dogfoodsTurn; - byte stonesLeft; - bool clicked; - byte row; - byte number; - bool squeak; - int8 mNum, mRow; + static const char * const kNames[2]; + + byte _old[3]; + byte _stones[3]; + byte _stonePic[4][23][7]; // Picture of Nimstone. + byte _turns; + bool _dogfoodsTurn; + byte _stonesLeft; + bool _clicked; + byte _row; + byte _number; + bool _squeak; + int8 _mNum, _mRow; + byte _playedNim; // How many times you've played Nim. void chalk(int x,int y, Common::String z); void setup(); |