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

GetCellYCoord() public method

Get Y location for cell
public GetCellYCoord ( int cellid ) : int
cellid int
return int
        public int GetCellYCoord(int cellid)
        {
            int w = this._map.Width;
            int loc5 = (int)(cellid / ((w * 2) - 1));
            int loc6 = cellid - loc5 * ((w * 2) - 1);
            int loc7 = loc6 % w;
            return (loc5 - loc7);
        }