Class GKPolygonObstacle

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class GKPolygonObstacle
extends GKObstacle
implements NSSecureCoding
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • GKPolygonObstacle

      public GKPolygonObstacle()
    • GKPolygonObstacle

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

      protected GKPolygonObstacle​(NSObject.SkipInit skipInit)
    • GKPolygonObstacle

      public GKPolygonObstacle​(NSCoder coder)
    • GKPolygonObstacle

      public GKPolygonObstacle​(VectorFloat2[] points)
  • Method Details

    • getVertexCount

      public long getVertexCount()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(VectorFloat2 points, long numPoints)
    • getVertex

      public VectorFloat2 getVertex​(long index)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)