public class

ContainerExpireModifier

extends ExpireModifier
java.lang.Object
   ↳ org.anddev.andengine.entity.particle.modifier.ExpireModifier
     ↳ org.anddev.andengine.entity.particle.modifier.ContainerExpireModifier

Class Overview

An ExpireModifier that holds other BaseSingleValueSpanModifiers, overriding their toTimes to match the lifeTime of the particle based on the value from the ExpireModifier.

(c) 2011 Nicolas Gramlich
(c) 2011 Zynga Inc.

Summary

Public Constructors
ContainerExpireModifier(float pLifeTime)
ContainerExpireModifier(float pMinLifeTime, float pMaxLifeTime)
Public Methods
void addParticleModifier(BaseSingleValueSpanModifier pModifier)

Adds the specified modifier to the contained modifier list.

void onUpdateParticle(Particle pParticle)
boolean removeParticleModifier(BaseSingleValueSpanModifier pModifier)

Removes the specified modifier from the contained modifier list.

[Expand]
Inherited Methods
From class org.anddev.andengine.entity.particle.modifier.ExpireModifier
From class java.lang.Object
From interface org.anddev.andengine.entity.particle.initializer.IParticleInitializer
From interface org.anddev.andengine.entity.particle.modifier.IParticleModifier

Public Constructors

public ContainerExpireModifier (float pLifeTime)

public ContainerExpireModifier (float pMinLifeTime, float pMaxLifeTime)

Public Methods

public void addParticleModifier (BaseSingleValueSpanModifier pModifier)

Adds the specified modifier to the contained modifier list.

The toTime in the modifier will be ignored, and replaced with the actual lifetime of the Particle.

Parameters
pModifier The modifier to add

public void onUpdateParticle (Particle pParticle)

public boolean removeParticleModifier (BaseSingleValueSpanModifier pModifier)

Removes the specified modifier from the contained modifier list.

Parameters
pModifier The modifier to remove
Returns
  • true if the list was modified by this operation, false otherwise.