Tree

Tree

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

Members

Fields & Properties
Methods

Constructor

new Tree()

Extends

Members

branches :Array.<Alive>

Donec imperdiet dignissim

energy

amount of energy

Properties:
Type Description
Energy
Inherited From:

Methods

crop(environment) → {Energy}

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}

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