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