public World(int width, int height,string name) { _name = name; _width = width; _height = height; _painter = new WorldPainter(); }
public MainForm(World world) { InitializeComponent(); _mainDrawingBox.InitializeContexts(); _world = world; _worldPainter = new WorldPainter(); }
private void PassabilityPainterClick(object sender, EventArgs e) { _worldPainter = new PassabilityWorldPainter(); Draw(); }
private void HumidityPainterClick(object sender, EventArgs e) { _worldPainter = new HumidityWorldPainter(); Draw(); }
private void TemperaturePainterClick(object sender, EventArgs e) { _worldPainter = new TemperatureWorldPainter(); Draw(); }
private void StdPainterClick(object sender, EventArgs e) { _worldPainter = new WorldPainter(); Draw(); }
public void Draw(IWorldPainter painter) { painter.Draw(this); }
public World(int width, int height) { _width = width; _height = height; _painter = new WorldPainter(); }
public World() { _width = 0; _height = 0; _painter = new WorldPainter(); }