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:
SayTimeRemainingUntilTimeReachedAction
,SetQuestToFutureRandomTimeStampAction
-
Constructor Summary
ConstructorDescriptionTimeReachedCondition(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: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 the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-