Refactored flowoftime construction, fixes #9

This commit is contained in:
Bokros Bálint 2016-05-13 21:05:34 +02:00
parent 1a2d0fdfeb
commit 37fa657720

View File

@ -23,7 +23,6 @@ public class Game {
private Game() {
random = new Random();
flowoftime = new FlowOfTime();
}
public void setDungeon(Dungeon dungeon) {
@ -50,6 +49,7 @@ public class Game {
display.addVisual(new PlayerDrawer(jaffa));
display.addVisual(new PlayerBaseDrawer(replicator));
flowoftime = new FlowOfTime();
flowoftime.start(dungeon.getTimeLimit());
}