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