Added debugger command to list the birthstone gems.

svn-id: r29077
This commit is contained in:
Johannes Schickel 2007-09-23 23:00:54 +00:00
parent a8112e3857
commit 3c5d8c4031
2 changed files with 10 additions and 0 deletions

View File

@ -46,6 +46,7 @@ Debugger_v1::Debugger_v1(KyraEngine_v1 *vm)
DCmd_Register("timers", WRAP_METHOD(Debugger_v1, cmd_listTimers));
DCmd_Register("settimercountdown", WRAP_METHOD(Debugger_v1, cmd_setTimerCountdown));
DCmd_Register("give", WRAP_METHOD(Debugger_v1, cmd_giveItem));
DCmd_Register("birthstones", WRAP_METHOD(Debugger_v1, cmd_listBirthstones));
}
void Debugger_v1::preEnter() {
@ -179,5 +180,13 @@ bool Debugger_v1::cmd_giveItem(int argc, const char **argv) {
return true;
}
bool Debugger_v1::cmd_listBirthstones(int argc, const char **argv) {
DebugPrintf("Needed Birthstone gems:\n");
for (int i = 0; i < ARRAYSIZE(_vm->_birthstoneGemTable); ++i)
DebugPrintf("%-2d '%s'\n", _vm->_birthstoneGemTable[i], _vm->_itemList[_vm->_birthstoneGemTable[i]]);
return true;
}
} // End of namespace Kyra

View File

@ -58,6 +58,7 @@ protected:
bool cmd_listTimers(int argc, const char **argv);
bool cmd_setTimerCountdown(int argc, const char **argv);
bool cmd_giveItem(int argc, const char **argv);
bool cmd_listBirthstones(int argc, const char **argv);
};
} // End of namespace Kyra