ArkaliaCore.Game.Game.Engines.PathEngine.GetCellXCoord C# (CSharp) Method

GetCellXCoord() public method

Get X location for cell
public GetCellXCoord ( int cellid ) : int
cellid int
return int
        public int GetCellXCoord(int cellid)
        {
            int w = this._map.Width;
            return ((cellid - (w - 1) * GetCellYCoord(cellid)) / w);
        }