Пример #1
0
    public void Reset()
    {
        Points        = 0;
        BlocksMatched = 0;

        ComboCounts.Clear();
        for (int count = 0; count < BlockManager.Columns * BlockManager.Rows; count++)
        {
            ComboCounts[count] = 0;
        }

        ChainLengths.Clear();
        for (int length = 0; length < 256; length++)
        {
            ChainLengths[length] = 0;
        }

        LinesRaised = 0;
    }
Пример #2
0
    public void Reset()
    {
        Points        = 0;
        BlocksMatched = 0;

        ComboCounts.Clear();
        for (int count = 0; count < boardColumns.Value * boardRows.Value; count++)
        {
            ComboCounts[count] = 0;
        }
        comboCountsChanged.Raise();

        ChainLengths.Clear();
        for (int length = 0; length < 256; length++)
        {
            ChainLengths[length] = 0;
        }
        chainLengthsChanged.Raise();

        LinesRaised = 0;
    }