Class SpawnTile

All Implemented Interfaces:
KryoSerializable

public final class SpawnTile extends Tile
  • Field Details

  • Method Details

    • write

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

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
      Overrides:
      read in class Tile
    • fillMapEditorMenu

      public void fillMapEditorMenu(Table container, MapEditorItemInfoMenu menu)
      Overrides:
      fillMapEditorMenu in class Tile
    • fillInventoryWithInfo

      public void fillInventoryWithInfo(Table table, float width)
      Overrides:
      fillInventoryWithInfo in class Tile
    • generateSeedSalt

      public int generateSeedSalt()
      Description copied from class: Tile
      Используется для некого hashCode (при генерации seed карты), должен быть разным для каждого варианта тайла
      Overrides:
      generateSeedSalt in class Tile
    • addAllowedEnemy

      public void addAllowedEnemy(EnemyType enemyType, int firstWave, int lastWave)
    • removeAllowedEnemy

      public void removeAllowedEnemy(EnemyType enemyType)
    • getEnemyConfig

      public SpawnTile.AllowedEnemyConfig getEnemyConfig(EnemyType enemyType)
      Returns:
      AllowedEnemyConfig или null
    • setAllowedEnemies

      public void setAllowedEnemies(Array<SpawnTile.AllowedEnemyConfig> allowedEnemies)
    • getAllowedEnemies

      public Array<SpawnTile.AllowedEnemyConfig> getAllowedEnemies()
    • getAllowedEnemiesSet

      public ObjectSet<EnemyType> getAllowedEnemiesSet()
    • isEnemyAllowedOnWave

      public boolean isEnemyAllowedOnWave(EnemyType enemyType, int waveNumber)
    • getRarity

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

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

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

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

      public float getValue()
      Overrides:
      getValue in class Tile
    • addSellItems

      public void addSellItems(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
    • getSortingScore

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

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

      public void setUnregistered()
      Description copied from class: Registrable
      Remove the reference to the game state and mark this object as not registered.
      Overrides:
      setUnregistered in class Registrable
    • drawBatch

      public void drawBatch(Batch batch, float deltaTime, float x, float y, float width, float height, MapRenderingSystem.DrawMode drawMode)
      Overrides:
      drawBatch in class Tile
    • generateUiIcon

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

      public void toJson(Json json)
      Overrides:
      toJson in class Tile
    • sameAs

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

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