java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.deciv.DecivTracker
All Implemented Interfaces:
EveryFrameScript

public class DecivTracker extends Object implements EveryFrameScript
  • Field Details

  • Constructor Details

    • DecivTracker

      public DecivTracker()
  • Method Details

    • getInstance

      public static DecivTracker getInstance()
    • readResolve

      protected Object readResolve()
    • 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.
    • getDataFor

      public DecivTracker.MarketDecivData getDataFor(MarketAPI market)
    • getMaxMonths

      public static int getMaxMonths()
    • getMinStreak

      public static int getMinStreak()
    • getProbPerMonth

      public static float getProbPerMonth()
    • getMinFraction

      public static float getMinFraction()
    • updateSamples

      protected void updateSamples()
    • checkDeciv

      protected void checkDeciv()
    • checkDeciv

      protected boolean checkDeciv(MarketAPI market)
    • decivilize

      public static void decivilize(MarketAPI market, boolean fullDestroy)
    • decivilize

      public static void decivilize(MarketAPI market, boolean fullDestroy, boolean withIntel)
    • removeColony

      public static void removeColony(MarketAPI market, boolean withRuins)
    • sendWarning

      public static void sendWarning(MarketAPI market)
    • 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.