コード例 #1
0
        /* Struct for the data stored in each entry */
        private StoredDataStruct makeStruct(String str)
        {
            StoredDataStruct tempStruct = new StoredDataStruct(getScore(str), getDif(str), getTime(str));

            Console.WriteLine("Score: " + tempStruct.score + " Difficulty: " + tempStruct.dif + " Time: " + tempStruct.time);
            return(tempStruct);
        }
コード例 #2
0
 /* Constructor for the class which takes in a score, difficulty and time. */
 public DetermineAchievements(int newScore, int newDif, int newTime)
 {
     newData = new StoredDataStruct(newScore, newDif, newTime);
     Console.WriteLine("DetermineAchievements Created\n" +
                       "Score: " + newData.score + " Dif " + newData.dif + "Time" + newData.time);
     getData();
     checkScore();
     checkDif();
     checkTime();
 }