Class HasSpentTotalMoneyCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.AbstractChatCondition
games.stendhal.server.entity.npc.condition.HasSpentTotalMoneyCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
-
Constructor Summary
ConstructorsConstructorDescriptionHasSpentTotalMoneyCondition(int required) Creates a condition that checks if player has spent a total amount of money with any NPCs.HasSpentTotalMoneyCondition(int required, String... npcs) Creates a condition that checks if player has spent a total amount of money with certain NPCs.HasSpentTotalMoneyCondition(int required, List<String> npcs) Creates a condition that checks if player has spent a total amount of money with certain NPCs. -
Method Summary
Methods inherited from class games.stendhal.server.entity.npc.condition.AbstractChatCondition
getNextUniqueHashModifier
-
Constructor Details
-
HasSpentTotalMoneyCondition
public HasSpentTotalMoneyCondition(int required) Creates a condition that checks if player has spent a total amount of money with any NPCs.- Parameters:
required- The minimum total amount required.
-
HasSpentTotalMoneyCondition
Creates a condition that checks if player has spent a total amount of money with certain NPCs.- Parameters:
required- The minimum total amount required.npcs- NPC seller names.
-
HasSpentTotalMoneyCondition
Creates a condition that checks if player has spent a total amount of money with certain NPCs.- Parameters:
required- The minimum total amount required.npcs- NPC seller names.
-
-
Method Details
-
fire
Description copied from interface:PreTransitionConditioncan the transition be done?- Parameters:
player- player who caused the transitionsentence- text he/she saidentity- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-