aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/phantom/game_phantom.cpp
diff options
context:
space:
mode:
authorStrangerke2015-11-03 23:07:47 +0100
committerStrangerke2015-11-03 23:07:47 +0100
commit9d6bb85ce3e42e30f1d539a5f2c7a8d7de3b15a1 (patch)
tree0225d579ad5b84b206a3268094896c8c49396b69 /engines/mads/phantom/game_phantom.cpp
parent04868be95b617bb64e0e468eeb16915af19993f8 (diff)
downloadscummvm-rg350-9d6bb85ce3e42e30f1d539a5f2c7a8d7de3b15a1.tar.gz
scummvm-rg350-9d6bb85ce3e42e30f1d539a5f2c7a8d7de3b15a1.tar.bz2
scummvm-rg350-9d6bb85ce3e42e30f1d539a5f2c7a8d7de3b15a1.zip
MADS: Phantom: Implement exitCatacombs
Diffstat (limited to 'engines/mads/phantom/game_phantom.cpp')
-rw-r--r--engines/mads/phantom/game_phantom.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/mads/phantom/game_phantom.cpp b/engines/mads/phantom/game_phantom.cpp
index c73ba245d2..aa57811930 100644
--- a/engines/mads/phantom/game_phantom.cpp
+++ b/engines/mads/phantom/game_phantom.cpp
@@ -35,7 +35,7 @@ namespace MADS {
namespace Phantom {
- Catacombs easy_catacombs[32] = {
+ Catacombs _easyCatacombs[32] = {
{ 401, { -1, 1, 2, 6 }, { 2, 3, 0, 1 }, MAZE_EVENT_BRICK },
{ 404, { 10, 11, 3, 0 }, { 2, 3, 0, 1 }, MAZE_EVENT_PUDDLE },
{ 404, { 0, 3, 4, -2 }, { 2, 3, 0, 1 }, MAZE_EVENT_BLOCK },
@@ -70,7 +70,7 @@ namespace Phantom {
{ 408, { -5, -1, -4, -1 }, { 2, 3, 0, 1 }, MAZE_EVENT_WEB | MAZE_EVENT_BRICK }
};
- Catacombs hard_catacombs[62] = {
+ Catacombs _hardCatacombs[62] = {
{ 401, { -1, 1, 2, 6 }, { 2, 3, 0, 1 }, MAZE_EVENT_BRICK },
{ 404, { 10, 11, 3, 0 }, { 2, 3, 0, 1 }, MAZE_EVENT_PUDDLE },
{ 404, { 0, 3, 4, -2 }, { 2, 3, 0, 1 }, MAZE_EVENT_BLOCK },
@@ -303,7 +303,8 @@ void GamePhantom::initCatacombs() {
void GamePhantom::setupCatacombs() {
switch (_difficulty) {
case DIFFICULTY_EASY:
- catacombs = easy_catacombs;
+ _catacombs = _easyCatacombs;
+ _catacombSize = 32;
_globals[kCatacombs309] = 2;
_globals[kCatacombs309From] = 3;
@@ -316,7 +317,8 @@ void GamePhantom::setupCatacombs() {
break;
case DIFFICULTY_HARD:
- catacombs = hard_catacombs;
+ _catacombs = _hardCatacombs;
+ _catacombSize = 62;
_globals[kCatacombs309] = 2;
_globals[kCatacombs309From] = 3;
@@ -330,6 +332,12 @@ void GamePhantom::setupCatacombs() {
}
}
+int GamePhantom::exitCatacombs(int dir) {
+ int scene = _globals[kCatacombsRoom];
+ assert ((scene < _catacombSize) && (dir < 4));
+ return (_catacombs[scene]._exit[dir]);
+};
+
} // End of namespace Phantom
} // End of namespace MADS