|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjme.entity.effects.ParticleSystem
ParticleSystem
maintains a collection of
particle emitters.
Constructor Summary | |
ParticleSystem()
|
Method Summary | |
void |
addEmitter(ParticleEmitter emitter)
|
void |
checkVisibility(Frustum frustum)
checkVisibility makes the appropriate checks to test if
the entity is currently visible or not. |
BoundingVolume |
getBoundingVolume()
getBoundingVolume returns the volume that contains this
entity. |
boolean |
isVisible()
isVisible returns true if the entity is visible and false
if it is not. |
void |
render()
render handles the making the required calls to the
rendering framework (OpenGL) to display the entity to the screen. |
void |
setBoundingVolume(BoundingVolume volume)
setBoundingVolume sets the volume that contains this
entity. |
void |
setPosition(Vector position)
|
void |
update(float time)
update is used to alter the entity in any way to reflect
the passage of time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParticleSystem()
Method Detail |
public void render()
EntityInterface
render
handles the making the required calls to the
rendering framework (OpenGL) to display the entity to the screen.
render
in interface EntityInterface
public void update(float time)
EntityInterface
update
is used to alter the entity in any way to reflect
the passage of time. This could be position changes, animation, etc.
update
in interface EntityInterface
time
- the amount of time between frames.EntityInterface.update(float)
public boolean isVisible()
EntityInterface
isVisible
returns true if the entity is visible and false
if it is not.
isVisible
in interface EntityInterface
public void checkVisibility(Frustum frustum)
EntityInterface
checkVisibility
makes the appropriate checks to test if
the entity is currently visible or not.
checkVisibility
in interface EntityInterface
frustum
- the view frustum to check against.public void addEmitter(ParticleEmitter emitter)
public void setPosition(Vector position)
public void setBoundingVolume(BoundingVolume volume)
setBoundingVolume
sets the volume that contains this
entity.
setBoundingVolume
in interface EntityInterface
volume
- the volume that contains this entity.public BoundingVolume getBoundingVolume()
getBoundingVolume
returns the volume that contains this
entity.
getBoundingVolume
in interface EntityInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |