Class ArcheryRange

java.lang.Object
games.stendhal.server.maps.nalwor.forest.ArcheryRange
All Implemented Interfaces:
ZoneConfigurator, LoginListener, LogoutListener

public class ArcheryRange extends Object implements ZoneConfigurator, LoginListener, LogoutListener
TODO: create JUnit test FIXME: (client) no sound for training targets when hit
  • Constructor Details

    • ArcheryRange

      public ArcheryRange()
  • Method Details

    • configureZone

      public void configureZone(StendhalRPZone zone, Map<String,​String> attributes)
      Description copied from interface: ZoneConfigurator
      Configure a zone.
      Specified by:
      configureZone in interface ZoneConfigurator
      Parameters:
      zone - The zone to be configured.
      attributes - Configuration attributes.
    • isPlayerInArea

      public boolean isPlayerInArea(Player player, String zoneid, Rectangle2D area)
      Checks if entity is within bounds of an area.
      Parameters:
      area - Area dimensions to check.
      Returns:
      true if entity is within area.
    • onLoggedIn

      public void onLoggedIn(Player player)
      Actions to take when player logs in.
      Specified by:
      onLoggedIn in interface LoginListener
      Parameters:
      player - the player who has logged in
    • onLoggedOut

      public void onLoggedOut(Player player)
      Actions to take when player logs out.
      Specified by:
      onLoggedOut in interface LogoutListener
      Parameters:
      player - The player having logged out.
    • getJunitObjects

      public List<Object> getJunitObjects()
      Retrieves objects used for archery range functions.