Descent.Model.Board.Board.SquareVisibleByPlayers C# (CSharp) 메소드

SquareVisibleByPlayers() 공개 메소드

Should the square be shown on the board? A square is visible by players if it has something on it, and if that squares area has been revealed
public SquareVisibleByPlayers ( int x, int y ) : bool
x int /// The x coordinate ///
y int /// The y coordinate ///
리턴 bool
        public bool SquareVisibleByPlayers(int x, int y)
        {
            return IsSquareWithinBoard(x, y) && revealedAreas.Contains(this[x, y].Area);
        }