jme.entity.effects
Class ParticleSystem

java.lang.Object
  extended byjme.entity.effects.ParticleSystem
All Implemented Interfaces:
EntityInterface

public class ParticleSystem
extends java.lang.Object
implements EntityInterface

ParticleSystem maintains a collection of particle emitters.

Version:
$Id: ParticleSystem.java,v 1.5 2003/09/03 18:05:36 mojomonkey Exp $
Author:
Mark Powell

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

ParticleSystem

public ParticleSystem()
Method Detail

render

public void render()
Description copied from interface: EntityInterface
render handles the making the required calls to the rendering framework (OpenGL) to display the entity to the screen.

Specified by:
render in interface EntityInterface

update

public void update(float time)
Description copied from interface: EntityInterface
update is used to alter the entity in any way to reflect the passage of time. This could be position changes, animation, etc.

Specified by:
update in interface EntityInterface
Parameters:
time - the amount of time between frames.
See Also:
EntityInterface.update(float)

isVisible

public boolean isVisible()
Description copied from interface: EntityInterface
isVisible returns true if the entity is visible and false if it is not.

Specified by:
isVisible in interface EntityInterface
Returns:
true if the entity is visible and false otherwise.

checkVisibility

public void checkVisibility(Frustum frustum)
Description copied from interface: EntityInterface
checkVisibility makes the appropriate checks to test if the entity is currently visible or not.

Specified by:
checkVisibility in interface EntityInterface
Parameters:
frustum - the view frustum to check against.

addEmitter

public void addEmitter(ParticleEmitter emitter)

setPosition

public void setPosition(Vector position)

setBoundingVolume

public void setBoundingVolume(BoundingVolume volume)
setBoundingVolume sets the volume that contains this entity.

Specified by:
setBoundingVolume in interface EntityInterface
Parameters:
volume - the volume that contains this entity.

getBoundingVolume

public BoundingVolume getBoundingVolume()
getBoundingVolume returns the volume that contains this entity.

Specified by:
getBoundingVolume in interface EntityInterface
Returns:
the volume that contains this entity.