示例#1
0
 private Framework(IList<string> args)
 {
     brain = new MyPlayerBrain(args.Count >= 2 ? args[1] : null, args.Count >= 3 ? args[2] : null);
     if (args.Count >= 1)
         ipAddress = args[0];
     Console.Out.WriteLine(string.Format("Connecting to server {0} for user: {1}, password: {2}", ipAddress, brain.Name, brain.Password));
 }
示例#2
0
 private Framework(IList<string> args)
 {
     brain = new MyPlayerBrain(args.Count >= 2 ? args[1] : null);
     if (args.Count >= 1)
         ipAddress = args[0];
     string msg = string.Format("Connecting to server {0} for user: {1}", ipAddress, brain.Name);
     if (log.IsInfoEnabled)
         log.Info(msg);
     Console.Out.WriteLine(msg);
 }