Tree.js

  1. /**
  2. * Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.
  3. * @class
  4. * @extends Alive
  5. */
  6. class Tree extends Alive {
  7. constructor() {
  8. super()
  9. /**
  10. * Donec imperdiet dignissim
  11. * @type {Array<Alive>}
  12. */
  13. this.branches = null
  14. }
  15. /**
  16. * @param {Environment} environment the environment when this Alive thing is surviving
  17. * @return {Energy} the energy wasted in this surviving instance
  18. * @method
  19. */
  20. crop() {
  21. return null
  22. }
  23. }