Class TargetTile

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public final class TargetTile extends Tile
  • 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
    • showHitEffect

      public void showHitEffect(com.badlogic.gdx.math.Vector2 hitFrom)
    • startExplosionEffect

      public void startExplosionEffect()
    • fillInventoryWithInfo

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

      public void addGameValue(GameValueConfig config)
    • removeGameValue

      public void removeGameValue(GameValueConfig config)
    • updateAppearance

      public void updateAppearance()
    • getGameValues

      public com.badlogic.gdx.utils.Array<GameValueConfig> getGameValues()
    • isDisableAbilities

      public boolean isDisableAbilities()
    • isWalkableTiles

      public boolean isWalkableTiles()
    • isUseStockGameValues

      public boolean isUseStockGameValues()
    • setUseStockGameValues

      public void setUseStockGameValues(boolean use)
    • setDisableAbilities

      public void setDisableAbilities(boolean disabled)
    • getRarity

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

      public float getWalkCost()
      Overrides:
      getWalkCost in class Tile
    • getInventorySubcategory

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

      public int generateSeedSalt()
      Description copied from class: Tile
      Используется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайла
      Overrides:
      generateSeedSalt 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
    • getSortingScore

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

      public boolean isRoadType()
      Specified by:
      isRoadType 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
    • drawBatch

      public void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y)
      Description copied from class: Tile
      Перед отрисовкой врагов и прочего (сразу после отрисовки карты)
      Overrides:
      drawBatch in class Tile
    • postDrawBatch

      public void postDrawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, int x, int y)
      Description copied from class: Tile
      После отрисовки врагов и прочего
      Overrides:
      postDrawBatch 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