Example #1
0
    private bool Check_Down(Difficulty_Modifiers.CardType type, int y, int height, int place, int down)
    {
        if (y + down >= height)
        {
            return(false);
        }

        if (type == Difficulty_Modifiers.CardType.Cart_Type12)
        {
            int res = place + (down * width_12);
            return(Check_Empty_Array_Contains(res));
        }
        else
        {
            int res = place + (down * width_70);
            return(Check_Empty_Array_Contains(res));
        }
    }
Example #2
0
    private bool Check_Up(Difficulty_Modifiers.CardType type, int y, int place, int up)
    {
        if (y - up < 0)
        {
            return(false);
        }

        if (type == Difficulty_Modifiers.CardType.Cart_Type12)
        {
            int res = place - (up * width_12);
            return(Check_Empty_Array_Contains(res));
        }
        else
        {
            int res = place - (up * width_70);
            return(Check_Empty_Array_Contains(res));
        }
    }
Example #3
0
    private bool Check_Diagonal_Down_Right(Difficulty_Modifiers.CardType type, int x, int y, int width, int height, int place, int right, int down)
    {
        if (x + right >= width)
        {
            return(false);
        }

        if (y + down >= height)
        {
            return(false);
        }

        if (type == Difficulty_Modifiers.CardType.Cart_Type12)
        {
            int res = (place + right) + (down * width_12);
            return(Check_Empty_Array_Contains(res));
        }
        else
        {
            int res = (place + right) + (down * width_70);
            return(Check_Empty_Array_Contains(res));
        }
    }
Example #4
0
    private bool Check_Diagonal_Up_Right(Difficulty_Modifiers.CardType type, int x, int y, int width, int place, int right, int up)
    {
        if (x + right >= width)
        {
            return(false);
        }

        if (y - up < 0)
        {
            return(false);
        }

        if (type == Difficulty_Modifiers.CardType.Cart_Type12)
        {
            int res = (place + right) - (up * width_12);
            return(Check_Empty_Array_Contains(res));
        }
        else
        {
            int res = (place + right) - (up * width_70);
            return(Check_Empty_Array_Contains(res));
        }
    }