Ejemplo n.º 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
 }
Ejemplo n.º 2
0
 public Image getPropImage() {
   return (prop.getSprite());
 }
Ejemplo n.º 3
0
 public boolean canInteract() {
   return (hasProp() && prop.isInteractable());
 }