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:
-
Constructor Summary
ConstructorsConstructorDescriptionSayTimeRemainingAction(String questname, int index, int delay, String message) Creates a new SayTimeRemainingAction.SayTimeRemainingAction(String questname, int index, int delay, String message, boolean substitute) 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
Modifier and TypeMethodDescriptionbooleanvoidfire(Player player, Sentence sentence, EventRaiser raiser) does some action after a transition.inthashCode()static ChatActionsayTimeRemaining(String questName, int index, int delay, String message) toString()
-
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
@Dev public SayTimeRemainingAction(String questname, @Dev(defaultValue="1") int index, int delay, String message, boolean substitute) 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:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidraiser- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-
sayTimeRemaining
-