Differences From Artifact [e56b333ba2eacac4]:
- File
src/gui.d
- 2012-07-14 13:49:28 - part of checkin [976b6210b7] on branch trunk - Fixed exception from timered-run. (user: kinaba) [annotate]
To Artifact [f5e549c65e603be1]:
- File
src/gui.d
- 2012-07-14 14:22:32 - part of checkin [a0c3529225] on branch trunk - code cleanup (user: kinaba) [annotate]
1 import dfl.all; 1 import dfl.all;
2 import util; 2 import util;
3 import game; 3 import game;
4 import driver; 4 import driver;
5 5
6 class GUI(Solver) : Form, GameObserver 6 class GUI(Solver) : Form, GameObserver
7 { 7 {
8 this(const(Game) g) | 8 this(in Game g)
9 { 9 {
10 this.solver = new Solver(g); 10 this.solver = new Solver(g);
11 setup_size(g.map.W, g.map.H); 11 setup_size(g.map.W, g.map.H);
12 setup_resources(); 12 setup_resources();
13 setup_keyhandling(); 13 setup_keyhandling();
14 draw(g); 14 draw(g);
15 } 15 }