Class Game

java.lang.Object
  extended by Game

public class Game
extends java.lang.Object

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

getCurrentRoom

public static Room getCurrentRoom()
This method is used (by the main(String[]) to get the current room that the player is in.

Returns:
The current room the player is in.

setCurrentRoom

public static void setCurrentRoom(Room newRoom)
This method is used (by the main(String[]) to set the current room that the player is in.

Parameters:
newRoom - The current room the player is now in.

main

public static void main(java.lang.String[] args)
The main() method used to run the game.

Parameters:
args - Any command line arguments (which we are not using in this game).