aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/nim.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/nim.h')
-rw-r--r--engines/avalanche/nim.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/engines/avalanche/nim.h b/engines/avalanche/nim.h
index a76afcfe22..7e5f55e69f 100644
--- a/engines/avalanche/nim.h
+++ b/engines/avalanche/nim.h
@@ -44,31 +44,34 @@ private:
byte _old[3];
byte _stones[3];
- byte _stonePic[4][23][7]; // Picture of Nimstone.
byte _turns;
bool _dogfoodsTurn;
byte _stonesLeft;
bool _clicked;
- byte _row;
+ int8 _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);
+ // Inner variables for dogFood(), find() and findAp().
+ bool _inAp[3];
+ bool _lmo; // Let Me Out!
+ byte _r[3];
+
+ void chalk(int x, int y, Common::String text);
void setup();
- void plotStone(byte x,byte y);
void board();
void startMove();
void showChanges();
void blip();
- void checkMouse();
- void less();
+ 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();
- void dogFood();
- bool find(byte x);
- void findAp(byte start,byte stepsize);
+ bool find(byte x); // This gives TRUE if there's a pile with x stones in.
+ void findAp(byte start, byte stepSize);
+ void dogFood(); // AI procedure to play the game.
};
} // End of namespace Avalanche