Exemple #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="Capacity"></param>
 /// <param name="Amount"></param>
 /// <param name="Fluid"></param>
 public MachineFluidTank(int Capacity, int Amount, Fluid Fluid)
 {
     this.capacity = Capacity;
     this.amount   = Amount;
     this.fluid    = Fluid;
 }
Exemple #2
0
 /// <summary>
 /// Drains the tank completly
 /// </summary>
 public void emptyTank()
 {
     this.fluid  = null;
     this.amount = 0;
 }
Exemple #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="Capacity"></param>
 public MachineFluidTank(int Capacity)
 {
     this.capacity = Capacity;
     this.amount   = 0;
     this.fluid    = null;
 }