public static class HubMissionWithTriggers.RunScriptAfterDelay extends java.lang.Object implements MissionTrigger.TriggerAction, EveryFrameScript
Modifier and Type | Field and Description |
---|---|
protected float |
delay |
protected Script |
script |
Constructor and Description |
---|
HubMissionWithTriggers.RunScriptAfterDelay(float delay,
Script script) |
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
void |
doAction(MissionTrigger.TriggerActionContext context) |
boolean |
isDone() |
boolean |
runWhilePaused() |
protected float delay
protected Script script
public HubMissionWithTriggers.RunScriptAfterDelay(float delay, Script script)
public void doAction(MissionTrigger.TriggerActionContext context)
doAction
in interface MissionTrigger.TriggerAction
public boolean isDone()
isDone
in interface EveryFrameScript
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
public void advance(float amount)
EveryFrameScript
advance
in interface EveryFrameScript
amount
- seconds elapsed during the last frame.Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.