- private void pour(Command command)
- {
- if(!command.hasSecondWord())
- {
- System.out.println ("Pour what?");
- }
- if (command.getSecondWord().equals ("beer") &&
- player.getCurrentRoom().itemTest("beerTap") == true)
- {
- currentRoom.setItems(beer);
- }
- else
- {
- System.out.println("You cannot pour that.");
- }
- }