public class RectangularEmitter extends BaseDisplayObject implements ParticleEmitter
ParticleEmitter.Listener| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mFinished |
protected ParticleEmitter.Listener |
mListener |
protected java.util.Random |
mRandom |
protected boolean |
mRemoveOnFinish |
protected int |
nNumParticles |
ATT_ALPHA, ATT_ANIMATOR, ATT_BLEND_MODE, ATT_COLOR, ATT_DEBUG, ATT_ORIGIN_AT_CENTER, ATT_ROTATION, ATT_VISIBLE, mAlive, mAlpha, mAlphaTestEnabled, mAutoUpdateBounds, mBlendFunc, mBounds, mBypassCameraClipping, mColor, mDebugFlags, mFrameDuration, mHasTransformValues, mId, mInvalidateFlags, mManipulators, mMask, mMatrix, mNumManipulators, mOrigin, mParent, mPerspectiveEnabled, mPivot, mPosition, mRotation, mRotationVectorX, mRotationVectorY, mRotationVectorZ, mScale, mScene, mSceneSize, mSize, mSkew, mTransformMatrix, mTransformMatrixValues, mUIConstraint, mVisible, mZ, TAGFLIP_X, FLIP_YALL, ALPHA, BLEND, BOUNDS, CACHE, CHILDREN, COLOR, DEPTH, FRAME, ORIGIN, PARENT, PARENT_BOUNDS, PERSPECTIVE, PIVOT, POSITION, ROTATION, SCALE, SIZE, SKEW, TEXTURE, TEXTURE_COORDS, TRANSFORM_MATRIX, VERTICES, VISIBILITY, VISUAL| Constructor and Description |
|---|
RectangularEmitter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addParticle(Particle particle) |
void |
dispose() |
protected boolean |
drawChildren(GLState glState) |
void |
finish() |
ParticleEmitter.Listener |
getListener() |
PointF |
getNextPosition()
This one consume more memory to create a new instance of PointF
|
PointF |
getNextPosition(PointF pt)
This is more memory efficient
|
int |
getNumParticles() |
boolean |
isFinished() |
boolean |
isRemoveOnFinish() |
void |
onParticleFinish(Particle particle) |
void |
onRemoved()
This is called after this object is removed from a Container
|
void |
queueFinish() |
protected boolean |
removeParticle(Particle particle) |
void |
setListener(ParticleEmitter.Listener listener) |
void |
setRemoveOnFinish(boolean removeOnFinish) |
addManipulator, draw, drawBounds, drawEnd, drawStart, drawWireframe, getAlpha, getBlendFunc, getBounds, getColor, getDebugFlags, getFps, getGlobalPosition, getHeight, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getMask, getMatrix, getNumManipulators, getObjectTree, getOrigin, getParent, getParentMatrix, getPivot, getPosition, getRotation, getScale, getScene, getSceneSize, getSize, getSkew, getUIConstraint, getWidth, getX, getY, getZ, globalToLocal, invalidate, invalidate, isAlive, isAlphaTestEnabled, isAutoUpdateBounds, isBypassCameraClipping, isOriginAtCenter, isPerspectiveEnabled, isVisible, localToGlobal, move, moveTo, onAdded, onAddedToScene, onCreateChildren, onPreConcatParentMatrix, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, rotate, setAlive, setAlpha, setAlphaTestEnabled, setAutoUpdateBounds, setBlendFunc, setBypassCameraClipping, setColor, setDebugFlags, setFps, setId, setMask, setOrigin, setOrigin, setOriginAtCenter, setPerspectiveEnabled, setPivot, setPivot, setPivotAtCenter, setPosition, setPosition, setRotation, setRotationVector, setScale, setScale, setSize, setSize, setSkew, setUIConstraint, setVisible, setX, setXMLAttributes, setY, setZ, shouldDraw, toString, update, updateBounds, updateChildren, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPosition, getSizeprotected boolean mFinished
protected boolean mRemoveOnFinish
protected int nNumParticles
protected final java.util.Random mRandom
protected ParticleEmitter.Listener mListener
protected boolean drawChildren(GLState glState)
drawChildren in class BaseDisplayObjectpublic void dispose()
dispose in interface Displayabledispose in class BaseDisplayObjectpublic PointF getNextPosition(PointF pt)
pt - public PointF getNextPosition()
protected boolean addParticle(Particle particle)
protected boolean removeParticle(Particle particle)
public int getNumParticles()
getNumParticles in interface ParticleEmitterpublic void finish()
public void queueFinish()
public boolean isFinished()
public boolean isRemoveOnFinish()
public void setRemoveOnFinish(boolean removeOnFinish)
removeOnFinish - the removeOnFinish to setpublic void setListener(ParticleEmitter.Listener listener)
setListener in interface ParticleEmitterpublic ParticleEmitter.Listener getListener()
getListener in interface ParticleEmitterpublic void onParticleFinish(Particle particle)
onParticleFinish in interface Particle.Listenerpublic void onRemoved()
BaseDisplayObjectonRemoved in interface DisplayableonRemoved in class BaseDisplayObject