Implemented opcodes for picking up/dropping/opening/closing items.

svn-id: r33370
This commit is contained in:
Nicola Mettifogo 2008-07-28 11:48:04 +00:00
parent f4ef55a2e5
commit fb388deb99

View File

@ -122,11 +122,19 @@ DECLARE_COMMAND_OPCODE(location) {
DECLARE_COMMAND_OPCODE(open) {
warning("Parallaction_br::cmdOp_open command not yet implemented");
_ctxt.cmd->u._zone->_flags &= ~kFlagsClosed;
if (_ctxt.cmd->u._zone->u.door->gfxobj) {
_vm->updateDoor(_ctxt.cmd->u._zone);
}
}
DECLARE_COMMAND_OPCODE(close) {
warning("Parallaction_br::cmdOp_close not yet implemented");
_ctxt.cmd->u._zone->_flags |= kFlagsClosed;
if (_ctxt.cmd->u._zone->u.door->gfxobj) {
_vm->updateDoor(_ctxt.cmd->u._zone);
}
}
@ -165,7 +173,7 @@ DECLARE_COMMAND_OPCODE(call) {
DECLARE_COMMAND_OPCODE(drop) {
warning("Parallaction_br::cmdOp_drop not yet implemented");
_vm->dropItem(_ctxt.cmd->u._object);
}
@ -204,7 +212,7 @@ DECLARE_COMMAND_OPCODE(offmouse) {
DECLARE_COMMAND_OPCODE(add) {
warning("Parallaction_br::cmdOp_add not yet implemented");
_vm->addInventoryItem(_ctxt.cmd->u._object);
}