Class SetQuestAndModifyKarmaAction
java.lang.Object
games.stendhal.server.entity.npc.action.SetQuestAndModifyKarmaAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=IGNORE,
label="State, Karma")
public class SetQuestAndModifyKarmaAction
extends Object
implements ChatAction
Sets the current state of a quest and modifies the karma of the player.
-
Constructor Summary
ConstructorsConstructorDescriptionSetQuestAndModifyKarmaAction(String questname, int index, String state, double karmaDiff) Creates a new SetQuestAction.SetQuestAndModifyKarmaAction(String questname, String state, double karmaDiff) Creates a new SetQuestAction. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfire(Player player, Sentence sentence, EventRaiser raiser) does some action after a transition.inthashCode()static ChatActionsetQuestAndModifyKarma(String questName, String status, double karmaDiff) toString()
-
Constructor Details
-
SetQuestAndModifyKarmaAction
Creates a new SetQuestAction.- Parameters:
questname- name of quest-slot to changestate- new valuekarmaDiff- amount of karma to add (negative numbers allowed)
-
SetQuestAndModifyKarmaAction
Creates a new SetQuestAction.- Parameters:
questname- Name of quest-slot to change.index- Quest-slot index to change.state- New value.karmaDiff- Amount of karma to add (negative numbers allowed).
-
-
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
-
setQuestAndModifyKarma
-