Class BarrierTypeGate

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public class BarrierTypeGate extends GateBarrier
  • Field Details

    • blockedEnemies

      public com.badlogic.gdx.utils.ObjectSet<EnemyType> blockedEnemies
  • 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 Gate
    • 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 Gate
    • getRarity

      public RarityType getRarity()
      Specified by:
      getRarity in class Gate
    • cloneGate

      public Gate cloneGate()
      Specified by:
      cloneGate in class Gate
    • addSellItems

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

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

      public int getSortingScore(ItemSortingType sortingType)
      Specified by:
      getSortingScore in class Gate
    • canEnemyPass

      public boolean canEnemyPass(EnemyType enemy)
      Specified by:
      canEnemyPass in class GateBarrier
    • generateIcon

      public com.badlogic.gdx.scenes.scene2d.Actor generateIcon(float size, boolean withShadow)
      Specified by:
      generateIcon in class Gate
    • drawStatic

      public void drawStatic(com.badlogic.gdx.graphics.g2d.SpriteCache spriteCache, int ix, int iy)
      Specified by:
      drawStatic in class Gate
    • sameAs

      public boolean sameAs(Gate gate)
      Overrides:
      sameAs in class Gate
    • toJson

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