Class: Tree

Tree

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


new Tree()

Extends

Members


branches :Array.<Alive>

Donec imperdiet dignissim

Type:

energy

amount of energy

Properties:
Name Type Description
the Energy
Inherited From:

Methods


crop(environment)

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)

Parameters:
Name Type Description
environment Environment

the environment when this Alive thing is surviving

Inherited From:
Returns:

the energy wasted in this surviving instance

Type
Energy