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