Esempio n. 1
0
    //Return the highest score's stats,
    public string returnBest(operators op, bool Score)
    {
        string returning = "";

        if (Score)
        {
            returning += "Best " + op.ToString() + " Score run by " + highScoreNames[0, (int)op] + "\n";
            returning += "Points: " + highScoreScore[0, (int)op].ToString() + ".  Levels: " + highScoreLevel[0, (int)op].ToString();
        }
        else
        {
            returning += "Best " + op.ToString() + " Level run by " + highLevelNames[0, (int)op] + "\n";
            returning += "Levels: " + HighLevelLevels[0, (int)op].ToString() + ".  Points: " + highLevelScore[0, (int)op].ToString();
        }


        return(returning);
    }
Esempio n. 2
0
    //Return the Ranking scores.
    //No for loop because 1st, 2nd is different for each, and we'd need another array for that.
    public string returnRanking(operators op, bool Score)
    {
        int    index     = 0;
        string returning = "";

        if (Score)
        {
            returning = op.ToString() + " Score Rankings:\n";

            returning += "1st is " + highScoreNames[index, (int)op] + " at " + highScoreScore[index, (int)op].ToString() + " Points\n";
            index++;
            returning += "2nd is " + highScoreNames[index, (int)op] + " at " + highScoreScore[index, (int)op].ToString() + " Points\n";
            index++;
            returning += "3rd is " + highScoreNames[index, (int)op] + " at " + highScoreScore[index, (int)op].ToString() + " Points\n";
            index++;
            returning += "4th is " + highScoreNames[index, (int)op] + " at " + highScoreScore[index, (int)op].ToString() + " Points\n";
            index++;
            returning += "5th is " + highScoreNames[index, (int)op] + " at " + highScoreScore[index, (int)op].ToString() + " Points\n";
        }
        else
        {
            returning = op.ToString() + " Level Rankings:\n";

            returning += "1st is " + highLevelNames[index, (int)op] + " at " + HighLevelLevels[index, (int)op].ToString() + " Levels\n";
            index++;
            returning += "2nd is " + highLevelNames[index, (int)op] + " at " + HighLevelLevels[index, (int)op].ToString() + " Levels\n";
            index++;
            returning += "3rd is " + highLevelNames[index, (int)op] + " at " + HighLevelLevels[index, (int)op].ToString() + " Levels\n";
            index++;
            returning += "4th is " + highLevelNames[index, (int)op] + " at " + HighLevelLevels[index, (int)op].ToString() + " Levels\n";
            index++;
            returning += "5th is " + highLevelNames[index, (int)op] + " at " + HighLevelLevels[index, (int)op].ToString() + " Levels\n";
        }


        return(returning);
    }