|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGame
public class Game
This class contains the main() method used to run the game. For full details of the Game class, including source code, see HW J8.
Method Summary | |
---|---|
static Room |
getCurrentRoom()
This method is used (by the main(String[]) to get the
current room that the player is in. |
static void |
main(java.lang.String[] args)
The main() method used to run the game. |
static void |
setCurrentRoom(Room newRoom)
This method is used (by the main(String[]) to set the
current room that the player is in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Room getCurrentRoom()
main(String[])
to get the
current room that the player is in.
public static void setCurrentRoom(Room newRoom)
main(String[])
to set the
current room that the player is in.
newRoom
- The current room the player is now in.public static void main(java.lang.String[] args)
args
- Any command line arguments (which we are not using
in this game).
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |