C E G M P W
All Classes All Packages
All Classes All Packages
All Classes All Packages
C
- Carrot - Class in <Unnamed>
- Carrot() - Constructor for class Carrot
-
Constructs a brand new carrot, with medium water to start.
- Carrot(String) - Constructor for class Carrot
-
Constructs a brand new carrot and gives it a particular name, with medium water to start.
E
- elapseDay() - Method in class Carrot
-
Elapses a day in the life of the carrot.
- elapseDay() - Method in interface Plant
-
Ages the plant by a day.
G
- Garden - Class in <Unnamed>
-
Garden is a simulation of an actual garden that instantiates plants, waters them, and displays them.
- Garden() - Constructor for class Garden
- getName() - Method in class Carrot
-
All carrots are named Carrot by default, unless another name was set on construction.
- getName() - Method in interface Plant
-
Returns the name of the plant.
- getStatus() - Method in class Carrot
-
Returns a String describing the current state of the carrot.
- getStatus() - Method in interface Plant
-
Returns a string describing the state of the plant.
- getWaterLevel() - Method in class Carrot
-
Gets the water level of the carrot.
- getWaterLevel() - Method in interface Plant
-
Returns the current water level for the plant.
M
- main(String[]) - Static method in class Garden
P
W
- waterPlant(int) - Method in class Carrot
-
Waters the carrot
- waterPlant(int) - Method in interface Plant
-
Waters the plant with unitsWater water.
All Classes All Packages