effects
Class ParticleEffect

java.lang.Object
  extended by herzog3d.HZObject
      extended by effects.Effect
          extended by effects.ParticleEffect

public class ParticleEffect
extends Effect


Field Summary
 
Fields inherited from class herzog3d.HZObject
active, dir, pos, radius, shell, skin, state
 
Constructor Summary
ParticleEffect(ParticleModel model, float size, ReadableVector3f pos, Vector3f dir)
          ParticleEffect, also acts as a point particle emitter.
 
Method Summary
 void draw()
           
 boolean isActive()
           
 void update(Game g, float step)
           
 
Methods inherited from class herzog3d.HZObject
getColRadius, getDir, getPos, getRadius, intersects, move, move, setActive, setModel, setPos, setPos, setSkin, setState, testCollision
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleEffect

public ParticleEffect(ParticleModel model,
                      float size,
                      ReadableVector3f pos,
                      Vector3f dir)
ParticleEffect, also acts as a point particle emitter. This functionalty may be pulled out later into an abstract particle emitter which can be implemented as point/line/plane etc.

Parameters:
model - The particle model to use.
size - The size of the effect.
pos - The position of the effect.
dir - The direction the effect is facing, null if omnidirectional.
Method Detail

update

public void update(Game g,
                   float step)
Specified by:
update in class Effect

isActive

public boolean isActive()
Overrides:
isActive in class HZObject

draw

public void draw()
Specified by:
draw in class Effect