()
| 89 | } |
| 90 | |
| 91 | private addRats(): void{ |
| 92 | for(var i = 5; i <= 95; i++){ |
| 93 | // One chance out of 3 |
| 94 | if(Random.oneChanceOutOf(3)){ |
| 95 | // We add a rat |
| 96 | this.addRat(new Pos(i, 2)); |
| 97 | // We increase i to avoid adding a rat above the last one |
| 98 | i += 2; |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | private goToFifthHouse(): void{ |
| 104 | this.getGame().setPlace(new FifthHouse(this.getGame())); |