jsge
Version:
Javascript Game Engine
66 lines (59 loc) • 1.16 kB
JavaScript
import { DRAW_TYPE } from "../../constants.js";
import { DrawShapeObject } from "./DrawShapeObject.js";
/**
* @extends DrawShapeObject
* @see {@link DrawObjectFactory} should be created with factory method
*/
export class DrawRectObject extends DrawShapeObject {
/**
* @type {number}
*/
/**
* @type {number}
*/
/**
* @type {Array<Array<number>>}
*/
/**
* @hideconstructor
*/
constructor(x, y, w, h, bgColor) {
super(DRAW_TYPE.RECTANGLE, x, y, bgColor);
this.
this.
this.
}
get scale() {
return super.scale;
}
set scale(value) {
super.scale = value;
}
/**
* @type {Array<Array<number>>}
*/
get vertices () {
return this.
}
/**
* @type {number}
*/
get width() {
return this.
}
/**
* @type {number}
*/
get height() {
return this.
}
set width(w) {
this.
}
set height(h) {
this.
}
}