diff options
author | Nicola Mettifogo | 2008-02-09 23:26:45 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-02-09 23:26:45 +0000 |
commit | 435c437f6d118842ded3a0020168a1080ea2d0c9 (patch) | |
tree | bf16e7da40a22b13e993d997b901b7428f108108 /engines/parallaction/parser_br.cpp | |
parent | cf724e889ce551082a1c3e443b11e9523f068e8d (diff) | |
download | scummvm-rg350-435c437f6d118842ded3a0020168a1080ea2d0c9.tar.gz scummvm-rg350-435c437f6d118842ded3a0020168a1080ea2d0c9.tar.bz2 scummvm-rg350-435c437f6d118842ded3a0020168a1080ea2d0c9.zip |
More refactoring for command parsing/execution.
svn-id: r30841
Diffstat (limited to 'engines/parallaction/parser_br.cpp')
-rw-r--r-- | engines/parallaction/parser_br.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/engines/parallaction/parser_br.cpp b/engines/parallaction/parser_br.cpp index e193ab86b9..4e75b09355 100644 --- a/engines/parallaction/parser_br.cpp +++ b/engines/parallaction/parser_br.cpp @@ -420,26 +420,6 @@ DECLARE_COMMAND_PARSER(music) { } -DECLARE_COMMAND_PARSER(zone) { - debugC(7, kDebugParser, "COMMAND_PARSER(zone) "); - - createCommand(_lookup); - - _locParseCtxt.cmd->u._zone = findZone(_tokens[_locParseCtxt.nextToken]); - _locParseCtxt.nextToken++; - - if (_locParseCtxt.cmd->u._zone == NULL) { - assert(_numForwards < MAX_FORWARDS); - strcpy(_forwardedAnimationNames[_numForwards], _tokens[_locParseCtxt.nextToken-1]); - _forwardedCommands[_numForwards] = _locParseCtxt.cmd; - _numForwards++; - } - - parseCommandFlags(); - addCommand(); -} - - DECLARE_COMMAND_PARSER(zeta) { debugC(7, kDebugParser, "COMMAND_PARSER(zeta) "); @@ -824,7 +804,7 @@ void Parallaction_br::initParsers() { WARNING_PARSER(unexpected), COMMAND_PARSER(flags), // set COMMAND_PARSER(flags), // clear - COMMAND_PARSER(animation), // start + COMMAND_PARSER(zone), // start COMMAND_PARSER(zone), // speak COMMAND_PARSER(zone), // get COMMAND_PARSER(location), @@ -837,7 +817,7 @@ void Parallaction_br::initParsers() { COMMAND_PARSER(drop), COMMAND_PARSER(simple), // quit COMMAND_PARSER(move), - COMMAND_PARSER(animation), // stop + COMMAND_PARSER(zone), // stop COMMAND_PARSER(string), // character COMMAND_PARSER(string), // followme COMMAND_PARSER(simple), // onmouse |