Class HyperspaceAutomaton

java.lang.Object
com.fs.starfarer.api.impl.campaign.terrain.HyperspaceAutomaton

public class HyperspaceAutomaton extends Object
  • Field Details

    • cells

      protected transient int[][] cells
    • next

      protected transient int[][] next
    • savedCells

      protected String savedCells
    • savedNext

      protected String savedNext
    • interval

      protected IntervalUtil interval
    • doneWithIteration

      protected boolean doneWithIteration
    • currentColumn

      protected int currentColumn
    • width

      protected int width
    • height

      protected int height
  • Constructor Details

    • HyperspaceAutomaton

      public HyperspaceAutomaton(int width, int height, float minInterval, float maxInterval)
  • Method Details

    • getInterval

      public IntervalUtil getInterval()
    • advance

      public void advance(float days)
    • getCells

      public int[][] getCells()
    • updateCells

      protected void updateCells(float days)
    • setLive

      public void setLive(float fraction)
    • getLiveCountAround

      protected int getLiveCountAround(int x, int y)
    • encodeTiles

      public static String encodeTiles(int[][] tiles)
    • decodeTiles

      public static int[][] decodeTiles(String string, int w, int h) throws DataFormatException
      Throws:
      DataFormatException
    • main

      public static void main(String[] args) throws DataFormatException
      Throws:
      DataFormatException