|
||||||||
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 main 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! To play this game, create an instance of this class and call the "play" method. This main class creates and initialises all the others: it creates all rooms, creates the parser and starts the game.
Field Summary | |
---|---|
private Parser |
parser
|
private Player |
player
|
Constructor Summary | |
---|---|
Game()
Create the game and initialise its internal map. |
Method Summary | |
---|---|
private void |
createRooms()
Create all the rooms and link their exits together. |
void |
play()
Main play routine. |
private void |
printWelcome()
Print out the opening message for the player. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Parser parser
private Player player
Constructor Detail |
---|
public Game()
Method Detail |
---|
private void createRooms()
public void play()
private void printWelcome()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |