Skip to content
Transfinity edited this page Sep 8, 2012 · 1 revision

The Plant shall consist of three classes:

Plant

Parts of the plant that are not owned by the PlantAI:

  • Total amount of nutrients
  • Root cell

PlantAI (abstract)

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.

PlantCell

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
Clone this wiki locally