Descent.Model.Board.Board.IsValidStartSquare C# (CSharp) Method

IsValidStartSquare() public method

Indicates whether a point is a valid start/spawn point
public IsValidStartSquare ( Point point ) : bool
point Point /// The point to check ///
return bool
        public bool IsValidStartSquare(Point point)
        {
            if (!IsStandable(point.X, point.Y)) return false;
            for (int x = point.X - 1; x <= point.X + 1; x++)
            {
                for (int y = point.Y - 1; y <= point.Y + 1; y++)
                {
                    if (IsSquareWithinBoard(x, y) && this[x, y].Marker != null &&
                        this[x, y].Marker.Name.Equals("glyph-open")) return true;
                }
            }

            return false;
        }