Class IncreaseXPAction
java.lang.Object
games.stendhal.server.entity.npc.action.IncreaseXPAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=STATS,
label="XP+")
public class IncreaseXPAction
extends Object
implements ChatAction
Increases the xp of the current player.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IncreaseXPAction
public IncreaseXPAction(int xpDiff)Creates a new IncreaseKarmaAction.- Parameters:
xpDiff
- amount of xp 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
-