|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--MapLoader
Class to construct the Grid as specified in a mml file.
Game,
Grid| Field Summary | |
protected boolean |
fin
true iff finished Constructing the Grid |
protected Grid |
g
The Grid constructing |
| Constructor Summary | |
MapLoader(java.io.BufferedReader br)
Construct a new MapLoader using the BufferedReader specified. |
|
| Method Summary | |
MapObject |
getDefault()
Gets the deafult MapObject for the GridConstructed |
Grid |
getGrid()
Get the Grid Constructed |
protected boolean |
isChar(int c)
Returns true iff c is between A and Z case insensitive |
protected void |
processBlocker(java.io.BufferedReader br)
Handle the Blocker |
protected void |
processBuilding(java.io.BufferedReader br)
Handle the Building |
protected Item |
processItemForVector(java.io.BufferedReader br)
Handle the Item |
protected void |
processItemVector(java.io.BufferedReader br,
People p)
Handle the Item Vector |
protected Monster |
processMonster(java.io.BufferedReader br)
Handle the Monster |
protected void |
processMonstersAllowed(java.io.BufferedReader br)
Handles the Monsters Allowed |
protected void |
processMonsterVector(java.io.BufferedReader br,
People p)
Handle the Monster Vector |
protected void |
processPerson(java.io.BufferedReader br,
boolean person)
Handle the Person |
protected void |
processPlayer(java.io.BufferedReader br)
Handle the Player |
protected void |
processRedirect(java.io.BufferedReader br)
Handle the Redirect |
boolean |
setFile(java.io.BufferedReader br)
Sets the BufferedReader used to process the file, and begins processing. |
protected void |
startReading()
Starts the processing of the file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Grid g
protected boolean fin
| Constructor Detail |
public MapLoader(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException| Method Detail |
public boolean setFile(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOExceptionprotected boolean isChar(int c)
public Grid getGrid()
Gridpublic MapObject getDefault()
protected void startReading()
throws java.io.IOException,
InvalidFileFormatException
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected void processMonstersAllowed(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to use
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected void processPlayer(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to use
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected void processPerson(java.io.BufferedReader br,
boolean person)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to useperson - pass true if a Person false if a Trainer
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected void processMonsterVector(java.io.BufferedReader br,
People p)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to usep - the People to add the Monsters to
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected Monster processMonster(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to use
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected void processItemVector(java.io.BufferedReader br,
People p)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to usep - the People to add the Item to
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected Item processItemForVector(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to use
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected void processBlocker(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to use
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected void processBuilding(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to use
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
protected void processRedirect(java.io.BufferedReader br)
throws java.io.IOException,
InvalidFileFormatException
br - the BufferedReader to use
InvalidFileFormatException - iff the file is not properly formatted
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||