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