343344345346347348349350
selectedWeapon = new Weapon(weapon.getType()); } else if(button instanceof RoomButton) { RoomButton location = (RoomButton)button; selectedRoom = new Room(location.getType()); } }
181182183184185186187188189190191
case STUDY: resource = Main.class.getResource("/clueless/main/resources/rooms/Study.gif"); break; } selectedRoom = new Room(room.getRoomName()); /** get URL to image */ try { buttonIcon = ImageIO.read(resource); } catch (IOException e) {
347348349350351352353354