コード例 #1
0
        public GUIGameRoom(GUIWindows.GUI parent_, Communication com_, int GameRoomID_, int DeckID_, Models.CardCollection CardCollection_)
        {
            InitializeComponent();
            parent = parent_;
            ctrl   = new Controllers.GameRoomController(this, com_, GameRoomID_, DeckID_, CardCollection_);

            logger = new Log.Logger();

            grdOwnGrave.Children.Add(new Models.CardGUIModel(null, this, AnimationConstants.graveInitialPosition, Visibility.Hidden).Border);
            grdOppGrave.Children.Add(new Models.CardGUIModel(null, this, AnimationConstants.graveInitialPosition, Visibility.Hidden).Border);

            initButtons();
            initTimers();
            initLists();
            initZoomedInImage();

            ctrl.loadPageData();
            beginListening();
        }
コード例 #2
0
        public GUIGameRoom(GUIWindows.GUI parent, Communication com, int GameRoomID, int DeckID, string OwnNickName, string OppNickName, Models.CardCollection CardCollection)
        {
            InitializeComponent();

            this.parent = parent;
            ownNickName = OwnNickName;
            oppNickName = OppNickName;

            ctrl   = new Controllers.GameRoomController(this, com, GameRoomID, DeckID, CardCollection);
            logger = new Log.Logger();

            grdOwnGrave.Children.Add(new Models.CardGUIModel(null, this, AnimationAndEventsConstants.graveInitialPosition, Visibility.Hidden).Border);
            grdOppGrave.Children.Add(new Models.CardGUIModel(null, this, AnimationAndEventsConstants.graveInitialPosition, Visibility.Hidden).Border);

            initButtons();
            initTimers();
            initLists();
            initZoomedInImage();
            initOtherVariables();

            ctrl.loadPageData();
            beginListening();
        }