Class PlayerIsWearingOutfitCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerIsWearingOutfitCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=OUTFIT,
label="Outfit?")
public class PlayerIsWearingOutfitCondition
extends Object
implements ChatCondition
Does the player wear (at least a part of) the specified outfit?
- Author:
- jackrabbit
-
Constructor Summary
ConstructorDescriptionPlayerIsWearingOutfitCondition(Outfit outfit)
Creates a new PlayerIsWearingOutfitCondition -
Method Summary
-
Constructor Details
-
PlayerIsWearingOutfitCondition
Creates a new PlayerIsWearingOutfitCondition- Parameters:
outfit
- an outfit to be checked if it is worn by the player
-
-
Method Details
-
fire
Description copied from interface:PreTransitionCondition
can the transition be done?- Specified by:
fire
in interfaceChatCondition
- Specified by:
fire
in interfacePreTransitionCondition
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidnpc
- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-