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

Method handleAnimation

code/main/QuestEntity.ts:647–655  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

updateMethod · 0.95

Calls 4

resetAllButSizeMethod · 0.80
updateMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected