Class HasEarnedTotalMoneyCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.AbstractChatCondition
games.stendhal.server.entity.npc.condition.HasEarnedTotalMoneyCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
-
Constructor Summary
ConstructorsConstructorDescriptionHasEarnedTotalMoneyCondition(int required) Creates a condition that checks if player has earned a total amount of money from any NPCs.HasEarnedTotalMoneyCondition(int required, String... npcs) Creates a condition that checks if player has earned a total amount of money from certain NPCs.HasEarnedTotalMoneyCondition(int required, List<String> npcs) Creates a condition that checks if player has earned a total amount of money from certain NPCs. -
Method Summary
Methods inherited from class games.stendhal.server.entity.npc.condition.AbstractChatCondition
getNextUniqueHashModifier
-
Constructor Details
-
HasEarnedTotalMoneyCondition
public HasEarnedTotalMoneyCondition(int required) Creates a condition that checks if player has earned a total amount of money from any NPCs.- Parameters:
required- The minimum total amount required.
-
HasEarnedTotalMoneyCondition
Creates a condition that checks if player has earned a total amount of money from certain NPCs.- Parameters:
required- The minimum total amount required.npcs- NPC buyer names.
-
HasEarnedTotalMoneyCondition
Creates a condition that checks if player has earned a total amount of money from certain NPCs.- Parameters:
required- The minimum total amount required.npcs- NPC buyer 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
-