public Cell(int x, int y, int z, CellType t) { this.x = x; this.y = y; this.z = z; this.type = t; }
/// <summary> /// Adds A Cell to the Field /// </summary> /// <param name="x">Position on X-Axis</param> /// <param name="y">Position on Y-Axis</param> /// <param name="z">Depth-Level</param> /// <param name="type">Type of Cell</param> /// <returns>true or false</returns> public Boolean AddCell(int x, int y, int z, CellType type) { try { cells.Add(new Cell(x, y, z, type)); } catch (Exception) { return false; } return true; }