|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstudent.adventure.Command
student.adventure.GoCommand
public class GoCommand
Implementation of the 'go' user command for adventure games.
Constructor Summary | |
---|---|
GoCommand()
Constructor for objects of class GoCommand |
Method Summary | |
---|---|
boolean |
execute(Player player)
Try to go to one direction. |
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 GoCommand()
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 |