示例#1
0
        public void PrintInfoPlayer(CharacterProperties dataPlayer1, CharacterProperties dataPlayer2)
        {
            //Player 1 Info
            Ultils.Border(40, 6, left, top);
            Console.SetCursorPosition(left + 10, top + 2);
            Console.WriteLine(MyLocalization.GetText("Player 1"));
            Console.SetCursorPosition(left + 3, Console.CursorTop);
            Console.WriteLine(Ultils.FormatText((MyLocalization.GetText("Name")), 20) + "\t" + dataPlayer1.characterName);
            Console.SetCursorPosition(left + 3, Console.CursorTop);
            Console.WriteLine(Ultils.FormatText(MyLocalization.GetText("HP:   "), 10) + dataPlayer1.hp + "\t" + Ultils.FormatText(MyLocalization.GetText("MP:   "), 10) + dataPlayer1.mp);

            //Player 2 Info
            left = width / 2 + 10;
            Ultils.Border(40, 6, left, top);
            Console.SetCursorPosition(left + 10, top + 2);
            Console.WriteLine(MyLocalization.GetText("Player 2"));
            Console.SetCursorPosition(left + 3, Console.CursorTop);
            Console.WriteLine(Ultils.FormatText((MyLocalization.GetText("Name")), 20) + "\t" + dataPlayer2.characterName);
            Console.SetCursorPosition(left + 3, Console.CursorTop);
            Console.WriteLine(Ultils.FormatText(MyLocalization.GetText("HP:   "), 10) + dataPlayer2.hp + "\t" + Ultils.FormatText(MyLocalization.GetText("MP:   "), 10) + dataPlayer2.mp);
        }