()
| 144 | } |
| 145 | |
| 146 | private update(): void{ |
| 147 | // Erase everything |
| 148 | this.renderArea.resetAllButSize(); |
| 149 | |
| 150 | // Back to the village button |
| 151 | this.addBackToTheVillageButton(this.renderArea, "secondHouseBackToTheVillageButton"); |
| 152 | |
| 153 | // Draw the house |
| 154 | this.renderArea.drawArray(Database.getAscii("places/village/secondHouse"), 0, 3); |
| 155 | |
| 156 | // Draw items |
| 157 | this.drawItems(); |
| 158 | |
| 159 | // Should we draw the intro speech ? |
| 160 | if(this.shouldDrawIntroSpeech) |
| 161 | this.drawIntroSpeech(); |
| 162 | |
| 163 | // If there's a selected item, draw the stuff related to it (speech and possibly buying button) |
| 164 | if(this.selectedItemIndex != null){ |
| 165 | this.drawSelectedItemStuff(); |
| 166 | } |
| 167 | } |
| 168 | } |
no test coverage detected