v2.0.2
Properties | List of all members
CC3RandomMortalParticleNavigator Class Reference

#import <CC3ParticleSamples.h>

Inheritance diagram for CC3RandomMortalParticleNavigator:
Inheritance graph
[legend]

Properties

CCTime maxParticleLifeSpan
 
CCTime minParticleLifeSpan
 
- Properties inherited from CC3ParticleNavigator
CC3ParticleEmitteremitter
 

Additional Inherited Members

- Instance Methods inherited from CC3ParticleNavigator
(void) - initializeParticle:
 
(void) - populateFrom:
 
- Class Methods inherited from CC3ParticleNavigator
(id) + navigator
 

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
readwritenonatomicassign

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
readwritenonatomicassign

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: