aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2007-07-29 14:32:30 +0000
committerNicola Mettifogo2007-07-29 14:32:30 +0000
commit04027589ab0413c09bb7d47c95bed74916bf5ca8 (patch)
treef0d756b6519f3276aa9f62f5e7f1ceaa29337b31 /engines
parent7e7b07132e1963e138bc0e630ab66d8162ee669b (diff)
downloadscummvm-rg350-04027589ab0413c09bb7d47c95bed74916bf5ca8.tar.gz
scummvm-rg350-04027589ab0413c09bb7d47c95bed74916bf5ca8.tar.bz2
scummvm-rg350-04027589ab0413c09bb7d47c95bed74916bf5ca8.zip
Cleanup and some new comments.
svn-id: r28290
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/parallaction.cpp35
1 files changed, 12 insertions, 23 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp
index 1dfc95716e..a31559711b 100644
--- a/engines/parallaction/parallaction.cpp
+++ b/engines/parallaction/parallaction.cpp
@@ -146,50 +146,39 @@ Parallaction::~Parallaction() {
int Parallaction::init() {
+ initResources(); // needs to be pushed into subclass
+
+ _engineFlags = 0;
_objectsNames = NULL;
_globalTable = NULL;
- _localFlagNames = NULL;
- initResources();
-
_hasLocationSound = false;
-
_skipMenu = false;
-
_transCurrentHoverItem = 0;
_actionAfterWalk = false; // actived when the character needs to move before taking an action
_activeItem._index = 0;
_activeItem._id = 0;
_procCurrentHoverItem = -1;
-
-// _musicData1 = 0;
- strcpy(_characterName1, "null");
-
_baseTime = 0;
+ _numLocations = 0;
+ _location._startPosition.x = -1000;
+ _location._startPosition.y = -1000;
+ _location._startFrame = 0;
+ _location._comment = NULL;
+ _location._endComment = NULL;
_screenMaskWidth = _screenWidth / 4;
_screenPathWidth = _screenWidth / 8;
-
_screenSize = _screenWidth * _screenHeight;
_screenMaskSize = _screenMaskWidth * _screenHeight;
_screenPathSize = _screenPathWidth * _screenHeight;
- _engineFlags = 0;
-
+ strcpy(_characterName1, "null");
strcpy(_characterName, "dough");
memset(_locationNames, 0, 120*32);
- _numLocations = 0;
-
- _location._startPosition.x = -1000;
- _location._startPosition.y = -1000;
- _location._startFrame = 0;
-
- _location._comment = NULL;
- _location._endComment = NULL;
-
- initWalk();
- initInventory();
+ initWalk(); // needs to be pushed into subclass
+ initInventory(); // needs to be pushed into subclass
_animations.push_front(&_vm->_char._ani);
_gfx = new Gfx(this);