aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/people.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-12 19:37:53 -0400
committerPaul Gilbert2015-06-12 19:37:53 -0400
commited29691b2facecdfac934f90841f69e81c12e697 (patch)
tree9d4338c4e740edbade693dbc0dea075a42619fec /engines/sherlock/people.cpp
parentcbafff20c22764295e93d86280e9825d7c6f5032 (diff)
downloadscummvm-rg350-ed29691b2facecdfac934f90841f69e81c12e697.tar.gz
scummvm-rg350-ed29691b2facecdfac934f90841f69e81c12e697.tar.bz2
scummvm-rg350-ed29691b2facecdfac934f90841f69e81c12e697.zip
SHERLOCK: RT: Move RT fields added to Person to TattooPerson
Diffstat (limited to 'engines/sherlock/people.cpp')
-rw-r--r--engines/sherlock/people.cpp41
1 files changed, 2 insertions, 39 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp
index 5684a94e9b..de0e6ae116 100644
--- a/engines/sherlock/people.cpp
+++ b/engines/sherlock/people.cpp
@@ -64,32 +64,12 @@ const char *const WALK_LIB_NAMES[NUM_IN_WALK_LIB] = {
/*----------------------------------------------------------------*/
-Person::Person() : Sprite(), _walkLoaded(false), _npcIndex(0), _npcStack(0), _npcPause(false) {
- Common::fill(&_npcPath[0], &_npcPath[MAX_NPC_PATH], 0);
- _tempX = _tempScaleVal = 0;
- _npcIndex = 0;
- _npcStack = 0;
- _npcMoved = false;
- _npcFacing = -1;
- _resetNPCPath = true;
- _savedNpcSequence = 0;
- _savedNpcFrame = 0;
- _updateNPCPath = false;
- _npcPause = false;
+Person::Person() : Sprite() {
+ _walkLoaded = false;
_oldWalkSequence = -1;
_srcZone = _destZone = 0;
}
-void Person::clearNPC() {
- Common::fill(&_npcPath[0], &_npcPath[MAX_NPC_PATH], 0);
- _npcIndex = _npcStack = 0;
- _npcName = "";
-}
-
-void Person::updateNPC() {
- // TODO
-}
-
void Person::goAllTheWay() {
People &people = *_vm->_people;
Scene &scene = *_vm->_scene;
@@ -418,23 +398,6 @@ int People::findSpeaker(int speaker) {
}
}
- // Fallback in Rose Tattoo
- if (IS_ROSE_TATTOO) {
- bool flag = _vm->readFlags(76);
-
- if (_data[PLAYER]->_type == CHARACTER && ((speaker == 0 && flag) || (speaker == 1 && !flag)))
- return -1;
-
- for (uint idx = 1; idx < _data.size(); ++idx) {
- if (_data[idx]->_type == CHARACTER) {
- Common::String name(_data[idx]->_name.c_str(), _data[idx]->_name.c_str() + 4);
-
- if (name.equalsIgnoreCase(portrait) && _data[idx]->_npcName[4] >= '0' && _data[idx]->_npcName[4] <= '9')
- return idx + 256;
- }
- }
- }
-
return -1;
}