Exemple #1
0
 void Award_star()
 {
     if (score >= 500)
     {
         stars.Earned_star("star1");
         level = 2;
     }
     if (score >= 1000)
     {
         stars.Earned_star("star2");
         level = 3;
     }
     if (score >= 1500)
     {
         stars.Earned_star("star3");
         level = 4;
     }
     if (score >= 3000)
     {
         stars.Earned_star("star4");
         level = 5;
     }
     if (score >= goal)
     {
         stars.Earned_star("star5");
     }
 }