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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureZone(StendhalRPZone zone, Map<String, String> attributes) Configure a zone.Retrieves objects used for archery range functions.booleanisPlayerInArea(Player player, String zoneid, Rectangle2D area) Checks if entity is within bounds of an area.voidonLoggedIn(Player player) Actions to take when player logs in.voidonLoggedOut(Player player) Actions to take when player logs out.
-
Constructor Details
-
ArcheryRange
public ArcheryRange()
-
-
Method Details
-
configureZone
Description copied from interface:ZoneConfiguratorConfigure a zone.- Specified by:
configureZonein 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:
trueif entity is within area.
-
onLoggedIn
Actions to take when player logs in.- Specified by:
onLoggedInin interfaceLoginListener- Parameters:
player- the player who has logged in
-
onLoggedOut
Actions to take when player logs out.- Specified by:
onLoggedOutin interfaceLogoutListener- Parameters:
player- The player having logged out.
-
getJunitObjects
Retrieves objects used for archery range functions.
-