Class 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.
    • Constructor Detail

      • SKAction

        protected SKAction​(org.moe.natj.general.Pointer peer)
    • 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 action
        duration - 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 action
        url - 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 action
        url - The url of the file containing the action
        duration - 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 sprite
        sec - 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 sprite
        sec - The amount of time that each texture is displayed
        resize - 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 sprite
        colorBlendFactor - The new blend factor for the sprite
        duration - 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 seconds
        block - 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 value
        duration - 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 alpha
        duration - 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 by
        duration - 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 falloff
        duration - 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 position
        offset - 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 position
        duration - 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 position
        speed - 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
      • 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 position
        duration - 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 position
        duration - 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 call
        target - 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 bundle
        wait - 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 for
        root - Where to start the inverse kinematic operation from
        duration - 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 for
        root - Where to start the inverse kinematic operation from
        velocity - 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 for
        root - Where to start the inverse kinematic operation from
        sec - 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 for
        root - Where to start the inverse kinematic operation from
        velocity - 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 execute
        count - 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 width
        height - The amount to add to the sprite’s height
        duration - 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 sprite
        height - The new height of the sprite
        duration - 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 radians
        duration - 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 radians
        duration - 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 radians
        duration - The duration of the animation, in seconds
        shortestUnitArc - 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 run
        name - 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 run
        queue - 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 values
        duration - 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 values
        duration - 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 sprite
        resize - 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 by
        duration - 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 speed
        duration - 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 by
        duration - 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 strength
        duration - 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 seconds
        durationRange - 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:
        copyWithZone in interface NSCopying
      • duration

        public double duration()
        The duration required to complete an action, in seconds.
      • 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: NSSecureCoding
        This 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:
        _supportsSecureCoding in interface NSSecureCoding
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.