| 575 | } |
| 576 | |
| 577 | public foundGridOrEqItem(itemFound: QuestItemFound): boolean{ |
| 578 | // If we already have this item, we return false |
| 579 | if(Saving.loadBool(itemFound.getSavingName()) == true) |
| 580 | return false; |
| 581 | |
| 582 | // If we already found this item during this quest, we return false |
| 583 | for(var i = 0; i < this.itemsFound.length; i++){ |
| 584 | if(itemFound.getSavingName() == this.itemsFound[i].getSavingName()) |
| 585 | return false; |
| 586 | } |
| 587 | |
| 588 | // We add the item to our found array, tell it that we found it, and return true |
| 589 | this.itemsFound.push(itemFound); |
| 590 | this.itemsFound[this.itemsFound.length-1].found(); |
| 591 | return true; |
| 592 | } |
| 593 | |
| 594 | public forceMovingAllEntities(movement: Pos): void{ |
| 595 | for(var i = 0; i < this.entities.length; i++){ |