Ejemplo n.º 1
0
 public CrewMember(string firstName, string lastName, string job, DateTime birthday, Enums.SecurityClearance securityClearance, Enums.Countrys country)
 {
     this.firstName         = firstName;
     this.lastName          = lastName;
     this.job               = job;
     this.birthday          = birthday;
     this.securityClearance = securityClearance;
     this.countrys          = country;
     Console.WriteLine("Lastname: " + lastName);
     Console.WriteLine("Firstname: " + firstName);
     Console.WriteLine("Birthdate: " + birthday);
     Console.WriteLine("");
     Console.WriteLine("Job: " + job);
     Console.WriteLine("Security Clearance: " + securityClearance);
     Console.WriteLine("Country: " + country);
     Console.WriteLine("--------------------------------");
     EXT.WAIT.waitMilsec(500);
 }
Ejemplo n.º 2
0
 public Module(string id, string name, string description, Enums.ModuleSpecification spec, Enums.Countrys countrys, int hatches)
 {
     this.id                   = id;
     this.name                 = name;
     this.description          = description;
     this.spec                 = spec;
     this.countrys             = countrys;
     this.boardComputerRunning = StartBoardComputer();
     this.connected            = ConnectModule();
     this.presureized          = PresureizeModule();
     this.power                = ActivatePower();
     this.working              = ChangeWorkingStatus();
     for (int i = 0; i < hatches; i++)
     {
         hatchesClosed[i] = 2;
     }
     this.lights = ChangeLights();
     GetFullInfo();
 }