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