Tree
  • Enter your text to search
Classes
Events
Global

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

Type:
Source:

energy

amount of energy

Properties:
Name Type
the Energy
Inherited From:
Source:

Methods

crop(environmentEnvironment) → {Energy}

Parameters:
Name Description
environment

the environment when this Alive thing is surviving

Source:
Returns:
  • the energy wasted in this surviving instance

     → {Energy}

survive(environmentEnvironment) → {Energy}

Parameters:
Name Description
environment

the environment when this Alive thing is surviving

Inherited From:
Source:
Returns:
  • the energy wasted in this surviving instance

     → {Energy}