Position position = this.getPosition(instr._subjectId);
if(position.isTypeOf(BaseInterface.Type.DOOR)){
Door door = (Door)position;
Room rooms[] = door.getRooms();
if(trapRooms.contains(rooms[0]) &&
triggeredRooms.contains(rooms[0]) == false)
triggeredRooms.add(rooms[0]);
if(trapRooms.contains(rooms[1]) &&
triggeredRooms.contains(rooms[1]) == false)
triggeredRooms.add(rooms[1]);
}else{
Room room = position.getRoom();
if(trapRooms.contains(room) &&
triggeredRooms.contains(room) == false)
triggeredRooms.add(room);
}
}