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
-
Method Summary
-
Constructor Details
-
PlayerNextToCondition
public PlayerNextToCondition() -
PlayerNextToCondition
-
-
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
-