Use
Tries to activate the specified item from either the player’s inventory or the room.
implements:
parser.commands.Command;
Contents
Constructors
Use(String name, String description)
Create a new use command with the given name
and description
help text.
Methods
void invoke(String[] parts, Player p, Map m)
First checks the player’s inventory for the given item. If not found then tries to locate it in the room.
boolean equals(String name)
True if this command’s name equals name
; false otherwise.