Class Gate

All Implemented Interfaces:
KryoSerializable
Direct Known Subclasses:
GateBarrier, TeleportGate

public abstract class Gate extends Registrable
  • Field Details

  • Method Details

    • write

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

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

      public GateType getType()
    • getRarity

      public abstract RarityType getRarity()
    • cloneGate

      public abstract Gate cloneGate()
    • addSellItems

      public void addSellItems(Array<ItemStack> toStacks)
    • fillMapEditorMenu

      public void fillMapEditorMenu(Table container, MapEditorItemInfoMenu menu)
    • getBoundingBox

      public Rectangle getBoundingBox()
    • getPrestigeScore

      public abstract double getPrestigeScore()
      Returns:
      amount of prestige points for selling it. If value is <= 0, it won't be sold
    • getSortingScore

      public abstract int getSortingScore(ItemSortingType sortingType)
    • generateIcon

      public abstract Actor generateIcon(float size, boolean detailed)
    • drawStatic

      public abstract void drawStatic(Batch batch, float x, float y, float width, float height)
    • drawBatch

      public void drawBatch(Batch batch, float deltaTime, float x, float y, float width, float height)
    • sameAs

      public boolean sameAs(Gate gate)
    • getX

      public int getX()
    • getY

      public int getY()
    • isLeftSide

      public boolean isLeftSide()
    • setPosition

      public void setPosition(int x, int y, boolean leftSide)
    • toJson

      public void toJson(Json json)