|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstudent.adventure.Command
student.adventure.HelpCommand
public class HelpCommand
Implementation of the 'help' user command for adventure games.
| Constructor Summary | |
|---|---|
HelpCommand(CommandWords words)
Constructor for objects of class HelpCommand |
|
| Method Summary | |
|---|---|
boolean |
execute(Player player)
Print out some help information. |
java.lang.String |
message()
Get the descriptive message that is presented before the list of commands when this command is executed. |
| Methods inherited from class student.adventure.Command |
|---|
getSecondWord, hasSecondWord, setSecondWord |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HelpCommand(CommandWords words)
words - The set of words to print help for| Method Detail |
|---|
public boolean execute(Player player)
execute in class Commandplayer - The player executing the command
public java.lang.String message()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||