Esempio n. 1
0
 public void ChangeOrder(IPoliceOrder command)
 {
     this.command = command;
     Console.WriteLine($"Command changed to {command.ToString()}.");
 }
Esempio n. 2
0
 public Cop(IPoliceOrder command = null, CompliantHandler heroe = null) : base(heroe)
 {
     this.command = command ?? new StopRightThere();
     this.Vehicle = new PolicePatrolCar();
     this.Tool = new Gun();
 }