public void Mount5TonPassenger(M939 truck, string[,] AO) { if (status != "KIA") { if (myvec == null) { truck.MountPassenger(this, AO); } else { Console.WriteLine($"{name} is in {myvec.name}"); } } else { Console.WriteLine($"{name} is KIA"); } }
public void Dismount5TonPassenger(M939 truck, string[,] AO) { if (status != "KIA") { if (this.myvec.name == truck.name && this.name != truck.AOperator.name && this.name != truck.Operator.name) { truck.DismountPassenger(this, AO); } else { Console.WriteLine($"{name} is not in passenger seat of {truck.name}"); } } else { Console.WriteLine($"{name} is KIA"); } }
public void Dismount5TonAOpperator(M939 truck, string[,] AO) { if (status != "KIA") { if (truck.AOperator.name == this.name) { truck.dismountA(this, AO); } else { Console.WriteLine($"{name} is not the operator of {truck.name}"); } } else { Console.WriteLine($"{name} is KIA"); } }