Class ChangePlayerOutfitAction
java.lang.Object
games.stendhal.server.entity.npc.action.ChangePlayerOutfitAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=OUTFIT,
label="Outfit")
public class ChangePlayerOutfitAction
extends Object
implements ChatAction
Modify parts or all of a players outfit.
- Author:
- jackrabbit
-
Constructor Summary
ConstructorsConstructorDescriptionChangePlayerOutfitAction(Outfit outfit, boolean addOutfit, boolean temporaryOutfit) Creates a new ChangePlayerOutfitAction -
Method Summary
-
Constructor Details
-
ChangePlayerOutfitAction
Creates a new ChangePlayerOutfitAction- Parameters:
outfit- the (part of) the outfit to be changed (i.e. removed or added)addOutfit- addOutfit = true: Add (part of) the outfit to the players current outfit addOutfit = false: Remove (part of) the outfit the player currently wearstemporaryOutfit- is this a temporary outfit or a permanent change?
-
-
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 saidnpc- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-