|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.kernel.maps.MapObject wyvern.kernel.maps.Area
Manages information shared by collections of maps. If you put an "area.arch" file in a map directory, then all the maps automatically inherit the properties of that Area archetype. Only a certain set of properties are currently supported for an Area:
Field Summary | |
static Area |
MASTER_AREA
|
Fields inherited from class wyvern.kernel.maps.MapObject |
IN_MAP_EDITOR, listenerList_ |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Constructor Summary | |
Area()
|
Method Summary | |
static Area |
getArea(GameMap map)
Returns the Area object for a given map. |
static Area |
getArea(Resource r)
Returns the Area object for a given directory. |
static Area |
getArea(java.lang.String path)
Returns the Area object for a given directory. |
Music |
getMusic()
Returns the default background music for this Area. |
Resource |
getPath()
Returns a Resource describing the path to this Area archetype. |
java.lang.String |
getRestartCommand(Player player)
Returns the path to the map the player should restart in if they die (or cast word of recall). |
Location |
getRestartLoc()
Returns the restart-location for this map: where players teleport to when they die in this map. |
Location |
getRestartLoc(GameMap map)
Returns the restart location for the specified map. |
void |
setPath(Resource path)
Sets the path. |
java.lang.String |
toString()
Returns debugging string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Area MASTER_AREA
Constructor Detail |
public Area()
Method Detail |
public Resource getPath()
public void setPath(Resource path)
public static Area getArea(java.lang.String path)
path
- the relative path to the directory.
Can be the directory name ("wiz/rhialto/maps/misc" )
or any file in the directory ( "wiz/rhialto/maps/misc/foo.map").
public static Area getArea(GameMap map)
public static Area getArea(Resource r)
r
- a Resource pointing to the "area.arch" file for
this area. It's usually easier to call getArea(java.lang.String)
if you know the directory
public Music getMusic()
public Location getRestartLoc(GameMap map)
map
- the map of interest
public Location getRestartLoc()
public java.lang.String getRestartCommand(Player player)
player
- the player to use it on
public java.lang.String toString()
toString
in class MapObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |