|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxml.LocationLoader
public class LocationLoader
This class represents a loaction loader that can be used to load game location specifications from xml files
Constructor Summary | |
---|---|
LocationLoader(com.golden.gamedev.engine.BaseLoader bsLoader,
com.golden.gamedev.engine.BaseInput bsInput,
com.golden.gamedev.engine.BaseAudio bsSound,
com.golden.gamedev.engine.BaseAudio bsMusic)
|
Method Summary | |
---|---|
java.util.ArrayList<GameLocation> |
getLocationFromXML(java.util.List<java.io.File> xmlFiles)
Returns the list of game locations specified by the xml files from the file names array |
java.util.ArrayList<GameLocation> |
getLocationsWithAddedExits(java.util.ArrayList<GameLocation> locations)
Method to add the locatios exits to the list of game locations. |
java.util.ArrayList<GameLocation> |
getLocationsWithAddedPlayer(java.util.ArrayList<GameLocation> locations)
Method to add the player to the list of game locations. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationLoader(com.golden.gamedev.engine.BaseLoader bsLoader, com.golden.gamedev.engine.BaseInput bsInput, com.golden.gamedev.engine.BaseAudio bsSound, com.golden.gamedev.engine.BaseAudio bsMusic)
Method Detail |
---|
public java.util.ArrayList<GameLocation> getLocationFromXML(java.util.List<java.io.File> xmlFiles)
xmlFiles
- xml files that specify the game locations
public java.util.ArrayList<GameLocation> getLocationsWithAddedExits(java.util.ArrayList<GameLocation> locations)
locations
- list of existing game locationspublic java.util.ArrayList<GameLocation> getLocationsWithAddedPlayer(java.util.ArrayList<GameLocation> locations)
locations
- list of existing game locations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |