(x: number, y: number, radius: number, color: string, ctx: CanvasRenderingContext2D, obstacles: Obstacle[], sinks: Sink[], onFinish: (index: number) => void)
| 15 | private onFinish: (index: number) => void; |
| 16 | |
| 17 | constructor(x: number, y: number, radius: number, color: string, ctx: CanvasRenderingContext2D, obstacles: Obstacle[], sinks: Sink[], onFinish: (index: number) => void) { |
| 18 | this.x = x; |
| 19 | this.y = y; |
| 20 | this.radius = radius; |
| 21 | this.color = color; |
| 22 | this.vx = 0; |
| 23 | this.vy = 0; |
| 24 | this.ctx = ctx; |
| 25 | this.obstacles = obstacles; |
| 26 | this.sinks = sinks; |
| 27 | this.onFinish = onFinish; |
| 28 | } |
| 29 | |
| 30 | draw() { |
| 31 | this.ctx.beginPath(); |
nothing calls this directly
no outgoing calls
no test coverage detected