BVG.Board.GetBoardState C# (CSharp) Method

GetBoardState() public method

Get the state of the board at a given coordinate.
public GetBoardState ( IntVector2 boardPosition ) : BoardState
boardPosition IntVector2 The board position to get the state of.
return BoardState
		public BoardState GetBoardState(IntVector2 boardPosition) {
			if (! IsValidBoardPosition(boardPosition)) {
				Debug.LogErrorFormat("Invalid coordinates to get board state: {0}", boardPosition);
				return BoardState.EMPTY;
			}

			return boardStates[boardPosition.x, boardPosition.y];
		}
	}