/** Removes the shovel owned from the player's inventory */ public void removeShovel() { Sys.print("You have lost your " + shovel.getName() + "!"); shovel = null; }
/** * Adds a specified shovel to the player's inventory * * @param s - Specified shovel */ public void addShovel(Shovel s) { Sys.print("You have obtained a " + s.getName() + "!"); shovel = s; }