net.jinx.physics.util
Class VisiblePhysical

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

public class VisiblePhysical
extends VisibleActor
implements Physical


Constructor Summary
VisiblePhysical(java.lang.String name, Visible visible)
           
VisiblePhysical(java.lang.String name, Visible visible, PhysicalObject obj)
           
VisiblePhysical(Visible visible)
           
VisiblePhysical(Visible visible, Vector position, Vector velocity, float mass)
           
 
Method Summary
 void draw(Context opt)
          Redirects to the wrapped Visible.
 float getMass()
           
 PhysicalObject getPhysicalObject()
           
 Vector getPosition()
           
 Vector getVelocity()
           
 void setMass(float mass)
           
 void setPosition(Vector p)
           
 void setVelocity(Vector v)
           
 void tag(Tag 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
 

Constructor Detail

VisiblePhysical

public VisiblePhysical(Visible visible,
                       Vector position,
                       Vector velocity,
                       float mass)

VisiblePhysical

public VisiblePhysical(Visible visible)

VisiblePhysical

public VisiblePhysical(java.lang.String name,
                       Visible visible)

VisiblePhysical

public VisiblePhysical(java.lang.String name,
                       Visible visible,
                       PhysicalObject obj)
Method Detail

getPhysicalObject

public PhysicalObject getPhysicalObject()
Specified by:
getPhysicalObject in interface Physical

setPosition

public void setPosition(Vector p)

getPosition

public Vector getPosition()

setVelocity

public void setVelocity(Vector v)

getVelocity

public Vector getVelocity()

setMass

public void setMass(float mass)

getMass

public float getMass()

tag

public void tag(Tag tag)

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 VisibleActor
Parameters:
opt - the Context object contaning rendering options.