Exemplo n.º 1
0
 public bool IsSameMachine(IMachine machine)
 {
     //I have no experiance with overriting the equils method / operators
     if (this.GetType() != machine.GetType())
     {
         return(false);
     }
     foreach (Nozzle nozzle_ in equippedNozzles_)
     {
         //Comparing the array's doesn't work (even if the order matters)
         if (machine.GetNozzleNumber(nozzle_) == -1)
         {
             return(false);
         }
     }
     return(this.defaultSpeed_ == machine.DefaultSpeed); //last check, speeds are the same
 }