public abstract class StageFeature extends GameObject
| Constructor and Description |
|---|
StageFeature()
The default constructor
|
StageFeature(double x,
double y,
double w,
double h,
int xDir,
int yDir)
The general constructor used to create the stage features
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.awt.geom.Line2D |
getContactLine()
Represents a collision detection line for stage features
|
abstract void |
interact(GameObject gameObject)
Describes the interation between the stage feature and another game object
|
abstract void |
paint(java.awt.Graphics g)
Paints the stage feature
|
abstract void |
update()
Updates the stage feature
|
changeXDir, changeYDirpublic StageFeature()
public StageFeature(double x,
double y,
double w,
double h,
int xDir,
int yDir)
x - The x coordinate of the objecty - The y coordinate of the objectw - The width of the objecth - The height of the objectxDir - The x direction of the objectyDir - The y direction of the objectpublic abstract java.awt.geom.Line2D getContactLine()
getContactLine in class GameObjectpublic abstract void paint(java.awt.Graphics g)
paint in class GameObjectg - An instance of the Graphics objectpublic abstract void update()
update in class GameObjectpublic abstract void interact(GameObject gameObject)
interact in class GameObjectgameObject - The game object that the stage feature is interacting with