Properties

<CC3MortalParticleProtocol> Protocol Reference

CC3MortalParticleProtocol extends CC3ParticleProtocol to allow a particle to be configured with a finite life. More...

#import <CC3ParticleSamples.h>

Inheritance diagram for <CC3MortalParticleProtocol>:
Inheritance graph
[legend]
Collaboration diagram for <CC3MortalParticleProtocol>:
Collaboration graph
[legend]

List of all members.

Properties

ccTime lifeSpan
ccTime timeToLive

Detailed Description

CC3MortalParticleProtocol extends CC3ParticleProtocol to allow a particle to be configured with a finite life.

A particle that supports CC3MortalParticleProtocol has a finite life. and when that lifetime is finished, the particle will automatically expire itself by setting the isAlive property to NO.

This protocol can be used with both point and mesh particles.


Property Documentation

- (ccTime) lifeSpan [read, write, assign]

Indicates the overall life span of the particle.

This property should be set once during initialization, prior to emission.

Reimplemented in CC3MortalMeshParticle, and CC3MortalPointParticle.

- (ccTime) timeToLive [read, assign]

Indicates the remaining time the particle has to live.

This property is automatically decremented as the particle ages. Once this property reaches zero, the particle will automatically expire itself.

Reimplemented in CC3MortalMeshParticle, and CC3MortalPointParticle.


The documentation for this protocol was generated from the following file: