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

Type:
Source:

# energy

amount of energy

Properties
Type Description
Energy
Overrides:
Default Value:
  • null
Source:

Methods

# crop(environment) → {Energy}

Parameters:
Name Type Description
environment Environment

the environment when this Alive thing is surviving

Source:
Fires:
  • Tree.event:crop
Throws:

Err

Returns:

the energy wasted in this surviving instance

Type
Energy

# survive(environment) → {Energy}

Parameters:
Name Type Description
environment Environment

the environment when this Alive thing is surviving

Overrides:
Source:
Returns:

the energy wasted in this surviving instance

Type
Energy