예제 #1
0
        public MenuController(MenuForm _menuForm)
        {
            this._menuForm = _menuForm;
            _menuForm.SetController(this);

            _rankMenu = new RankMenu();
            _rankMenu.SetController(this);

            _helpMenu = new HelpMenu();
            _helpMenu.SetController(this);
        }//생성자
        public SpriteController(ViewForm _gameForm, MenuForm _menuForm, GameOver _gameOver, RankMenu _rankMenu, User user, List <Item> itemList, List <Obstacle> obstacleList)
        {
            this._gameForm    = _gameForm;
            this._menuForm    = _menuForm;
            this._gameOver    = _gameOver;
            this._rankMenu    = _rankMenu;
            this.user         = user;
            this.itemList     = itemList;
            this.obstacleList = obstacleList;

            _gameForm.SetController(this);
        }