Ejemplo n.º 1
0
 /** Removes the hoe owned from the player's inventory */
 public void removeHoe() {
   Sys.print("You have lost your " + hoe.getName() + "!");
   hoe = null;
 }
Ejemplo n.º 2
0
 /**
  * Adds a specified hoe to the player's inventory
  *
  * @param h - Specified hoe
  */
 public void addHoe(Hoe h) {
   Sys.print("You have obtained a " + h.getName() + "!");
   hoe = h;
 }