public WalkerForm(Map map) { this.map = map; mapSize = map.Size; InitializeComponent(mapSize); this.mapDisplay.map = map; walker = new RandomWalker(map, this); walker.InitiateRandomWalk(new Vector(map.Size.Width / 2, map.Size.Height / 2)); }
private void Reset_Click(object sender, EventArgs e) { walker = new RandomWalker(map, this); InitializeComponent(mapSize); }