Package apple.spritekit
Class SKAction
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.spritekit.SKAction
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject
public class SKAction extends NSObject implements NSCopying, NSSecureCoding
An SKAction object is an action that is executed by a node in the scene. Actions are most often used to change the structure and content of the node to which they are attached, but can also make other changes to the scene. When the scene processes its nodes, actions associated with those nodes are evaluated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSKAction.Block_customActionWithDurationActionBlockstatic interfaceSKAction.Block_runBlockstatic interfaceSKAction.Block_runBlockQueuestatic interfaceSKAction.Block_setTimingFunctionstatic interfaceSKAction.Block_timingFunction_ret-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSKAction(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static SKActionactionNamed(java.lang.String name)Creates an action of the given name from an action file.static SKActionactionNamedDuration(java.lang.String name, double duration)Creates an action of the given name from an action file with a new duration.static SKActionactionNamedFromURL(java.lang.String name, NSURL url)Creates an action of the given name from an action file.static SKActionactionNamedFromURLDuration(java.lang.String name, NSURL url, double duration)Creates an action of the given name from an action file with a new duration.static SKActionalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static SKActionanimateWithNormalTexturesTimePerFrame(NSArray<? extends SKTexture> textures, double sec)static SKActionanimateWithNormalTexturesTimePerFrameResizeRestore(NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)static SKActionanimateWithTexturesTimePerFrame(NSArray<? extends SKTexture> textures, double sec)Creates an action that animates changes to a sprite’s texturestatic SKActionanimateWithTexturesTimePerFrameResizeRestore(NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)Creates an action that animates changes to a sprite’s texturestatic SKActionanimateWithWarpsTimes(NSArray<? extends SKWarpGeometry> warps, NSArray<? extends NSNumber> times)Animate through an array of warps The numberOfColumns and numberOfRows must match for all warps.static SKActionanimateWithWarpsTimesRestore(NSArray<? extends SKWarpGeometry> warps, NSArray<? extends NSNumber> times, boolean restore)Animate through an array of warps The numberOfColumns and numberOfRows must match for all warps.static SKActionapplyAngularImpulseDuration(double impulse, double duration)static SKActionapplyForceAtPointDuration(CGVector force, CGPoint point, double duration)static SKActionapplyForceDuration(CGVector force, double duration)static SKActionapplyImpulseAtPointDuration(CGVector impulse, CGPoint point, double duration)static SKActionapplyImpulseDuration(CGVector impulse, double duration)static SKActionapplyTorqueDuration(double torque, double duration)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static SKActionchangeChargeByDuration(float v, double duration)static SKActionchangeChargeToDuration(float v, double duration)static SKActionchangeMassByDuration(float v, double duration)static SKActionchangeMassToDuration(float v, double duration)static SKActionchangeObstructionByDuration(float v, double duration)static SKActionchangeObstructionToDuration(float v, double duration)static SKActionchangeOcclusionByDuration(float v, double duration)static SKActionchangeOcclusionToDuration(float v, double duration)static SKActionchangePlaybackRateByDuration(float v, double duration)static SKActionchangePlaybackRateToDuration(float v, double duration)static SKActionchangeReverbByDuration(float v, double duration)static SKActionchangeReverbToDuration(float v, double duration)static SKActionchangeVolumeByDuration(float v, double duration)static SKActionchangeVolumeToDuration(float v, double duration)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static SKActioncolorizeWithColorBlendFactorDuration(double colorBlendFactor, double sec)static SKActioncolorizeWithColorColorBlendFactorDuration(UIColor color, double colorBlendFactor, double duration)Creates an animation that animates a sprite’s color and blend factorjava.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static SKActioncustomActionWithDurationActionBlock(double duration, SKAction.Block_customActionWithDurationActionBlock block)Creates an action that executes a block over a durationstatic java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()doubleduration()The duration required to complete an action, in seconds.voidencodeWithCoder(NSCoder coder)static SKActionfadeAlphaByDuration(double factor, double duration)Creates an action that adjusts the alpha value of a node by a relative valuestatic SKActionfadeAlphaToDuration(double alpha, double duration)Creates an action that adjusts the alpha value of a node to a new valuestatic SKActionfadeInWithDuration(double duration)Creates an action that changes the alpha value of the node to 1.0static SKActionfadeOutWithDuration(double duration)Creates an action that changes the alpha value of the node to 0.0static SKActionfalloffByDuration(float falloff, double duration)Creates an action that sets the falloff of a fieldstatic SKActionfalloffToDuration(float falloff, double duration)Creates an action that sets the falloff of a fieldstatic SKActionfollowPathAsOffsetOrientToPathDuration(CGPathRef path, boolean offset, boolean orient, double duration)Creates an action that moves the node along a pathstatic SKActionfollowPathAsOffsetOrientToPathSpeed(CGPathRef path, boolean offset, boolean orient, double speed)static SKActionfollowPathDuration(CGPathRef path, double duration)Creates an action that moves the node along a relative path, orienting the node to the pathstatic SKActionfollowPathSpeed(CGPathRef path, double speed)Creates an action that moves the node along a relative path, orienting the node to the pathstatic SKActiongroup(NSArray<? extends SKAction> actions)Creates an action that runs a collection of actions concurrently When the action executes, the actions that comprise the group all start immediately and run in parallel.static longhash_static()static SKActionhide()Creates an action that hides a nodeSKActioninit()SKActioninitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static SKActionmoveByDuration(CGVector delta, double duration)Creates an action that moves a node relative to its current positionstatic SKActionmoveByXYDuration(double deltaX, double deltaY, double duration)static SKActionmoveToDuration(CGPoint location, double duration)Creates an action that moves a node to a new positionstatic SKActionmoveToXDuration(double x, double duration)static SKActionmoveToYDuration(double y, double duration)static java.lang.Objectnew_objc()static SKActionpause()static SKActionperformSelectorOnTarget(org.moe.natj.objc.SEL selector, java.lang.Object target)Creates an action that calls a method on an objectstatic SKActionplay()static SKActionplaySoundFileNamedWaitForCompletion(java.lang.String soundFile, boolean wait_)Creates an action that plays a sound The file name must be the name or path of a file of a platform supported audio file format.static SKActionreachToNodeRootNodeDuration(SKNode node, SKNode root, double sec)Creates an action that performs an inverse kinematic reach.static SKActionreachToNodeRootNodeVelocity(SKNode node, SKNode root, double velocity)Creates an action that performs an inverse kinematic reach.static SKActionreachToRootNodeDuration(CGPoint position, SKNode root, double duration)Creates an action that performs an inverse kinematic reach.static SKActionreachToRootNodeVelocity(CGPoint position, SKNode root, double velocity)Creates an action that performs an inverse kinematic reach.static SKActionremoveFromParent()Creates an action that removes the node from its parentstatic SKActionrepeatActionCount(SKAction action, long count)Creates an action that repeats another action a specified number of timesstatic SKActionrepeatActionForever(SKAction action)Creates an action that repeats foreverstatic SKActionresizeByWidthHeightDuration(double width, double height, double duration)Creates an action that adjusts the size of a spritestatic SKActionresizeToHeightDuration(double height, double duration)static SKActionresizeToWidthDuration(double width, double duration)static SKActionresizeToWidthHeightDuration(double width, double height, double duration)Creates an action that changes the width and height of a sprite to a new absolute valuestatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)SKActionreversedAction()Creates an action that reverses the behavior of another actionstatic SKActionrotateByAngleDuration(double radians, double duration)Creates an action that rotates the node by a relative valuestatic SKActionrotateToAngleDuration(double radians, double duration)Creates an action that rotates the node counterclockwise to an absolute anglestatic SKActionrotateToAngleDurationShortestUnitArc(double radians, double duration, boolean shortestUnitArc)Creates an action that rotates the node to an absolute valuestatic SKActionrunActionOnChildWithName(SKAction action, java.lang.String name)Creates an action that runs an action on a named child objectstatic SKActionrunBlock(SKAction.Block_runBlock block)Creates an action that executes a blockstatic SKActionrunBlockQueue(SKAction.Block_runBlockQueue block, NSObject queue)Creates an action that executes a blockstatic SKActionscaleByDuration(double scale, double duration)Creates an action that changes the x and y scale values of a node by a relative valuestatic SKActionscaleToDuration(double scale, double duration)Creates an action that changes the x and y scale values of a node by a relative valuestatic SKActionscaleToSizeDuration(CGSize size, double duration)Adjust the sprite's xScale & yScale to achieve the desired size (in parent's coordinate space)static SKActionscaleXByYDuration(double xScale, double yScale, double duration)static SKActionscaleXToDuration(double scale, double duration)static SKActionscaleXToYDuration(double xScale, double yScale, double duration)static SKActionscaleYToDuration(double scale, double duration)static SKActionsequence(NSArray<? extends SKAction> actions)Creates an action that runs a collection of actions sequentially When the action executes, the first action in the sequence starts and runs to completion.voidsetDuration(double value)The duration required to complete an action, in seconds.static SKActionsetNormalTexture(SKTexture texture)static SKActionsetNormalTextureResize(SKTexture texture, boolean resize)voidsetSpeed(double value)A speed factor that modifies how fast an action runs.static SKActionsetTexture(SKTexture texture)Creates an action that changes a sprite’s texturestatic SKActionsetTextureResize(SKTexture texture, boolean resize)Creates an action that changes a sprite’s texture, possibly resizing the spritevoidsetTimingFunction(SKAction.Block_setTimingFunction value)When set, prodives a custom timing via a block.voidsetTimingMode(long value)The timing mode used to execute an actionstatic voidsetVersion_static(long aVersion)doublespeed()A speed factor that modifies how fast an action runs.static SKActionspeedByDuration(double speed, double duration)Creates an action that changes how fast the node executes actions by a relative valuestatic SKActionspeedToDuration(double speed, double duration)Creates an action that changes how fast the node executes actionsstatic SKActionstereoPanByDuration(float v, double duration)static SKActionstereoPanToDuration(float v, double duration)static SKActionstop()static SKActionstrengthByDuration(float strength, double duration)Creates an action that sets the strength of a fieldstatic SKActionstrengthToDuration(float strength, double duration)Creates an action that sets the strength of a fieldstatic org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()SKAction.Block_timingFunction_rettimingFunction()When set, prodives a custom timing via a block.longtimingMode()The timing mode used to execute an actionstatic SKActionunhide()Creates an action that unhides a nodestatic longversion_static()static SKActionwaitForDuration(double duration)Creates an action that idles for a specified period of timestatic SKActionwaitForDurationWithRange(double duration, double durationRange)Creates an action that idles for a randomized period of timestatic SKActionwarpToDuration(SKWarpGeometry warp, double duration)Animate from the node's current warpGeometry to a new one over the specified duration.-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
actionNamed
public static SKAction actionNamed(java.lang.String name)
Creates an action of the given name from an action file.- Parameters:
name- The name of the action
-
actionNamedDuration
public static SKAction actionNamedDuration(java.lang.String name, double duration)
Creates an action of the given name from an action file with a new duration.- Parameters:
name- The name of the actionduration- The duration of the action
-
actionNamedFromURL
public static SKAction actionNamedFromURL(java.lang.String name, NSURL url)
Creates an action of the given name from an action file.- Parameters:
name- The name of the actionurl- The url of the file containing the action
-
actionNamedFromURLDuration
public 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.- Parameters:
name- The name of the actionurl- The url of the file containing the actionduration- The duration of the action
-
alloc
public static SKAction alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateWithNormalTexturesTimePerFrame
public static SKAction animateWithNormalTexturesTimePerFrame(NSArray<? extends SKTexture> textures, double sec)
-
animateWithNormalTexturesTimePerFrameResizeRestore
public static SKAction animateWithNormalTexturesTimePerFrameResizeRestore(NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)
-
animateWithTexturesTimePerFrame
public static SKAction animateWithTexturesTimePerFrame(NSArray<? extends SKTexture> textures, double sec)
Creates an action that animates changes to a sprite’s texture- Parameters:
textures- An array of textures to use when animating a spritesec- The amount of time that each texture is displayed
-
animateWithTexturesTimePerFrameResizeRestore
public static SKAction animateWithTexturesTimePerFrameResizeRestore(NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)
Creates an action that animates changes to a sprite’s texture- Parameters:
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.
-
animateWithWarpsTimes
public static SKAction animateWithWarpsTimes(NSArray<? extends SKWarpGeometry> warps, NSArray<? extends NSNumber> times)
Animate through an array of warps The numberOfColumns and numberOfRows must match for all warps. Times are specified in seconds and must be increasing values.
-
animateWithWarpsTimesRestore
public static SKAction animateWithWarpsTimesRestore(NSArray<? extends SKWarpGeometry> warps, NSArray<? extends NSNumber> times, boolean restore)
Animate through an array of warps 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.
-
applyAngularImpulseDuration
public static SKAction applyAngularImpulseDuration(double impulse, double duration)
-
applyForceAtPointDuration
public static SKAction applyForceAtPointDuration(CGVector force, CGPoint point, double duration)
-
applyImpulseAtPointDuration
public static SKAction applyImpulseAtPointDuration(CGVector impulse, CGPoint point, double duration)
-
applyImpulseDuration
public static SKAction applyImpulseDuration(CGVector impulse, double duration)
-
applyTorqueDuration
public static SKAction applyTorqueDuration(double torque, double duration)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
changeChargeByDuration
public static SKAction changeChargeByDuration(float v, double duration)
-
changeChargeToDuration
public static SKAction changeChargeToDuration(float v, double duration)
-
changeMassByDuration
public static SKAction changeMassByDuration(float v, double duration)
-
changeMassToDuration
public static SKAction changeMassToDuration(float v, double duration)
-
changeObstructionByDuration
public static SKAction changeObstructionByDuration(float v, double duration)
-
changeObstructionToDuration
public static SKAction changeObstructionToDuration(float v, double duration)
-
changeOcclusionByDuration
public static SKAction changeOcclusionByDuration(float v, double duration)
-
changeOcclusionToDuration
public static SKAction changeOcclusionToDuration(float v, double duration)
-
changePlaybackRateByDuration
public static SKAction changePlaybackRateByDuration(float v, double duration)
-
changePlaybackRateToDuration
public static SKAction changePlaybackRateToDuration(float v, double duration)
-
changeReverbByDuration
public static SKAction changeReverbByDuration(float v, double duration)
-
changeReverbToDuration
public static SKAction changeReverbToDuration(float v, double duration)
-
changeVolumeByDuration
public static SKAction changeVolumeByDuration(float v, double duration)
-
changeVolumeToDuration
public static SKAction changeVolumeToDuration(float v, double duration)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
colorizeWithColorColorBlendFactorDuration
public static SKAction colorizeWithColorColorBlendFactorDuration(UIColor color, double colorBlendFactor, double duration)
Creates an animation that animates a sprite’s color and blend factor- Parameters:
color- The new color for the spritecolorBlendFactor- The new blend factor for the spriteduration- The duration of the animation, in seconds
-
colorizeWithColorBlendFactorDuration
public static SKAction colorizeWithColorBlendFactorDuration(double colorBlendFactor, double sec)
-
customActionWithDurationActionBlock
public static SKAction customActionWithDurationActionBlock(double duration, SKAction.Block_customActionWithDurationActionBlock block)
Creates an action that executes a block over a duration- Parameters:
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.
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
fadeAlphaByDuration
public static SKAction fadeAlphaByDuration(double factor, double duration)
Creates an action that adjusts the alpha value of a node by a relative value- Parameters:
factor- The amount to modify the node’s alpha valueduration- The duration of the animation, in seconds
-
fadeAlphaToDuration
public static SKAction fadeAlphaToDuration(double alpha, double duration)
Creates an action that adjusts the alpha value of a node to a new value- Parameters:
alpha- The new value of the node’s alphaduration- The duration of the animation, in seconds
-
fadeInWithDuration
public static SKAction fadeInWithDuration(double duration)
Creates an action that changes the alpha value of the node to 1.0- Parameters:
duration- The duration of the animation, in seconds
-
fadeOutWithDuration
public static SKAction fadeOutWithDuration(double duration)
Creates an action that changes the alpha value of the node to 0.0- Parameters:
duration- The duration of the animation, in seconds
-
falloffByDuration
public static SKAction falloffByDuration(float falloff, double duration)
Creates an action that sets the falloff of a field- Parameters:
falloff- The value to modify falloff byduration- The duration of the animation, in seconds- See Also:
SKFieldNode
-
falloffToDuration
public static SKAction falloffToDuration(float falloff, double duration)
Creates an action that sets the falloff of a field- Parameters:
falloff- The new value for falloffduration- The duration of the animation, in seconds- See Also:
SKFieldNode
-
followPathAsOffsetOrientToPathDuration
public static SKAction followPathAsOffsetOrientToPathDuration(CGPathRef path, boolean offset, boolean orient, double duration)
Creates an action that moves the node along a path- Parameters:
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 animation
-
followPathAsOffsetOrientToPathSpeed
public static SKAction followPathAsOffsetOrientToPathSpeed(CGPathRef path, boolean offset, boolean orient, double speed)
-
followPathDuration
public static SKAction followPathDuration(CGPathRef path, double duration)
Creates an action that moves the node along a relative path, orienting the node to the path- Parameters:
path- A Core Graphics path whose coordinates are relative to the node’s current positionduration- The duration of the animation, in seconds
-
followPathSpeed
public static SKAction followPathSpeed(CGPathRef path, double speed)
Creates an action that moves the node along a relative path, orienting the node to the path- Parameters:
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 path
-
group
public static SKAction group(NSArray<? extends SKAction> actions)
Creates an action that runs a collection of actions concurrently 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.- Parameters:
actions- An array of SKAction objects
-
hash_static
public static long hash_static()
-
hide
public static SKAction hide()
Creates an action that hides a node
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
moveByDuration
public static SKAction moveByDuration(CGVector delta, double duration)
Creates an action that moves a node relative to its current position- Parameters:
delta- A vector that describes the change to apply to the node’s positionduration- The duration of the animation, in seconds
-
moveByXYDuration
public static SKAction moveByXYDuration(double deltaX, double deltaY, double duration)
-
moveToDuration
public static SKAction moveToDuration(CGPoint location, double duration)
Creates an action that moves a node to a new position- Parameters:
location- The coordinates for the node’s new positionduration- The duration of the animation, in seconds
-
moveToXDuration
public static SKAction moveToXDuration(double x, double duration)
-
moveToYDuration
public static SKAction moveToYDuration(double y, double duration)
-
new_objc
public static java.lang.Object new_objc()
-
pause
public static SKAction pause()
-
performSelectorOnTarget
public static SKAction performSelectorOnTarget(org.moe.natj.objc.SEL selector, java.lang.Object target)
Creates an action that calls a method on an object- Parameters:
selector- The selector of the method to calltarget- The target object
-
play
public static SKAction play()
-
playSoundFileNamedWaitForCompletion
public static SKAction playSoundFileNamedWaitForCompletion(java.lang.String soundFile, boolean wait_)
Creates an action that plays a sound 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- Parameters:
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.
-
reachToRootNodeDuration
public static SKAction reachToRootNodeDuration(CGPoint position, SKNode root, double duration)
Creates an action that performs an inverse kinematic reach. This action must be run on a descendent of the rootNode for animation to occur. Running this action on the rootNode itself will not cause any animation to occur.- Parameters:
position- The position (in screen space) to reach forroot- Where to start the inverse kinematic operation fromduration- The duration of the animation, in seconds
-
reachToRootNodeVelocity
public static SKAction reachToRootNodeVelocity(CGPoint position, SKNode root, double velocity)
Creates an action that performs an inverse kinematic reach. This action must be run on a descendent of the rootNode for animation to occur. Running this action on the rootNode itself will not cause any animation to occur.- Parameters:
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 chain
-
reachToNodeRootNodeDuration
public static SKAction reachToNodeRootNodeDuration(SKNode node, SKNode root, double sec)
Creates an action that performs an inverse kinematic reach. This action must be run on a descendent of the rootNode for animation to occur. Running this action on the rootNode itself will not cause any animation to occur.- Parameters:
node- The node to reach forroot- Where to start the inverse kinematic operation fromsec- The duration of the animation, in seconds
-
reachToNodeRootNodeVelocity
public static SKAction reachToNodeRootNodeVelocity(SKNode node, SKNode root, double velocity)
Creates an action that performs an inverse kinematic reach. This action must be run on a descendent of the rootNode for animation to occur. Running this action on the rootNode itself will not cause any animation to occur.- Parameters:
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 chain
-
removeFromParent
public static SKAction removeFromParent()
Creates an action that removes the node from its parent
-
repeatActionCount
public static SKAction repeatActionCount(SKAction action, long count)
Creates an action that repeats another action a specified number of times- Parameters:
action- The action to executecount- The number of times to execute the action
-
repeatActionForever
public static SKAction repeatActionForever(SKAction action)
Creates an action that repeats forever- Parameters:
action- The action to execute
-
resizeByWidthHeightDuration
public static SKAction resizeByWidthHeightDuration(double width, double height, double duration)
Creates an action that adjusts the size of a sprite- Parameters:
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 seconds
-
resizeToHeightDuration
public static SKAction resizeToHeightDuration(double height, double duration)
-
resizeToWidthDuration
public static SKAction resizeToWidthDuration(double width, double duration)
-
resizeToWidthHeightDuration
public 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- Parameters:
width- The new width of the spriteheight- The new height of the spriteduration- The duration of the animation, in seconds
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
rotateByAngleDuration
public static SKAction rotateByAngleDuration(double radians, double duration)
Creates an action that rotates the node by a relative value- Parameters:
radians- The amount to rotate the node, in radiansduration- The duration of the animation, in seconds
-
rotateToAngleDuration
public static SKAction rotateToAngleDuration(double radians, double duration)
Creates an action that rotates the node counterclockwise to an absolute angle- Parameters:
radians- The angle to rotate the node to, in radiansduration- The duration of the animation
-
rotateToAngleDurationShortestUnitArc
public static SKAction rotateToAngleDurationShortestUnitArc(double radians, double duration, boolean shortestUnitArc)
Creates an action that rotates the node to an absolute value- Parameters:
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 interpolated
-
runActionOnChildWithName
public static SKAction runActionOnChildWithName(SKAction action, java.lang.String name)
Creates an action that runs an action on a named child object- Parameters:
action- the action to runname- the name of a child object- See Also:
SKNode.name
-
runBlock
public static SKAction runBlock(SKAction.Block_runBlock block)
Creates an action that executes a block- Parameters:
block- The block to run
-
runBlockQueue
public static SKAction runBlockQueue(SKAction.Block_runBlockQueue block, NSObject queue)
Creates an action that executes a block- Parameters:
block- The block to runqueue- The queue to perform the action on
-
scaleByDuration
public 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- Parameters:
scale- The amount to modify to the node’s x and y scale valuesduration- The duration of the animation, in seconds
-
scaleToDuration
public 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- Parameters:
scale- The new value for the node’s x and y scale valuesduration- The duration of the animation, in seconds
-
scaleToSizeDuration
public static SKAction scaleToSizeDuration(CGSize size, double duration)
Adjust the sprite's xScale & yScale to achieve the desired size (in parent's coordinate space)- Parameters:
duration- The duration of the animation, in seconds
-
scaleXByYDuration
public static SKAction scaleXByYDuration(double xScale, double yScale, double duration)
-
scaleXToDuration
public static SKAction scaleXToDuration(double scale, double duration)
-
scaleXToYDuration
public static SKAction scaleXToYDuration(double xScale, double yScale, double duration)
-
scaleYToDuration
public static SKAction scaleYToDuration(double scale, double duration)
-
sequence
public static SKAction sequence(NSArray<? extends SKAction> actions)
Creates an action that runs a collection of actions sequentially 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}.- Parameters:
actions- An array of SKAction objects
-
setNormalTextureResize
public static SKAction setNormalTextureResize(SKTexture texture, boolean resize)
-
setTexture
public static SKAction setTexture(SKTexture texture)
Creates an action that changes a sprite’s texture- Parameters:
texture- The new texture to use on the sprite
-
setTextureResize
public static SKAction setTextureResize(SKTexture texture, boolean resize)
Creates an action that changes a sprite’s texture, possibly resizing the sprite- Parameters:
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.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
speedByDuration
public static SKAction speedByDuration(double speed, double duration)
Creates an action that changes how fast the node executes actions by a relative value- Parameters:
speed- amount to modify the speed byduration- The duration of the animation, in seconds
-
speedToDuration
public static SKAction speedToDuration(double speed, double duration)
Creates an action that changes how fast the node executes actions- Parameters:
speed- The new value for the node’s speedduration- The duration of the animation, in seconds
-
stereoPanByDuration
public static SKAction stereoPanByDuration(float v, double duration)
-
stereoPanToDuration
public static SKAction stereoPanToDuration(float v, double duration)
-
stop
public static SKAction stop()
-
strengthByDuration
public static SKAction strengthByDuration(float strength, double duration)
Creates an action that sets the strength of a field- Parameters:
strength- The value to modify strength byduration- The duration of the animation, in seconds- See Also:
SKFieldNode
-
strengthToDuration
public static SKAction strengthToDuration(float strength, double duration)
Creates an action that sets the strength of a field- Parameters:
strength- The new value for strengthduration- The duration of the animation, in seconds- See Also:
SKFieldNode
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
unhide
public static SKAction unhide()
Creates an action that unhides a node
-
version_static
public static long version_static()
-
waitForDuration
public static SKAction waitForDuration(double duration)
Creates an action that idles for a specified period of time- Parameters:
duration- The duration of the idle, in seconds
-
waitForDurationWithRange
public static SKAction waitForDurationWithRange(double duration, double durationRange)
Creates an action that idles for a randomized period of time- Parameters:
duration- The duration of the idle, in secondsdurationRange- The range of possible values for the duration
-
warpToDuration
public static SKAction warpToDuration(SKWarpGeometry warp, double duration)
Animate from the node's current warpGeometry to a new one over the specified duration. If the numberOfColumns and numberOfRows match, a smooth interpolation will be performed from the node current warp.
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
duration
public double duration()
The duration required to complete an action, in seconds.
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
initWithCoder
public SKAction initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
reversedAction
public SKAction reversedAction()
Creates an action that reverses the behavior of another action- Returns:
- This method always returns an action object; however, not all actions are reversible
-
setDuration
public void setDuration(double value)
The duration required to complete an action, in seconds.
-
setSpeed
public void setSpeed(double value)
A speed factor that modifies how fast an action runs. Default value is 1.0
-
setTimingFunction
public void setTimingFunction(SKAction.Block_setTimingFunction value)
When set, prodives a custom timing via a block. Applies after the 'timingMode' property is taken into account, defaults to nil- See Also:
SKActionTimingFunction
-
setTimingMode
public void setTimingMode(long value)
The timing mode used to execute an action- See Also:
SKActionTimingMode
-
speed
public double speed()
A speed factor that modifies how fast an action runs. Default value is 1.0
-
timingFunction
public SKAction.Block_timingFunction_ret timingFunction()
When set, prodives a custom timing via a block. Applies after the 'timingMode' property is taken into account, defaults to nil- See Also:
SKActionTimingFunction
-
timingMode
public long timingMode()
The timing mode used to execute an action- See Also:
SKActionTimingMode
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
-