Package org.robovm.apple.gameplaykit
Class GKAgent2D
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.gameplaykit.GKComponent
-
- org.robovm.apple.gameplaykit.GKAgent
-
- org.robovm.apple.gameplaykit.GKAgent2D
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class GKAgent2D extends GKAgent implements NSSecureCoding
- Since:
- Available in iOS 9.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GKAgent2D.GKAgent2DPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.gameplaykit.GKAgent
GKAgent.GKAgentPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.gameplaykit.GKComponent
GKComponent.GKComponentPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description GKAgent2D()
protected
GKAgent2D(NSObject.Handle h, long handle)
protected
GKAgent2D(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorFloat2
getPosition()
float
getRotation()
VectorFloat2
getVelocity()
void
setPosition(VectorFloat2 v)
void
setRotation(float v)
void
update(double seconds)
-
Methods inherited from class org.robovm.apple.gameplaykit.GKAgent
getBehavior, getDelegate, getMass, getMaxAcceleration, getMaxSpeed, getRadius, getSpeed, setBehavior, setDelegate, setMass, setMaxAcceleration, setMaxSpeed, setRadius, setSpeed
-
Methods inherited from class org.robovm.apple.gameplaykit.GKComponent
didAddToEntity, encode, getEntity, init, supportsSecureCoding, willRemoveFromEntity
-
Methods 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, willChangeValues
-
-
-
-
Constructor Detail
-
GKAgent2D
public GKAgent2D()
-
GKAgent2D
protected GKAgent2D(NSObject.Handle h, long handle)
-
GKAgent2D
protected GKAgent2D(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getPosition
public VectorFloat2 getPosition()
-
setPosition
public void setPosition(VectorFloat2 v)
-
getVelocity
public VectorFloat2 getVelocity()
-
getRotation
public float getRotation()
-
setRotation
public void setRotation(float v)
-
update
public void update(double seconds)
- Overrides:
update
in classGKComponent
-
-