Example #1
0
 /** Removes the pickaxe owned from the player's inventory */
 public void removePick() {
   Sys.print("You have lost your " + pickaxe.getName() + "!");
   pickaxe = null;
 }
Example #2
0
 /**
  * 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;
 }