Alive.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. */
  5. class Alive {
  6. constructor(){
  7. /**
  8. * amount of energy
  9. * @property {Energy} the
  10. */
  11. this.energy = null;
  12. }
  13. /**
  14. * @param {Environment} environment the environment when this Alive thing is surviving
  15. * @return {Energy} the energy wasted in this surviving instance
  16. * @method
  17. */
  18. survive() {
  19. return null
  20. }
  21. }