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