Class GKGridGraph<NodeType extends GKGridGraphNode>

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class GKGridGraph<NodeType extends GKGridGraphNode>
extends GKGraph
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • GKGridGraph

      public GKGridGraph()
    • GKGridGraph

      protected GKGridGraph​(NSObject.Handle h, long handle)
    • GKGridGraph

      protected GKGridGraph​(NSObject.SkipInit skipInit)
    • GKGridGraph

      public GKGridGraph​(VectorInt2 position, int width, int height, boolean diagonalsAllowed)
    • GKGridGraph

      public GKGridGraph​(VectorInt2 position, int width, int height, boolean diagonalsAllowed, Class<?> nodeClass)
    • GKGridGraph

      public GKGridGraph​(NSArray<GKGraphNode> nodes)
  • Method Details

    • getGridOrigin

      public VectorInt2 getGridOrigin()
    • getGridWidth

      public long getGridWidth()
    • getGridHeight

      public long getGridHeight()
    • areDiagonalsAllowed

      public boolean areDiagonalsAllowed()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(VectorInt2 position, int width, int height, boolean diagonalsAllowed)
    • init

      protected long init​(VectorInt2 position, int width, int height, boolean diagonalsAllowed, Class<?> nodeClass)
    • getNodeAtGridPosition

      public NodeType getNodeAtGridPosition​(VectorInt2 position)
    • connectNodeToAdjacentNodes

      public void connectNodeToAdjacentNodes​(GKGridGraphNode node)
    • classForGenericArgumentAtIndex

      public Class<?> classForGenericArgumentAtIndex​(long index)