diff options
author | Nicola Mettifogo | 2007-09-02 15:17:41 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-09-02 15:17:41 +0000 |
commit | 60a6d5aa539f4182a1b39616626d0f74615f791e (patch) | |
tree | beef013a911b0181017285af35be764defb7f114 /engines/parallaction/parallaction_br.cpp | |
parent | 957e421bfa98ca634f83f0744e22c5ef5001e1d2 (diff) | |
download | scummvm-rg350-60a6d5aa539f4182a1b39616626d0f74615f791e.tar.gz scummvm-rg350-60a6d5aa539f4182a1b39616626d0f74615f791e.tar.bz2 scummvm-rg350-60a6d5aa539f4182a1b39616626d0f74615f791e.zip |
Jobs are now members of the engine and are handled with a table, instead of being external functions.
svn-id: r28824
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index e09a48dd9d..a3a926bf02 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -357,5 +357,35 @@ void Parallaction_br::changeCharacter(const char *name) { } +void Parallaction_br::initJobs() { +/* + static const JobFn jobs[] = { + &Parallaction_br::jobDisplayAnimations, + &Parallaction_br::jobEraseAnimations, + &Parallaction_br::jobDisplayDroppedItem, + &Parallaction_br::jobRemovePickedItem, + &Parallaction_br::jobRunScripts, + &Parallaction_br::jobWalk, + &Parallaction_br::jobDrawLabel, + &Parallaction_br::jobEraseLabel, + &Parallaction_br::jobWaitRemoveLabelJob, + &Parallaction_br::jobToggleDoor, + &Parallaction_br::jobClearSubtitle, + &Parallaction_br::jobDrawSubtitle, + &Parallaction_br::jobWaitRemoveSubtitleJob, + &Parallaction_br::jobPauseSfx, + &Parallaction_br::jobStopFollower, + &Parallaction_br::jobScroll + }; + + _jobsFn = jobs; +*/ + +}; + +JobOpcode* Parallaction_br::createJobOpcode(uint functionId, Job *job) { + //return new OpcodeImpl2<Parallaction_br>(this, _jobsFn[functionId], job); +} + } // namespace Parallaction |