()
| 645 | |
| 646 | // Private methods |
| 647 | private handleAnimation(): void{ |
| 648 | if(this.questEntityAnimation != null){ |
| 649 | this.questEntityAnimation.update(); |
| 650 | if(this.questEntityAnimation.shouldUpdateRenderAreaAtThisFrame()){ |
| 651 | this.renderArea.resetAllButSize(); |
| 652 | this.questEntityAnimation.draw(this.renderArea); |
| 653 | } |
| 654 | } |
| 655 | } |
| 656 | |
| 657 | private handleCombat(): void{ |
| 658 | // We iterate over weapons and use them |
no test coverage detected