public class Predator extends Bird
DetectionRange, SeparationRange| Constructor and Description |
|---|
Predator()
Constructor for the predator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
eatBird()
Reduces the hunger value by one.
|
int |
getHunger()
Set the hunger value
|
void |
setHunger(int hunger)
Set the hunger value
|
getColor, getDistance, getDistance, getLocation, getMaxTurnTheta, getRepresentation, getTheta, move, setLocation, setMaxTurnTheta, setRepresentation, setSpeed, updateRepresentationPosition, updateRepresentationRotationpublic Predator()
public void eatBird()
public int getHunger()
public void setHunger(int hunger)
hunger - How many birds should this predator eat before being
removed from the map.