wingbase/server/game/room/world/copula/rope.js
2016-03-26 20:23:05 +00:00

20 lines
305 B
JavaScript

'use strict';
const Copula = require('./copula.js');
class Rope extends Copula {
constructor(b1, b2, p1, p2) {
super(b1, b2, p1, p2);
this.type = 'rope';
}
get length() {
return this.b2joint.GetMaxLength();
}
set length(len) {
this.b2joint.SetMaxLength(len);
}
}
module.exports = Rope;