Properties

CC3RandomMortalParticleNavigator Class Reference

CC3RandomMortalParticleNavigator confgures the lifeSpan property of particles that conform to the CC3MortalParticleProtocol. More...

#import <CC3ParticleSamples.h>

Inheritance diagram for CC3RandomMortalParticleNavigator:
Inheritance graph
[legend]
Collaboration diagram for CC3RandomMortalParticleNavigator:
Collaboration graph
[legend]

List of all members.

Properties

ccTime maxParticleLifeSpan
ccTime minParticleLifeSpan

Detailed Description

CC3RandomMortalParticleNavigator confgures the lifeSpan property of particles that conform to the CC3MortalParticleProtocol.

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.

During initialization of each particle in the initializeParticle: method, this navigator sets the lifeSpan property of the particle is set to a random value between the values of the minParticleLifeSpan and maxParticleLifeSpan properties of this navigator.


Property Documentation

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

Indicates the upper limit of the range of possible particle life spans.

When a particle is emitted, the lifeSpan property will be set to a random value between the value of the minParticleLifeSpan property and the value of this property.

The initial value of this property is zero.

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

Indicates the lower limit of the range of possible particle life spans.

When a particle is emitted, the lifeSpan property will be set to a random value between the value of this property and the value of the maxParticleLifeSpan property.

The initial value of this property is zero.


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