Class SetQuestAction
java.lang.Object
games.stendhal.server.entity.npc.action.SetQuestAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=QUEST_SLOT,
label="State")
public class SetQuestAction
extends Object
implements ChatAction
Sets the current state of a quest.
-
Constructor Summary
ConstructorDescriptionSetQuestAction(String questname, int index, String state)
Creates a new SetQuestAction.SetQuestAction(String questname, String state)
Creates a new SetQuestAction. -
Method Summary
-
Constructor Details
-
SetQuestAction
Creates a new SetQuestAction.- Parameters:
questname
- name of quest-slot to changestate
- new value
-
SetQuestAction
Creates a new SetQuestAction.- Parameters:
questname
- name of quest-slot to changeindex
- index of sub statestate
- new value
-
-
Method Details
-
fire
Description copied from interface:PostTransitionAction
does some action after a transition.- Specified by:
fire
in interfaceChatAction
- Specified by:
fire
in interfacePostTransitionAction
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidraiser
- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-