Beispiel #1
0
 public Airplane(int airplaneID, string type, double cruisingKPH, double fuelConsPerHour, int currentAirportID)
 {
     this.airplaneID = airplaneID;
     this.type = type;
     this.state = PlaneState.Landed;
     this.cruisingKPH = cruisingKPH;
     this.fuelConsPerHour = fuelConsPerHour;
     this.currentAirRouteID = -1;
     this.distanceAlongRoute = 0;
     this.currentAirportID = currentAirportID;
     this.timeLanded = 0;
     this.fuel = 0;
     this.currentAirport = null;
     this.currentAirRoute = null;
     this.simTime = 0;
 }
Beispiel #2
0
 public void OnDeserialization(StreamingContext context)
 {
     this.currentAirport = null;
     this.currentAirRoute = null;
 }