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>

Source:

Donec imperdiet dignissim

Type:

energy

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

amount of energy

Methods

crop(environment) → {Energy}

Source:
Parameters:
Name Type Description
environment Environment

the environment when this Alive thing is surviving

Returns:

the energy wasted in this surviving instance

Type
Energy

survive(environment) → {Energy}

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

the environment when this Alive thing is surviving

Returns:

the energy wasted in this surviving instance

Type
Energy