using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace ConsoleApplication1 { class CGame { public class GameSetting { public int ActVar1; public int SetActNumber(int ActInt) { ActVar1 = ActInt; return ActVar1; } public void DisplayAct() { Console.Clear(); Console.WriteLine("\t\t--------------------------------------------\n\n"); Console.WriteLine("\t\t\t Welcome to Act {0} \n\n", ActVar1); Console.WriteLine("\t\t--------------------------------------------\n\n"); Thread.Sleep(3500); } } public class Player { public string p_name; public int p_hp = 0, p_mp = 0, p_m = 0; 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() { return p_name; } public void PlayerStats() { Console.Clear(); Console.WriteLine("\t\t--------------------------------------------\n"); Console.WriteLine("Your health: {0} \nYour mana: {1} \nYour money: {3} \n", p_hp, p_mp, p_m); Console.WriteLine("\t\t--------------------------------------------\n"); Thread.Sleep(3500); } } static void Main(string[] args) { GameSetting gs1 = new GameSetting(); Player p1 = new Player(); //Setting up the game gs1.SetActNumber(1); p1.PlayerInit(100, 50, 200); string str1 = "\t\t--------------------------------------------\n"; string str2 = "\t\t\tAutobot Adventure Beta 1.0\n"; Console.WriteLine("{0}{1}\n{2}\n\t\t\t\tBy Mazh\n\n{3}{4}", str1, str1, str2, str1, str1); Thread.Sleep(5500); Console.Clear(); string PlayerName; Console.WriteLine("Please enter the name of your caracther: "); PlayerName = Console.ReadLine(); p1.SetPlayerName(PlayerName); gs1.DisplayAct(); p1.PlayerStats(); Console.ReadKey(); bool gameloop = false; while (!gameloop) { Console.WriteLine("\t\t--------------------------------------------\n\t\t"); string MyKey = null; switch (MyKey) { case "north": break; } } } } }