Class ArcheryRange
java.lang.Object
games.stendhal.server.maps.nalwor.forest.ArcheryRange
- All Implemented Interfaces:
ZoneConfigurator
,LoginListener
,LogoutListener
TODO: create JUnit test
FIXME: (client) no sound for training targets when hit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureZone(StendhalRPZone zone, Map<String,String> attributes)
Configure a zone.Retrieves objects used for archery range functions.boolean
isPlayerInArea(Player player, String zoneid, Rectangle2D area)
Checks if entity is within bounds of an area.void
onLoggedIn(Player player)
Actions to take when player logs in.void
onLoggedOut(Player player)
Actions to take when player logs out.
-
Constructor Details
-
ArcheryRange
public ArcheryRange()
-
-
Method Details
-
configureZone
Description copied from interface:ZoneConfigurator
Configure a zone.- Specified by:
configureZone
in interfaceZoneConfigurator
- Parameters:
zone
- The zone to be configured.attributes
- Configuration attributes.
-
isPlayerInArea
Checks if entity is within bounds of an area.- Parameters:
area
- Area dimensions to check.- Returns:
true
if entity is within area.
-
onLoggedIn
Actions to take when player logs in.- Specified by:
onLoggedIn
in interfaceLoginListener
- Parameters:
player
- the player who has logged in
-
onLoggedOut
Actions to take when player logs out.- Specified by:
onLoggedOut
in interfaceLogoutListener
- Parameters:
player
- The player having logged out.
-
getJunitObjects
Retrieves objects used for archery range functions.
-