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

Method setQuestEntityAnimation

code/main/QuestEntity.ts:622–628  ·  view source on GitHub ↗
(questEntityAnimation: QuestEntityAnimation)

Source from the content-addressed store, hash-verified

620 }
621
622 public setQuestEntityAnimation(questEntityAnimation: QuestEntityAnimation): void{
623 // We set the animation
624 this.questEntityAnimation = questEntityAnimation;
625
626 // We update for the first time if not null
627 if(this.questEntityAnimation != null) this.questEntityAnimation.draw(this.renderArea);
628 }
629
630 public setQuestEntityMovement(questEntityMovement: QuestEntityMovement): void{
631 this.questEntityMovement = questEntityMovement;

Callers 3

constructorMethod · 0.95
constructorMethod · 0.80
constructorMethod · 0.80

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected