Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Drains the tank completly
 /// </summary>
 public void emptyTank()
 {
     this.fluid  = null;
     this.amount = 0;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="Capacity"></param>
 public MachineFluidTank(int Capacity)
 {
     this.capacity = Capacity;
     this.amount   = 0;
     this.fluid    = null;
 }