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

Method handleCombat

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

Source from the content-addressed store, hash-verified

655 }
656
657 private handleCombat(): void{
658 // We iterate over weapons and use them
659 for(var i = 0; i < this.questEntityWeapons.length; i++){
660 this.questEntityWeapons[i].handleCombat();
661 }
662
663 // We iterate over spellc asters and use them
664 for(var i = 0; i < this.questEntitySpellCasters.length; i++){
665 this.questEntitySpellCasters[i].tryToCast();
666 }
667 }
668
669 private handleGravity(): boolean{
670 // If we're jumping, we handle jumping

Callers 1

updateMethod · 0.95

Calls 1

tryToCastMethod · 0.80

Tested by

no test coverage detected