|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <scriptinterpreter.hpp>
Public Member Functions | |
| int | GetNextTAG () |
| void | SetTAG (TAG_PARAM *tags, int count) |
| void | SetFunction (SPI_FUNC_PARAM *functions, int count) |
| void | SetScript (char *script, int script_size) |
| CScriptInterpreter () | |
| int | ControlCode () |
| int | CallFunction (int *result) |
| int | GetArg (int *argument_types) |
| int | SearchCommand (int *tag_index) |
Public Member Functions inherited from input_str | |
| input_str (int unused) | |
| int | get (int *value) |
Public Attributes | |
| int | current_tag |
| int | argument_data_used |
| int | tag_count |
| u8 | function_argument_data [0x400] |
| TAG_PARAM * | tag_table |
| SPI_FUNC_PARAM * | function_table |
| int | function_count |
| void * | arguments [24] |
| char | argument_text [0x40C] |
Public Attributes inherited from input_str | |
| char * | data |
| int | size |
| int | pos |
Parses tagged text scripts and dispatches their embedded commands.
Definition at line 47 of file scriptinterpreter.hpp.
| CScriptInterpreter::CScriptInterpreter | ( | ) |
Constructs an interpreter with no script, tags or commands.
Definition at line 60 of file scriptinterpreter.cpp.
| int CScriptInterpreter::GetNextTAG | ( | ) |
Reads the next tag out of the script and gives its number.
Definition at line 7 of file scriptinterpreter.cpp.
| void CScriptInterpreter::SetTAG | ( | TAG_PARAM * | tags, |
| int | count | ||
| ) |
Gives the interpreter the table of tags it recognises.
Definition at line 41 of file scriptinterpreter.cpp.
| void CScriptInterpreter::SetFunction | ( | SPI_FUNC_PARAM * | functions, |
| int | count | ||
| ) |
Gives the interpreter the table of commands it may call.
Definition at line 46 of file scriptinterpreter.cpp.
| void CScriptInterpreter::SetScript | ( | char * | script, |
| int | script_size | ||
| ) |
Points the interpreter at the script text it is to read.
Definition at line 51 of file scriptinterpreter.cpp.
| int CScriptInterpreter::ControlCode | ( | ) |
Reads one control code out of the script.
Definition at line 71 of file scriptinterpreter.cpp.
| int CScriptInterpreter::CallFunction | ( | int * | result | ) |
Calls the command the script names, having gathered its arguments.
Definition at line 112 of file scriptinterpreter.cpp.
| int CScriptInterpreter::GetArg | ( | int * | argument_types | ) |
Reads one command argument out of the script.
Definition at line 204 of file scriptinterpreter.cpp.
| int CScriptInterpreter::SearchCommand | ( | int * | tag_index | ) |
Finds the command table entry the script's next word names.
Definition at line 304 of file scriptinterpreter.cpp.
| int CScriptInterpreter::current_tag |
Index of the tag most recently read, or -1.
Definition at line 49 of file scriptinterpreter.hpp.
| int CScriptInterpreter::argument_data_used |
Offset of command-call values in the work buffer.
Definition at line 50 of file scriptinterpreter.hpp.
| int CScriptInterpreter::tag_count |
Number of entries in the tag table.
Definition at line 51 of file scriptinterpreter.hpp.
| u8 CScriptInterpreter::function_argument_data[0x400] |
Storage used to marshal command-call arguments.
Definition at line 52 of file scriptinterpreter.hpp.
| TAG_PARAM* CScriptInterpreter::tag_table |
Tags recognised by the interpreter.
Definition at line 53 of file scriptinterpreter.hpp.
| SPI_FUNC_PARAM* CScriptInterpreter::function_table |
Commands callable from control codes.
Definition at line 54 of file scriptinterpreter.hpp.
| int CScriptInterpreter::function_count |
Number of entries in the command table.
Definition at line 55 of file scriptinterpreter.hpp.
| void* CScriptInterpreter::arguments[24] |
Arguments decoded for the current command.
Definition at line 56 of file scriptinterpreter.hpp.
| char CScriptInterpreter::argument_text[0x40C] |
Inline storage for decoded string arguments.
Definition at line 57 of file scriptinterpreter.hpp.