()
| 69 | |
| 70 | // Private methods |
| 71 | private actionInterval(): void{ |
| 72 | // Increase the time |
| 73 | this.timerTime += 1; |
| 74 | |
| 75 | // If we're boiling, update the flames array |
| 76 | if(this.currentAction == CauldronAction.BOILING){ |
| 77 | this.updateFlamesArray(); |
| 78 | } |
| 79 | |
| 80 | // If we're not doing nothing, update |
| 81 | if(this.currentAction != CauldronAction.NOTHING){ |
| 82 | this.update(); |
| 83 | this.getGame().updatePlace(); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | private changeAction(newAction: CauldronAction): void{ |
| 88 | // If we're not already doing that |
nothing calls this directly
no test coverage detected