Class LevelGreaterThanCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.LevelGreaterThanCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
@Dev(category=STATS,
label="Level?")
public class LevelGreaterThanCondition
extends Object
implements ChatCondition
Is the player's level greater than the specified one?
-
Constructor Summary
ConstructorsConstructorDescriptionLevelGreaterThanCondition(int level) Creates a new LevelGreaterThanCondition. -
Method Summary
-
Constructor Details
-
LevelGreaterThanCondition
public LevelGreaterThanCondition(int level) Creates a new LevelGreaterThanCondition.- Parameters:
level- level
-
-
Method Details
-
fire
Description copied from interface:PreTransitionConditioncan the transition be done?- Specified by:
firein interfaceChatCondition- Specified by:
firein interfacePreTransitionCondition- Parameters:
player- player who caused the transitionsentence- text he/she saidentity- the NPC doing the transition- Returns:
- true if players level greater then conditions Level
-
toString
-
hashCode
public int hashCode() -
equals
-