()
| 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 |