diff options
author | Paul Gilbert | 2014-08-08 09:30:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-08 09:30:16 -0400 |
commit | fb0a1f5597145581cf082f0ef3ffcf9bea141cc9 (patch) | |
tree | 7fbb58d8cb058234d0288cce4abd47b7f9d03509 /engines/access/scripts.h | |
parent | 80c8fbe024230aaba63d93f9a2ff1c1bf25ae922 (diff) | |
download | scummvm-rg350-fb0a1f5597145581cf082f0ef3ffcf9bea141cc9.tar.gz scummvm-rg350-fb0a1f5597145581cf082f0ef3ffcf9bea141cc9.tar.bz2 scummvm-rg350-fb0a1f5597145581cf082f0ef3ffcf9bea141cc9.zip |
ACCESS: Implemented cmdGoto script command
Diffstat (limited to 'engines/access/scripts.h')
-rw-r--r-- | engines/access/scripts.h | 151 |
1 files changed, 78 insertions, 73 deletions
diff --git a/engines/access/scripts.h b/engines/access/scripts.h index b9c8b2cd56..fc75e9e9ab 100644 --- a/engines/access/scripts.h +++ b/engines/access/scripts.h @@ -30,84 +30,89 @@ namespace Access { class AccessEngine; class Scripts; -typedef void(Scripts::*ScriptMethodPtr)(); +typedef void(Scripts::*ScriptMethodPtr)(const byte *&pScript); class Scripts { protected: AccessEngine *_vm; - virtual void executeCommand(int commandIndex); - void CMDENDOBJECT(); - void CMDJUMPLOOK(); - void CMDJUMPHELP(); - void CMDJUMPGET(); - void CMDJUMPMOVE(); - void CMDJUMPUSE(); - void CMDJUMPTALK(); - void CMDNULL(); - void CMDPRINT(); - void CMDRETPOS(); - void CMDANIM(); - void CMDSETFLAG(); - void CMDCHECKFLAG(); - void CMDGOTO(); - void CMDSETINV(); - void CMDCHECKINV(); - void CMDSETTEX(); - void CMDNEWROOM(); - void CMDCONVERSE(); - void CMDCHECKFRAME(); - void CMDCHECKANIM(); - void CMDSND(); - void CMDRETNEG(); - void CMDCHECKLOC(); - void CMDSETANIM(); - void CMDDISPINV(); - void CMDSETTIMER(); - void CMDCHECKTIMER(); - void CMDSETTRAVEL(); - void CMDSETVID(); - void CMDPLAYVID(); - void CMDPLOTIMAGE(); - void CMDSETDISPLAY(); - void CMDSETBUFFER(); - void CMDSETSCROLL(); - void CMDSAVERECT(); - void CMDSETBUFVID(); - void CMDPLAYBUFVID(); - void CMDREMOVELAST(); - void CMDSPECIAL(); - void CMDSETCYCLE(); - void CMDCYCLE(); - void CMDCHARSPEAK(); - void CMDTEXSPEAK(); - void CMDTEXCHOICE(); - void CMDWAIT(); - void CMDSETCONPOS(); - void CMDCHECKVFRAME(); - void CMDJUMPCHOICE(); - void CMDRETURNCHOICE(); - void CMDCLEARBLOCK(); - void CMDLOADSOUND(); - void CMDFREESOUND(); - void CMDSETVIDSND(); - void CMDPLAYVIDSND(); - void CMDPUSHLOCATION(); - void CMDPLAYEROFF(); - void CMDPLAYERON(); - void CMDDEAD(); - void CMDFADEOUT(); - void CMDENDVID(); - void CMDHELP(); - void CMDCYCLEBACK(); - void CMDCHAPTER(); - void CMDSETHELP(); - void CMDCENTERPANEL(); - void CMDMAINPANEL(); - void CMDRETFLASH(); + virtual void executeCommand(int commandIndex, const byte *&pScript); + void CMDENDOBJECT(const byte *&pScript); + void CMDJUMPLOOK(const byte *&pScript); + void CMDJUMPHELP(const byte *&pScript); + void CMDJUMPGET(const byte *&pScript); + void CMDJUMPMOVE(const byte *&pScript); + void CMDJUMPUSE(const byte *&pScript); + void CMDJUMPTALK(const byte *&pScript); + void CMDNULL(const byte *&pScript); + void CMDPRINT(const byte *&pScript); + void CMDRETPOS(const byte *&pScript); + void CMDANIM(const byte *&pScript); + void CMDSETFLAG(const byte *&pScript); + void CMDCHECKFLAG(const byte *&pScript); + + /** + * Jump to another script + */ + void cmdGoto(const byte *&pScript); + + void CMDSETINV(const byte *&pScript); + void CMDCHECKINV(const byte *&pScript); + void CMDSETTEX(const byte *&pScript); + void CMDNEWROOM(const byte *&pScript); + void CMDCONVERSE(const byte *&pScript); + void CMDCHECKFRAME(const byte *&pScript); + void CMDCHECKANIM(const byte *&pScript); + void CMDSND(const byte *&pScript); + void CMDRETNEG(const byte *&pScript); + void CMDCHECKLOC(const byte *&pScript); + void CMDSETANIM(const byte *&pScript); + void CMDDISPINV(const byte *&pScript); + void CMDSETTIMER(const byte *&pScript); + void CMDCHECKTIMER(const byte *&pScript); + void CMDSETTRAVEL(const byte *&pScript); + void CMDSETVID(const byte *&pScript); + void CMDPLAYVID(const byte *&pScript); + void CMDPLOTIMAGE(const byte *&pScript); + void CMDSETDISPLAY(const byte *&pScript); + void CMDSETBUFFER(const byte *&pScript); + void CMDSETSCROLL(const byte *&pScript); + void CMDSAVERECT(const byte *&pScript); + void CMDSETBUFVID(const byte *&pScript); + void CMDPLAYBUFVID(const byte *&pScript); + void CMDREMOVELAST(const byte *&pScript); + void CMDSPECIAL(const byte *&pScript); + void CMDSETCYCLE(const byte *&pScript); + void CMDCYCLE(const byte *&pScript); + void CMDCHARSPEAK(const byte *&pScript); + void CMDTEXSPEAK(const byte *&pScript); + void CMDTEXCHOICE(const byte *&pScript); + void CMDWAIT(const byte *&pScript); + void CMDSETCONPOS(const byte *&pScript); + void CMDCHECKVFRAME(const byte *&pScript); + void CMDJUMPCHOICE(const byte *&pScript); + void CMDRETURNCHOICE(const byte *&pScript); + void CMDCLEARBLOCK(const byte *&pScript); + void CMDLOADSOUND(const byte *&pScript); + void CMDFREESOUND(const byte *&pScript); + void CMDSETVIDSND(const byte *&pScript); + void CMDPLAYVIDSND(const byte *&pScript); + void CMDPUSHLOCATION(const byte *&pScript); + void CMDPLAYEROFF(const byte *&pScript); + void CMDPLAYERON(const byte *&pScript); + void CMDDEAD(const byte *&pScript); + void CMDFADEOUT(const byte *&pScript); + void CMDENDVID(const byte *&pScript); + void CMDHELP(const byte *&pScript); + void CMDCYCLEBACK(const byte *&pScript); + void CMDCHAPTER(const byte *&pScript); + void CMDSETHELP(const byte *&pScript); + void CMDCENTERPANEL(const byte *&pScript); + void CMDMAINPANEL(const byte *&pScript); + void CMDRETFLASH(const byte *&pScript); public: - byte *_script; - byte *_scriptLoc; + const byte *_script; + const byte *_scriptLoc; int _sequence; bool _endFlag; int _returnCode; @@ -119,7 +124,7 @@ public: void freeScriptData(); - void searchForSequence(); + const byte *searchForSequence(); int executeScript(); }; |