Class SayTimeRemainingUntilTimeReachedAction
java.lang.Object
games.stendhal.server.entity.npc.action.SayTimeRemainingUntilTimeReachedAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=TIME,
label="\"...\"")
public class SayTimeRemainingUntilTimeReachedAction
extends Object
implements ChatAction
Tells the time remaining from current system time to a timestamp stored in a quest slot
- Author:
- omero
- See Also:
TimeReachedCondition
,SetQuestToFutureRandomTimeStampAction
-
Constructor Summary
ConstructorDescriptionSayTimeRemainingUntilTimeReachedAction(String questname, int index, String message)
Creates a new SayTimeRemainingUntilTimeReachedAction.SayTimeRemainingUntilTimeReachedAction(String questname, String message)
Creates a new SayTimeRemainingUntilTimeReachedAction. -
Method Summary
-
Constructor Details
-
SayTimeRemainingUntilTimeReachedAction
Creates a new SayTimeRemainingUntilTimeReachedAction.- Parameters:
questname
- quest slot to checkmessage
- what to say before stating the approximated remaining time
-
SayTimeRemainingUntilTimeReachedAction
@Dev public SayTimeRemainingUntilTimeReachedAction(String questname, @Dev(defaultValue="1") int index, String message)Creates a new SayTimeRemainingUntilTimeReachedAction.- Parameters:
questname
- quest slot to checkindex
- index of sub statemessage
- what to say before saying the approximated remaining time
-
-
Method Details
-
fire
Description copied from interface:PostTransitionAction
does some action after a transition.- Specified by:
fire
in interfaceChatAction
- Specified by:
fire
in interfacePostTransitionAction
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidraiser
- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-