function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Robot = function () {
function Robot(color, light, size, x, y, struct) {
_classCallCheck(this, Robot);
this.color = Math.round(color);
for (var _iterator = struct.points, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
if (_i >= _iterator.length) break;
this.points.push(new Point(id++, size * p[0] + x, size * p[1] + y, p[2]));
for (var _iterator2 = struct.links, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
if (_i2 >= _iterator2.length) break;
_ref2 = _iterator2[_i2++];