Class IncrementQuestAction
java.lang.Object
games.stendhal.server.entity.npc.action.IncrementQuestAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=QUEST_SLOT,
label="State")
public class IncrementQuestAction
extends Object
implements ChatAction
Increments by some value the current state or substate of a quest.
-
Constructor Summary
ConstructorDescriptionIncrementQuestAction(String questname, int increment)
Creates a new IncrementQuestAction.IncrementQuestAction(String questname, int index, int increment)
Creates a new IncrementQuestAction. -
Method Summary
-
Constructor Details
-
IncrementQuestAction
Creates a new IncrementQuestAction.- Parameters:
questname
- name of quest-slot to changeincrement
- the increment to the old value
-
IncrementQuestAction
@Dev public IncrementQuestAction(String questname, @Dev(defaultValue="1") int index, int increment)Creates a new IncrementQuestAction.- Parameters:
questname
- name of quest-slot to changeindex
- index of sub stateincrement
- increment to the old 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
-