From c6acf6c0496eb95f9e3da4eb074fcbf6e92adf88 Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 17 Dec 2013 13:39:24 +0100 Subject: AVALANCHE: Implement drawing of stones in Nim. --- engines/avalanche/nim.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'engines/avalanche/nim.cpp') diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp index 7e63397179..a0c10a2e80 100644 --- a/engines/avalanche/nim.cpp +++ b/engines/avalanche/nim.cpp @@ -188,12 +188,15 @@ void Nim::setup() { _old[i] = 0; } -void Nim::plotStone(byte x,byte y) { - warning("STUB: Nim::plotStone()"); +void Nim::plotStone(byte x, byte y) { + _vm->_graphics->drawNimStone(64 + x * 7 * 8 + x * 8, 75 + y * 35); } void Nim::board() { - warning("STUB: Nim::board()"); + for (int i = 0; i < 3; i++) + for (int j = 0; j < _stones[i]; j++) + plotStone(j, i); + _vm->_graphics->refreshScreen(); } void Nim::startMove() { @@ -233,7 +236,7 @@ bool Nim::find(byte x) { return true; } -void Nim::findAp(byte start,byte stepsize) { +void Nim::findAp(byte start, byte stepsize) { warning("STUB: Nim::findAp()"); } -- cgit v1.2.3