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
ConstructorDescriptionSetQuestAndModifyKarmaAction(String questname, String state, double karmaDiff)
Creates a new SetQuestAction. -
Method Summary
-
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)
-
-
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
-