예제 #1
0
        void ActiverPartieMaster()
        {
            if (Serveur.ListeJoueurs.Count == 2)
            {
                if (Serveur.ListeJoueurs.Count >= 1 && Serveur.ListeJoueurs[0] != null)
                    JoueurPrincipal = new JoueurMultijoueur(this.Game, Serveur.ListeJoueurs[0].IP, GestionNetwork.MasterClient);
                if (Serveur.ListeJoueurs.Count >= 2 && Serveur.ListeJoueurs[1] != null)
                    JoueurSecondaire = new JoueurMultijoueur(this.Game, Serveur.ListeJoueurs[1].IP, GestionNetwork.SlaveClient);

                ModifierActivation();
                ActiverEnvironnement();
                ath = new ATH(Game, JoueurPrincipal);
                Game.Components.Add(ath);
                JoueurPrincipal.Client.EnvoyerInfoPartieToServeur_StartGame(this);
            }
        }
예제 #2
0
        public override void Initialize()
        {
            RectangleFondÉcran = new Rectangle(0, 0, Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Height + 15);

            RectangleGarage = new Rectangle(5 * Game.Window.ClientBounds.Width / 100, 150, Game.Window.ClientBounds.Width / 5, 233);
            RectangleSalleManger = new Rectangle(40 * Game.Window.ClientBounds.Width / 100, 150, Game.Window.ClientBounds.Width / 5, 233);
            RectangleSousSol = new Rectangle(75 * Game.Window.ClientBounds.Width / 100, 150, Game.Window.ClientBounds.Width / 5, 233);

            ath = new ATH(Game, JoueurPrincipal);
            base.Initialize();
            MenuSélectionEnvironnement();
        }
예제 #3
0
 public void ActiverPartieSlave()
 {
     ModifierActivation();
     ActiverEnvironnement();
     ath = new ATH(Game,JoueurSecondaire);
     Game.Components.Add(ath);
 }
예제 #4
0
 public override void Initialize()
 {
     RectangleFondÉcran = new Rectangle(0, 0, Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Height + 15);
     RectangleGarage = new Rectangle(Game.Window.ClientBounds.Width / 7, 150, Game.Window.ClientBounds.Width / 5, 233);
     RectangleSalleManger = new Rectangle(3 * Game.Window.ClientBounds.Width / 7, 150, Game.Window.ClientBounds.Width / 5, 233);
     RectangleSousSol = new Rectangle(5 * Game.Window.ClientBounds.Width / 7, 150, Game.Window.ClientBounds.Width / 5, 233);
     ath = new ATH(Game,new Joueur(Game)); // reste à avoir une liste de joueur et selectionner l'ath selon le joueur
     base.Initialize();
     MenuSélectionEnvironnement();
 }