Class Entity
Inheritance
java.lang.Object
Entity
Syntax
public class Entity implements EntityI
Constructors
Entity()
Declaration
Methods
addChild(Entity child)
Declaration
public Entity addChild(Entity child)
Parameters
Type |
Name |
Description |
Entity |
child |
|
Returns
addComponent(SceneComponent gameComponent)
Declaration
public Entity addComponent(SceneComponent gameComponent)
Parameters
Returns
addToScene()
Declaration
getAllAttached()
Declaration
public ArrayList<Entity> getAllAttached()
Returns
Type |
Description |
ArrayList<Entity> |
|
getChildren()
Declaration
public ArrayList<Entity> getChildren()
Returns
Type |
Description |
ArrayList<Entity> |
|
getComponents()
Declaration
public ArrayList<SceneComponent> getComponents()
Returns
getParentScene()
Declaration
public Scene getParentScene()
Returns
Returns The Transform For The Entity Used To Manipulate The Entity.
Declaration
public Transform getTransform()
Returns
Overrides
init()
Initialize All Scene Objects And Components Attached.
Declaration
Overrides
Only Update The Inputs For This Object.
Declaration
public void input(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
Overrides
Update Inputs For All Scene Objects And Components Attached.
Declaration
public void inputAll(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
render(Shader shader, RenderingEngine engine)
Only Render This Scene Object.
Declaration
public void render(Shader shader, RenderingEngine engine)
Parameters
Overrides
renderAll(Shader shader, RenderingEngine engine)
Declaration
public void renderAll(Shader shader, RenderingEngine engine)
Parameters
setChildren(ArrayList<Entity> children)
Declaration
public void setChildren(ArrayList<Entity> children)
Parameters
Type |
Name |
Description |
ArrayList<Entity> |
children |
|
setComponents(ArrayList<SceneComponent> components)
Declaration
public void setComponents(ArrayList<SceneComponent> components)
Parameters
setParentScene(Scene prntScene)
Declaration
public void setParentScene(Scene prntScene)
Parameters
Type |
Name |
Description |
Scene |
prntScene |
|
Sets The Entity's Transform To The Transform Provided.
Declaration
public void setTransform(Transform transform)
Parameters
Overrides
update(float delta)
Only Update This Scene Object.
Declaration
public void update(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
Overrides
updateAll(float delta)
Update This And All Scene Objects And Components Attached.
Declaration
public void updateAll(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|