aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction_ns.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2008-05-05 11:02:40 +0000
committerNicola Mettifogo2008-05-05 11:02:40 +0000
commit1ddd54b50da3f67f39c7adfa63f6858b85c610e9 (patch)
tree59671f508ca64e3f54a6f5126b61c609c56e67d6 /engines/parallaction/parallaction_ns.cpp
parentb6c7385eb4fea90dd315124fe5bffe874430eb48 (diff)
downloadscummvm-rg350-1ddd54b50da3f67f39c7adfa63f6858b85c610e9.tar.gz
scummvm-rg350-1ddd54b50da3f67f39c7adfa63f6858b85c610e9.tar.bz2
scummvm-rg350-1ddd54b50da3f67f39c7adfa63f6858b85c610e9.zip
- Moved some members from the engine class to Location, since they belong there.
- Cleaned up usage of location flags by using accessor functions. svn-id: r31872
Diffstat (limited to 'engines/parallaction/parallaction_ns.cpp')
-rw-r--r--engines/parallaction/parallaction_ns.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/parallaction/parallaction_ns.cpp b/engines/parallaction/parallaction_ns.cpp
index d77152d5d2..7a476f7d24 100644
--- a/engines/parallaction/parallaction_ns.cpp
+++ b/engines/parallaction/parallaction_ns.cpp
@@ -143,7 +143,7 @@ int Parallaction_ns::init() {
num_foglie = 0;
- _animations.push_front(_char._ani);
+ _location._animations.push_front(_char._ani);
Parallaction::init();
@@ -159,7 +159,7 @@ Parallaction_ns::~Parallaction_ns() {
delete _instructionNames;
delete _locationStmt;
- _animations.remove(_char._ani);
+ _location._animations.remove(_char._ani);
}
@@ -306,7 +306,7 @@ void Parallaction_ns::changeLocation(char *location) {
setArrowCursor();
}
- _animations.remove(_char._ani);
+ _location._animations.remove(_char._ani);
freeLocation();
@@ -326,7 +326,7 @@ void Parallaction_ns::changeLocation(char *location) {
changeCharacter(locname.character());
}
- _animations.push_front(_char._ani);
+ _location._animations.push_front(_char._ani);
strcpy(_saveData1, locname.location());
parseLocation(_saveData1);
@@ -357,8 +357,8 @@ void Parallaction_ns::changeLocation(char *location) {
runCommands(_location._aCommands);
- if (_hasLocationSound)
- _soundMan->playSfx(_locationSound, 0, true);
+ if (_location._hasSound)
+ _soundMan->playSfx(_location._soundFile, 0, true);
debugC(1, kDebugExec, "changeLocation() done");
@@ -420,7 +420,7 @@ void Parallaction_ns::cleanupGame() {
_engineFlags &= ~kEngineTransformedDonna;
// this code saves main character animation from being removed from the following code
- _animations.remove(_char._ani);
+ _location._animations.remove(_char._ani);
_numLocations = 0;
_commandFlags = 0;
@@ -437,7 +437,7 @@ void Parallaction_ns::cleanupGame() {
_engineFlags &= ~kEngineQuit;
// main character animation is restored
- _animations.push_front(_char._ani);
+ _location._animations.push_front(_char._ani);
_score = 0;
return;