|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Command | |
---|---|
cmd | |
obj |
Uses of Command in cmd |
---|
Classes in cmd that implement Command | |
---|---|
class |
Alias
Alias Creates a new alias. |
class |
Drop
Drop When executed by a player, the drop command takes the item to be dropped from the player's inventory (unless it's not present) and places it in the current room's list of items. |
class |
Examine
Examine Prints a more detailed description of an object in the game. |
class |
Help
|
class |
Inventory
Inventory Prints a list of the items and their descriptions that the player is carrying. |
class |
Kate
A simple test class that prints a statement. |
class |
Look
Look just prints out the description of the room passed to it - generally the current room. |
class |
Move
Move Moves player from one room to another. |
class |
Open
Open Opens a door (or other object, such as a box) that lies in the direction specified,"; |
class |
Quit
Quit Quits the game. |
class |
Take
Take Picks up an item in the current room, if it is able to be picked up. |
class |
Talk
Talk - Allows the player to talk to an NPC in the current room. |
class |
Use
Use Uses an item in the inventory. |
Uses of Command in obj |
---|
Methods in obj that return Command | |
---|---|
Command |
Item.getCmd()
|
Methods in obj with parameters of type Command | |
---|---|
void |
Item.setCmd(Command c)
Sets the command that the item is associated with. |
Constructors in obj with parameters of type Command | |
---|---|
Item(java.lang.String name,
java.lang.String description,
java.lang.String roomDescription,
int numUses,
Command cmd)
Creates a new item. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |