Class Global

java.lang.Object
com.fs.starfarer.api.Global

public class Global extends Object
Author:
Alex Mosolov Copyright 2012 Fractal Softworks, LLC
  • Field Details

    • CODEX_TOOLTIP_MODE

      public static boolean CODEX_TOOLTIP_MODE
    • LOADING_SAVE

      public static boolean LOADING_SAVE
  • Constructor Details

    • Global

      public Global()
  • Method Details

    • getCurrentState

      public static GameState getCurrentState()
    • getLogger

      public static org.apache.log4j.Logger getLogger(Class c)
    • getFactory

      public static FactoryAPI getFactory()
      Should only be used in the campaign.
      Returns:
    • setFactory

      public static void setFactory(FactoryAPI factory)
    • getSoundPlayer

      public static SoundPlayerAPI getSoundPlayer()
    • setSoundPlayer

      public static void setSoundPlayer(SoundPlayerAPI sound)
    • getSettings

      public static SettingsAPI getSettings()
    • setSettings

      public static void setSettings(SettingsAPI api)
    • getSector

      public static SectorAPI getSector()
    • getCombatEngine

      public static CombatEngineAPI getCombatEngine()
    • setCombatEngine

      public static void setCombatEngine(CombatEngineAPI combatEngine)
    • setSector

      public static void setSector(SectorAPI api)
    • getSettingsAPI

      @Deprecated public static SettingsAPI getSettingsAPI()
      Deprecated.
    • getSectorAPI

      @Deprecated public static SectorAPI getSectorAPI()
      Deprecated.