Example #1
0
 public MilitaryPlane(string model, int maxSpeed, int maxFlightDistance, int maxLoadCapacity, MilitaryPlaneType type)
     : base(model, maxSpeed, maxFlightDistance, maxLoadCapacity)
 {
     this.type = type;
 }
Example #2
0
 private bool ThisTypeMilitaryPlaneIsHere(List <MilitaryPlane> militaryPlanes, MilitaryPlaneType type)
 {
     foreach (MilitaryPlane militaryPlane in militaryPlanes)
     {
         if ((militaryPlane.PlaneTypeIs() == MilitaryPlaneType.TRANSPORT))
         {
             return(true);
         }
     }
     return(false);
 }
Example #3
0
 public MilitaryPlane(Plane plane, MilitaryPlaneType militaryPlaneType)
     : base(plane.GetModel(), plane.GetMaxSpeed(), plane.GetMaxFlightDistance(), plane.GetMaxFlightDistance())
 {
     MilitaryPlaneType = militaryPlaneType;
 }