public GameModel(Window window) { super(window); this.view = new GameView(this); this.controller = new GameController(this); maps = new MapList(this); currentMap = maps.get(FIRST_MAP_NAME); setCurrentMap(currentMap); previousMap = null; previousMapTimer = 0; player = new Player(PLAYER_NAME, currentMap.getCells()[8][8]); // luodaan se playeri oikein turn = 0; timeLeap = 0; time = 16955; // Util.randInt(DAY_LENGTH / 5, DAY_LENGTH / 2); day = 1; hours = generateHourNames(); events = new BufferedList<Event>(); initQuests(); updateVisibleOutput(); }