Class PathNode

java.lang.Object
com.prineside.tdi2.PathNode
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public final class PathNode extends Object implements com.esotericsoftware.kryo.KryoSerializable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    com.badlogic.gdx.utils.Array<com.badlogic.gdx.ai.pfa.Connection<PathNode>>
     
    float
     
    int
     
    int[]
     
    float
     
    float
     
    int
     
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     
    void
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
     
    void
    setup(int index, int x, int y, float cost)
     
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • connections

      public com.badlogic.gdx.utils.Array<com.badlogic.gdx.ai.pfa.Connection<PathNode>> connections
    • index

      public int index
    • x

      public int x
    • y

      public int y
    • cost

      public float cost
    • 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • setup

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

      public String toString()
      Overrides:
      toString in class Object