Class QuestNotInStateCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.QuestNotInStateCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=IGNORE,
label="State?")
public class QuestNotInStateCondition
extends Object
implements ChatCondition
Is this quest not in this state?
-
Constructor Summary
ConstructorDescriptionQuestNotInStateCondition(String questname, int index, String state)
Creates a new QuestNotInStateCondition.QuestNotInStateCondition(String questname, String state)
Creates a new QuestNotInStateCondition. -
Method Summary
-
Constructor Details
-
QuestNotInStateCondition
Creates a new QuestNotInStateCondition.- Parameters:
questname
- name of quest-slotstate
- state
-
QuestNotInStateCondition
Creates a new QuestNotInStateCondition.- Parameters:
questname
- name of quest-slotindex
- index of sub statestate
- 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
-