aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-12-17 14:28:12 +0100
committeruruk2013-12-17 14:28:12 +0100
commit47bdabdb31156f84c704e90af10ead3292f026ee (patch)
treed5dbcf4ba6c9bb6e8b3680aad3b649a917173f63 /engines
parent30e27e11bb135b06d3f61450b5793106a695f719 (diff)
downloadscummvm-rg350-47bdabdb31156f84c704e90af10ead3292f026ee.tar.gz
scummvm-rg350-47bdabdb31156f84c704e90af10ead3292f026ee.tar.bz2
scummvm-rg350-47bdabdb31156f84c704e90af10ead3292f026ee.zip
AVALANCHE: Implement startMove() in Nim.
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/nim.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index fad0bb71e5..cae890fbd3 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -198,7 +198,14 @@ void Nim::board() {
}
void Nim::startMove() {
- warning("STUB: Nim::startMove()");
+ _turns++;
+ Common::String turnsStr = Common::String::format("%d", _turns);
+ int y = 55 + _turns * 10;
+ _dogfoodsTurn = !_dogfoodsTurn;
+ chalk(433, y, turnsStr);
+ chalk(493, y, kNames[_dogfoodsTurn]);
+ for (int i = 0; i < 3; i++)
+ _old[i] = _stones[i];
}
void Nim::showChanges() {