Struct base::gen::plant::tree::TreeGen [] [src]

pub struct TreeGen {
    // some fields omitted
}

Methods

impl TreeGen
[src]

fn generate<R: Rng>(self, rng: &mut R) -> Tree

Generates a random tree according to the stored parameters.

The tree is returned as a list of branches for now.

fn new(plant_type: PlantType) -> Self