Package org.robovm.apple.gameplaykit
Class GKGridGraph<NodeType extends GKGridGraphNode>
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.gameplaykit.GKGraph
org.robovm.apple.gameplaykit.GKGridGraph<NodeType>
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
public class GKGridGraph<NodeType extends GKGridGraphNode> extends GKGraph
- Since:
- Available in iOS 9.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGKGridGraph.GKGridGraphPtr<NodeType extends GKGridGraphNode>Nested classes/interfaces inherited from class org.robovm.apple.gameplaykit.GKGraph
GKGraph.GKGraphPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description GKGridGraph()GKGridGraph(NSArray<GKGraphNode> nodes)protectedGKGridGraph(NSObject.Handle h, long handle)protectedGKGridGraph(NSObject.SkipInit skipInit)GKGridGraph(VectorInt2 position, int width, int height, boolean diagonalsAllowed)GKGridGraph(VectorInt2 position, int width, int height, boolean diagonalsAllowed, Class<?> nodeClass) -
Method Summary
Modifier and Type Method Description booleanareDiagonalsAllowed()Class<?>classForGenericArgumentAtIndex(long index)voidconnectNodeToAdjacentNodes(GKGridGraphNode node)longgetGridHeight()VectorInt2getGridOrigin()longgetGridWidth()NodeTypegetNodeAtGridPosition(VectorInt2 position)protected longinit(VectorInt2 position, int width, int height, boolean diagonalsAllowed)protected longinit(VectorInt2 position, int width, int height, boolean diagonalsAllowed, Class<?> nodeClass)static booleansupportsSecureCoding()Methods inherited from class org.robovm.apple.gameplaykit.GKGraph
addNodes, connectNodeToLowestCostNode, encode, findPathBetweenNodes, getNodes, init, init, removeNodesMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
GKGridGraph
public GKGridGraph() -
GKGridGraph
-
GKGridGraph
-
GKGridGraph
-
GKGridGraph
public GKGridGraph(VectorInt2 position, int width, int height, boolean diagonalsAllowed, Class<?> nodeClass) -
GKGridGraph
-
-
Method Details
-
getGridOrigin
-
getGridWidth
public long getGridWidth() -
getGridHeight
public long getGridHeight() -
areDiagonalsAllowed
public boolean areDiagonalsAllowed() -
supportsSecureCoding
public static boolean supportsSecureCoding() -
init
-
init
protected long init(VectorInt2 position, int width, int height, boolean diagonalsAllowed, Class<?> nodeClass) -
getNodeAtGridPosition
-
connectNodeToAdjacentNodes
-
classForGenericArgumentAtIndex
-