Modifier and Type | Field and Description |
---|---|
(package private) Group |
container
The
Group containing this Entity. |
Constructor and Description |
---|
Entity() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
act(double deltaTime)
Run any
Action objects added to this Entity. |
(package private) void |
draw(javafx.scene.canvas.GraphicsContext context)
Render this Entity to a canvas.
|
void |
remove()
Remove this object from the
Group it is contained in. |
Group container
public void remove()
Group
it is contained in.void draw(javafx.scene.canvas.GraphicsContext context)
context
- GraphicsContext object that handles drawing to the canvasvoid act(double deltaTime)
Action
objects added to this Entity.deltaTime
- amount of time that has passed since the last iteration of the game loop