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.

mixin.js 521B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. var Attrs = require('./attrs');
  3. /**
  4. * Initialize a new `Mixin` with `name` and `block`.
  5. *
  6. * @param {String} name
  7. * @param {String} args
  8. * @param {Block} block
  9. * @api public
  10. */
  11. var Mixin = module.exports = function Mixin(name, args, block, call){
  12. Attrs.call(this);
  13. this.name = name;
  14. this.args = args;
  15. this.block = block;
  16. this.call = call;
  17. };
  18. // Inherit from `Attrs`.
  19. Mixin.prototype = Object.create(Attrs.prototype);
  20. Mixin.prototype.constructor = Mixin;
  21. Mixin.prototype.type = 'Mixin';