public RubberDuck() { quackBehavior = new Squeak(); flyBehavior = new FlyNoWay(); }
public DecoyDuck() { Fly = new FlyNoWay(); Quack = new MuteQuack(); }
public RubberDuck() { Fly = new FlyNoWay(); Quack = new Quack(); }
public ModelDuck() { DuckQuackBehavior = new Quack(); DuckFlyBehavior = new FlyNoWay(); }
public ModelDuck() { quackBehavior = new Quack(); flyBehavior = new FlyNoWay(); }
public DecoyDuck() { quackBehavior = new MuteQuack(); flyBehavior = new FlyNoWay(); }
public MallardDuck() { flyBehaviour = new FlyNoWay(); quackBehaviour = new Quack(); }
public DecoyDuck() { QuackBehavior = new MuteQuack(); FlyBehavior = new FlyNoWay(); }
public ModelDuck() { QuackBehavior = new MuteQuack(); FlyBehavior = new FlyNoWay(); }
public WoodDuck() { quackBehavior = new MuteQuack(); flyBehavior = new FlyNoWay(); swimBehavior = new Drifting(); }
public DecoyDuck() { quackBehavior = new Quack(); flyBehavior = new FlyNoWay(); }
public RubberDuck() { _quackBehavior = new MuteQuack(); _flyBehavior = new FlyNoWay(); }
public RubberDuck() { QuackBehaviour = new Squeak(); FlyBehaviour = new FlyNoWay(); }
public CallDuck() { quackBehavior = new Squeak(); flyBehavior = new FlyNoWay(); }
public RoastDuck() : base() { flyBehavior = new FlyNoWay(); quackBehavior = new MuteQuack(); swimBehavior = new Sink(); }
public RubberDuck(string Name) { this.Name = Name; flyBehavior = new FlyNoWay(); quackBehavior = new MuteQuack(); }
public ModelDuck() { FlyBehavior = new FlyNoWay(); QuackBehavior = new Quack(); }
/// <summary> /// Model duck subclass /// </summary> public ModelDuck() { // The model duck begins like grounded without a way to fly. flyBehavior = new FlyNoWay(); quackBehavior = new Quacks(); }
public ToyDuck() { flyBehavior = new FlyNoWay(); quackBehavior = new Quack(); }
public MallarDuck() { _flyBehaviour = new FlyNoWay(); _quackBehaviour = new MuteQuack(); }
public RubberDuck() { setFlyBehavior = new FlyNoWay(); setQuackBehavior = new Squeak(); }
public ModelDuck() { _flyBehavior = new FlyNoWay(); _quackBehavior = new QuackSimple(); }
public ModelDuck() { FlyBehaviour = new FlyNoWay(); QuackBehaviour = new Quack.Quack(); }
public override void BreakWings() { Console.WriteLine("Oh no, I crashed with a three and cannot fly anymore"); FlyBehavior = new FlyNoWay(); }