Class PlayerVisitedZonesCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerVisitedZonesCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=LOCATION,
label="Zone?")
public class PlayerVisitedZonesCondition
extends Object
implements ChatCondition
Checks if player has visited a list of certain zones
- Author:
- madmetzger
-
Constructor Summary
ConstructorDescriptionPlayerVisitedZonesCondition(String... zones)
Creates a new PlayerVisitedZonesCondition -
Method Summary
-
Constructor Details
-
PlayerVisitedZonesCondition
Creates a new PlayerVisitedZonesCondition- Parameters:
zones
- the zone names
-
-
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
-
hashCode
public int hashCode() -
equals
-
toString
-