Tree

Tree

Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.

Constructor

new Tree()

Source:

Extends

Members

branches :Array.<Alive>

Donec imperdiet dignissim

Source:
Type:

energy

amount of energy

Properties:
Name Type Description
the Energy
Inherited From:
Source:

Methods

crop(environment) → {Energy}

Source:
Parameters:
Name Type Description
environment Environment

the environment when this Alive thing is surviving

Returns:
Type:
Energy

the energy wasted in this surviving instance

survive(environment) → {Energy}

Inherited From:
Source:
Parameters:
Name Type Description
environment Environment

the environment when this Alive thing is surviving

Returns:
Type:
Energy

the energy wasted in this surviving instance