diff options
author | Nicola Mettifogo | 2007-08-25 11:45:05 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-25 11:45:05 +0000 |
commit | 1e8ebaa7bda5becdb9c89604a6abacf7be69dfb0 (patch) | |
tree | 38f276530cf5135cb5dff7fbb110becf3930e272 /engines/parallaction/parallaction.h | |
parent | 487f22d8c32b4095b153562c13773f33bcaa1bfa (diff) | |
download | scummvm-rg350-1e8ebaa7bda5becdb9c89604a6abacf7be69dfb0.tar.gz scummvm-rg350-1e8ebaa7bda5becdb9c89604a6abacf7be69dfb0.tar.bz2 scummvm-rg350-1e8ebaa7bda5becdb9c89604a6abacf7be69dfb0.zip |
Cleanup script routines.
svn-id: r28718
Diffstat (limited to 'engines/parallaction/parallaction.h')
-rw-r--r-- | engines/parallaction/parallaction.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index eac10e9b55..791724a08d 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -726,9 +726,11 @@ protected: Table *_instructionNames; struct { + bool end; Animation *a; Instruction *inst; LocalVariable *locals; + Program *program; // BRA specific Instruction *openIf; @@ -748,13 +750,12 @@ protected: DECLARE_UNQUALIFIED_INSTRUCTION_PARSER(call); DECLARE_UNQUALIFIED_INSTRUCTION_PARSER(sound); DECLARE_UNQUALIFIED_INSTRUCTION_PARSER(null); + DECLARE_UNQUALIFIED_INSTRUCTION_PARSER(endscript); - void parseScriptLine(Instruction *inst, Animation *a, LocalVariable *locals); + void parseInstruction(Animation *a, LocalVariable *locals); void loadProgram(Animation *a, const char *filename); - ScriptVar parseLValue(Instruction *inst, const char *str, LocalVariable *locals, Animation *a); - virtual ScriptVar parseRValue(Instruction *inst, const char *str, LocalVariable *locals, Animation *a); - int16 findLocal(const char* name, LocalVariable *locals); - int16 addLocal(const char *name, LocalVariable *locals, int16 value = 0, int16 min = -10000, int16 max = 10000); + void parseLValue(ScriptVar &var, const char *str); + virtual void parseRValue(ScriptVar &var, const char *str); void wrapLocalVar(LocalVariable *local); DECLARE_UNQUALIFIED_COMMAND_OPCODE(invalid); @@ -868,7 +869,7 @@ private: void _c_password(void*); const Callable *_callables; -/* +#ifdef BRA_TEST DECLARE_UNQUALIFIED_LOCATION_PARSER(location); DECLARE_UNQUALIFIED_LOCATION_PARSER(zone); DECLARE_UNQUALIFIED_LOCATION_PARSER(animation); @@ -911,8 +912,7 @@ private: DECLARE_UNQUALIFIED_INSTRUCTION_PARSER(if_op); DECLARE_UNQUALIFIED_INSTRUCTION_PARSER(endif); - virtual ScriptVar parseRValue(Instruction *inst, const char *str, LocalVariable *locals, Animation *a); - + virtual void parseRValue(ScriptVar &var, const char *str); DECLARE_UNQUALIFIED_COMMAND_OPCODE(location); DECLARE_UNQUALIFIED_COMMAND_OPCODE(open); @@ -974,7 +974,7 @@ private: DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(endif); DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(stop); DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(endscript); -*/ +#endif }; // FIXME: remove global |