Class DeathmatchInfo

java.lang.Object
games.stendhal.server.maps.deathmatch.DeathmatchInfo

public class DeathmatchInfo extends Object
Stores information about the place of the deathmatch.
Author:
hendrik
  • Constructor Details

    • DeathmatchInfo

      public DeathmatchInfo(Area arena, StendhalRPZone zone, Spot entrance)
      Creates a new DeathmatchInfo.
      Parameters:
      arena - combat area
      zone - zone
      entrance - the spot where the players stands before entering DM.
  • Method Details

    • getArena

      public Area getArena()
      Gets the arena.
      Returns:
      combat area
    • getZone

      public StendhalRPZone getZone()
      Gets the zone.
      Returns:
      zone
    • isInArena

      public boolean isInArena(Player player)
    • addAidedKill

      public void addAidedKill(String helper)
      Increments number of aided kills for a player that helped during deathmatch.
      Parameters:
      helper - Name of player that helped with kill.
    • getAidedKills

      public int getAidedKills(String helper)
      Retrieves number of creatures a player helped kill during deathmatch.
      Parameters:
      helper - Name of player to check for aided kills.
      Returns:
      Number of creatures player helped kill.