org.vizzini.game.simulation
Interface IPhysicalObject

All Superinterfaces:
Cloneable, IForceConsumer, IForceProducer, IStateful, IToken, Serializable
All Known Implementing Classes:
AbstractPhysicalObject, DefaultPhysicalObject

public interface IPhysicalObject
extends IForceConsumer, IForceProducer, IStateful, IToken

Defines methods required by a physical object.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from interface org.vizzini.game.IToken
AGENT_PROPERTY, NAME_PROPERTY, POSITION_PROPERTY, TEAM_PROPERTY
 
Method Summary
 Ellipsoid getBounds()
          Return the bounds ellipsoid.
 double getMass()
          Return the mass in kg.
 boolean isLightSource()
           
 void setLightSource(boolean isLightSource)
           
 void setMass(double mass)
          Set the mass of this object.
 void setMomentOfInertia(double[] momentOfInertia)
          Set the moment of inertia of this object.
 
Methods inherited from interface org.vizzini.game.simulation.force.IForceConsumer
applyForce, applyForce, applyForceLocal
 
Methods inherited from interface org.vizzini.math.IStateful
getAbsoluteState, getState, getStatefulParent, setStatefulParent
 
Methods inherited from interface org.vizzini.game.simulation.force.IForceProducer
computeForce
 
Methods inherited from interface org.vizzini.math.IStateful
getAbsoluteState, getState, getStatefulParent, setStatefulParent
 
Methods inherited from interface org.vizzini.game.IToken
addPropertyChangeListener, clone, configure, getAgent, getIndex, getName, getPosition, getTeam, getValue, removePropertyChangeListener, setAgent, setName, setPosition, setTeam, setValue
 

Method Detail

getBounds

Ellipsoid getBounds()
Return the bounds ellipsoid.

Since:
v0.3

getMass

double getMass()
Return the mass in kg.

Specified by:
getMass in interface IForceConsumer
Since:
v0.3

isLightSource

boolean isLightSource()
Returns:
Return isLightSource.
Since:
v0.3

setLightSource

void setLightSource(boolean isLightSource)
Parameters:
isLightSource - the isLightSource to set
Since:
v0.3

setMass

void setMass(double mass)
Set the mass of this object.

Since:
v0.3

setMomentOfInertia

void setMomentOfInertia(double[] momentOfInertia)
Set the moment of inertia of this object.

Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02