Class PlayerVisitedZonesInRegionCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerVisitedZonesInRegionCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=IGNORE,
label="Zone?")
public class PlayerVisitedZonesInRegionCondition
extends Object
implements ChatCondition
Checks if player has visited certain zones in a region
- Author:
- madmetzger
-
Constructor Summary
ConstructorDescriptionPlayerVisitedZonesInRegionCondition(String region, Boolean exterior, Boolean aboveGround)
Creates a new PlayerVisitedZonesConditionPlayerVisitedZonesInRegionCondition(String region, Boolean exterior, Boolean aboveGround, Boolean accessible)
Creates a new PlayerVisitedZonesCondition -
Method Summary
-
Constructor Details
-
PlayerVisitedZonesInRegionCondition
public PlayerVisitedZonesInRegionCondition(String region, Boolean exterior, Boolean aboveGround, Boolean accessible)Creates a new PlayerVisitedZonesCondition- Parameters:
region
- the name of the region to considerexterior
- outside zones? true, false, nullaboveGround
- above ground level? true, false, nullaccessible
- is the zone reachable by players? true, false, null
-
PlayerVisitedZonesInRegionCondition
Creates a new PlayerVisitedZonesCondition- Parameters:
region
- the name of the region to considerexterior
- outside zones? true, false, nullaboveGround
- above ground level? true, false, null
-
-
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
-