示例#1
0
        public static void WriteNewScore(Player player, int kind)
        {
            List_highscore ls = HighScoreGame.ReadHighScore();

            if (kind == 1)
            {
                ListPlayer p = ls.player_easy;
                p.player[9] = player;
                ls.player_easy.sort();
                WriteHighScore(new List_highscore(p, ls.player_mid, ls.player_hard));
            }
            else if (kind == 2)
            {
                ListPlayer p = ls.player_mid;
                p.player[9] = player;
                ls.player_mid.sort();
                WriteHighScore(new List_highscore(ls.player_easy, p, ls.player_hard));
            }
            else
            {
                ListPlayer p = ls.player_hard;
                p.player[9] = player;
                ls.player_hard.sort();
                WriteHighScore(new List_highscore(ls.player_easy, ls.player_mid, p));
            }
        }
示例#2
0
 public static void WriteDefault()
 {
     Player[] player_easy = new Player[10];
     Player[] player_mid = new Player[10];
     Player[] player_hard = new Player[10];
     for (int i = 0; i < 10; i++)
     {
         player_easy[i] = new Player("UIT", "Medium",i/2+1, i * i * 15, 1, i * 4, i * 3);
         player_mid[i] = new Player("POKEMON AWARE", "Hard",i/2+1, i * i * 22, 1, i * 6, i * 5);
         player_hard[i] = new Player("UIT POKEMON Champion", "Hardest",i/2+1, i * i * 23+ 50, 1, i * 5, i * 6);
     }
     ListPlayer list_easy = new ListPlayer(player_easy);
     ListPlayer list_mid = new ListPlayer(player_mid);
     ListPlayer list_hard = new ListPlayer(player_hard);
     list_easy.sort();
     list_mid.sort();
     list_hard.sort();
     WriteHighScore(new List_highscore(list_easy, list_mid, list_hard));
 }
示例#3
0
        public static void WriteDefault()
        {
            Player[] player_easy = new Player[10];
            Player[] player_mid  = new Player[10];
            Player[] player_hard = new Player[10];
            for (int i = 0; i < 10; i++)
            {
                player_easy[i] = new Player("UIT", "Medium", i / 2 + 1, i * i * 15, 1, i * 4, i * 3);
                player_mid[i]  = new Player("POKEMON AWARE", "Hard", i / 2 + 1, i * i * 22, 1, i * 6, i * 5);
                player_hard[i] = new Player("UIT POKEMON Champion", "Hardest", i / 2 + 1, i * i * 23 + 50, 1, i * 5, i * 6);
            }
            ListPlayer list_easy = new ListPlayer(player_easy);
            ListPlayer list_mid  = new ListPlayer(player_mid);
            ListPlayer list_hard = new ListPlayer(player_hard);

            list_easy.sort();
            list_mid.sort();
            list_hard.sort();
            WriteHighScore(new List_highscore(list_easy, list_mid, list_hard));
        }
示例#4
0
 public List_highscore(List_highscore a)
 {
     this.player_easy = a.player_easy;
     this.player_mid  = a.player_mid;
     this.player_hard = a.player_hard;
 }
示例#5
0
 public List_highscore(ListPlayer Player_easy, ListPlayer Player_mid, ListPlayer Player_hard)
 {
     this.player_easy = Player_easy;
     this.player_mid  = Player_mid;
     this.player_hard = Player_hard;
 }
示例#6
0
 public List_highscore(List_highscore a)
 {
     this.player_easy = a.player_easy;
     this.player_mid = a.player_mid;
     this.player_hard = a.player_hard;
 }
示例#7
0
 public List_highscore(ListPlayer Player_easy, ListPlayer Player_mid, ListPlayer Player_hard)
 {
     this.player_easy = Player_easy;
     this.player_mid = Player_mid;
     this.player_hard = Player_hard;
 }