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.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, 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 Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static @Nullable SKActionactionNamed(@NotNull java.lang.String name)Creates an action of the given name from an action file.static @Nullable SKActionactionNamedDuration(@NotNull java.lang.String name, double duration)Creates an action of the given name from an action file with a new duration.static @Nullable SKActionactionNamedFromURL(@NotNull java.lang.String name, @NotNull NSURL url)Creates an action of the given name from an action file.static @Nullable SKActionactionNamedFromURLDuration(@NotNull java.lang.String name, @NotNull NSURL url, double duration)Creates an action of the given name from an action file with a new duration.static SKActionalloc()static SKActionallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static @NotNull SKActionanimateWithNormalTexturesTimePerFrame(@NotNull NSArray<? extends SKTexture> textures, double sec)API-Since: 9.0static @NotNull SKActionanimateWithNormalTexturesTimePerFrameResizeRestore(@NotNull NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)API-Since: 9.0static @NotNull SKActionanimateWithTexturesTimePerFrame(@NotNull NSArray<? extends SKTexture> textures, double sec)Creates an action that animates changes to a sprite’s texturestatic @NotNull SKActionanimateWithTexturesTimePerFrameResizeRestore(@NotNull NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)Creates an action that animates changes to a sprite’s texturestatic @Nullable SKActionanimateWithWarpsTimes(@NotNull NSArray<? extends SKWarpGeometry> warps, @NotNull NSArray<? extends NSNumber> times)Animate through an array of warps The numberOfColumns and numberOfRows must match for all warps.static @Nullable SKActionanimateWithWarpsTimesRestore(@NotNull NSArray<? extends SKWarpGeometry> warps, @NotNull NSArray<? extends NSNumber> times, boolean restore)Animate through an array of warps The numberOfColumns and numberOfRows must match for all warps.static @NotNull SKActionapplyAngularImpulseDuration(double impulse, double duration)API-Since: 9.0static @NotNull SKActionapplyForceAtPointDuration(CGVector force, CGPoint point, double duration)API-Since: 9.0static @NotNull SKActionapplyForceDuration(CGVector force, double duration)API-Since: 9.0static @NotNull SKActionapplyImpulseAtPointDuration(CGVector impulse, CGPoint point, double duration)API-Since: 9.0static @NotNull SKActionapplyImpulseDuration(CGVector impulse, double duration)API-Since: 9.0static @NotNull SKActionapplyTorqueDuration(double torque, double duration)API-Since: 9.0static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull SKActionchangeChargeByDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeChargeToDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeMassByDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeMassToDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeObstructionByDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeObstructionToDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeOcclusionByDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeOcclusionToDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangePlaybackRateByDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangePlaybackRateToDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeReverbByDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeReverbToDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeVolumeByDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionchangeVolumeToDuration(float v, double duration)API-Since: 9.0static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static @NotNull SKActioncolorizeWithColorBlendFactorDuration(double colorBlendFactor, double sec)static @NotNull SKActioncolorizeWithColorColorBlendFactorDuration(@NotNull UIColor color, double colorBlendFactor, double duration)Creates an animation that animates a sprite’s color and blend factor@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static @NotNull SKActioncustomActionWithDurationActionBlock(double duration, @NotNull 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(@NotNull NSCoder coder)static @NotNull SKActionfadeAlphaByDuration(double factor, double duration)Creates an action that adjusts the alpha value of a node by a relative valuestatic @NotNull SKActionfadeAlphaToDuration(double alpha, double duration)Creates an action that adjusts the alpha value of a node to a new valuestatic @NotNull SKActionfadeInWithDuration(double duration)Creates an action that changes the alpha value of the node to 1.0static @NotNull SKActionfadeOutWithDuration(double duration)Creates an action that changes the alpha value of the node to 0.0static @NotNull SKActionfalloffByDuration(float falloff, double duration)Creates an action that sets the falloff of a fieldstatic @NotNull SKActionfalloffToDuration(float falloff, double duration)Creates an action that sets the falloff of a fieldstatic @NotNull SKActionfollowPathAsOffsetOrientToPathDuration(@NotNull CGPathRef path, boolean offset, boolean orient, double duration)Creates an action that moves the node along a pathstatic @NotNull SKActionfollowPathAsOffsetOrientToPathSpeed(@NotNull CGPathRef path, boolean offset, boolean orient, double speed)static @NotNull SKActionfollowPathDuration(@NotNull CGPathRef path, double duration)Creates an action that moves the node along a relative path, orienting the node to the pathstatic @NotNull SKActionfollowPathSpeed(@NotNull CGPathRef path, double speed)Creates an action that moves the node along a relative path, orienting the node to the pathstatic @NotNull SKActiongroup(@NotNull 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 @NotNull SKActionhide()Creates an action that hides a node API-Since: 8.0SKActioninit()SKActioninitWithCoder(@NotNull 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 @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static @NotNull SKActionmoveByDuration(CGVector delta, double duration)Creates an action that moves a node relative to its current positionstatic @NotNull SKActionmoveByXYDuration(double deltaX, double deltaY, double duration)static @NotNull SKActionmoveToDuration(CGPoint location, double duration)Creates an action that moves a node to a new positionstatic @NotNull SKActionmoveToXDuration(double x, double duration)static @NotNull SKActionmoveToYDuration(double y, double duration)static SKActionnew_objc()static @NotNull SKActionpause()API-Since: 9.0static @NotNull SKActionperformSelectorOnTarget(@NotNull org.moe.natj.objc.SEL selector, @NotNull java.lang.Object target)Creates an action that calls a method on an objectstatic @NotNull SKActionplay()API-Since: 9.0static @NotNull SKActionplaySoundFileNamedWaitForCompletion(@NotNull 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 @NotNull SKActionreachToNodeRootNodeDuration(@NotNull SKNode node, @NotNull SKNode root, double sec)Creates an action that performs an inverse kinematic reach.static @NotNull SKActionreachToNodeRootNodeVelocity(@NotNull SKNode node, @NotNull SKNode root, double velocity)Creates an action that performs an inverse kinematic reach.static @NotNull SKActionreachToRootNodeDuration(CGPoint position, @NotNull SKNode root, double duration)Creates an action that performs an inverse kinematic reach.static @NotNull SKActionreachToRootNodeVelocity(CGPoint position, @NotNull SKNode root, double velocity)Creates an action that performs an inverse kinematic reach.static @NotNull SKActionremoveFromParent()Creates an action that removes the node from its parentstatic @NotNull SKActionrepeatActionCount(@NotNull SKAction action, long count)Creates an action that repeats another action a specified number of timesstatic @NotNull SKActionrepeatActionForever(@NotNull SKAction action)Creates an action that repeats foreverstatic @NotNull SKActionresizeByWidthHeightDuration(double width, double height, double duration)Creates an action that adjusts the size of a spritestatic @NotNull SKActionresizeToHeightDuration(double height, double duration)static @NotNull SKActionresizeToWidthDuration(double width, double duration)static @NotNull 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)@NotNull SKActionreversedAction()Creates an action that reverses the behavior of another actionstatic @NotNull SKActionrotateByAngleDuration(double radians, double duration)Creates an action that rotates the node by a relative valuestatic @NotNull SKActionrotateToAngleDuration(double radians, double duration)Creates an action that rotates the node counterclockwise to an absolute anglestatic @NotNull SKActionrotateToAngleDurationShortestUnitArc(double radians, double duration, boolean shortestUnitArc)Creates an action that rotates the node to an absolute valuestatic @NotNull SKActionrunActionOnChildWithName(@NotNull SKAction action, @NotNull java.lang.String name)Creates an action that runs an action on a named child objectstatic @NotNull SKActionrunBlock(@NotNull SKAction.Block_runBlock block)Creates an action that executes a blockstatic @NotNull SKActionrunBlockQueue(@NotNull SKAction.Block_runBlockQueue block, @NotNull dispatch_queue_t queue)Creates an action that executes a blockstatic @NotNull SKActionscaleByDuration(double scale, double duration)Creates an action that changes the x and y scale values of a node by a relative valuestatic @NotNull SKActionscaleToDuration(double scale, double duration)Creates an action that changes the x and y scale values of a node by a relative valuestatic @NotNull SKActionscaleToSizeDuration(CGSize size, double duration)Adjust the sprite's xScale & yScale to achieve the desired size (in parent's coordinate space)static @NotNull SKActionscaleXByYDuration(double xScale, double yScale, double duration)static @NotNull SKActionscaleXToDuration(double scale, double duration)static @NotNull SKActionscaleXToYDuration(double xScale, double yScale, double duration)static @NotNull SKActionscaleYToDuration(double scale, double duration)static @NotNull SKActionsequence(@NotNull 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 @NotNull SKActionsetNormalTexture(@NotNull SKTexture texture)API-Since: 9.0static @NotNull SKActionsetNormalTextureResize(@NotNull SKTexture texture, boolean resize)API-Since: 9.0voidsetSpeed(double value)A speed factor that modifies how fast an action runs.static @NotNull SKActionsetTexture(@NotNull SKTexture texture)Creates an action that changes a sprite’s texturestatic @NotNull SKActionsetTextureResize(@NotNull SKTexture texture, boolean resize)Creates an action that changes a sprite’s texture, possibly resizing the spritevoidsetTimingFunction(@NotNull 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 @NotNull SKActionspeedByDuration(double speed, double duration)Creates an action that changes how fast the node executes actions by a relative valuestatic @NotNull SKActionspeedToDuration(double speed, double duration)Creates an action that changes how fast the node executes actionsstatic @NotNull SKActionstereoPanByDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionstereoPanToDuration(float v, double duration)API-Since: 9.0static @NotNull SKActionstop()API-Since: 9.0static @NotNull SKActionstrengthByDuration(float strength, double duration)Creates an action that sets the strength of a fieldstatic @NotNull SKActionstrengthToDuration(float strength, double duration)Creates an action that sets the strength of a fieldstatic org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()@NotNull SKAction.Block_timingFunction_rettimingFunction()When set, prodives a custom timing via a block.longtimingMode()The timing mode used to execute an actionstatic @NotNull SKActionunhide()Creates an action that unhides a node API-Since: 8.0static booleanuseStoredAccessor()Deprecated.static longversion_static()static @NotNull SKActionwaitForDuration(double duration)Creates an action that idles for a specified period of timestatic @NotNull SKActionwaitForDurationWithRange(double duration, double durationRange)Creates an action that idles for a randomized period of timestatic @Nullable SKActionwarpToDuration(@NotNull 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, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
actionNamed
@Nullable public static @Nullable SKAction actionNamed(@NotNull @NotNull java.lang.String name)
Creates an action of the given name from an action file.- Parameters:
name- The name of the action API-Since: 9.0
-
actionNamedDuration
@Nullable public static @Nullable SKAction actionNamedDuration(@NotNull @NotNull 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 API-Since: 9.0
-
actionNamedFromURL
@Nullable public static @Nullable SKAction actionNamedFromURL(@NotNull @NotNull java.lang.String name, @NotNull @NotNull 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 API-Since: 9.0
-
actionNamedFromURLDuration
@Nullable public static @Nullable SKAction actionNamedFromURLDuration(@NotNull @NotNull java.lang.String name, @NotNull @NotNull 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 API-Since: 9.0
-
alloc
public static SKAction alloc()
-
allocWithZone
public static SKAction allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateWithNormalTexturesTimePerFrame
@NotNull public static @NotNull SKAction animateWithNormalTexturesTimePerFrame(@NotNull @NotNull NSArray<? extends SKTexture> textures, double sec)
API-Since: 9.0
-
animateWithNormalTexturesTimePerFrameResizeRestore
@NotNull public static @NotNull SKAction animateWithNormalTexturesTimePerFrameResizeRestore(@NotNull @NotNull NSArray<? extends SKTexture> textures, double sec, boolean resize, boolean restore)
API-Since: 9.0
-
animateWithTexturesTimePerFrame
@NotNull public static @NotNull SKAction animateWithTexturesTimePerFrame(@NotNull @NotNull 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
@NotNull public static @NotNull SKAction animateWithTexturesTimePerFrameResizeRestore(@NotNull @NotNull 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
@Nullable public static @Nullable SKAction animateWithWarpsTimes(@NotNull @NotNull NSArray<? extends SKWarpGeometry> warps, @NotNull @NotNull 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. API-Since: 10.0
-
animateWithWarpsTimesRestore
@Nullable public static @Nullable SKAction animateWithWarpsTimesRestore(@NotNull @NotNull NSArray<? extends SKWarpGeometry> warps, @NotNull @NotNull 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. API-Since: 10.0
-
applyAngularImpulseDuration
@NotNull public static @NotNull SKAction applyAngularImpulseDuration(double impulse, double duration)
API-Since: 9.0
-
applyForceAtPointDuration
@NotNull public static @NotNull SKAction applyForceAtPointDuration(CGVector force, CGPoint point, double duration)
API-Since: 9.0
-
applyForceDuration
@NotNull public static @NotNull SKAction applyForceDuration(CGVector force, double duration)
API-Since: 9.0
-
applyImpulseAtPointDuration
@NotNull public static @NotNull SKAction applyImpulseAtPointDuration(CGVector impulse, CGPoint point, double duration)
API-Since: 9.0
-
applyImpulseDuration
@NotNull public static @NotNull SKAction applyImpulseDuration(CGVector impulse, double duration)
API-Since: 9.0
-
applyTorqueDuration
@NotNull public static @NotNull SKAction applyTorqueDuration(double torque, double duration)
API-Since: 9.0
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
changeChargeByDuration
@NotNull public static @NotNull SKAction changeChargeByDuration(float v, double duration)
API-Since: 9.0
-
changeChargeToDuration
@NotNull public static @NotNull SKAction changeChargeToDuration(float v, double duration)
API-Since: 9.0
-
changeMassByDuration
@NotNull public static @NotNull SKAction changeMassByDuration(float v, double duration)
API-Since: 9.0
-
changeMassToDuration
@NotNull public static @NotNull SKAction changeMassToDuration(float v, double duration)
API-Since: 9.0
-
changeObstructionByDuration
@NotNull public static @NotNull SKAction changeObstructionByDuration(float v, double duration)
API-Since: 9.0
-
changeObstructionToDuration
@NotNull public static @NotNull SKAction changeObstructionToDuration(float v, double duration)
API-Since: 9.0
-
changeOcclusionByDuration
@NotNull public static @NotNull SKAction changeOcclusionByDuration(float v, double duration)
API-Since: 9.0
-
changeOcclusionToDuration
@NotNull public static @NotNull SKAction changeOcclusionToDuration(float v, double duration)
API-Since: 9.0
-
changePlaybackRateByDuration
@NotNull public static @NotNull SKAction changePlaybackRateByDuration(float v, double duration)
API-Since: 9.0
-
changePlaybackRateToDuration
@NotNull public static @NotNull SKAction changePlaybackRateToDuration(float v, double duration)
API-Since: 9.0
-
changeReverbByDuration
@NotNull public static @NotNull SKAction changeReverbByDuration(float v, double duration)
API-Since: 9.0
-
changeReverbToDuration
@NotNull public static @NotNull SKAction changeReverbToDuration(float v, double duration)
API-Since: 9.0
-
changeVolumeByDuration
@NotNull public static @NotNull SKAction changeVolumeByDuration(float v, double duration)
API-Since: 9.0
-
changeVolumeToDuration
@NotNull public static @NotNull SKAction changeVolumeToDuration(float v, double duration)
API-Since: 9.0
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
colorizeWithColorColorBlendFactorDuration
@NotNull public static @NotNull SKAction colorizeWithColorColorBlendFactorDuration(@NotNull @NotNull 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
@NotNull public static @NotNull SKAction colorizeWithColorBlendFactorDuration(double colorBlendFactor, double sec)
-
customActionWithDurationActionBlock
@NotNull public static @NotNull SKAction customActionWithDurationActionBlock(double duration, @NotNull @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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:
API-Since: 8.0
-
falloffToDuration
@NotNull public static @NotNull 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:
API-Since: 8.0
-
followPathAsOffsetOrientToPathDuration
@NotNull public static @NotNull SKAction followPathAsOffsetOrientToPathDuration(@NotNull @NotNull 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
@NotNull public static @NotNull SKAction followPathAsOffsetOrientToPathSpeed(@NotNull @NotNull CGPathRef path, boolean offset, boolean orient, double speed)
-
followPathDuration
@NotNull public static @NotNull SKAction followPathDuration(@NotNull @NotNull 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
@NotNull public static @NotNull SKAction followPathSpeed(@NotNull @NotNull 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
@NotNull public static @NotNull SKAction group(@NotNull @NotNull 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
@NotNull public static @NotNull SKAction hide()
Creates an action that hides a node API-Since: 8.0
-
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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
moveByDuration
@NotNull public static @NotNull 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
@NotNull public static @NotNull SKAction moveByXYDuration(double deltaX, double deltaY, double duration)
-
moveToDuration
@NotNull public static @NotNull 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
@NotNull public static @NotNull SKAction moveToXDuration(double x, double duration)
-
moveToYDuration
@NotNull public static @NotNull SKAction moveToYDuration(double y, double duration)
-
new_objc
public static SKAction new_objc()
-
pause
@NotNull public static @NotNull SKAction pause()
API-Since: 9.0
-
performSelectorOnTarget
@NotNull public static @NotNull SKAction performSelectorOnTarget(@NotNull @NotNull org.moe.natj.objc.SEL selector, @NotNull @NotNull 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
@NotNull public static @NotNull SKAction play()
API-Since: 9.0
-
playSoundFileNamedWaitForCompletion
@NotNull public static @NotNull SKAction playSoundFileNamedWaitForCompletion(@NotNull @NotNull 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
@NotNull public static @NotNull SKAction reachToRootNodeDuration(CGPoint position, @NotNull @NotNull 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 API-Since: 8.0
-
reachToRootNodeVelocity
@NotNull public static @NotNull SKAction reachToRootNodeVelocity(CGPoint position, @NotNull @NotNull 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 API-Since: 8.0
-
reachToNodeRootNodeDuration
@NotNull public static @NotNull SKAction reachToNodeRootNodeDuration(@NotNull @NotNull SKNode node, @NotNull @NotNull 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 API-Since: 8.0
-
reachToNodeRootNodeVelocity
@NotNull public static @NotNull SKAction reachToNodeRootNodeVelocity(@NotNull @NotNull SKNode node, @NotNull @NotNull 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 API-Since: 8.0
-
removeFromParent
@NotNull public static @NotNull SKAction removeFromParent()
Creates an action that removes the node from its parent
-
repeatActionCount
@NotNull public static @NotNull SKAction repeatActionCount(@NotNull @NotNull 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
@NotNull public static @NotNull SKAction repeatActionForever(@NotNull @NotNull SKAction action)
Creates an action that repeats forever- Parameters:
action- The action to execute
-
resizeByWidthHeightDuration
@NotNull public static @NotNull 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
@NotNull public static @NotNull SKAction resizeToHeightDuration(double height, double duration)
-
resizeToWidthDuration
@NotNull public static @NotNull SKAction resizeToWidthDuration(double width, double duration)
-
resizeToWidthHeightDuration
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull SKAction runActionOnChildWithName(@NotNull @NotNull SKAction action, @NotNull @NotNull 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
@NotNull public static @NotNull SKAction runBlock(@NotNull @NotNull SKAction.Block_runBlock block)
Creates an action that executes a block- Parameters:
block- The block to run
-
runBlockQueue
@NotNull public static @NotNull SKAction runBlockQueue(@NotNull @NotNull SKAction.Block_runBlockQueue block, @NotNull @NotNull dispatch_queue_t queue)
Creates an action that executes a block- Parameters:
block- The block to runqueue- The queue to perform the action on
-
scaleByDuration
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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 API-Since: 10.0
-
scaleXByYDuration
@NotNull public static @NotNull SKAction scaleXByYDuration(double xScale, double yScale, double duration)
-
scaleXToDuration
@NotNull public static @NotNull SKAction scaleXToDuration(double scale, double duration)
-
scaleXToYDuration
@NotNull public static @NotNull SKAction scaleXToYDuration(double xScale, double yScale, double duration)
-
scaleYToDuration
@NotNull public static @NotNull SKAction scaleYToDuration(double scale, double duration)
-
sequence
@NotNull public static @NotNull SKAction sequence(@NotNull @NotNull 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
-
setNormalTexture
@NotNull public static @NotNull SKAction setNormalTexture(@NotNull @NotNull SKTexture texture)
API-Since: 9.0
-
setNormalTextureResize
@NotNull public static @NotNull SKAction setNormalTextureResize(@NotNull @NotNull SKTexture texture, boolean resize)
API-Since: 9.0
-
setTexture
@NotNull public static @NotNull SKAction setTexture(@NotNull @NotNull SKTexture texture)
Creates an action that changes a sprite’s texture- Parameters:
texture- The new texture to use on the sprite API-Since: 7.1
-
setTextureResize
@NotNull public static @NotNull SKAction setTextureResize(@NotNull @NotNull 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. API-Since: 7.1
-
setVersion_static
public static void setVersion_static(long aVersion)
-
speedByDuration
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@NotNull public static @NotNull SKAction stereoPanByDuration(float v, double duration)
API-Since: 9.0
-
stereoPanToDuration
@NotNull public static @NotNull SKAction stereoPanToDuration(float v, double duration)
API-Since: 9.0
-
stop
@NotNull public static @NotNull SKAction stop()
API-Since: 9.0
-
strengthByDuration
@NotNull public static @NotNull 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:
API-Since: 8.0
-
strengthToDuration
@NotNull public static @NotNull 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:
API-Since: 8.0
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
unhide
@NotNull public static @NotNull SKAction unhide()
Creates an action that unhides a node API-Since: 8.0
-
version_static
public static long version_static()
-
waitForDuration
@NotNull public static @NotNull 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
@NotNull public static @NotNull 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
@Nullable public static @Nullable SKAction warpToDuration(@NotNull @NotNull 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. API-Since: 10.0
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable 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(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
initWithCoder
public SKAction initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
reversedAction
@NotNull public @NotNull 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(@NotNull @NotNull 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:
API-Since: 8.0
-
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
@NotNull public @NotNull 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:
API-Since: 8.0
-
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
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-