public class EndMark extends Prop
| Constructor and Description |
|---|
EndMark()
The default constructor
|
EndMark(double x,
double y,
double w,
double h)
The general constructor used to create the endmark
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Line2D |
getContactLine()
Gets the right contact line of the endmark's hitbox
|
java.awt.geom.Line2D |
getLeftContactLine()
Gets the left contact line of the endmark's hitbox
|
void |
interact(GameObject gameObject)
Describes the interaction between the endmark and the object it is interacting with
|
void |
paint(java.awt.Graphics g)
Draws the endmark's hitbox
|
void |
update()
An empty function body since the function is not used
|
changeXDir, changeYDirpublic EndMark()
public EndMark(double x,
double y,
double w,
double h)
x - The x coordinate of the objecty - The y coordinate of the objectw - The width of the objecth - The height of the objectpublic java.awt.geom.Line2D getContactLine()
getContactLine in class Proppublic java.awt.geom.Line2D getLeftContactLine()
public void paint(java.awt.Graphics g)
public void update()
public void interact(GameObject gameObject)