|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGame
public class Game
This class is the central class of the "World of Zuul" application. "World of Zuul" is a very simple, text based adventure game. Users can walk around some scenery. That's all. It should really be extended to make it more interesting!
Constructor Summary | |
---|---|
Game()
Create the game and initialise its internal map. |
Method Summary | |
---|---|
boolean |
finished()
Return whether the game has finished or not. |
String |
goRoom(String direction)
Try to go in one direction. |
String |
help()
Give some help information. |
String |
quit()
Execute quit command. |
String |
welcome()
Opening message for the player. |
Methods inherited from class |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Game()
Method Detail |
---|
public boolean finished()
public String goRoom(String direction)
direction
- The direction in which to go.
Pre-condition: direction is not null.public String help()
public String quit()
public String welcome()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |