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

InLine() public method

Check if cells is in the same line
public InLine ( int cell1, int cell2 ) : bool
cell1 int
cell2 int
return bool
        public bool InLine(int cell1, int cell2)
        {
            bool isX = GetCellXCoord(cell1) == GetCellXCoord(cell2);
            bool isY = GetCellYCoord(cell1) == GetCellYCoord(cell2);
            return isX || isY;
        }