Class SKEmitterNode

    • Constructor Detail

      • SKEmitterNode

        protected SKEmitterNode​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • nodeWithFileNamed

        public static SKEmitterNode nodeWithFileNamed​(java.lang.String filename)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • advanceSimulationTime

        public void advanceSimulationTime​(double sec)
        The particle simulation is stepped automatically each frame when present in the scene. This allows the user to manually advance the simulation by a fixed amount of time. Useful for pre-populating particles before adding them to the scene.
      • emissionAngle

        public double emissionAngle()
        The angle at which to emit each new particle, in radians. Defaults to 0.0.
      • emissionAngleRange

        public double emissionAngleRange()
        The random variance about the angle at which to emit each new particle, in radians. Defaults to 0.0.
      • fieldBitMask

        public int fieldBitMask()
        Defines what logical 'categories' of fields this particles emitted respond to. Defaults to all bits set (all categories). Can be forced off via affectedByGravity.
      • numParticlesToEmit

        public long numParticlesToEmit()
        The number of particles that will be emitted. If set to 0, there is no limit. Defaults to 0.
      • particleAction

        public SKAction particleAction()
        Specifies an action executed by new particles.
      • particleAlpha

        public double particleAlpha()
        The starting alpha for each particle. Defaults to 1.0.
      • particleAlphaRange

        public double particleAlphaRange()
        The random variance about the starting alpha for each particle. Defaults to 1.0.
      • particleAlphaSpeed

        public double particleAlphaSpeed()
        The rate at which to modify the alpha for each particle. Defaults to 1.0.
      • particleBirthRate

        public double particleBirthRate()
        The rate at which new particles are generated, in particles per second. Defaults to 0.0.
      • particleBlendMode

        public long particleBlendMode()
        The blend mode for each particle. Defaults to SKBlendModeAlpha.
      • particleColor

        public UIColor particleColor()
        The starting color for each particle. Defaults to clear.
      • particleColorAlphaRange

        public double particleColorAlphaRange()
      • particleColorAlphaSpeed

        public double particleColorAlphaSpeed()
      • particleColorBlendFactor

        public double particleColorBlendFactor()
        The starting color blend for each particle. Behaves the same as SKSpriteNode. Defaults to 0.0.
      • particleColorBlendFactorRange

        public double particleColorBlendFactorRange()
        The random variance about the starting color blend for each particle. Defaults to 0.0.
      • particleColorBlendFactorSequence

        public SKKeyframeSequence particleColorBlendFactorSequence()
      • particleColorBlendFactorSpeed

        public double particleColorBlendFactorSpeed()
        The rate at which to modify the color blend for each particle. Defaults to 0.0.
      • particleColorBlueRange

        public double particleColorBlueRange()
      • particleColorBlueSpeed

        public double particleColorBlueSpeed()
      • particleColorGreenRange

        public double particleColorGreenRange()
      • particleColorGreenSpeed

        public double particleColorGreenSpeed()
      • particleColorRedRange

        public double particleColorRedRange()
        The random variance about each color component for each particle. Defaults to 0.0.
      • particleColorRedSpeed

        public double particleColorRedSpeed()
        The rate at which to modify each color component for each particle (per second).
      • particleLifetime

        public double particleLifetime()
        The lifetime of each particle, in seconds. Defaults to 0.0.
      • particleLifetimeRange

        public double particleLifetimeRange()
        The random variance about the lifetime of each particle, in seconds. Defaults to 0.0.
      • particlePosition

        public CGPoint particlePosition()
        The starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
      • particlePositionRange

        public CGVector particlePositionRange()
        The random variance about the starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
      • particleRenderOrder

        public long particleRenderOrder()
        The order in which particles will be rendered. Defaults to SKParticleRenderOrderOldestLast.
      • particleRotation

        public double particleRotation()
        The starting z-rotation for each particle. Defaults to 0.0.
      • particleRotationRange

        public double particleRotationRange()
        The random variance about the starting z-rotation for each particle. Defaults to 0.0.
      • particleRotationSpeed

        public double particleRotationSpeed()
        The rate at which to modify the z-rotation for each particle. Defaults to 0.0.
      • particleScale

        public double particleScale()
        The starting scale for each particle. Defaults to 1.0.
      • particleScaleRange

        public double particleScaleRange()
        The random variance about the starting scale for each particle. Defaults to 0.0.
      • particleScaleSpeed

        public double particleScaleSpeed()
        The rate at which to modify the scale for each particle. Defaults to 0.0.
      • particleSize

        public CGSize particleSize()
        The starting size for each particle. If set to CGSizeZero (the default) the particles will start at the size of the texture assigned to particleTexture. Note that particleScale and particleScaleRange will also have an effect on the effective size of each new particle.
      • particleSpeed

        public double particleSpeed()
        The starting speed for each particle along its emission vector. Defaults to 0.0.
      • particleSpeedRange

        public double particleSpeedRange()
        The random variance about the starting speed for each particle along its emission vector. Defaults to 0.0.
      • particleTexture

        public SKTexture particleTexture()
        The texture to be used for the particles.
      • particleZPosition

        public double particleZPosition()
        The starting z-position for each particle. Defaults to 0.0.
      • particleZPositionRange

        @Deprecated
        public double particleZPositionRange()
        Deprecated.
        The random variance about the starting z-position for each particle. Defaults to 0.0.
      • particleZPositionSpeed

        @Deprecated
        public double particleZPositionSpeed()
        Deprecated.
        The rate at which to modify the z-position for each particle. Defaults to 0.0.
      • resetSimulation

        public void resetSimulation()
        Removes all particles and restarts the emitter
      • setAttributeValues

        public void setAttributeValues​(NSDictionary<java.lang.String,​? extends SKAttributeValue> value)
        Optional dictionary of SKAttributeValues Attributes can be used with custom SKShaders.
        Overrides:
        setAttributeValues in class SKNode
      • setEmissionAngle

        public void setEmissionAngle​(double value)
        The angle at which to emit each new particle, in radians. Defaults to 0.0.
      • setEmissionAngleRange

        public void setEmissionAngleRange​(double value)
        The random variance about the angle at which to emit each new particle, in radians. Defaults to 0.0.
      • setFieldBitMask

        public void setFieldBitMask​(int value)
        Defines what logical 'categories' of fields this particles emitted respond to. Defaults to all bits set (all categories). Can be forced off via affectedByGravity.
      • setNumParticlesToEmit

        public void setNumParticlesToEmit​(long value)
        The number of particles that will be emitted. If set to 0, there is no limit. Defaults to 0.
      • setParticleAction

        public void setParticleAction​(SKAction value)
        Specifies an action executed by new particles.
      • setParticleAlpha

        public void setParticleAlpha​(double value)
        The starting alpha for each particle. Defaults to 1.0.
      • setParticleAlphaRange

        public void setParticleAlphaRange​(double value)
        The random variance about the starting alpha for each particle. Defaults to 1.0.
      • setParticleAlphaSequence

        public void setParticleAlphaSequence​(SKKeyframeSequence value)
      • setParticleAlphaSpeed

        public void setParticleAlphaSpeed​(double value)
        The rate at which to modify the alpha for each particle. Defaults to 1.0.
      • setParticleBirthRate

        public void setParticleBirthRate​(double value)
        The rate at which new particles are generated, in particles per second. Defaults to 0.0.
      • setParticleBlendMode

        public void setParticleBlendMode​(long value)
        The blend mode for each particle. Defaults to SKBlendModeAlpha.
      • setParticleColor

        public void setParticleColor​(UIColor value)
        The starting color for each particle. Defaults to clear.
      • setParticleColorAlphaRange

        public void setParticleColorAlphaRange​(double value)
      • setParticleColorAlphaSpeed

        public void setParticleColorAlphaSpeed​(double value)
      • setParticleColorBlendFactor

        public void setParticleColorBlendFactor​(double value)
        The starting color blend for each particle. Behaves the same as SKSpriteNode. Defaults to 0.0.
      • setParticleColorBlendFactorRange

        public void setParticleColorBlendFactorRange​(double value)
        The random variance about the starting color blend for each particle. Defaults to 0.0.
      • setParticleColorBlendFactorSequence

        public void setParticleColorBlendFactorSequence​(SKKeyframeSequence value)
      • setParticleColorBlendFactorSpeed

        public void setParticleColorBlendFactorSpeed​(double value)
        The rate at which to modify the color blend for each particle. Defaults to 0.0.
      • setParticleColorBlueRange

        public void setParticleColorBlueRange​(double value)
      • setParticleColorBlueSpeed

        public void setParticleColorBlueSpeed​(double value)
      • setParticleColorGreenRange

        public void setParticleColorGreenRange​(double value)
      • setParticleColorGreenSpeed

        public void setParticleColorGreenSpeed​(double value)
      • setParticleColorRedRange

        public void setParticleColorRedRange​(double value)
        The random variance about each color component for each particle. Defaults to 0.0.
      • setParticleColorRedSpeed

        public void setParticleColorRedSpeed​(double value)
        The rate at which to modify each color component for each particle (per second).
      • setParticleColorSequence

        public void setParticleColorSequence​(SKKeyframeSequence value)
      • setParticleLifetime

        public void setParticleLifetime​(double value)
        The lifetime of each particle, in seconds. Defaults to 0.0.
      • setParticleLifetimeRange

        public void setParticleLifetimeRange​(double value)
        The random variance about the lifetime of each particle, in seconds. Defaults to 0.0.
      • setParticlePosition

        public void setParticlePosition​(CGPoint value)
        The starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
      • setParticlePositionRange

        public void setParticlePositionRange​(CGVector value)
        The random variance about the starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
      • setParticleRenderOrder

        public void setParticleRenderOrder​(long value)
        The order in which particles will be rendered. Defaults to SKParticleRenderOrderOldestLast.
      • setParticleRotation

        public void setParticleRotation​(double value)
        The starting z-rotation for each particle. Defaults to 0.0.
      • setParticleRotationRange

        public void setParticleRotationRange​(double value)
        The random variance about the starting z-rotation for each particle. Defaults to 0.0.
      • setParticleRotationSpeed

        public void setParticleRotationSpeed​(double value)
        The rate at which to modify the z-rotation for each particle. Defaults to 0.0.
      • setParticleScale

        public void setParticleScale​(double value)
        The starting scale for each particle. Defaults to 1.0.
      • setParticleScaleRange

        public void setParticleScaleRange​(double value)
        The random variance about the starting scale for each particle. Defaults to 0.0.
      • setParticleScaleSequence

        public void setParticleScaleSequence​(SKKeyframeSequence value)
      • setParticleScaleSpeed

        public void setParticleScaleSpeed​(double value)
        The rate at which to modify the scale for each particle. Defaults to 0.0.
      • setParticleSize

        public void setParticleSize​(CGSize value)
        The starting size for each particle. If set to CGSizeZero (the default) the particles will start at the size of the texture assigned to particleTexture. Note that particleScale and particleScaleRange will also have an effect on the effective size of each new particle.
      • setParticleSpeed

        public void setParticleSpeed​(double value)
        The starting speed for each particle along its emission vector. Defaults to 0.0.
      • setParticleSpeedRange

        public void setParticleSpeedRange​(double value)
        The random variance about the starting speed for each particle along its emission vector. Defaults to 0.0.
      • setParticleTexture

        public void setParticleTexture​(SKTexture value)
        The texture to be used for the particles.
      • setParticleZPosition

        public void setParticleZPosition​(double value)
        The starting z-position for each particle. Defaults to 0.0.
      • setParticleZPositionRange

        @Deprecated
        public void setParticleZPositionRange​(double value)
        Deprecated.
        The random variance about the starting z-position for each particle. Defaults to 0.0.
      • setParticleZPositionSpeed

        @Deprecated
        public void setParticleZPositionSpeed​(double value)
        Deprecated.
        The rate at which to modify the z-position for each particle. Defaults to 0.0.
      • setShader

        public void setShader​(SKShader value)
      • setTargetNode_unsafe

        public void setTargetNode_unsafe​(SKNode value)
        Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property. Defaults to nil (standard behavior).
      • setTargetNode

        public void setTargetNode​(SKNode value)
        Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property. Defaults to nil (standard behavior).
      • setXAcceleration

        public void setXAcceleration​(double value)
        The acceleration to apply to each particles velocity. Useful for simulating effects such as wind or gravity. Defaults to 0.0.
      • setYAcceleration

        public void setYAcceleration​(double value)
      • targetNode

        public SKNode targetNode()
        Normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property. Defaults to nil (standard behavior).
      • xAcceleration

        public double xAcceleration()
        The acceleration to apply to each particles velocity. Useful for simulating effects such as wind or gravity. Defaults to 0.0.
      • yAcceleration

        public double yAcceleration()
      • nodeWithFileNamedSecurelyWithClassesAndError

        public static SKEmitterNode nodeWithFileNamedSecurelyWithClassesAndError​(java.lang.String filename,
                                                                                 NSSet<? extends org.moe.natj.objc.Class> classes,
                                                                                 org.moe.natj.general.ptr.Ptr<NSError> error)
      • 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
        Overrides:
        _supportsSecureCoding in class SKNode