aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-12-21 19:02:17 +0100
committeruruk2013-12-21 19:02:29 +0100
commit439817d42ee75c30a1de9a3817f38360fef5a40d (patch)
tree15fe49a686c641535f27b3749dd896f6aeea8bc8 /engines
parentc1f6e1d1b5aa977ecc2efe7e9e8a714609a78bdf (diff)
downloadscummvm-rg350-439817d42ee75c30a1de9a3817f38360fef5a40d.tar.gz
scummvm-rg350-439817d42ee75c30a1de9a3817f38360fef5a40d.tar.bz2
scummvm-rg350-439817d42ee75c30a1de9a3817f38360fef5a40d.zip
AVALANCHE: Rename graphic functions connected to Nim.
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/graphics.cpp8
-rw-r--r--engines/avalanche/graphics.h8
-rw-r--r--engines/avalanche/nim.cpp8
3 files changed, 12 insertions, 12 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index a512e3a7c3..f23ef2a78c 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -464,7 +464,7 @@ void GraphicManager::drawRectangle(Common::Rect rect, Color color) {
_surface.frameRect(rect, color);
}
-void GraphicManager::loadNim() {
+void GraphicManager::nimLoad() {
Common::File file;
Common::String filename = "nim.avd";
@@ -481,16 +481,16 @@ void GraphicManager::loadNim() {
file.close();
}
-void GraphicManager::drawNimStone(int x, int y) {
+void GraphicManager::nimDrawStone(int x, int y) {
drawPicture(_surface, _nimStone, x, y);
}
-void GraphicManager::drawNimInitials() {
+void GraphicManager::nimDrawInitials() {
for (int i = 0; i < 3; i++)
drawPicture(_surface, _nimInitials[i], 0, 75 + i * 35);
}
-void GraphicManager::drawNimLogo() {
+void GraphicManager::nimDrawLogo() {
drawPicture(_surface, _nimLogo, 392, 5);
}
diff --git a/engines/avalanche/graphics.h b/engines/avalanche/graphics.h
index d54160229a..e230896ce2 100644
--- a/engines/avalanche/graphics.h
+++ b/engines/avalanche/graphics.h
@@ -80,10 +80,10 @@ public:
// For the mini-game "Nim".
void drawFilledRectangle(Common::Rect rect, Color color);
void drawRectangle(Common::Rect rect, Color color);
- void loadNim();
- void drawNimStone(int x, int y);
- void drawNimInitials();
- void drawNimLogo();
+ void nimLoad();
+ void nimDrawStone(int x, int y);
+ void nimDrawInitials();
+ void nimDrawLogo();
void clearAlso();
void clearTextBar();
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index 7b944c166a..6b36ab8b17 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -150,7 +150,7 @@ void Nim::chalk(int x, int y, Common::String text) {
void Nim::setup() {
_vm->fadeIn();
- _vm->_graphics->loadNim();
+ _vm->_graphics->nimLoad();
_vm->_graphics->drawFilledRectangle(Common::Rect(0, 0, 640, 200), kColorBlack);
// Upper left rectangle.
@@ -160,8 +160,8 @@ void Nim::setup() {
_vm->_graphics->drawRectangle(Common::Rect(394, 50, 635, 198), kColorRed);
_vm->_graphics->drawFilledRectangle(Common::Rect(395, 51, 634, 197), kColorBrown);
- _vm->_graphics->drawNimLogo();
- _vm->_graphics->drawNimInitials();
+ _vm->_graphics->nimDrawLogo();
+ _vm->_graphics->nimDrawInitials();
_vm->_graphics->drawNormalText("SCOREBOARD:", _vm->_font, 8, 475, 45, kColorWhite);
_vm->_graphics->drawNormalText("Turn:", _vm->_font, 8, 420, 55, kColorYellow);
@@ -194,7 +194,7 @@ void Nim::board() {
_vm->_graphics->drawFilledRectangle(Common::Rect(57, 72, 393, 200), kColorBlack);
for (int i = 0; i < 3; i++)
for (int j = 0; j < _stones[i]; j++)
- _vm->_graphics->drawNimStone(64 + j * 8 * 8, 75 + i * 35);
+ _vm->_graphics->nimDrawStone(64 + j * 8 * 8, 75 + i * 35);
// It's practically the body of the Pascal function "plotstone()", reimplemented.
// It's the only place where we use it, so there's no reason to keep it separated as a function.
_vm->_graphics->refreshScreen();