public class SKAction extends NSObject implements NSCopying, NSSecureCoding
| Modifier and Type | Class and Description |
|---|---|
static interface |
SKAction.Block_customActionWithDurationActionBlock |
static interface |
SKAction.Block_runBlock |
static interface |
SKAction.Block_runBlockQueue |
static interface |
SKAction.Block_setTimingFunction |
static interface |
SKAction.Block_timingFunction_ret |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SKAction(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static SKAction |
actionNamed(java.lang.String name)
Creates an action of the given name from an action file.
|
static SKAction |
actionNamedDuration(java.lang.String name,
double duration)
Creates an action of the given name from an action file with a new duration.
|
static SKAction |
actionNamedFromURL(java.lang.String name,
NSURL url)
Creates an action of the given name from an action file.
|
static SKAction |
actionNamedFromURLDuration(java.lang.String name,
NSURL url,
double duration)
Creates an action of the given name from an action file with a new duration.
|
static SKAction |
alloc() |
static SKAction |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static SKAction |
animateWithNormalTexturesTimePerFrame(NSArray<? extends SKTexture> textures,
double sec) |
static SKAction |
animateWithNormalTexturesTimePerFrameResizeRestore(NSArray<? extends SKTexture> textures,
double sec,
boolean resize,
boolean restore) |
static SKAction |
animateWithTexturesTimePerFrame(NSArray<? extends SKTexture> textures,
double sec)
Creates an action that animates changes to a sprite’s texture
|
static SKAction |
animateWithTexturesTimePerFrameResizeRestore(NSArray<? extends SKTexture> textures,
double sec,
boolean resize,
boolean restore)
Creates an action that animates changes to a sprite’s texture
|
static SKAction |
animateWithWarpsTimes(NSArray<? extends SKWarpGeometry> warps,
NSArray<? extends NSNumber> times)
Animate through an array of warps
|
static SKAction |
animateWithWarpsTimesRestore(NSArray<? extends SKWarpGeometry> warps,
NSArray<? extends NSNumber> times,
boolean restore)
Animate through an array of warps
|
static SKAction |
applyAngularImpulseDuration(double impulse,
double duration) |
static SKAction |
applyForceAtPointDuration(CGVector force,
CGPoint point,
double duration) |
static SKAction |
applyForceDuration(CGVector force,
double duration) |
static SKAction |
applyImpulseAtPointDuration(CGVector impulse,
CGPoint point,
double duration) |
static SKAction |
applyImpulseDuration(CGVector impulse,
double duration) |
static SKAction |
applyTorqueDuration(double torque,
double duration) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static SKAction |
changeChargeByDuration(float v,
double duration) |
static SKAction |
changeChargeToDuration(float v,
double duration) |
static SKAction |
changeMassByDuration(float v,
double duration) |
static SKAction |
changeMassToDuration(float v,
double duration) |
static SKAction |
changeObstructionByDuration(float v,
double duration) |
static SKAction |
changeObstructionToDuration(float v,
double duration) |
static SKAction |
changeOcclusionByDuration(float v,
double duration) |
static SKAction |
changeOcclusionToDuration(float v,
double duration) |
static SKAction |
changePlaybackRateByDuration(float v,
double duration) |
static SKAction |
changePlaybackRateToDuration(float v,
double duration) |
static SKAction |
changeReverbByDuration(float v,
double duration) |
static SKAction |
changeReverbToDuration(float v,
double duration) |
static SKAction |
changeVolumeByDuration(float v,
double duration) |
static SKAction |
changeVolumeToDuration(float v,
double duration) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static SKAction |
colorizeWithColorBlendFactorDuration(double colorBlendFactor,
double sec) |
static SKAction |
colorizeWithColorColorBlendFactorDuration(UIColor color,
double colorBlendFactor,
double duration)
Creates an animation that animates a sprite’s color and blend factor
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static SKAction |
customActionWithDurationActionBlock(double duration,
SKAction.Block_customActionWithDurationActionBlock block)
Creates an action that executes a block over a duration
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
double |
duration()
The duration required to complete an action, in seconds.
|
void |
encodeWithCoder(NSCoder coder) |
static SKAction |
fadeAlphaByDuration(double factor,
double duration)
Creates an action that adjusts the alpha value of a node by a relative value
|
static SKAction |
fadeAlphaToDuration(double alpha,
double duration)
Creates an action that adjusts the alpha value of a node to a new value
|
static SKAction |
fadeInWithDuration(double duration)
Creates an action that changes the alpha value of the node to 1.0
|
static SKAction |
fadeOutWithDuration(double duration)
Creates an action that changes the alpha value of the node to 0.0
|
static SKAction |
falloffByDuration(float falloff,
double duration)
Creates an action that sets the falloff of a field
|
static SKAction |
falloffToDuration(float falloff,
double duration)
Creates an action that sets the falloff of a field
|
static SKAction |
followPathAsOffsetOrientToPathDuration(CGPathRef path,
boolean offset,
boolean orient,
double duration)
Creates an action that moves the node along a path
|
static SKAction |
followPathAsOffsetOrientToPathSpeed(CGPathRef path,
boolean offset,
boolean orient,
double speed) |
static SKAction |
followPathDuration(CGPathRef path,
double duration)
Creates an action that moves the node along a relative path, orienting the
node to the path
|
static SKAction |
followPathSpeed(CGPathRef path,
double speed)
Creates an action that moves the node along a relative path, orienting the
node to the path
|
static SKAction |
group(NSArray<? extends SKAction> actions)
Creates an action that runs a collection of actions concurrently
|
static long |
hash_static() |
static SKAction |
hide()
Creates an action that hides a node
|
SKAction |
init() |
SKAction |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static SKAction |
moveByDuration(CGVector delta,
double duration)
Creates an action that moves a node relative to its current position
|
static SKAction |
moveByXYDuration(double deltaX,
double deltaY,
double duration) |
static SKAction |
moveToDuration(CGPoint location,
double duration)
Creates an action that moves a node to a new position
|
static SKAction |
moveToXDuration(double x,
double duration) |
static SKAction |
moveToYDuration(double y,
double duration) |
static SKAction |
new_objc() |
static SKAction |
pause() |
static SKAction |
performSelectorOnTarget(org.moe.natj.objc.SEL selector,
java.lang.Object target)
Creates an action that calls a method on an object
|
static SKAction |
play() |
static SKAction |
playSoundFileNamedWaitForCompletion(java.lang.String soundFile,
boolean wait_)
Creates an action that plays a sound
|
static SKAction |
reachToNodeRootNodeDuration(SKNode node,
SKNode root,
double sec)
Creates an action that performs an inverse kinematic reach.
|
static SKAction |
reachToNodeRootNodeVelocity(SKNode node,
SKNode root,
double velocity)
Creates an action that performs an inverse kinematic reach.
|
static SKAction |
reachToRootNodeDuration(CGPoint position,
SKNode root,
double duration)
Creates an action that performs an inverse kinematic reach.
|
static SKAction |
reachToRootNodeVelocity(CGPoint position,
SKNode root,
double velocity)
Creates an action that performs an inverse kinematic reach.
|
static SKAction |
removeFromParent()
Creates an action that removes the node from its parent
|
static SKAction |
repeatActionCount(SKAction action,
long count)
Creates an action that repeats another action a specified number of times
|
static SKAction |
repeatActionForever(SKAction action)
Creates an action that repeats forever
|
static SKAction |
resizeByWidthHeightDuration(double width,
double height,
double duration)
Creates an action that adjusts the size of a sprite
|
static SKAction |
resizeToHeightDuration(double height,
double duration) |
static SKAction |
resizeToWidthDuration(double width,
double duration) |
static SKAction |
resizeToWidthHeightDuration(double width,
double height,
double duration)
Creates an action that changes the width and height of a sprite to a new absolute value
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
SKAction |
reversedAction()
Creates an action that reverses the behavior of another action
|
static SKAction |
rotateByAngleDuration(double radians,
double duration)
Creates an action that rotates the node by a relative value
|
static SKAction |
rotateToAngleDuration(double radians,
double duration)
Creates an action that rotates the node counterclockwise to an absolute angle
|
static SKAction |
rotateToAngleDurationShortestUnitArc(double radians,
double duration,
boolean shortestUnitArc)
Creates an action that rotates the node to an absolute value
|
static SKAction |
runActionOnChildWithName(SKAction action,
java.lang.String name)
Creates an action that runs an action on a named child object
|
static SKAction |
runBlock(SKAction.Block_runBlock block)
Creates an action that executes a block
|
static SKAction |
runBlockQueue(SKAction.Block_runBlockQueue block,
NSObject queue)
Creates an action that executes a block
|
static SKAction |
scaleByDuration(double scale,
double duration)
Creates an action that changes the x and y scale values of a node by a relative value
|
static SKAction |
scaleToDuration(double scale,
double duration)
Creates an action that changes the x and y scale values of a node by a relative value
|
static SKAction |
scaleToSizeDuration(CGSize size,
double duration)
Adjust the sprite's xScale & yScale to achieve the desired size (in parent's coordinate space)
|
static SKAction |
scaleXByYDuration(double xScale,
double yScale,
double duration) |
static SKAction |
scaleXToDuration(double scale,
double duration) |
static SKAction |
scaleXToYDuration(double xScale,
double yScale,
double duration) |
static SKAction |
scaleYToDuration(double scale,
double duration) |
static SKAction |
sequence(NSArray<? extends SKAction> actions)
Creates an action that runs a collection of actions sequentially
|
void |
setDuration(double value)
The duration required to complete an action, in seconds.
|
static SKAction |
setNormalTexture(SKTexture texture) |
static SKAction |
setNormalTextureResize(SKTexture texture,
boolean resize) |
void |
setSpeed(double value)
A speed factor that modifies how fast an action runs.
|
static SKAction |
setTexture(SKTexture texture)
Creates an action that changes a sprite’s texture
|
static SKAction |
setTextureResize(SKTexture texture,
boolean resize)
Creates an action that changes a sprite’s texture, possibly resizing the sprite
|
void |
setTimingFunction(SKAction.Block_setTimingFunction value)
When set, prodives a custom timing via a block.
|
void |
setTimingMode(long value)
The timing mode used to execute an action
|
static void |
setVersion_static(long aVersion) |
double |
speed()
A speed factor that modifies how fast an action runs.
|
static SKAction |
speedByDuration(double speed,
double duration)
Creates an action that changes how fast the node executes actions by a
relative value
|
static SKAction |
speedToDuration(double speed,
double duration)
Creates an action that changes how fast the node executes actions
|
static SKAction |
stereoPanByDuration(float v,
double duration) |
static SKAction |
stereoPanToDuration(float v,
double duration) |
static SKAction |
stop() |
static SKAction |
strengthByDuration(float strength,
double duration)
Creates an action that sets the strength of a field
|
static SKAction |
strengthToDuration(float strength,
double duration)
Creates an action that sets the strength of a field
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
SKAction.Block_timingFunction_ret |
timingFunction()
When set, prodives a custom timing via a block.
|
long |
timingMode()
The timing mode used to execute an action
|
static SKAction |
unhide()
Creates an action that unhides a node
|
static long |
version_static() |
static SKAction |
waitForDuration(double duration)
Creates an action that idles for a specified period of time
|
static SKAction |
waitForDurationWithRange(double duration,
double durationRange)
Creates an action that idles for a randomized period of time
|
static SKAction |
warpToDuration(SKWarpGeometry warp,
double duration)
Animate from the node's current warpGeometry to a new one over the specified duration.
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SKAction actionNamed(java.lang.String name)
name - The name of the actionpublic static SKAction actionNamedDuration(java.lang.String name, double duration)
name - The name of the actionduration - The duration of the actionpublic static SKAction actionNamedFromURL(java.lang.String name, NSURL url)
name - The name of the actionurl - The url of the file containing the actionpublic static SKAction actionNamedFromURLDuration(java.lang.String name, NSURL url, double duration)
name - The name of the actionurl - The url of the file containing the actionduration - The duration of the actionpublic static SKAction alloc()
public static SKAction allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static SKAction animateWithNormalTexturesTimePerFrame(NSArray<? extends SKTexture> textures, double sec)
public static SKAction animateWithNormalTexturesTimePerFrameResizeRestore(NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)
public static SKAction animateWithTexturesTimePerFrame(NSArray<? extends SKTexture> textures, double sec)
textures - An array of textures to use when animating a spritesec - The amount of time that each texture is displayedpublic static SKAction animateWithTexturesTimePerFrameResizeRestore(NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)
textures - An array of textures to use when animating a spritesec - The amount of time that each texture is displayedresize - If YES, the sprite is resized to match each new texture.
If NO, the size of the sprite remains at a constant size.restore - If YES, When the action completes, the sprite’s texture is restored
to the texture it had before the action completed. (If the
resize parameter is YES, the sprite is resized to match the
size of the original texture.
If NO, when the action completes the sprite’s texture remains
set to the final texture in the array.public static SKAction animateWithWarpsTimes(NSArray<? extends SKWarpGeometry> warps, NSArray<? extends NSNumber> times)
The numberOfColumns and numberOfRows must match for all warps. Times are specified in seconds and must be increasing values.
public static SKAction animateWithWarpsTimesRestore(NSArray<? extends SKWarpGeometry> warps, NSArray<? extends NSNumber> times, boolean restore)
The numberOfColumns and numberOfRows must match for all warps. Times are specified in seconds and must be increasing values. Optionally restore the original node's warpGeometry from before the action.
public static SKAction applyAngularImpulseDuration(double impulse, double duration)
public static SKAction applyForceAtPointDuration(CGVector force, CGPoint point, double duration)
public static SKAction applyImpulseAtPointDuration(CGVector impulse, CGPoint point, double duration)
public static SKAction applyTorqueDuration(double torque, double duration)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static SKAction changeChargeByDuration(float v, double duration)
public static SKAction changeChargeToDuration(float v, double duration)
public static SKAction changeMassByDuration(float v, double duration)
public static SKAction changeMassToDuration(float v, double duration)
public static SKAction changeObstructionByDuration(float v, double duration)
public static SKAction changeObstructionToDuration(float v, double duration)
public static SKAction changeOcclusionByDuration(float v, double duration)
public static SKAction changeOcclusionToDuration(float v, double duration)
public static SKAction changePlaybackRateByDuration(float v, double duration)
public static SKAction changePlaybackRateToDuration(float v, double duration)
public static SKAction changeReverbByDuration(float v, double duration)
public static SKAction changeReverbToDuration(float v, double duration)
public static SKAction changeVolumeByDuration(float v, double duration)
public static SKAction changeVolumeToDuration(float v, double duration)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static SKAction colorizeWithColorColorBlendFactorDuration(UIColor color, double colorBlendFactor, double duration)
color - The new color for the spritecolorBlendFactor - The new blend factor for the spriteduration - The duration of the animation, in secondspublic static SKAction colorizeWithColorBlendFactorDuration(double colorBlendFactor, double sec)
public static SKAction customActionWithDurationActionBlock(double duration, SKAction.Block_customActionWithDurationActionBlock block)
duration - The duration of the animation, in secondsblock - The block to run. The block takes the following parameters:
node The node on which the action is running.
elapsedTime The amount of time that has passed in the animation.public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static SKAction fadeAlphaByDuration(double factor, double duration)
factor - The amount to modify the node’s alpha valueduration - The duration of the animation, in secondspublic static SKAction fadeAlphaToDuration(double alpha, double duration)
alpha - The new value of the node’s alphaduration - The duration of the animation, in secondspublic static SKAction fadeInWithDuration(double duration)
duration - The duration of the animation, in secondspublic static SKAction fadeOutWithDuration(double duration)
duration - The duration of the animation, in secondspublic static SKAction falloffByDuration(float falloff, double duration)
falloff - The value to modify falloff byduration - The duration of the animation, in secondsSKFieldNodepublic static SKAction falloffToDuration(float falloff, double duration)
falloff - The new value for falloffduration - The duration of the animation, in secondsSKFieldNodepublic static SKAction followPathAsOffsetOrientToPathDuration(CGPathRef path, boolean offset, boolean orient, double duration)
path - A Core Graphics path whose coordinates are relative to the node’s
current positionoffset - If YES, the points in the path are relative offsets to the
node’s starting position. If NO, the points in the node are absolute
coordinate values.orient - If YES, the node’s zRotation property animates so that
the node turns to follow the path. If NO, the zRotation property of
the node is unchanged.duration - The duration of the animationpublic static SKAction followPathAsOffsetOrientToPathSpeed(CGPathRef path, boolean offset, boolean orient, double speed)
public static SKAction followPathDuration(CGPathRef path, double duration)
path - A Core Graphics path whose coordinates are relative to the node’s
current positionduration - The duration of the animation, in secondspublic static SKAction followPathSpeed(CGPathRef path, double speed)
path - A Core Graphics path whose coordinates are relative to the node’s
current positionspeed - The speed in pixels per second to move along the pathpublic static SKAction group(NSArray<? extends SKAction> actions)
When the action executes, the actions that comprise the group all start immediately and run in parallel. The duration of the group action is the longest duration among the collection of actions. If an action in the group has a duration less than the group’s duration, the action completes, then idles until the group completes the remaining actions. This matters most when creating a repeating action that repeats a group.
actions - An array of SKAction objectspublic static long hash_static()
public static SKAction hide()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SKAction moveByDuration(CGVector delta, double duration)
delta - A vector that describes the change to apply to the node’s positionduration - The duration of the animation, in secondspublic static SKAction moveByXYDuration(double deltaX, double deltaY, double duration)
public static SKAction moveToDuration(CGPoint location, double duration)
location - The coordinates for the node’s new positionduration - The duration of the animation, in secondspublic static SKAction moveToXDuration(double x, double duration)
public static SKAction moveToYDuration(double y, double duration)
public static SKAction new_objc()
public static SKAction pause()
public static SKAction performSelectorOnTarget(org.moe.natj.objc.SEL selector, java.lang.Object target)
selector - The selector of the method to calltarget - The target objectpublic static SKAction play()
public static SKAction playSoundFileNamedWaitForCompletion(java.lang.String soundFile, boolean wait_)
The file name must be the name or path of a file of a platform supported audio file format. Use a LinearPCM format audio file with 8 or 16 bits per channel for best performance
soundFile - The name of a sound file in the app’s bundlewait - If YES, then the duration of this action is the same
as the length of the audio playback. If NO, the action is considered
to have completed immediately.public static SKAction reachToRootNodeDuration(CGPoint position, SKNode root, double duration)
position - The position (in screen space) to reach forroot - Where to start the inverse kinematic operation fromduration - The duration of the animation, in secondspublic static SKAction reachToRootNodeVelocity(CGPoint position, SKNode root, double velocity)
position - The position (in screen space) to reach forroot - Where to start the inverse kinematic operation fromvelocity - The speed in points per second of the end node in the chainpublic static SKAction reachToNodeRootNodeDuration(SKNode node, SKNode root, double sec)
node - The node to reach forroot - Where to start the inverse kinematic operation fromsec - The duration of the animation, in secondspublic static SKAction reachToNodeRootNodeVelocity(SKNode node, SKNode root, double velocity)
node - The node to reach forroot - Where to start the inverse kinematic operation fromvelocity - The speed in points per second of the end node in the chainpublic static SKAction removeFromParent()
public static SKAction repeatActionCount(SKAction action, long count)
action - The action to executecount - The number of times to execute the actionpublic static SKAction repeatActionForever(SKAction action)
action - The action to executepublic static SKAction resizeByWidthHeightDuration(double width, double height, double duration)
width - The amount to add to the sprite’s widthheight - The amount to add to the sprite’s heightduration - The duration of the animation, in secondspublic static SKAction resizeToHeightDuration(double height, double duration)
public static SKAction resizeToWidthDuration(double width, double duration)
public static SKAction resizeToWidthHeightDuration(double width, double height, double duration)
width - The new width of the spriteheight - The new height of the spriteduration - The duration of the animation, in secondspublic static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static SKAction rotateByAngleDuration(double radians, double duration)
radians - The amount to rotate the node, in radiansduration - The duration of the animation, in secondspublic static SKAction rotateToAngleDuration(double radians, double duration)
radians - The angle to rotate the node to, in radiansduration - The duration of the animationpublic static SKAction rotateToAngleDurationShortestUnitArc(double radians, double duration, boolean shortestUnitArc)
radians - The angle to rotate the node to, in radiansduration - The duration of the animation, in secondsshortestUnitArc - If YES, then the rotation is performed in whichever
direction results in the smallest rotation. If NO, then the rotation
is interpolatedpublic static SKAction runActionOnChildWithName(SKAction action, java.lang.String name)
action - the action to runname - the name of a child objectSKNode.namepublic static SKAction runBlock(SKAction.Block_runBlock block)
block - The block to runpublic static SKAction runBlockQueue(SKAction.Block_runBlockQueue block, NSObject queue)
block - The block to runqueue - The queue to perform the action onpublic static SKAction scaleByDuration(double scale, double duration)
scale - The amount to modify to the node’s x and y scale valuesduration - The duration of the animation, in secondspublic static SKAction scaleToDuration(double scale, double duration)
scale - The new value for the node’s x and y scale valuesduration - The duration of the animation, in secondspublic static SKAction scaleToSizeDuration(CGSize size, double duration)
duration - The duration of the animation, in secondspublic static SKAction scaleXByYDuration(double xScale, double yScale, double duration)
public static SKAction scaleXToDuration(double scale, double duration)
public static SKAction scaleXToYDuration(double xScale, double yScale, double duration)
public static SKAction scaleYToDuration(double scale, double duration)
public static SKAction sequence(NSArray<? extends SKAction> actions)
When the action executes, the first action in the sequence starts and runs to completion. Subsequent actions in the sequence run in a similar fashion until all of the actions in the sequence have executed. The duration of the sequence action is the sum of the durations of the actions in the sequence.
This action is reversible; it creates a new sequence action that reverses the order of the actions. Each action in the reversed sequence is itself reversed. For example, if an action sequence is {1,2,3}, the reversed sequence would be {3R,2R,1R}.
actions - An array of SKAction objectspublic static SKAction setNormalTextureResize(SKTexture texture, boolean resize)
public static SKAction setTexture(SKTexture texture)
texture - The new texture to use on the spritepublic static SKAction setTextureResize(SKTexture texture, boolean resize)
texture - The new texture to use on the spriteresize - If YES, the sprite is resized to match the new texture.
If NO, the size of the sprite is unchanged.public static void setVersion_static(long aVersion)
public static SKAction speedByDuration(double speed, double duration)
speed - amount to modify the speed byduration - The duration of the animation, in secondspublic static SKAction speedToDuration(double speed, double duration)
speed - The new value for the node’s speedduration - The duration of the animation, in secondspublic static SKAction stereoPanByDuration(float v, double duration)
public static SKAction stereoPanToDuration(float v, double duration)
public static SKAction stop()
public static SKAction strengthByDuration(float strength, double duration)
strength - The value to modify strength byduration - The duration of the animation, in secondsSKFieldNodepublic static SKAction strengthToDuration(float strength, double duration)
strength - The new value for strengthduration - The duration of the animation, in secondsSKFieldNodepublic static org.moe.natj.objc.Class superclass_static()
public static SKAction unhide()
public static long version_static()
public static SKAction waitForDuration(double duration)
duration - The duration of the idle, in secondspublic static SKAction waitForDurationWithRange(double duration, double durationRange)
duration - The duration of the idle, in secondsdurationRange - The range of possible values for the durationpublic static SKAction warpToDuration(SKWarpGeometry warp, double duration)
If the numberOfColumns and numberOfRows match, a smooth interpolation will be performed from the node current warp.
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic double duration()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic SKAction initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic SKAction reversedAction()
public void setDuration(double value)
public void setSpeed(double value)
public void setTimingFunction(SKAction.Block_setTimingFunction value)
SKActionTimingFunctionpublic void setTimingMode(long value)
SKActionTimingModepublic double speed()
public SKAction.Block_timingFunction_ret timingFunction()
SKActionTimingFunctionpublic long timingMode()
SKActionTimingModepublic static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding