public bool reserve(Barrel b) { if (whoIsUsingIt == null) { whoIsUsingIt = b; Debug.Print("b" + b.getBarrelNumber() + " reserved the air supply"); return(true); } else { return(false); } }
public void free(Barrel b) { whoIsUsingIt = null; Debug.Print("b" + b.getBarrelNumber() + " freed the air supply"); }