Class ProceduralPlanetWindow

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
com.badlogic.gdx.scenes.scene2d.ui.Table
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable, com.badlogic.gdx.scenes.scene2d.utils.Layout, IObserver, IScreen

public class ProceduralPlanetWindow extends GenericDialog implements IObserver
Interface to the procedural generation system for planetary surfaces, atmospheres and cloud layers.
  • Constructor Details

    • ProceduralPlanetWindow

      public ProceduralPlanetWindow(FocusView target, com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
  • Method Details

    • rebuild

      protected void rebuild()
    • build

      protected void build()
      Description copied from class: GenericDialog
      Build the content here.
      Specified by:
      build in class GenericDialog
    • randomizeSurface

      protected Boolean randomizeSurface(Boolean rebuild)
    • randomizeSurfaceGasGiant

      protected Boolean randomizeSurfaceGasGiant(Boolean rebuild)
    • randomizeSurfaceEarthLike

      protected Boolean randomizeSurfaceEarthLike(Boolean rebuild)
    • randomizeSurfaceDesert

      protected Boolean randomizeSurfaceDesert(Boolean rebuild)
    • randomizeSurfaceTropical

      protected Boolean randomizeSurfaceTropical(Boolean rebuild)
    • randomizeSurfaceFrozen

      protected Boolean randomizeSurfaceFrozen(Boolean rebuild)
    • randomizeSurfaceRockyPlanet

      protected Boolean randomizeSurfaceRockyPlanet(Boolean rebuild)
    • randomizeSurfaceLava

      protected Boolean randomizeSurfaceLava(Boolean rebuild)
    • randomizeSurfaceAlien

      protected Boolean randomizeSurfaceAlien(Boolean rebuild)
    • randomizeClouds

      protected Boolean randomizeClouds(Boolean rebuild)
    • randomizeBlueAtmosphere

      protected Boolean randomizeBlueAtmosphere(Boolean rebuild)
    • randomizeGreenAtmosphere

      protected Boolean randomizeGreenAtmosphere(Boolean rebuild)
    • randomizeRedAtmosphere

      protected Boolean randomizeRedAtmosphere(Boolean rebuild)
    • randomizeYellowAtmosphere

      protected Boolean randomizeYellowAtmosphere(Boolean rebuild)
    • randomizeMagentaAtmosphere

      protected Boolean randomizeMagentaAtmosphere(Boolean rebuild)
    • randomizeCyanAtmosphere

      protected Boolean randomizeCyanAtmosphere(Boolean rebuild)
    • randomizeWhiteAtmosphere

      protected Boolean randomizeWhiteAtmosphere(Boolean rebuild)
    • randomizeAtmosphere

      protected Boolean randomizeAtmosphere(Boolean rebuild)
    • randomizeAtmosphere

      protected Boolean randomizeAtmosphere(Boolean rebuild, boolean regularScattering, double redMask, double greenMask, double blueMask)
    • randomizeAtmosphereWhite

      protected Boolean randomizeAtmosphereWhite(Boolean rebuild)
    • randomizeAll

      protected void randomizeAll()
    • generateSurface

      protected Boolean generateSurface(Boolean ignored)
    • generateSurfaceDirect

      protected void generateSurfaceDirect()
    • generateClouds

      protected Boolean generateClouds(Boolean ignored)
    • generateCloudsDirect

      protected void generateCloudsDirect()
    • generateAtmosphere

      protected Boolean generateAtmosphere(Boolean ignored)
    • generateAtmosphereDirect

      protected void generateAtmosphereDirect()
    • generateAll

      protected void generateAll()
    • accept

      protected boolean accept()
      Description copied from class: GenericDialog
      The accept function, if any.
      Specified by:
      accept in class GenericDialog
      Returns:
      True if the dialog must close after the call, false otherwise.
    • cancel

      protected void cancel()
      Description copied from class: GenericDialog
      The cancel function, if any.
      Specified by:
      cancel in class GenericDialog
    • enableComponents

      protected void enableComponents(boolean enabled, com.badlogic.gdx.scenes.scene2d.utils.Disableable... components)
      Sets the enabled property on the given components
      Overrides:
      enableComponents in class GenericDialog
      Parameters:
      enabled - The state to set.
      components - The components to enable or disable.
    • dispose

      public void dispose()
      Specified by:
      dispose in class GenericDialog
    • setKeyboardFocus

      public void setKeyboardFocus()
      Description copied from class: GenericDialog
      Sets the keyboard focus, override in case you want to set the focus to a specific item.
      Overrides:
      setKeyboardFocus in class GenericDialog
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.