public bool Execute(char command, IDrone drone) { if (drone == null || !this.IsValid(command)) { return false; } drone.Move(); return true; }
/// <summary> /// Commands the specified drone to perform a movement action. /// </summary> /// <param name="drone">The drone.</param> public void Process(IDrone drone) { drone.Move(); }