Пример #1
0
 @Override
 public void destroy() {
   if ((super.owner != null)
       && (!amDestroyed())
       && (CMSecurity.isDebugging(CMSecurity.DbgFlag.FLAGWATCHING))) {
     Log.debugOut("FLAGWATCH", name());
     Log.debugOut("FLAGWATCH", new Exception(name() + " is being destroyed."));
   }
   super.destroy();
 }
Пример #2
0
 @Override
 public void setOwner(ItemPossessor E) {
   if ((E == null)
       && (super.owner != null)
       && (!amDestroyed())
       && (CMSecurity.isDebugging(CMSecurity.DbgFlag.FLAGWATCHING))) {
     Log.debugOut("FLAGWATCH", name());
     Log.debugOut("FLAGWATCH", new Exception(name() + " is being null-ownered."));
   }
   super.setOwner(E);
 }
Пример #3
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);
   }
 }