Class DeathmatchInfo
java.lang.Object
games.stendhal.server.maps.deathmatch.DeathmatchInfo
Stores information about the place of the deathmatch.
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionDeathmatchInfo(Area arena, StendhalRPZone zone, Spot entrance) Creates a new DeathmatchInfo. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAidedKill(String helper) Increments number of aided kills for a player that helped during deathmatch.intgetAidedKills(String helper) Retrieves number of creatures a player helped kill during deathmatch.getArena()Gets the arena.Retrieves the `DeathmatchEngine` instance.getZone()Gets the zone.booleanbooleanwasAided()Checks if player was helped at all by another.
-
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
-
getEngine
Retrieves the `DeathmatchEngine` instance. -
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.
-
wasAided
public boolean wasAided()Checks if player was helped at all by another.
-