|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstudent.adventure.Command
student.adventure.QuitCommand
public class QuitCommand
Implementation of the 'quit' user command for adventure games.
Constructor Summary | |
---|---|
QuitCommand()
Constructor for objects of class QuitCommand |
Method Summary | |
---|---|
boolean |
execute(Player player)
"Quit" was entered. |
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 QuitCommand()
Method Detail |
---|
public boolean execute(Player player)
execute
in class Command
player
- The player executing the command
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |