diff options
author | whiterandrek | 2018-03-23 13:37:52 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 7f5e2e69e81045f37833375c6d6e27dcc2e295fb (patch) | |
tree | 4a7dcacf6d0d3e5dbee0e421a24f9b85b352dcef | |
parent | f8de0028f23fcd41c64230acfb810572ed50f3f7 (diff) | |
download | scummvm-rg350-7f5e2e69e81045f37833375c6d6e27dcc2e295fb.tar.gz scummvm-rg350-7f5e2e69e81045f37833375c6d6e27dcc2e295fb.tar.bz2 scummvm-rg350-7f5e2e69e81045f37833375c6d6e27dcc2e295fb.zip |
PINK: added ParlSqPink and PubPink
-rw-r--r-- | engines/pink/archive.cpp | 8 | ||||
-rw-r--r-- | engines/pink/objects/actors/lead_actor.cpp | 14 | ||||
-rw-r--r-- | engines/pink/objects/actors/lead_actor.h | 12 |
3 files changed, 30 insertions, 4 deletions
diff --git a/engines/pink/archive.cpp b/engines/pink/archive.cpp index 0d7155a9ac..0690454478 100644 --- a/engines/pink/archive.cpp +++ b/engines/pink/archive.cpp @@ -226,10 +226,10 @@ static Object* createObject(int objectId){ return new ModuleProxy; //case kPDAButtonActor: // return new PDAButtonActor; - //case kParlSqPink: - // return new ParlSqPink; - //case kPubPink: - // return new PubPink; + case kParlSqPink: + return new ParlSqPink; + case kPubPink: + return new PubPink; case kSeqTimer: return new SeqTimer; case kSequence: diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp index 8e7411e0e8..88c579c5c2 100644 --- a/engines/pink/objects/actors/lead_actor.cpp +++ b/engines/pink/objects/actors/lead_actor.cpp @@ -64,4 +64,18 @@ LeadActor::State LeadActor::getState() const { return _state; } +void ParlSqPink::toConsole() { + debug("ParlSqPink: _name = %s", _name.c_str()); + for (int i = 0; i < _actions.size(); ++i) { + _actions[i]->toConsole(); + } +} + +void PubPink::toConsole() { + debug("PubPink: _name = %s", _name.c_str()); + for (int i = 0; i < _actions.size(); ++i) { + _actions[i]->toConsole(); + } +} + } // End of namespace Pink diff --git a/engines/pink/objects/actors/lead_actor.h b/engines/pink/objects/actors/lead_actor.h index 30c0a50f49..b511f4010d 100644 --- a/engines/pink/objects/actors/lead_actor.h +++ b/engines/pink/objects/actors/lead_actor.h @@ -60,6 +60,18 @@ private: Sequencer *_sequencer; }; + +class ParlSqPink : public LeadActor { +public: + void toConsole(); +}; + +class PubPink : public LeadActor { +public: + void toConsole(); +}; + + } // End of namespace Pink #endif |