Class AvailabilityCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.AvailabilityCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
Checks whether something is available.
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionAvailabilityCondition(AvailabilityChecker checker)
creates an AvailabilityCondition -
Method Summary
-
Constructor Details
-
AvailabilityCondition
creates an AvailabilityCondition- Parameters:
checker
- AvailabilityChecker
-
-
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
-