Class GateExplosionScript

java.lang.Object
com.fs.starfarer.api.impl.campaign.GateExplosionScript
All Implemented Interfaces:
EveryFrameScript

public class GateExplosionScript extends Object implements EveryFrameScript
  • Field Details

    • UNSTABLE_DAYS_MIN

      public static float UNSTABLE_DAYS_MIN
    • UNSTABLE_DAYS_MAX

      public static float UNSTABLE_DAYS_MAX
    • done

      protected boolean done
    • playedWindup

      protected boolean playedWindup
    • explosion

      protected SectorEntityToken explosion
    • delay

      protected float delay
    • delay2

      protected float delay2
    • gate

      protected SectorEntityToken gate
  • Constructor Details

  • Method Details

    • advance

      public void advance(float amount)
      Description copied from interface: EveryFrameScript
      Use SectorAPI.getClock() to convert to campaign days.
      Specified by:
      advance in interface EveryFrameScript
      Parameters:
      amount - seconds elapsed during the last frame.
    • isDone

      public boolean isDone()
      Specified by:
      isDone in interface EveryFrameScript
      Returns:
      true when the script is finished and can be cleaned up by the engine.
    • runWhilePaused

      public boolean runWhilePaused()
      Specified by:
      runWhilePaused in interface EveryFrameScript
      Returns:
      whether advance() should be called while the campaign engine is paused.