Class DeathmatchInfo
java.lang.Object
games.stendhal.server.maps.deathmatch.DeathmatchInfo
Stores information about the place of the deathmatch.
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionDeathmatchInfo(Area arena, StendhalRPZone zone, Spot entrance)
Creates a new DeathmatchInfo. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAidedKill(String helper)
Increments number of aided kills for a player that helped during deathmatch.int
getAidedKills(String helper)
Retrieves number of creatures a player helped kill during deathmatch.getArena()
Gets the arena.getZone()
Gets the zone.boolean
-
Constructor Details
-
DeathmatchInfo
Creates a new DeathmatchInfo.- Parameters:
arena
- combat areazone
- zoneentrance
- the spot where the players stands before entering DM.
-
-
Method Details
-
getArena
Gets the arena.- Returns:
- combat area
-
getZone
Gets the zone.- Returns:
- zone
-
isInArena
-
addAidedKill
Increments number of aided kills for a player that helped during deathmatch.- Parameters:
helper
- Name of player that helped with kill.
-
getAidedKills
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.
-