public Tile(Tile t, char tt) { Location = t.Location; form = t.form; Surrounding = t.Surrounding; Ttype[0] = tt; }
public Tile(int _x, int _y, char c, Day18Form f) { Location = new Core.Point(_x, _y); form = f; Ttype[0] = c; /* * switch (c) * { * case '.': * Ttype = TileType.OPEN; * break; * case '#': * Ttype = TileType.LUMBERYARD; * break; * case '|': * Ttype = TileType.TREES; * break; * default: * Ttype = TileType.NONE; * break; * } */ Surrounding = new Core.Point[8] { new Core.Point(_x, _y - 1), new Core.Point(_x + 1, _y - 1), new Core.Point(_x + 1, _y), new Core.Point(_x + 1, _y + 1), new Core.Point(_x, _y + 1), new Core.Point(_x - 1, _y + 1), new Core.Point(_x - 1, _y), new Core.Point(_x - 1, _y - 1) }; }
private void btnDay18_Click(object sender, EventArgs e) { Day18Form form = new Day18Form(); form.Show(); }