public interface Renderable
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.awt.Point point)
Determines if this entity contains the given point.
|
void |
draw(java.awt.Graphics2D g2d)
Renders this entity onto the given graphics.
|
java.awt.Point |
getCentralPoint()
Gets the central point within the entity calculated using only visible model points.
|
java.awt.Point |
getRandomPoint()
Get a random point within the entity.
|
java.awt.Point |
getRealCentralPoint()
Gets the central point within the entity calculated using visible and non-visible model points.
|
boolean |
isVisible()
Gets if this entity is visible on screen.
|
boolean isVisible()
boolean contains(java.awt.Point point)
point
- the pointjava.awt.Point getRandomPoint()
Point
java.awt.Point getCentralPoint()
Point
Model.getCentralPoint(int, int, int, int, int)
java.awt.Point getRealCentralPoint()
Point
Model.getRealCentralPoint(int, int, int, int, int)
void draw(java.awt.Graphics2D g2d)
g2d
- the graphics