Refactored Game following the footprints of Socc
such Singleton, very software techniques, much patterns
This commit is contained in:
@ -17,8 +17,10 @@ public class Game {
|
||||
private FlowOfTime flowoftime;
|
||||
|
||||
private Display display;
|
||||
|
||||
public static Game instance = new Game();
|
||||
|
||||
public Game() {
|
||||
private Game() {
|
||||
dungeon = new Dungeon();
|
||||
random = new Random();
|
||||
flowoftime = new FlowOfTime();
|
||||
|
Reference in New Issue
Block a user