RunicBoard.GetAdjacentPositions C# (CSharp) Method

GetAdjacentPositions() private method

Get adjacent positions to the one in parameter.
private GetAdjacentPositions ( int position ) : List
position int
return List
    private List<int> GetAdjacentPositions(int position)
    {
        List<int> neighbours = new List<int>();

        int n1 = position - 6;
        if (PositionExists(n1))
            neighbours.Add(n1);

        int n2 = position - 5;
        if (PositionExists(n2))
            neighbours.Add(n2);

        int n3 = position - 1;
        if (PositionExists(n3))
            neighbours.Add(n3);

        int n4 = position + 1;
        if (PositionExists(n4))
            neighbours.Add(n4);

        int n5 = position + 5;
        if (PositionExists(n5))
            neighbours.Add(n5);

        int n6 = position + 6;
        if (PositionExists(n6))
            neighbours.Add(n6);

        return neighbours;
    }