예제 #1
0
    public void RequestOtherMatches()
    {
        List <Piece> verticalPieces   = CheckVerticalMatches();
        List <Piece> horizontalPieces = CheckHorizontalMatches();

        if (verticalPieces.Count > MatchBehaviour.MINIMUM_MATCH || horizontalPieces.Count > MatchBehaviour.MINIMUM_MATCH)
        {
            List <Piece> totalMatches = new List <Piece>();
            totalMatches.AddRange(horizontalPieces);
            totalMatches.AddRange(verticalPieces);
            DestroyMatches(totalMatches);

            services.NotifyOtherMatches(totalMatches);
        }


        services.NotifyOtherMatches(null);
    }