コード例 #1
0
ファイル: RedDuck.cs プロジェクト: Bryans91/DuckHunt
 public RedDuck(MainWindow window, int top, DuckController controller)
     : base(window, top, controller)
 {
     this.window = window;
     this.top = top;
     this.controller = controller;
 }
コード例 #2
0
ファイル: GameController.cs プロジェクト: Bryans91/DuckHunt
 public GameController(MainWindow window)
 {
     this.window = window;
     levelState = new Level(window);
     levelState.getLevelOne();
     duckController = new DuckController(window, this);
 }
コード例 #3
0
ファイル: Duck.cs プロジェクト: Bryans91/DuckHunt
        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;
        }