Skip to content

Commit

Permalink
SHERLOCK: SS: Rename mirror-related methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 23, 2015
1 parent 70d4f5f commit 81ecdf4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions engines/sherlock/scalpel/scalpel.cpp
Expand Up @@ -1062,7 +1062,7 @@ void ScalpelEngine::startScene() {
_mapResult = _scene->_goToScene;
}

void ScalpelEngine::eraseMirror12() {
void ScalpelEngine::eraseBrumwellMirror() {
Common::Point pt((*_people)[HOLMES]._position.x / FIXED_INT_MULTIPLIER, (*_people)[HOLMES]._position.y / FIXED_INT_MULTIPLIER);

// If player is in range of the mirror, then restore background from the secondary back buffer
Expand All @@ -1072,7 +1072,7 @@ void ScalpelEngine::eraseMirror12() {
}
}

void ScalpelEngine::doMirror12() {
void ScalpelEngine::doBrumwellMirror() {
People &people = *_people;
Person &player = people[HOLMES];

Expand Down Expand Up @@ -1147,7 +1147,7 @@ void ScalpelEngine::doMirror12() {
}
}

void ScalpelEngine::flushMirror12() {
void ScalpelEngine::flushBrumwellMirror() {
Common::Point pt((*_people)[HOLMES]._position.x / FIXED_INT_MULTIPLIER, (*_people)[HOLMES]._position.y / FIXED_INT_MULTIPLIER);

// If player is in range of the mirror, then draw the entire mirror area to the screen
Expand Down
6 changes: 3 additions & 3 deletions engines/sherlock/scalpel/scalpel.h
Expand Up @@ -113,17 +113,17 @@ class ScalpelEngine : public SherlockEngine {
/**
* Takes care of clearing the mirror in scene 12 (mansion drawing room), in case anything drew over it
*/
void eraseMirror12();
void eraseBrumwellMirror();

/**
* Takes care of drawing Holme's reflection onto the mirror in scene 12 (mansion drawing room)
*/
void doMirror12();
void doBrumwellMirror();

/**
* This clears the mirror in scene 12 (mansion drawing room) in case anything messed draw over it
*/
void flushMirror12();
void flushBrumwellMirror();
};

} // End of namespace Scalpel
Expand Down
6 changes: 3 additions & 3 deletions engines/sherlock/scalpel/scalpel_scene.cpp
Expand Up @@ -226,7 +226,7 @@ void ScalpelScene::doBgAnim() {
}

if (_currentScene == DRAWING_ROOM)
vm.eraseMirror12();
vm.eraseBrumwellMirror();

// Restore the back buffer from the back buffer 2 in the changed area
Common::Rect bounds(people[HOLMES]._oldPosition.x, people[HOLMES]._oldPosition.y,
Expand Down Expand Up @@ -298,7 +298,7 @@ void ScalpelScene::doBgAnim() {
checkBgShapes();

if (_currentScene == DRAWING_ROOM)
vm.doMirror12();
vm.doBrumwellMirror();

// Draw all active shapes which are behind the person
for (uint idx = 0; idx < _bgShapes.size(); ++idx) {
Expand Down Expand Up @@ -408,7 +408,7 @@ void ScalpelScene::doBgAnim() {
}

if (_currentScene == DRAWING_ROOM)
vm.flushMirror12();
vm.flushBrumwellMirror();

for (uint idx = 0; idx < _bgShapes.size(); ++idx) {
Object &o = _bgShapes[idx];
Expand Down

0 comments on commit 81ecdf4

Please sign in to comment.