|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.engine.world.sector.base.E3DPortalEnabledRenderableItem
espresso3d.engine.world.sector.particle.E3DParticleSystem
| Field Summary |
| Fields inherited from class espresso3d.engine.renderer.base.E3DRenderable |
RENDERMODE_SOLID, RENDERMODE_TEXTURED, RENDERMODE_WIREFRAME |
| Constructor Summary | |
E3DParticleSystem(E3DEngine engine)
Create a new unnamed particle system (can't be quickly accessed from a map once its added). |
|
E3DParticleSystem(E3DEngine engine,
double lifeSeconds)
Create a named particle system. |
|
E3DParticleSystem(E3DEngine engine,
E3DVector3F gravityDirection,
double gravityStrength)
Create an unnamed particle system with gravity. |
|
E3DParticleSystem(E3DEngine engine,
E3DVector3F gravityDirection,
double gravityStrength,
double lifeSeconds)
Create an named particle system with gravity. |
|
E3DParticleSystem(E3DParticleSystem toCopy)
Create a new particle system as a copy of the old |
|
| Method Summary | |
void |
addParticle(E3DParticle particle)
This will add a particle to the system. |
E3DSortedRenderableMap |
getBlendAndTextureSortedParticleMap()
Get the list of particle's quads sorted by texture name. |
E3DVector3F |
getForward()
Get the particle systems forward vec. |
E3DVector3F |
getGravityDirection()
Get the normalised direciton vector of gravity for this system |
double |
getGravityStrength()
Get the strength of gravity for the system |
double |
getLifeSeconds()
|
java.util.ArrayList |
getParticleList()
Get the list of all the particles in the system |
E3DVector3F |
getPosition()
Get the position of the particle system This is origin of the positions of all the particles are based around. |
java.util.ArrayList |
getQuadList()
Returns the list of all the quads of all the particles in it |
E3DVector3F |
getUp()
Get the particle systems up vec. |
boolean |
isAlive()
Returns false if the engine has expired its lifespan |
abstract boolean |
isCollideable()
If any of the particles are needing to be collision detected, set this to true. |
abstract boolean |
isCollisionCausedByMovement()
Set this to true if any particles in the system need to cause collisions when they move. |
abstract E3DParticleSystem |
onGetClone()
This method must be overriden to return a clone of the particle system. |
void |
removeParticle(E3DParticle particle)
|
void |
renderAtPosition(E3DVector3F atPosition)
This will render this particle system individually. |
void |
rotate(double angle,
E3DVector3F upVec)
Rotate all particles, and movement directions(permanently) in the system around upVec by angle amount |
void |
setGravityDirection(E3DVector3F gravityDirection)
Set the direction of the gravity vector for this system. |
void |
setGravityStrength(double gravityStrength)
Set the strength of gravity for the system. |
void |
setLifeSeconds(double lifeSeconds)
|
void |
setPosition(E3DVector3F position)
Set the position of the particle system This is origin of the positions of all the particles are based around. |
void |
setRenderMode(int renderMode)
If a particle systems renderMode is changed, so are all the particles contained in the particle system. |
void |
setSector(E3DSector sector)
Override setSector to automatically set the sector the particles are in as well as the system. |
void |
translate(E3DVector3F translationAmt)
Translate the particleSystem by translationVec amt. |
void |
updateParticles(E3DActor curActor)
This updates the particles in the system (makes them all move 1 unit) |
| Methods inherited from class espresso3d.engine.world.sector.base.E3DPortalEnabledRenderableItem |
checkSectorChangeDuringMovement, getSector |
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
getRenderableOptionsKey, getRenderMode, initCorrectGeometryRenderer, render |
| Methods inherited from class espresso3d.engine.base.E3DEngineItem |
getEngine, setEngine |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public E3DParticleSystem(E3DEngine engine)
engine -
public E3DParticleSystem(E3DEngine engine,
double lifeSeconds)
engine -
public E3DParticleSystem(E3DEngine engine,
E3DVector3F gravityDirection,
double gravityStrength)
engine - gravityDirection - Normalised direction of gravitygravityStrength - strenth of the gravity
public E3DParticleSystem(E3DEngine engine,
E3DVector3F gravityDirection,
double gravityStrength,
double lifeSeconds)
engine - gravityDirection - Normalised direction of gravitygravityStrength - strenth of the gravitylifeSeconds - number of seconds for the particle system to stay around. -1 for infinitepublic E3DParticleSystem(E3DParticleSystem toCopy)
toCopy - | Method Detail |
public void addParticle(E3DParticle particle)
particle - public void removeParticle(E3DParticle particle)
public java.util.ArrayList getParticleList()
public void updateParticles(E3DActor curActor)
public boolean isAlive()
public void renderAtPosition(E3DVector3F atPosition)
renderAtPosition in class E3DRenderablepublic java.util.ArrayList getQuadList()
public void setSector(E3DSector sector)
setSector in interface E3DPortalEnabledItemsetSector in class E3DPortalEnabledRenderableItemsector - public E3DSortedRenderableMap getBlendAndTextureSortedParticleMap()
public E3DVector3F getGravityDirection()
public void setGravityDirection(E3DVector3F gravityDirection)
gravityDirection - public double getGravityStrength()
public void setGravityStrength(double gravityStrength)
gravityStrength - public E3DVector3F getPosition()
public void setPosition(E3DVector3F position)
public void translate(E3DVector3F translationAmt)
public void rotate(double angle,
E3DVector3F upVec)
angle - Radian angleupVec - Normalised up vector to use as the rotation axis
public abstract E3DParticleSystem onGetClone()
throws java.lang.Exception
java.lang.Exceptionpublic E3DVector3F getForward()
public E3DVector3F getUp()
public double getLifeSeconds()
public void setLifeSeconds(double lifeSeconds)
public void setRenderMode(int renderMode)
setRenderMode in class E3DRenderablerenderMode - public abstract boolean isCollideable()
public abstract boolean isCollisionCausedByMovement()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||