public class ParticleEffect extends java.lang.Object implements Updatable, com.badlogic.gdx.utils.Disposable
ParticleEffect to match mini2Dx's
design| Constructor and Description |
|---|
ParticleEffect() |
ParticleEffect(ParticleEffect effect) |
| Modifier and Type | Method and Description |
|---|---|
void |
allowCompletion() |
void |
dispose() |
void |
flipY() |
com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.ParticleEmitter> |
getEmitters() |
void |
interpolate(GameContainer gc,
float alpha)
Interpolate between the previous and current state
|
boolean |
isComplete() |
void |
load(com.badlogic.gdx.files.FileHandle effectFile,
com.badlogic.gdx.files.FileHandle imagesDir) |
void |
load(com.badlogic.gdx.files.FileHandle effectFile,
com.badlogic.gdx.graphics.g2d.TextureAtlas atlas) |
void |
load(com.badlogic.gdx.files.FileHandle effectFile,
com.badlogic.gdx.graphics.g2d.TextureAtlas atlas,
java.lang.String atlasPrefix) |
void |
reset() |
void |
save(java.io.Writer output) |
void |
scaleEffect(float scaleFactor) |
void |
setDuration(int duration) |
void |
setEmittersCleanUpBlendFunction(boolean cleanUpBlendFunction) |
void |
setFlip(boolean flipX,
boolean flipY) |
void |
setPosition(float x,
float y) |
void |
start() |
void |
update(GameContainer gc,
float delta)
Updates the game screen
|
public ParticleEffect()
public ParticleEffect(ParticleEffect effect)
public void load(com.badlogic.gdx.files.FileHandle effectFile,
com.badlogic.gdx.files.FileHandle imagesDir)
public void load(com.badlogic.gdx.files.FileHandle effectFile,
com.badlogic.gdx.graphics.g2d.TextureAtlas atlas)
public void load(com.badlogic.gdx.files.FileHandle effectFile,
com.badlogic.gdx.graphics.g2d.TextureAtlas atlas,
java.lang.String atlasPrefix)
public void save(java.io.Writer output)
throws java.io.IOException
java.io.IOExceptionpublic void update(GameContainer gc, float delta)
Updatableupdate in interface Updatablegc - The GameContainer of the gamedelta - The time in seconds since the last updatepublic void interpolate(GameContainer gc, float alpha)
Updatableinterpolate in interface Updatablealpha - The interpolation alpha valuepublic void dispose()
dispose in interface com.badlogic.gdx.utils.Disposablepublic void scaleEffect(float scaleFactor)
public void start()
public void reset()
public void allowCompletion()
public boolean isComplete()
public void setDuration(int duration)
public void setPosition(float x,
float y)
public void setFlip(boolean flipX,
boolean flipY)
public void flipY()
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.ParticleEmitter> getEmitters()
public void setEmittersCleanUpBlendFunction(boolean cleanUpBlendFunction)