public class Entity extends BoundedRenderable implements IUpdateable
Constructor and Description |
---|
Entity() |
Modifier and Type | Method and Description |
---|---|
void |
addSubEntity(SubEntity subEntity)
Add a new subentity
|
void |
attachTo(SceneNode node)
Attaches this object to a SceneNode
|
SceneNode |
detach()
Detaches this node from its parent
|
Skeleton |
getSkeleton()
Get the skeleton of this entity if it has one
|
SubEntity |
getSubEntity(int index)
Get a subentity by index
|
SubEntity |
getSubEntity(java.lang.String name)
Get a Subentity
|
boolean |
isFinished() |
void |
onUpdate(float time) |
void |
playAnimation(java.lang.String animName) |
void |
render(float[] vpMatrix)
Renders this object the matrix containing projection and view will be passed
|
void |
setSkeleton(Skeleton skeleton) |
getBoundingBox, getUntransformedBoundingBox, setBoundingBoxVisible
isDity, onTransformed, setClean
getAbsolutePos, getModelMatrix, getParent, getRelativePos
public void addSubEntity(SubEntity subEntity)
subEntity
- The subentity to be addedpublic SubEntity getSubEntity(java.lang.String name)
name
- The name of the subentitypublic SubEntity getSubEntity(int index)
index
- public void render(float[] vpMatrix)
IRenderable
render
in interface IRenderable
public void attachTo(SceneNode node)
SceneObject
attachTo
in class BoundedSceneObject
node
- The node onto which this SceneObject will be attachedpublic SceneNode detach()
SceneObject
detach
in class BoundedSceneObject
public Skeleton getSkeleton()
public void setSkeleton(Skeleton skeleton)
public void playAnimation(java.lang.String animName)
public void onUpdate(float time)
onUpdate
in interface IUpdateable
public boolean isFinished()
isFinished
in interface IUpdateable