Class SectorPreset

All Implemented Interfaces:
Comparable<Content>

public class SectorPreset extends UnlockableContent
  • Field Details

    • generator

      public FileMapGenerator generator
    • planet

      public Planet planet
    • sector

      public Sector sector
    • captureWave

      public int captureWave
    • rules

      public Cons<Rules> rules
    • difficulty

      public float difficulty
      Difficulty, 0-10.
    • startWaveTimeMultiplier

      public float startWaveTimeMultiplier
    • addStartingItems

      public boolean addStartingItems
    • noLighting

      public boolean noLighting
    • isLastSector

      public boolean isLastSector
      If true, this is the last sector in its planetary campaign.
    • showSectorLandInfo

      public boolean showSectorLandInfo
    • overrideLaunchDefaults

      public boolean overrideLaunchDefaults
      If true, uses this sector's launch fields instead
    • allowLaunchSchematics

      public boolean allowLaunchSchematics
      Whether to allow users to specify a custom launch schematic for this map.
    • allowLaunchLoadout

      public boolean allowLaunchLoadout
      Whether to allow users to specify the resources they take to this map.
    • attackAfterWaves

      public boolean attackAfterWaves
      If true, switches to attack mode after waves end.
  • Constructor Details

    • SectorPreset

      public SectorPreset(String name, Planet planet, int sector)
    • SectorPreset

      public SectorPreset(String name, Mods.LoadedMod mod)
      Internal use only!
    • SectorPreset

      public SectorPreset(String name)
      Internal use only!
  • Method Details

    • initialize

      public void initialize(Planet planet, int sector)
    • loadIcon

      public void loadIcon()
      Description copied from class: Content
      Called right before load().
      Overrides:
      loadIcon in class UnlockableContent
    • isHidden

      public boolean isHidden()
      Description copied from class: UnlockableContent
      Whether this content is always hidden in the content database dialog.
      Overrides:
      isHidden in class UnlockableContent
    • getContentType

      public ContentType getContentType()
      Description copied from class: Content
      Returns the type name of this piece of content. This should return the same value for all instances of this content type.
      Specified by:
      getContentType in class Content