Пример #1
0
 public void destroyProp() {
   prop.setDestroyed(true);
   // setDestroyed(true) b/c need to remove from CellGrid.PropList
   if (prop.isDestructable()) {
     // prop=null;
     solid = false;
   } else if (prop.isItemholder()) {
     // prop=null;
     solid = false;
   } else if (this.isLocked()) {
     solid = false;
   } else {
     System.out.println("Nothing to destroy. Why was Cell.destroyProp() called?");
   }
   // Add any other changes to conditionals here too
 }
Пример #2
0
 public Image getPropImage() {
   return (prop.getSprite());
 }
Пример #3
0
 public boolean canInteract() {
   return (hasProp() && prop.isInteractable());
 }