Class TriggerInListCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.TriggerInListCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
@Dev(category=CHAT,
label="\"\"?")
public class TriggerInListCondition
extends Object
implements ChatCondition
Was one of theses trigger phrases said? (Use with a ""-trigger in npc.add)
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerInListCondition(String... trigger) Creates a new TriggerInListCondition.TriggerInListCondition(List<String> trigger) Creates a new TriggerInListCondition. -
Method Summary
-
Constructor Details
-
TriggerInListCondition
Creates a new TriggerInListCondition.- Parameters:
trigger- list of trigger
-
TriggerInListCondition
Creates a new TriggerInListCondition.- Parameters:
trigger- list of trigger
-
-
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 saidentity- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-