()
| 236 | } |
| 237 | |
| 238 | public getRenderAreaCenter(): Pos{ |
| 239 | if(this.renderArea != null) |
| 240 | return this.globalPosition.plus(new Pos(Math.floor(this.renderArea.getWidth()/2), Math.floor(this.renderArea.getHeight()/2))) |
| 241 | return this.globalPosition; |
| 242 | } |
| 243 | |
| 244 | public goTowards(ourPosition: Pos, goalPosition: Pos, minDistance: number = 0, speed: Pos = new Pos(1, 1), dontTakeYInAccount: boolean = false): void{ |
| 245 | // We create the movement |
no test coverage detected