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

Method draw

code/main/QuestEntitySpell.ts:28–36  ·  view source on GitHub ↗
(renderArea: RenderArea)

Source from the content-addressed store, hash-verified

26 }
27
28 public draw(renderArea: RenderArea): void{
29 // Call the mother class draw method
30 super.draw(renderArea);
31
32 // Draw the colors
33 for(var i = 0; i < this.colors.length; i++){
34 this.colors[i].draw(renderArea, this.getQuest().getRealQuestPosition().plus(this.getGlobalPosition()).plus(this.getQuest().getGlobalDrawingOffset()));
35 }
36 }
37
38 public removeColors(): void{
39 this.colors = [];

Callers

nothing calls this directly

Calls 5

plusMethod · 0.80
getRealQuestPositionMethod · 0.80
getQuestMethod · 0.80
getGlobalPositionMethod · 0.80

Tested by

no test coverage detected