using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace ConsoleApplication1 { class CGame { public class player { public string p_name; public int p_hp, p_mp, p_m; public void SetPlayerName(string pname) { p_name = pname; } public void PlayerInit(int HP, int MP, int M) { p_hp = HP; p_mp = MP; p_m = M; } public string GetName(string pname) { return p_name; } public void PlayerStats() { Console.WriteLine("You have ", p_hp, " HP\n You have ", p_mp, " MP\n You have ", p_m, " money\n"); } internal static void SetPlayerName(string PlayerName) { throw new Exception("The method or operation is not implemented."); } } static void Main(string[] args) { string str1 = "\t\t--------------------------------------------\n"; string str2 = "\t\t\tWelcome The Frozen Mount RPG\n"; Console.WriteLine(str1); Console.WriteLine(str2); Console.WriteLine(str1); Thread.Sleep(2000); string PlayerName; Console.WriteLine("Please enter your name young adventurer: "); PlayerName = Console.ReadLine(); @@player.SetPlayerName(PlayerName); Console.ReadKey(); char[] MyKey; // switch(MyKey Salut, petit hedos } } }