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

Method drawEntities

code/main/Quest.ts:516–524  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514 }
515
516 public drawEntities(): void{
517 for(var i = 0; i < this.entities.length; i++){
518 // Let the entity draw itself
519 this.entities[i].draw(this.renderArea);
520 // Should we draw a health bar ?
521 if(this.entities[i].getHealthBar() != null)
522 this.entities[i].getHealthBar().draw(this.renderArea);
523 }
524 }
525
526 public endQuest(win: boolean): void{
527 // If the player won the quest

Callers 15

updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls 2

getHealthBarMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected