|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectplanty.PlantList
public class PlantList
A list of precreated plants to ease plant creation.
| Field Summary | |
|---|---|
static Sprouling[] |
plants
An array of plants. |
| Constructor Summary | |
|---|---|
PlantList()
|
|
| Method Summary | |
|---|---|
private static void |
echo()
Prints an empty line in the default PrintStream. |
private static void |
echo(java.lang.Object o)
Prints the given content. |
private static void |
echoErr(java.lang.Object o)
|
static Sprouling |
loadFromList()
Loads a plant from the list registered. |
private static java.lang.String |
read()
Executes a line-reading of the default InputStream. |
private static int |
readInt()
|
private static boolean |
yes()
Reades the default InputStream for an "yes" or "no". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Sprouling[] plants
| Constructor Detail |
|---|
public PlantList()
| Method Detail |
|---|
private static java.lang.String read()
InputStream.
null in case of error.private static int readInt()
private static boolean yes()
InputStream for an "yes" or "no".
false if the user input "n", true otherwise.private static void echo()
PrintStream.
private static void echo(java.lang.Object o)
o - something to print.private static void echoErr(java.lang.Object o)
public static Sprouling loadFromList()
Sprouling.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||