Exemplo n.º 1
0
 private void Son(string nom)
 {
     if (sonActive)
     {
         Son son = new Son(nom);
         son.Joue();
     }
 }
Exemplo n.º 2
0
        // reprise zoom
        public void Scene6()
        {
            tempsExpirationScene = 4000;

            Elements["barney"].Hydrate(true);

            Son son = new Son("reload");

            son.Joue();

            SetTimer(ON);
        }
Exemplo n.º 3
0
        // éternuement
        public void Scene3()
        {
            tempsExpirationScene = 1000;

            Son son = new Son("sneeze");

            son.Joue();

            Elements["cible"].Hydrate(true);

            SetTimer(ON);
        }
Exemplo n.º 4
0
        // pause Oh NO
        public void Scene5()
        {
            tempsExpirationScene = 4000;

            Elements["barney"].Hydrate(false);

            Son son = new Son("oh_No");

            son.Joue();

            SetTimer(ON);

            nettoyeApresScene = false;
        }
Exemplo n.º 5
0
        // vue lunette et cible
        public void Scene2()
        {
            tempsExpirationScene = 7700;

            Elements.Add("cible", new Cible(new Point(400, 300)));
            Elements.Add("lunette", new Lunette(new Point(300, 200)));

            Son son = new Son("breath");

            son.Joue();

            SetTimer(ON);

            nettoyeApresScene = false;
        }
Exemplo n.º 6
0
        // tir après vue lunette
        public void Scene4()
        {
            tempsExpirationScene = 5000;

            Elements.Add("EffetBalle", new EffetBalle());
            Elements.Add("barney", new Barney(new Point(350, 30)));
            int xBalle = Elements["barney"].Element.Position("Personnage").X
                         + Elements["barney"].Element.Dimension("Image").X;

            Elements.Add("balle", new Balle(new Point(xBalle, 550)));
            Elements["EffetBalle"].Hydrate(
                Elements["balle"].Element.GetPosition.X + Elements["balle"].Element.GetDimension.X / 2 - 3,
                Elements["balle"].Element.GetPosition.Y
                );

            Son son = new Son("shot");

            son.Joue();

            SetTimer(ON);

            nettoyeApresScene = false;
        }
Exemplo n.º 7
0
        // tireur vue de profil
        public void Scene1()
        {
            tempsExpirationScene = 3000;

            Elements.Add("carabine", new Carabine());
            Elements.Add("tireur", new Tireur(new Point(100, 100)));
            Point positionCheveux = new Point();

            positionCheveux.X = Elements["tireur"].GetFigure("Tete").Position.X
                                - Elements["tireur"].GetFigure("Tete").Dimension.X / 2
                                - 10;
            positionCheveux.Y = (int)(
                Elements["tireur"].GetFigure("Tete").Position.Y
                - Elements["tireur"].GetFigure("Tete").Dimension.Y * 0.7
                );
            Elements.Add("cheveux", new Cheveux(positionCheveux));
            Elements["carabine"].Hydrate(Elements["tireur"].GetFigure("AvantBrasDroit"));

            Son son = new Son("mmh");

            son.Joue();

            SetTimer(ON);
        }