|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcmd.Quit
public class Quit
Quit Quits the game.
Constructor Summary | |
---|---|
Quit()
|
Method Summary | |
---|---|
void |
construct(java.lang.String[] params)
construct is called when the Command is created. |
void |
exec(Player p)
exec is the main method of the command. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Quit()
Method Detail |
---|
public void exec(Player p)
Command
exec
in interface Command
p
- is the main player. The player is passed to exec because
a lot of useful info, such as the current room, are attached to the
Player class.public java.lang.String toString()
toString
in interface Command
toString
in class java.lang.Object
public void construct(java.lang.String[] params)
Command
construct
in interface Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |