public class Flower extends Actor
Flower is an actor that darkens over time. Some actors drop
flowers as they move. | Constructor and Description |
|---|
Flower()
Constructs a pink flower.
|
Flower(Color initialColor)
Constructs a flower of a given color.
|
| Modifier and Type | Method and Description |
|---|---|
void |
act()
Causes the color of this flower to darken.
|
getColor, getDirection, getGrid, getLocation, moveTo, putSelfInGrid, removeSelfFromGrid, setColor, setDirection, toStringpublic Flower()
public Flower(Color initialColor)
initialColor - the initial color of this flower