Class SetQuestToYearAction
java.lang.Object
games.stendhal.server.entity.npc.action.SetQuestToYearAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=TIME,
label="State")
public class SetQuestToYearAction
extends Object
implements ChatAction
Sets the state of a quest to the current year.
-
Constructor Summary
ConstructorDescriptionSetQuestToYearAction(String questname)
Creates a new SetQuestToYearAction.SetQuestToYearAction(String questname, int index)
Creates a new SetQuestToYearAction. -
Method Summary
-
Constructor Details
-
SetQuestToYearAction
Creates a new SetQuestToYearAction.- Parameters:
questname
- name of quest-slot to change
-
SetQuestToYearAction
Creates a new SetQuestToYearAction.- Parameters:
questname
- name of quest-slot to changeindex
- index of sub state
-
-
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
-