Class EmitterData
java.lang.Object
de.gurkenlabs.litiengine.graphics.emitters.xml.EmitterData
public class EmitterData
extends java.lang.Object
implements java.io.Serializable, Resource
- See Also:
- Serialized Form
Field Summary
Constructor Summary
Constructors Constructor Description EmitterData()
Method Summary
Field Details
DEFAULT_COLOR
public static final java.awt.Color DEFAULT_COLORDEFAULT_SPRITESHEET
public static final java.lang.String DEFAULT_SPRITESHEET- See Also:
- Constant Field Values
DEFAULT_NAME
public static final java.lang.String DEFAULT_NAME- See Also:
- Constant Field Values
DEFAULT_TEXT
public static final java.lang.String DEFAULT_TEXT- See Also:
- Constant Field Values
DEFAULT_ANIMATE_SPRITE
public static final boolean DEFAULT_ANIMATE_SPRITE- See Also:
- Constant Field Values
DEFAULT_LOOP_SPRITE
public static final boolean DEFAULT_LOOP_SPRITE- See Also:
- Constant Field Values
DEFAULT_FADE
public static final boolean DEFAULT_FADE- See Also:
- Constant Field Values
DEFAULT_FADE_ON_COLLISION
public static final boolean DEFAULT_FADE_ON_COLLISION- See Also:
- Constant Field Values
DEFAULT_OUTLINE_ONLY
public static final boolean DEFAULT_OUTLINE_ONLY- See Also:
- Constant Field Values
DEFAULT_ANTIALIASING
public static final boolean DEFAULT_ANTIALIASING- See Also:
- Constant Field Values
DEFAULT_COLLISION
DEFAULT_PARTICLE_TYPE
DEFAULT_REQUIRED_QUALITY
DEFAULT_ORIGIN_ALIGN
DEFAULT_ORIGIN_VALIGN
DEFAULT_WIDTH
public static final float DEFAULT_WIDTH- See Also:
- Constant Field Values
DEFAULT_HEIGHT
public static final float DEFAULT_HEIGHT- See Also:
- Constant Field Values
DEFAULT_COLOR_VARIANCE
public static final float DEFAULT_COLOR_VARIANCE- See Also:
- Constant Field Values
DEFAULT_ALPHA_VARIANCE
public static final float DEFAULT_ALPHA_VARIANCE- See Also:
- Constant Field Values
DEFAULT_UPDATERATE
public static final int DEFAULT_UPDATERATE- See Also:
- Constant Field Values
DEFAULT_SPAWNAMOUNT
public static final int DEFAULT_SPAWNAMOUNT- See Also:
- Constant Field Values
DEFAULT_SPAWNRATE
public static final int DEFAULT_SPAWNRATE- See Also:
- Constant Field Values
DEFAULT_MAXPARTICLES
public static final int DEFAULT_MAXPARTICLES- See Also:
- Constant Field Values
DEFAULT_DURATION
public static final int DEFAULT_DURATION- See Also:
- Constant Field Values
DEFAULT_MIN_PARTICLE_TTL
public static final int DEFAULT_MIN_PARTICLE_TTL- See Also:
- Constant Field Values
DEFAULT_MAX_PARTICLE_TTL
public static final int DEFAULT_MAX_PARTICLE_TTL- See Also:
- Constant Field Values
DEFAULT_MIN_OFFSET_X
public static final float DEFAULT_MIN_OFFSET_X- See Also:
- Constant Field Values
DEFAULT_MAX_OFFSET_X
public static final float DEFAULT_MAX_OFFSET_X- See Also:
- Constant Field Values
DEFAULT_MIN_OFFSET_Y
public static final float DEFAULT_MIN_OFFSET_Y- See Also:
- Constant Field Values
DEFAULT_MAX_OFFSET_Y
public static final float DEFAULT_MAX_OFFSET_Y- See Also:
- Constant Field Values
DEFAULT_MIN_DELTA_WIDTH
public static final float DEFAULT_MIN_DELTA_WIDTH- See Also:
- Constant Field Values
DEFAULT_MAX_DELTA_WIDTH
public static final float DEFAULT_MAX_DELTA_WIDTH- See Also:
- Constant Field Values
DEFAULT_MIN_DELTA_HEIGHT
public static final float DEFAULT_MIN_DELTA_HEIGHT- See Also:
- Constant Field Values
DEFAULT_MAX_DELTA_HEIGHT
public static final float DEFAULT_MAX_DELTA_HEIGHT- See Also:
- Constant Field Values
DEFAULT_MIN_ACCELERATION_X
public static final float DEFAULT_MIN_ACCELERATION_X- See Also:
- Constant Field Values
DEFAULT_MAX_ACCELERATION_X
public static final float DEFAULT_MAX_ACCELERATION_X- See Also:
- Constant Field Values
DEFAULT_MIN_ACCELERATION_Y
public static final float DEFAULT_MIN_ACCELERATION_Y- See Also:
- Constant Field Values
DEFAULT_MAX_ACCELERATION_Y
public static final float DEFAULT_MAX_ACCELERATION_Y- See Also:
- Constant Field Values
DEFAULT_MIN_ANGLE
public static final float DEFAULT_MIN_ANGLE- See Also:
- Constant Field Values
DEFAULT_MAX_ROTATION
public static final float DEFAULT_MAX_ROTATION- See Also:
- Constant Field Values
DEFAULT_MIN_DELTA_ANGLE
public static final float DEFAULT_MIN_DELTA_ANGLE- See Also:
- Constant Field Values
DEFAULT_MAX_DELTA_ANGLE
public static final float DEFAULT_MAX_DELTA_ANGLE- See Also:
- Constant Field Values
DEFAULT_MIN_VELOCITY_X
public static final float DEFAULT_MIN_VELOCITY_X- See Also:
- Constant Field Values
DEFAULT_MAX_VELOCITY_X
public static final float DEFAULT_MAX_VELOCITY_X- See Also:
- Constant Field Values
DEFAULT_MIN_VELOCITY_Y
public static final float DEFAULT_MIN_VELOCITY_Y- See Also:
- Constant Field Values
DEFAULT_MAX_VELOCITY_Y
public static final float DEFAULT_MAX_VELOCITY_Y- See Also:
- Constant Field Values
DEFAULT_MIN_WIDTH
public static final float DEFAULT_MIN_WIDTH- See Also:
- Constant Field Values
DEFAULT_MAX_WIDTH
public static final float DEFAULT_MAX_WIDTH- See Also:
- Constant Field Values
DEFAULT_MIN_HEIGHT
public static final float DEFAULT_MIN_HEIGHT- See Also:
- Constant Field Values
DEFAULT_MAX_HEIGHT
public static final float DEFAULT_MAX_HEIGHT- See Also:
- Constant Field Values
Constructor Details
EmitterData
public EmitterData()
Method Details
getAlphaVariance
public float getAlphaVariance()getCollisionType
getRequiredQuality
getColorVariance
public float getColorVariance()getColors
public java.util.List<java.lang.String> getColors()getDeltaHeight
getDeltaWidth
getAngle
getDeltaAngle
getVelocityX
getVelocityY
getEmitterDuration
public int getEmitterDuration()getAccelerationX
getAccelerationY
getHeight
public float getHeight()getMaxParticles
public int getMaxParticles()getName
public java.lang.String getName()Description copied from interface:Resource
Gets the name.getOriginAlign
getOriginValign
getParticleHeight
getParticleTTL
getTexts
public java.util.List<java.lang.String> getTexts()getParticleType
getParticleWidth
getParticleOffsetX
getParticleOffsetY
getSpawnAmount
public int getSpawnAmount()getSpawnRate
public int getSpawnRate()getSpritesheet
public java.lang.String getSpritesheet()getUpdateRate
public int getUpdateRate()getWidth
public float getWidth()isAnimatingSprite
public boolean isAnimatingSprite()isLoopingSprite
public boolean isLoopingSprite()isFading
public boolean isFading()isFadingOnCollision
public boolean isFadingOnCollision()isOutlineOnly
public boolean isOutlineOnly()isAntiAliased
public boolean isAntiAliased()setAlphaVariance
public void setAlphaVariance(float alphaVariance)setAnimateSprite
public void setAnimateSprite(boolean animateSprite)setLoopSprite
public void setLoopSprite(boolean loopSprite)setCollisionType
setRequiredQuality
setColor
public void setColor(java.awt.Color color)setColorVariance
public void setColorVariance(float colorVariance)setColors
public void setColors(java.util.List<java.lang.String> colors)setColors
public void setColors(java.awt.Color... colors)setDeltaHeight
setDeltaWidth
initDefaults
public void initDefaults()setAngle
setDeltaRotation
setVelocityX
setVelocityY
setEmitterDuration
public void setEmitterDuration(int emitterDuration)setFade
public void setFade(boolean fade)setFadeOnCollision
public void setFadeOnCollision(boolean fadeOnCollision)setAccelerationX
setAccelerationY
setHeight
public void setHeight(float height)setMaxParticles
public void setMaxParticles(int maxParticles)setName
public void setName(java.lang.String name)setOriginAlign
setOriginValign
setOutlineOnly
public void setOutlineOnly(boolean outlineOnly)setAntiAliasing
public void setAntiAliasing(boolean antiAliasing)setParticleHeight
setParticleTTL
setParticleType
setParticleWidth
setParticleOffsetX
setParticleOffsetY
setSpawnAmount
public void setSpawnAmount(int spawnAmount)setSpawnRate
public void setSpawnRate(int spawnRate)setSpritesheet
public void setSpritesheet(java.lang.String spritesheetName)setSpritesheet
setText
public void setText(java.lang.String text)setTexts
public void setTexts(java.util.List<java.lang.String> texts)setUpdateRate
public void setUpdateRate(int updateRate)setWidth
public void setWidth(float width)