Class SetQuestToFutureRandomTimeStampAction
java.lang.Object
games.stendhal.server.entity.npc.action.SetQuestToFutureRandomTimeStampAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=TIME,
label="State")
public class SetQuestToFutureRandomTimeStampAction
extends Object
implements ChatAction
Sets the state of a quest to a timestamp,
randomly picked between minimum and maximum delay from current system time in minutes
- Author:
- omero
- See Also:
TimeReachedCondition,SayTimeRemainingUntilTimeReachedAction
-
Constructor Summary
ConstructorsConstructorDescriptionSetQuestToFutureRandomTimeStampAction(String questname, int min_delay, int max_delay)Creates a new SetQuestToFutureRandomTimeStampAction.SetQuestToFutureRandomTimeStampAction(String questname, int index, int minDelay, int maxDelay)Creates a new SetQuestToFutureRandomTimeStampAction. -
Method Summary
-
Constructor Details
-
SetQuestToFutureRandomTimeStampAction
Creates a new SetQuestToFutureRandomTimeStampAction.- Parameters:
questname- name of quest-slot to changemin_delay- in minutesmax_delay- in minutes
-
SetQuestToFutureRandomTimeStampAction
@Dev public SetQuestToFutureRandomTimeStampAction(String questname, @Dev(defaultValue="1") int index, int minDelay, int maxDelay)Creates a new SetQuestToFutureRandomTimeStampAction.- Parameters:
questname- name of quest-slot to changeindex- index of sub stateminDelay- minimum delay in minutesmaxDelay- maximum delay in minutes
-
-
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
-