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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfire(Player player, Sentence sentence, EventRaiser raiser) does some action after a transition.inthashCode()static ChatActionincreaseXP(int xpDiff) toString()
-
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: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
-
increaseXP
-