zork2Class
Class DungeonFileLoading

java.lang.Object
  |
  +--zork2Class.DungeonFileLoading

public class DungeonFileLoading
extends java.lang.Object

This method permit to load a Zork2 saving which are writen by the programm : DungeonFileSaving.

Since:
j2sdk 1.4
Version:
8 juin 2003
Author:
BOYERE Fabien

Constructor Summary
DungeonFileLoading(java.lang.String pathFile)
           
 
Method Summary
 Room getFinalRoom()
          Returns the finalRoom, this is the last room of the game.
 Room getFirstRoom()
          Returns the firstRoom, this is the first room of the game.
 java.util.Hashtable getListRooms()
          Returns the listRooms.
 java.lang.String getNameDungeon()
          Returns the firstRoom, this is the first room of the game.
 Player getPlayer()
          method use to get the saved player
 java.util.Hashtable getTableItems()
          Returns the tableItems.
 boolean readDungeonFileSave()
          method :boolean DungeonFileLoading::readDungeonFileSave
read a dungeon file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DungeonFileLoading

public DungeonFileLoading(java.lang.String pathFile)
Parameters:
pathFile - this is the path of the saving.
Method Detail

readDungeonFileSave

public boolean readDungeonFileSave()
method :boolean DungeonFileLoading::readDungeonFileSave
read a dungeon file

Returns:
true if the reading is ok

getListRooms

public java.util.Hashtable getListRooms()
Returns the listRooms. The listRoom is the hashtable which contain all the rooms

Returns:
Hashtable

getTableItems

public java.util.Hashtable getTableItems()
Returns the tableItems. This is the hashtable which contains all items.

Returns:
Hashtable

getFinalRoom

public Room getFinalRoom()
Returns the finalRoom, this is the last room of the game.

Returns:
Room

getFirstRoom

public Room getFirstRoom()
Returns the firstRoom, this is the first room of the game.

Returns:
Room

getPlayer

public Player getPlayer()
method use to get the saved player

Returns:
player the saved player

getNameDungeon

public java.lang.String getNameDungeon()
Returns the firstRoom, this is the first room of the game.

Returns:
Room