Class IncreaseKarmaAction
java.lang.Object
games.stendhal.server.entity.npc.action.IncreaseKarmaAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=STATS,
label="Karma+")
public class IncreaseKarmaAction
extends Object
implements ChatAction
Increases the karma of the current player.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfire(Player player, Sentence sentence, EventRaiser raiser) does some action after a transition.inthashCode()static ChatActionincreaseKarma(double amount) toString()
-
Constructor Details
-
IncreaseKarmaAction
public IncreaseKarmaAction(double karmaDiff) Creates a new IncreaseKarmaAction.- Parameters:
karmaDiff- amount of karma to add
-
-
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
-
increaseKarma
-