static void Main(string[] args) { Client samClient = new Client(); RobotBig bigBoi = new RobotBig(); RobotSmall lilBoi = new RobotSmall(); samClient.action(0, bigBoi); samClient.action(0, lilBoi); Console.ReadKey(); }
public Client() { this.invoker = new Invoker(); this.bigRob = new RobotBig(); this.medRob = new RobotMedium(); this.lilRob = new RobotSmall(); List <Robot> robList = new List <Robot> { bigRob, medRob, lilRob }; this.cookCommand = new CookCommand(robList); setCommands(); }