Refactored flowoftime construction, fixes #9
This commit is contained in:
parent
1a2d0fdfeb
commit
37fa657720
@ -23,7 +23,6 @@ public class Game {
|
|||||||
|
|
||||||
private Game() {
|
private Game() {
|
||||||
random = new Random();
|
random = new Random();
|
||||||
flowoftime = new FlowOfTime();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDungeon(Dungeon dungeon) {
|
public void setDungeon(Dungeon dungeon) {
|
||||||
@ -50,6 +49,7 @@ public class Game {
|
|||||||
display.addVisual(new PlayerDrawer(jaffa));
|
display.addVisual(new PlayerDrawer(jaffa));
|
||||||
display.addVisual(new PlayerBaseDrawer(replicator));
|
display.addVisual(new PlayerBaseDrawer(replicator));
|
||||||
|
|
||||||
|
flowoftime = new FlowOfTime();
|
||||||
flowoftime.start(dungeon.getTimeLimit());
|
flowoftime.start(dungeon.getTimeLimit());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user