Exemple #1
0
 public RedDuck(MainWindow window, int top, DuckController controller)
     : base(window, top, controller)
 {
     this.window = window;
     this.top = top;
     this.controller = controller;
 }
Exemple #2
0
 public GameController(MainWindow window)
 {
     this.window = window;
     levelState = new Level(window);
     levelState.getLevelOne();
     duckController = new DuckController(window, this);
 }
Exemple #3
0
        public Duck(MainWindow window, int top, DuckController controller)
        {
            dispatcher = Dispatcher.CurrentDispatcher;
            aliveDuck = new AliveDuck(this);
            shotDuck = new ShotDuck(this);
            deadDuck = new DeadDuck(this);

            this.controller = controller;

            duckState = aliveDuck;
        }