コード例 #1
0
 public void clearGrid(Room bringBackHere) {
   try {
     DVector myRooms = rooms.copyOf();
     for (int r = 0; r < myRooms.size(); r++) {
       Room room = (Room) myRooms.elementAt(r, 1);
       CMLib.map().emptyRoom(room, bringBackHere);
     }
     while (myRooms.size() > 0) {
       Room room = (Room) myRooms.elementAt(0, 1);
       room.destroy();
       myRooms.removeElementAt(0);
     }
     try {
       rooms.clear();
     } catch (Exception e) {
     }
   } catch (Exception e) {
     Log.debugOut("StdThinGrid", e);
   }
 }
コード例 #2
0
 @Override
 public void addPunishmentParm(int code, String parm) {
   final int index = punishmentParms.indexOf(Integer.valueOf(code));
   if (index >= 0) punishmentParms.removeElementAt(index);
   punishmentParms.addElement(Integer.valueOf(code), parm);
 }