示例#1
0
 static void Main()
 {
     try
     {
         ITrainer player    = TrainerFactory.CreateTrainer <Player>();
         var      mainStory = new MainStory(player);
         mainStory.BeginStory();
     }
     catch (Exception ex)
     {
         Console.WriteLine($"Something bad happened in the game! Please report the error. Error: {ex.Message} \n Error's StackTrace: {ex.StackTrace}");
     }
 }
示例#2
0
 public Player()
 {
     Context = new MainStory();
 }