public int GetCellXCoord(int cellid) { int w = this._map.Width; return ((cellid - (w - 1) * GetCellYCoord(cellid)) / w); }