()
| 42 | |
| 43 | // update() |
| 44 | public update(): void{ |
| 45 | // Calculate the distance from the player |
| 46 | var distanceFromPlayer: Pos = this.getGlobalPosition().getDistance(this.getQuest().getGame().getPlayer().getGlobalPosition().plus(new Pos(1, 0))); |
| 47 | |
| 48 | |
| 49 | // Go towards the player |
| 50 | this.goTowards(this.getGlobalPosition(), this.getQuest().getGame().getPlayer().getGlobalPosition().plus(new Pos(1, 0))); |
| 51 | |
| 52 | |
| 53 | // Call the mother class update method |
| 54 | super.update(); |
| 55 | } |
| 56 | } |
nothing calls this directly
no test coverage detected