public class FireEmitter extends Emitter
DEFAULT_MAXPARTICLES, DEFAULT_PARTICLE_COLOR, DEFAULT_SPAWNAMOUNT, DEFAULT_UPDATERATEANY_MESSAGE| Constructor and Description |
|---|
FireEmitter(int originX,
int originY)
Constructs a new Snow particle effect.
|
| Modifier and Type | Method and Description |
|---|---|
protected Particle |
createNewParticle()
Creates the new particle.
|
java.awt.geom.Point2D |
getLocation() |
void |
newParticle(java.awt.Color color,
int life,
double maxAxisMovement)
Creates a new Particle object.
|
protected void |
spawnParticle()
Spawn particle.
|
activate, addParticle, addParticleColor, canTakeNewParticles, deactivate, delete, getAliveTime, getColors, getMaxParticles, getOrigin, getOriginAlign, getOriginValign, getParticleMaxTTL, getParticleMinTTL, getParticleMinTTL, getParticles, getParticleUpdateRate, getRandomParticleColor, getRandomParticleTTL, getRandomParticleX, getRandomParticleY, getRenderable, getRequiredQuality, getSpawnAmount, getSpawnRate, getTimeToLive, isActivated, isActivateOnInit, isFinished, isPaused, isStopped, onFinished, particleCanBeRemoved, render, setColors, setMaxParticles, setOriginAlign, setOriginValign, setParticleMaxTTL, setParticleMinTTL, setParticleUpdateRate, setPaused, setRequiredQuality, setSpawnAmount, setSpawnRate, setStopped, setTimeToLive, timeToLiveReached, togglePaused, toggleStopped, updateaddController, addListener, addMessageListener, addMessageListener, addTag, addTransformListener, attachControllers, detachControllers, getAngle, getAnimationController, getBehaviorController, getBoundingBox, getCenter, getController, getControllers, getHeight, getMapId, getName, getProperties, getRenderType, getTags, getWidth, getX, getY, hasTag, loaded, removed, removeListener, removeMessageListener, removeTag, removeTransformListener, sendMessage, setAngle, setController, setHeight, setLocation, setLocation, setMapId, setName, setProperties, setRenderType, setSize, setWidth, setX, setY, toStringpublic FireEmitter(int originX,
int originY)
originX - The origin, on the X-axis, of the effect.originY - The origin, on the Y-axis, of the effect.public java.awt.geom.Point2D getLocation()
getLocation in interface IEntitygetLocation in class Entitypublic void newParticle(java.awt.Color color,
int life,
double maxAxisMovement)
color - the colorlife - The number of movements before the new Particle decays.maxAxisMovement - the max axis movementprotected Particle createNewParticle()
EmittercreateNewParticle in class Emitterprotected void spawnParticle()
EmitterspawnParticle in class Emitter