Description: Constant class attributes:
ALIVE: Private attribute.
Represents status of Catfish that is alive as a String.
DEAD: Private attribute.
Represents status of Catfish that is dead as a String.
SPECIES: Private attribute.
Represents species of lifeform as a String.
BABY_MAX_ENERGY: Private attribute.
Represents maximum energy that can be carried as an integer.
BABY_MIN_ENERGY: Private attribute.
Represents minimum energy needed to stay alive as an integer
To Search:
File list (Check if you may need any files):
练习7
.....\Alife-no-inheritance
.....\....................\class
.....\....................\.....\AlgaeColony.class
.....\....................\.....\Catfish.class
.....\....................\.....\Crocodile.class
.....\....................\.....\HtmlImage.class
.....\....................\.....\HtmlPage.class
.....\....................\.....\HtmlTable.class
.....\....................\.....\LivingBeing.class
.....\....................\.....\Simulation.class
.....\....................\.....\SimulationServlet.class
.....\....................\.....\SimulationView.class
.....\....................\content
.....\....................\.......\blank.gif
.....\....................\.......\CatFish-down.gif
.....\....................\.......\CatFish-left.gif
.....\....................\.......\CatFish-right.gif
.....\....................\.......\CatFish-up.gif
.....\....................\.......\Crocodile-down.gif
.....\....................\.......\Crocodile-left.gif
.....\....................\.......\Crocodile-right.gif
.....\....................\.......\Crocodile-up.gif
.....\....................\.......\initialWorldAlgaeFishCroc.html
.....\....................\work
.....\....................\....\AlgaeColony.java
.....\....................\....\Catfish.java
.....\....................\....\LivingBeing.java
.....\Catfish.java
.....\Crocodile.java