MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / constructor

Method constructor

code/main/Smoke.ts:26–41  ·  view source on GitHub ↗
(x: number, y: number, width: number, height: number, minWaitingTime: number = 0, maxWaitingTime: number = 0)

Source from the content-addressed store, hash-verified

24
25 // Constructor
26 constructor(x: number, y: number, width: number, height: number, minWaitingTime: number = 0, maxWaitingTime: number = 0){
27 // Position
28 this.x = x;
29 this.y = y;
30
31 // Size
32 this.width = width;
33 this.height = height;
34
35 // Waiting time
36 this.minWaitingTime = minWaitingTime;
37 this.maxWaitingTime = maxWaitingTime;
38
39 // Init the smoke
40 this.init(false);
41 }
42
43 // Public methods
44 public draw(renderArea: RenderArea){

Callers

nothing calls this directly

Calls 1

initMethod · 0.95

Tested by

no test coverage detected