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