override public void beginState(Barrel barrel) { // probably redundant barrel.closeValve(barrel.supplyValve); barrel.closeValve(barrel.tankValve); barrel.closeValve(barrel.shotValve); }
override public void endState(Barrel barrel) { barrel.readyToShoot = false; barrel.closeValve(barrel.supplyValve); barrel.closeValve(barrel.tankValve); barrel.closeValve(barrel.shotValve); }
override public void beginState(Barrel barrel) { barrel.closeValve(barrel.supplyValve); barrel.closeValve(barrel.tankValve); barrel.openValve(barrel.shotValve); timer.reset(); timer.start(); }
override public void beginState(Barrel barrel) { barrel.closeValve(barrel.supplyValve); barrel.closeValve(barrel.tankValve); barrel.closeValve(barrel.shotValve); barrel.fillRequested = false; barrel.readyToFill = true; }
override public void endState(Barrel barrel) { { barrel.readyToShoot = true; barrel.closeValve(barrel.supplyValve); barrel.closeValve(barrel.tankValve); barrel.closeValve(barrel.shotValve); barrel.fillMaster.free(barrel); } }
override public void beginState(Barrel barrel) { // keep the tank valve open so the piston does not move barrel.closeValve(barrel.supplyValve); barrel.openValve(barrel.tankValve); barrel.closeValve(barrel.shotValve); barrel.shotRequested = false; barrel.readyToShoot = true; timer.reset(); timer.start(); }
override public void endState(Barrel barrel) { barrel.closeValve(barrel.supplyValve); barrel.closeValve(barrel.tankValve); barrel.closeValve(barrel.shotValve); }