public class Plant extends Interactable implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private int |
health |
private int |
randPlant |
height, width, xLocation, yLocation
Constructor and Description |
---|
Plant(int health,
int xLocation,
int yLocation)
Constructor for plant object
|
Modifier and Type | Method and Description |
---|---|
int |
getHealth()
Gets health of plant object
|
void |
setHealth(int health)
Sets health of plant object
|
addXLocation, addYLocation, getCollidesWith, getCollisionRect, getHeight, getWidth, getXLocation, getYLocation, setRelativeCollisionRect, setXLocation, setYLocation