Class TimeReachedCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.TimeReachedCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
@Dev(category=TIME,
label="Time?")
public class TimeReachedCondition
extends Object
implements ChatCondition
Check if current system time reached a timestamp stored in a quest slot.
If the quest slot isn't in the expected format, returns true
- Author:
- omero
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeReachedCondition(String questname) Creates a new TimeReachedCondition for checking wether or not a timestamp in quest slot has been reachedTimeReachedCondition(String questname, int index) Creates a new TimeReachedCondition for checking wether or not a timestamp in quest slot has been reached -
Method Summary
-
Constructor Details
-
TimeReachedCondition
Creates a new TimeReachedCondition for checking wether or not a timestamp in quest slot has been reached- Parameters:
questname- name of the quest slot to check
-
TimeReachedCondition
Creates a new TimeReachedCondition for checking wether or not a timestamp in quest slot has been reached- Parameters:
questname- name of quest slot to checkindex- index of sub state
-
-
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 the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-