Class AgeGreaterThanCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.AgeGreaterThanCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=STATS,
label="Age?")
public class AgeGreaterThanCondition
extends Object
implements ChatCondition
Is the player's age greater than the specified age?
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AgeGreaterThanCondition
public AgeGreaterThanCondition(int age)Creates a new AgeGreaterThanCondition.- Parameters:
age
- age
-
-
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 saidentity
- the NPC doing the transition- Returns:
- true if players age greater than age in condition
-
toString
-
hashCode
public int hashCode() -
equals
-