Class DecreaseKarmaAction
java.lang.Object
games.stendhal.server.entity.npc.action.DecreaseKarmaAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=STATS,
label="Karma-")
public class DecreaseKarmaAction
extends Object
implements ChatAction
Decreases the karma of the current player.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DecreaseKarmaAction
public DecreaseKarmaAction(double karmaDiff)Creates a new DecreaseKarmaAction.- Parameters:
karmaDiff
- amount of karma to subtract
-
-
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
-