Class PlayerNextToCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerNextToCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
Checks if the player is next to an entity. If an entity name is not supplied
it will check if the player is next to the NPC checking the condition.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PlayerNextToCondition
public PlayerNextToCondition() -
PlayerNextToCondition
-
-
Method Details
-
fire
Description copied from interface:PreTransitionConditioncan the transition be done?- Specified by:
firein interfaceChatCondition- Specified by:
firein 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
-