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