Package games.stendhal.client
Class StaticGameLayers
java.lang.Object
games.stendhal.client.StaticGameLayers
This class stores the layers that make the floor and the buildings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the area name.double
Get the danger level of the current zone.double
Get the user representable name of the current zone.double
getWidth()
void
Set the current zone.
-
Constructor Details
-
StaticGameLayers
public StaticGameLayers()
-
-
Method Details
-
getDangerLevel
public double getDangerLevel()Get the danger level of the current zone.- Returns:
- danger level
-
getWidth
public double getWidth()- Returns:
- width in world units.
-
getHeight
public double getHeight()- Returns:
- the height in world units
-
setZone
Set the current zone.- Parameters:
zone
-
-
getAreaName
Get the area name.- Returns:
- area name
-
getReadableName
Get the user representable name of the current zone.- Returns:
- user readable zone name
-
getCollisionDetection
- Returns:
- the CollisionDetection Layer for the current map
-
getProtectionDetection
- Returns:
- the ProtectionDetection Layer for the current map
-