Class AreaIsFullCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.AreaIsFullCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=LOCATION,
label="Area full?")
public class AreaIsFullCondition
extends Object
implements ChatCondition
Checks if there is room for a player within a restricted area.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AreaIsFullCondition
-
-
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
-