Class QuestSmallerThanCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.QuestSmallerThanCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
@Dev(category=IGNORE,
label="State?")
public class QuestSmallerThanCondition
extends Object
implements ChatCondition
Is this quest state smaller than the value in this condition?
-
Constructor Summary
ConstructorsConstructorDescriptionQuestSmallerThanCondition(String questname, int state) Creates a new QuestSmallerThanCondition.QuestSmallerThanCondition(String questname, int index, int state) Creates a new QuestSmallerThanCondition.QuestSmallerThanCondition(String questname, int index, int state, boolean acceptEmpty) Creates a new QuestSmallerThanCondition. -
Method Summary
-
Constructor Details
-
QuestSmallerThanCondition
Creates a new QuestSmallerThanCondition.- Parameters:
questname- name of quest-slotstate- constant value to compare to
-
QuestSmallerThanCondition
Creates a new QuestSmallerThanCondition.- Parameters:
questname- name of quest-slotindex- index of sub statestate- constant value to compare to
-
QuestSmallerThanCondition
Creates a new QuestSmallerThanCondition.- Parameters:
questname- name of quest-slotindex- index of sub statestate- constant value to compare toacceptEmpty- accept an empty quest state
-
-
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
-