Class TriggerMatchesQuestSlotCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.TriggerMatchesQuestSlotCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
@Dev(category=CHAT,
label="\"questtext\"?")
public class TriggerMatchesQuestSlotCondition
extends Object
implements ChatCondition
was the content of a quest slot said?
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerMatchesQuestSlotCondition(String questname, int index) creates a TriggerMatchesQuestSlotCondition -
Method Summary
-
Constructor Details
-
TriggerMatchesQuestSlotCondition
creates a TriggerMatchesQuestSlotCondition- Parameters:
questname- name of questindex- index of questslot
-
-
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
-