Class MinTotalCreaturesKilledCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.MinTotalCreaturesKilledCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=KILLS,
label="Kills?")
public class MinTotalCreaturesKilledCondition
extends Object
implements ChatCondition
check whether a player has killed at least the specified number of creatures of any kind
- Author:
- filipe
-
Constructor Summary
ConstructorDescriptionDefault constructor (Defaults to at least 100 total kills)MinTotalCreaturesKilledCondition(int total)
Constructor -
Method Summary
-
Constructor Details
-
MinTotalCreaturesKilledCondition
public MinTotalCreaturesKilledCondition()Default constructor (Defaults to at least 100 total kills) -
MinTotalCreaturesKilledCondition
Constructor- Parameters:
total
- The target number of kills required
-
-
Method Details
-
fire
Does the checking for number of creatures killed- Specified by:
fire
in interfaceChatCondition
- Specified by:
fire
in interfacePreTransitionCondition
- Parameters:
player
- The player to check the kills forsentence
- The sentence the player typednpc
- The NPC the player is speaking to- Returns:
- True if the player has killed the correct number of creatures or more, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-