()
| 46 | } |
| 47 | |
| 48 | private update(): void{ |
| 49 | // Erase everything |
| 50 | this.renderArea.resetAllButSize(); |
| 51 | |
| 52 | // Back to the map button only if we possess the main map |
| 53 | if(Saving.loadBool("gridItemPossessedMainMap")) |
| 54 | this.addBackToMainMapButton(this.renderArea, "villageBackToTheMapButton"); |
| 55 | |
| 56 | // Draw the ascii |
| 57 | this.renderArea.drawArray(Database.getAscii("places/village/village"), 0, 3); |
| 58 | |
| 59 | // Draw smokes |
| 60 | for(var i = 0; i < this.smokes.length; i++){ |
| 61 | this.smokes[i].draw(this.renderArea); |
| 62 | } |
| 63 | |
| 64 | // Load various things |
| 65 | this.loadFirstHouse(2, 3 + 24); |
| 66 | this.loadSecondHouse(18, 3 + 21); |
| 67 | this.loadThirdHouse(32, 3 + 25); |
| 68 | this.loadForge(61, 3 + 24); |
| 69 | this.loadFourthHouse(77, 3 + 24); |
| 70 | this.loadFifthHouse(91, 3 + 25); |
| 71 | } |
| 72 | |
| 73 | // Private "go to" methods |
| 74 | private goToFirstHouse(): void{ |
no test coverage detected