Class KilledCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.KilledCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
@Dev(category=KILLS,
label="Kills?")
public class KilledCondition
extends Object
implements ChatCondition
Has the player killed at least one of each specified creature, with or without the help of any other player.
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionKilledCondition(String... toKill) creates a new KilledCondition.KilledCondition(List<String> toKill) creates a new KilledCondition. -
Method Summary
-
Constructor Details
-
KilledCondition
creates a new KilledCondition.- Parameters:
toKill- list of creatures for which the player need to have participated in killing at least one each
-
KilledCondition
creates a new KilledCondition.- Parameters:
toKill- creatures which should be killed by the player
-
-
Method Details
-
fire
Description copied from interface:PreTransitionConditioncan the transition be done?- Specified by:
firein interfaceChatCondition- Specified by:
firein interfacePreTransitionCondition- Parameters:
player- player who caused the transitionsentence- text he/she saidnpc- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-
playerHasKilled
-