Class PathNode

java.lang.Object
com.prineside.tdi2.PathNode
All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable

public final class PathNode extends Object implements com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable
  • Field Details

    • connections

      public com.badlogic.gdx.utils.Array<Path.Connection> connections
    • index

      public int index
    • x

      public int x
    • y

      public int y
    • cost

      public float cost
    • tileType

      public TileType tileType
    • tileCenterX

      public float tileCenterX
    • tileCenterY

      public float tileCenterY
    • teleportIndices

      public int[] teleportIndices
  • Constructor Details

    • PathNode

      public PathNode()
  • 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
    • read

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

      public void setup(int index, int x, int y, float cost, TileType tileType)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • reset

      public void reset()
      Description copied from interface: com.badlogic.gdx.utils.Pool.Poolable
      Resets the object for reuse. Object references should be nulled and fields may be set to default values.
      Specified by:
      reset in interface com.badlogic.gdx.utils.Pool.Poolable