Class PlayerManaGreaterThanCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerManaGreaterThanCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=STATS,
label="Mana?")
public class PlayerManaGreaterThanCondition
extends Object
implements ChatCondition
Condition to check if a player's mana is greater than a number
- Author:
- madmetzger
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PlayerManaGreaterThanCondition
public PlayerManaGreaterThanCondition(int mana)ManaGreaterThanCondition- Parameters:
mana
- amount of mana required
-
-
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
-
toString
-
hashCode
public int hashCode() -
equals
-