jsge
Version:
Javascript Game Engine
77 lines (67 loc) • 1.42 kB
JavaScript
import { DRAW_TYPE } from "../../constants.js";
import { DrawShapeObject } from "./DrawShapeObject.js";
/**
* Conus object to draw.
* @extends DrawShapeObject
* @see {@link DrawObjectFactory} should be created with factory method
*/
export class DrawConusObject extends DrawShapeObject {
/**
* @type {number}
*/
/**
* @type {number}
*/
/**
* Array of [x,y] cords.
* @type {Array<number>}
*/
/**
* @hideconstructor
*/
constructor(x, y, radius, bgColor, angle, fade = 0) {
super(DRAW_TYPE.CONUS, x, y, bgColor);
this.
this.
this.
this.
}
/**
* Array of [x,y] cords.
* @type {Array<number>}
*/
get vertices () {
return this.
}
set vertices(value) {
this.
}
/**
* @type {number}
*/
get radius() {
return this.
}
/**
* @type {number}
*/
get angle() {
return this.
}
/**
* @type {number}
*/
get fade_min() {
return this.
}
/**
* @param {number} value - fade start pos in px
*/
set fade_min(value) {
this.
}
}