aboutsummaryrefslogtreecommitdiff
path: root/kyra/debugger.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2005-12-09 23:02:16 +0000
committerJohannes Schickel2005-12-09 23:02:16 +0000
commitb57f03697541b21c981dcf153354163671773720 (patch)
tree5cad701f25ab12996c8dc860ff8355758741724a /kyra/debugger.cpp
parent775386459972b43308de3f82edf75660ad5e2161 (diff)
downloadscummvm-rg350-b57f03697541b21c981dcf153354163671773720.tar.gz
scummvm-rg350-b57f03697541b21c981dcf153354163671773720.tar.bz2
scummvm-rg350-b57f03697541b21c981dcf153354163671773720.zip
Fixed bug with wrongly used shapes of items in a room.
Also implemented usage of NPC.EMC in the input function. And implemented following opcodes: - cmd_getCharactersLocation - cmd_setBrandonStatusBit - cmd_queryScenePhasingFlag - cmd_resetScenePhasingFlag - cmd_setScenePhasingFlag - cmd_phaseInSameScene - cmd_popMobileNPCIntoScene - cmd_setCharactersMovementDelay - cmd_queryBrandonStatusBit And a fix for the pathfinder and various other functions using the character positions values so they are now able to handle negative positions. svn-id: r19769
Diffstat (limited to 'kyra/debugger.cpp')
-rw-r--r--kyra/debugger.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/kyra/debugger.cpp b/kyra/debugger.cpp
index 989f7f1eba..036c884af6 100644
--- a/kyra/debugger.cpp
+++ b/kyra/debugger.cpp
@@ -43,6 +43,7 @@ Debugger::Debugger(KyraEngine *vm)
DCmd_Register("queryflag", &Debugger::cmd_queryFlag);
DCmd_Register("timers", &Debugger::cmd_listTimers);
DCmd_Register("settimercountdown", &Debugger::cmd_setTimerCountdown);
+ DCmd_Register("give", &Debugger::cmd_giveItem);
}
void Debugger::preEnter() {
@@ -176,4 +177,14 @@ bool Debugger::cmd_setTimerCountdown(int argc, const char **argv) {
return true;
}
+bool Debugger::cmd_giveItem(int argc, const char **argv) {
+ if (argc) {
+ int item = atoi(argv[1]);
+ _vm->setMouseItem(item);
+ _vm->_itemInHand = item;
+ } else
+ DebugPrintf("Syntax: give <itemid>\n");
+
+ return true;
+}
} // End of namespace Kyra