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
-
Method Summary
-
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: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
-