Class Universe

java.lang.Object
mindustry.game.Universe

public class Universe extends Object
Updates and handles state of the campaign universe. Has no relevance to other gamemodes.
  • Constructor Details

    • Universe

      public Universe()
  • Method Details

    • updateGlobal

      public void updateGlobal()
      Update regardless of whether the player is in the campaign.
    • turn

      public int turn()
    • update

      public void update()
      Update planet rotations, global time and relevant state.
    • clearLoadoutInfo

      public void clearLoadoutInfo()
    • getLaunchResources

      public ItemSeq getLaunchResources()
    • updateLaunchResources

      public void updateLaunchResources(ItemSeq stacks)
    • updateLoadout

      public void updateLoadout(CoreBlock block, Schematic schem)
      Updates selected loadout for future deployment.
    • getLastLoadout

      public Schematic getLastLoadout()
    • getLoadout

      @Nullable public Schematic getLoadout(CoreBlock core)
      Returns:
      the last selected loadout for this specific core type.
    • runTurn

      public void runTurn()
      Runs possible events. Resets event counter.
    • updateNetSeconds

      public void updateNetSeconds(int value)
    • secondsMod

      public float secondsMod(float mod, float scale)
    • seconds

      public int seconds()
    • secondsf

      public float secondsf()