Class SayTimeRemainingAction
java.lang.Object
games.stendhal.server.entity.npc.action.SayTimeRemainingAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=TIME,
label="\"...\"")
public class SayTimeRemainingAction
extends Object
implements ChatAction
Tells the time remaining between the timestamp on quest slot + delay time, and now.
- See Also:
TimePassedCondition
,*
-
Constructor Summary
ConstructorDescriptionSayTimeRemainingAction(String questname, int index, int delay, String message)
Creates a new SayTimeRemainingAction.SayTimeRemainingAction(String questname, int index, int delay, String message, String secondMessage)
SayTimeRemainingAction(String questname, int delay, String message)
Creates a new SayTimeRemainingAction.SayTimeRemainingAction(String questname, int delay, String message, String secondMessage)
-
Method Summary
-
Constructor Details
-
SayTimeRemainingAction
@Dev public SayTimeRemainingAction(String questname, @Dev(defaultValue="1") int index, int delay, String message)Creates a new SayTimeRemainingAction.- Parameters:
questname
- name of quest-slot to checkindex
- index of sub statedelay
- delay in minutesmessage
- message to come before statement of remaining time
-
SayTimeRemainingAction
Creates a new SayTimeRemainingAction.- Parameters:
questname
- name of quest-slot to checkdelay
- delay in minutesmessage
- message to come before statement of remaining time
-
SayTimeRemainingAction
@Dev public SayTimeRemainingAction(String questname, @Dev(defaultValue="1") int index, int delay, String message, String secondMessage)- Parameters:
questname
- Name of quest slot to check.index
- Index of sub-state.delay
- Delay in minutes.message
- Message to come before statement of remaining time.secondMessage
- Message to come after statement of remaining time.
-
SayTimeRemainingAction
- Parameters:
questname
- Name of quest slot to check.delay
- Delay in minutes.message
- Message to come before statement of remaining time.secondMessage
- Message to come after statement of 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
-