Exemple #1
0
        static void Main(string[] args)
        {
            RobotRescue     robotRescue     = new RobotRescue();
            RobotCarPainter robotCarPainter = new RobotCarPainter();
            RobotFenceFixer robotFenceFixer = new RobotFenceFixer();
            RobotCooker     robotCooker     = new RobotCooker();

            Invocker robotRescueInvocker = new ARobotCarPainter();

            robotRescueInvocker.SetCommand(new BackUpList(new List <ICommand> {
                new CarGiveToUser(robotCarPainter, 3), new CarPutInOven(robotCarPainter, 1), new CookRareBurger(robotCooker, 4)
            }));
            robotRescueInvocker.ExecuteCommand();
        }
Exemple #2
0
 public CarRemovePaint(RobotCarPainter robotCarPainter, int weight)
 {
     _robotCarPainter = robotCarPainter;
     _taskWeight      = weight;
 }
Exemple #3
0
 public CatFocus(RobotCarPainter robotCarPainter, int weight)
 {
     _robotCarPainter = robotCarPainter;
     _taskWeight      = weight;
 }
 public CarPutOutOven(RobotCarPainter robotCarPainter, int weight)
 {
     _robotCarPainter = robotCarPainter;
     _taskWeight      = weight;
 }
Exemple #5
0
 public CarGiveToUser(RobotCarPainter robotCarPainter, int weight)
 {
     _robotCarPainter = robotCarPainter;
     _taskWeight      = weight;
 }