public static Fighter CharCreator() { Console.WriteLine("***Welcome to the world of Gladius***"); Console.WriteLine(); Console.WriteLine("Insert beginning story here, how did character get here?"); Console.WriteLine(); Console.WriteLine("***Roll your character stats until satisfied, Gladiator***"); Console.WriteLine(); Console.WriteLine("Can you fight, or are you just another morsel for the Emperor's lions?"); Console.WriteLine(); Fighter fighter = new Fighter(Roller.RollCharStats()); Console.Write("Tell me your name, prisoner. "); fighter.Name = Console.ReadLine(); MainMenu mm = new MainMenu(fighter); return fighter; }
public static Fighter CharCreator() { Console.WriteLine("***Welcome to the world of Gladius***"); Console.WriteLine(); //TO-DO write story Console.WriteLine("Insert beginning story here, how did character get here? I think I want to be oppressed by the Caesar, "); Console.WriteLine("Maybe have an intimate family relationship with him, and fight him in the end. Yes, just like the movie."); Console.WriteLine(); Console.WriteLine("***Roll your character stats until satisfied, Gladiator***"); Console.WriteLine(); Console.WriteLine("Can you fight, or are you just another morsel for Caesar's lions?"); Console.WriteLine(); //creates new fighter and invokes roll character stats method as a parameter. Fighter fighter = new Fighter(Roller.RollCharStats()); //gets character name and assigns to Name prop Console.Write("Tell me your name, prisoner. "); fighter.Name = Console.ReadLine(); int enemyPick = 1; //creates new MainMenu and passes fighter as a parameter to the method (same instance throughout program is the goal) MainMenu mm = new MainMenu(ref fighter, enemyPick); return fighter; }