-
Notifications
You must be signed in to change notification settings - Fork 2
Plants
Transfinity edited this page Sep 8, 2012
·
1 revision
The Plant shall consist of three classes:
Parts of the plant that are not owned by the PlantAI:
- Total amount of nutrients
- Root cell
A PlantAI is in charge of growth and potentially reproduction for a set of plantcells. It will act very similarly to a fish, but with a few fundamental differences - a plant cannot move, different cells are connected and can share nutrients between each other, and the plant gains nutrients from the environment rather than by eating things.
implements Runnable
-
run()
- Constantly watching nutrient counts, growing and/or reproducing when appropriate. -
List<PlantCell> cells
- A list of the cells that make up this plant.
A single piece of a plant. Should know what plant it's attached to.
-
final Plant plant
- the plant that this cell is a member of