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
ConstructorDescriptionQuestSmallerThanCondition(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:PreTransitionCondition
can the transition be done?- Specified by:
fire
in interfaceChatCondition
- Specified by:
fire
in 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
-