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