Пример #1
0
 public FZustand StarteMotor()
 {
     if (Zustand == FZustand.Stehend && AktuelleGeschwindigkeit == 0)
     {
         Zustand = FZustand.Fahrend;
     }
     return(Zustand);
 }
Пример #2
0
 public FZustand StoppeMotor()
 {
     if (AktuelleGeschwindigkeit == 0)
     {
         Zustand = FZustand.Stehend;
     }
     return(Zustand);
 }
Пример #3
0
 // Konstruktoren
 public FahrzeugLib(string strName, int MaxV, int iPreis)
 {
     this.Zustand                 = FZustand.Stehend;
     this.Name                    = strName;
     this.MaxGeschwindigkeit      = MaxV;
     this.Preis                   = iPreis;
     this.AktuelleGeschwindigkeit = 0;
 }