def placeItemInRoom(item_key, room_key): itemForKey = getItem(item_key) roomForKey = room.getRoom(room_key) itemForKey.changeOwner(roomForKey)
def placeAgentInRoom(agent_key, room_key): agentForKey = getAgent(agent_key) roomForKey = room.getRoom(room_key) agentForKey.changeOwner(roomForKey)