net.jinx.physics.util
Class PhysicalSpark

java.lang.Object
  extended by net.jinx.action.Actor
      extended by net.jinx.action.VisibleActor
          extended by net.jinx.physics.util.VisiblePhysical
              extended by net.jinx.physics.util.PhysicalSpark
All Implemented Interfaces:
Physical, MultipassVisible, Visible

public class PhysicalSpark
extends VisiblePhysical
implements Physical


Constructor Summary
PhysicalSpark()
           
PhysicalSpark(Vector position, Vector velocity, float mass)
           
 
Method Summary
 void draw(Context opt)
          Redirects to the wrapped Visible.
 void setMaterial(Material material)
           
 void setWidth(float width)
           
 
Methods inherited from class net.jinx.physics.util.VisiblePhysical
getMass, getPhysicalObject, getPosition, getVelocity, setMass, setPosition, setVelocity, tag
 
Methods inherited from class net.jinx.action.VisibleActor
deinit, drawPass, getVisible, init, processEvent
 
Methods inherited from class net.jinx.action.Actor
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jinx.physics.Physical
getPhysicalObject
 

Constructor Detail

PhysicalSpark

public PhysicalSpark()

PhysicalSpark

public PhysicalSpark(Vector position,
                     Vector velocity,
                     float mass)
Method Detail

setMaterial

public void setMaterial(Material material)

setWidth

public void setWidth(float width)

draw

public void draw(Context opt)
Description copied from class: VisibleActor
Redirects to the wrapped Visible.

Specified by:
draw in interface Visible
Overrides:
draw in class VisiblePhysical
Parameters:
opt - the Context object contaning rendering options.