Ein Projekt das es ermöglicht Beerpong über das Internet von zwei unabhängigen positionen aus zu spielen. Entstehung im Rahmen einer Praktikumsaufgabe im Fach Interaktion.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

case.js 648B

123456789101112131415161718192021222324252627282930313233
  1. 'use strict';
  2. var Node = require('./node');
  3. /**
  4. * Initialize a new `Case` with `expr`.
  5. *
  6. * @param {String} expr
  7. * @api public
  8. */
  9. var Case = exports = module.exports = function Case(expr, block){
  10. this.expr = expr;
  11. this.block = block;
  12. };
  13. // Inherit from `Node`.
  14. Case.prototype = Object.create(Node.prototype);
  15. Case.prototype.constructor = Case;
  16. Case.prototype.type = 'Case';
  17. var When = exports.When = function When(expr, block){
  18. this.expr = expr;
  19. this.block = block;
  20. this.debug = false;
  21. };
  22. // Inherit from `Node`.
  23. When.prototype = Object.create(Node.prototype);
  24. When.prototype.constructor = When;
  25. When.prototype.type = 'When';