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
Constructors -
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: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
-