/** Removes the pickaxe owned from the player's inventory */ public void removePick() { Sys.print("You have lost your " + pickaxe.getName() + "!"); pickaxe = null; }
/** * Adds a specified pickaxe to the player's inventory * * @param p - Specified pick */ public void addPick(Pickaxe p) { Sys.print("You have obtained a " + p.getName() + "!"); pickaxe = p; }