Exemplo n.º 1
0
 public Enginee(UIElement colapse)
 {
     this.players     = new Lista <Player>();
     this.allprofiles = new Lista <Profile>();
     this.LoadImage();
     this.SetRandomPlayersProfile();
     this.baralho = new Baralho();
     this.baralho.Embaralhar();
     this.realOne         = this.players[3];
     this.element_colapse = colapse;
     this.monte           = new Monte(baralho.GetCards());
     this.roda            = new Turno(this.players);
     this.DistributeCards();
 }
Exemplo n.º 2
0
        public Enginee(UIElement colapse, Canvas env, UIElement monteUI)
        {
            this.screenSizeY = System.Windows.SystemParameters.PrimaryScreenHeight;
            this.screenSizeX = System.Windows.SystemParameters.PrimaryScreenWidth;

            //Não mude a ordem de iniciação desses elementos. A troca pode acarretar graves consequências físicas ao culpado.
            this.enviroment      = env;
            this.monteUI         = monteUI;
            this.element_colapse = colapse;

            this.PosicionarMonteUI();
            this.PosicionarUltimaCartaJogada();

            this.players     = new Lista <Player>();
            this.allprofiles = new Lista <Profile>();
            this.LoadImage();

            this.SetRandomPlayersProfile();
            this.baralho = new Baralho();
            this.baralho.Embaralhar();

            this.realOne = this.players[2];
            this.monte   = new Monte(baralho.GetCards());
            this.DistributeCards();

            this.roda = new Turno(this.players);
            this.AddCardsOnInterface();
            this.AddIconsOnInterface();

            this.descarte = new Coletor(GetValidCard());
            this.AddColetorCardOnInterface();
            this.DisableMoveIconsPlayers();

            this.AlignIconsPlayers();
            this.evento = new Evento(this);
        }