Class EqualizerTile

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public class EqualizerTile extends Tile
  • Field Details

    • CHANNEL_LEFT

      public static final int CHANNEL_LEFT
      See Also:
    • CHANNEL_RIGHT

      public static final int CHANNEL_RIGHT
      See Also:
    • CHANNEL_BOTH

      public static final int CHANNEL_BOTH
      See Also:
    • DIRECTION_TOP

      public static final int DIRECTION_TOP
      See Also:
    • DIRECTION_BOTTOM

      public static final int DIRECTION_BOTTOM
      See Also:
    • DIRECTION_LEFT

      public static final int DIRECTION_LEFT
      See Also:
    • DIRECTION_RIGHT

      public static final int DIRECTION_RIGHT
      See Also:
    • INTERPOLATION_LINEAR

      public static final int INTERPOLATION_LINEAR
      See Also:
    • INTERPOLATION_POW2

      public static final int INTERPOLATION_POW2
      See Also:
    • INTERPOLATION_POW3

      public static final int INTERPOLATION_POW3
      See Also:
    • INTERPOLATION_EXP5

      public static final int INTERPOLATION_EXP5
      See Also:
    • INTERPOLATION_EXP10

      public static final int INTERPOLATION_EXP10
      See Also:
    • drawAlways

      public boolean drawAlways
    • barInterpolation

      public int barInterpolation
    • spectrumDropoff

      public float spectrumDropoff
    • channel

      public int channel
    • cutout

      public float cutout
    • direction

      public int direction
    • colorLow

      public com.badlogic.gdx.graphics.Color colorLow
    • colorHigh

      public com.badlogic.gdx.graphics.Color colorHigh
    • barsWidth

      public float barsWidth
    • barsHeight

      public float barsHeight
    • revertBars

      public boolean revertBars
    • particlesEnabled

      public boolean particlesEnabled
    • spectrumFrequencies

      public com.badlogic.gdx.utils.Array<MusicManager.FrequencyRange> spectrumFrequencies
    • maxValueEasing

      public float maxValueEasing
    • fixedMaxValue

      public float fixedMaxValue
    • barSpacing

      public float barSpacing
    • shiftX

      public float shiftX
    • shiftY

      public float shiftY
    • spectrumConfig

      public MusicManager.SpectrumConfig spectrumConfig
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      write in class Tile
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
      Overrides:
      read in class Tile
    • handleConfigChanged

      public void handleConfigChanged()
      Must be called each time after any of this configuration is changed: - spectrum frequencies - bandsPerOctave - maxValueEasing - minBandwidth
    • canBeSelected

      public boolean canBeSelected()
      Overrides:
      canBeSelected in class Tile
    • fillMapEditorMenu

      public void fillMapEditorMenu(com.badlogic.gdx.scenes.scene2d.ui.Table container, MapEditorItemInfoMenu menu)
      Overrides:
      fillMapEditorMenu in class Tile
    • fillInventoryWithInfo

      public void fillInventoryWithInfo(com.badlogic.gdx.scenes.scene2d.ui.Table table, float width)
      Overrides:
      fillInventoryWithInfo in class Tile
    • getSortingScore

      public int getSortingScore(ItemSortingType sortingType)
      Specified by:
      getSortingScore in class Tile
    • isRoadType

      public boolean isRoadType()
      Specified by:
      isRoadType in class Tile
    • getRarity

      public RarityType getRarity()
      Specified by:
      getRarity in class Tile
    • getInventorySubcategory

      public ItemSubcategoryType getInventorySubcategory()
      Description copied from class: Tile
      Вызывается через Item
      Specified by:
      getInventorySubcategory in class Tile
    • sameAs

      public boolean sameAs(Tile otherTile)
      Overrides:
      sameAs in class Tile
      Returns:
      true, если характеристики двух тайлов одинаковы (без учета позиции)
    • from

      public void from(Tile copyFrom)
      Overrides:
      from in class Tile
    • generateUiIcon

      public com.badlogic.gdx.scenes.scene2d.Group generateUiIcon(float tileSize)
      Description copied from class: Tile
      Сгенерировать stage2d Group для отображения тайла в UI
      Specified by:
      generateUiIcon in class Tile
    • toJson

      public void toJson(com.badlogic.gdx.utils.Json json)
      Overrides:
      toJson in class Tile
    • drawStatic

      public void drawStatic(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float width, float height, Map map, MapRenderingSystem.DrawMode drawMode)
      Overrides:
      drawStatic in class Tile
    • drawBatch

      public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode)
      Overrides:
      drawBatch in class Tile
    • fillItemCreationForm

      public void fillItemCreationForm(ItemCreationOverlay overlay)
      Overrides:
      fillItemCreationForm in class Tile
    • addSellItems

      public void addSellItems(com.badlogic.gdx.utils.Array<ItemStack> toStacks)
      Overrides:
      addSellItems in class Tile
    • getPrestigeScore

      public double getPrestigeScore()
      Specified by:
      getPrestigeScore in class Tile
      Returns:
      кол-во очков престижа за продажу. Если 0 или меньше, не будет продан. 1 score = 1 dust
    • canBeUpgraded

      public boolean canBeUpgraded()
      Overrides:
      canBeUpgraded in class Tile