コード例 #1
0
 override public void beginState(Barrel barrel)
 {
     // probably redundant
     barrel.closeValve(barrel.supplyValve);
     barrel.closeValve(barrel.tankValve);
     barrel.closeValve(barrel.shotValve);
 }
コード例 #2
0
            override public void endState(Barrel barrel)
            {
                barrel.readyToShoot = false;

                barrel.closeValve(barrel.supplyValve);
                barrel.closeValve(barrel.tankValve);
                barrel.closeValve(barrel.shotValve);
            }
コード例 #3
0
            override public void beginState(Barrel barrel)
            {
                barrel.closeValve(barrel.supplyValve);
                barrel.closeValve(barrel.tankValve);
                barrel.openValve(barrel.shotValve);

                timer.reset();
                timer.start();
            }
コード例 #4
0
            override public void beginState(Barrel barrel)
            {
                barrel.closeValve(barrel.supplyValve);
                barrel.closeValve(barrel.tankValve);
                barrel.closeValve(barrel.shotValve);

                barrel.fillRequested = false;
                barrel.readyToFill   = true;
            }
コード例 #5
0
            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);
                }
            }
コード例 #6
0
            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();
            }
コード例 #7
0
 override public void endState(Barrel barrel)
 {
     barrel.closeValve(barrel.supplyValve);
     barrel.closeValve(barrel.tankValve);
     barrel.closeValve(barrel.shotValve);
 }