MOHAWK: Add Framework getVar() code to Myst D'ni Age Script Parser.

svn-id: r55015
This commit is contained in:
David Turner 2010-12-22 21:08:02 +00:00
parent d9cc9d5800
commit 5e92b6049b
2 changed files with 28 additions and 0 deletions

View File

@ -63,6 +63,33 @@ void MystScriptParser_Dni::disablePersistentScripts() {
void MystScriptParser_Dni::runPersistentScripts() {
}
uint16 MystScriptParser_Dni::getVar(uint16 var) {
// MystVariables::Globals &globals = _vm->_saveLoad->_v->globals;
// MystVariables::Dni &dni = _vm->_saveLoad->_v->dni;
switch(var) {
// case 0: // Atrus Gone (from across room)
// return 0; // Present
// return 1; // Absent
// case 1: // Myst Book Status
// return 0; // Not Usuable
// return 1; // Openable, but not linkable (Atrus Gone?)
// return 2; // Linkable
// case 2: // Music Type
// return 0;
// return 1;
// return 2;
// case 106: // Atrus Static Image State
// return 0; // Initial State
// return 1; // Holding Out Hand for Page
// return 2; // Gone, Book Open
// return 3; // Back #1
// return 4; // Back #2
default:
return MystScriptParser::getVar(var);
}
}
void MystScriptParser_Dni::opcode_100(uint16 op, uint16 var, uint16 argc, uint16 *argv) {
// Used in Card 5022 (Rocks)
varUnusedCheck(op, var);

View File

@ -47,6 +47,7 @@ public:
private:
void setupOpcodes();
uint16 getVar(uint16 var);
DECLARE_OPCODE(opcode_100);
DECLARE_OPCODE(opcode_101);