Example #1
0
        public GardienGauche(Graphics g, int xcorps, int ycorps, int xlongueur, int yhauteur,
                             Color crayon, Color centercolor) : base(g, xcorps, ycorps, xlongueur, yhauteur, crayon, centercolor)
        {
            Tete = new Cercle(g, xcorps + xlongueur / 2, (ycorps - xlongueur / 2), xlongueur / 2, Color.Black, Color.LightPink);

            Oeil = new Cercle(g, xcorps + xlongueur - 10, (ycorps - xlongueur / 2 - 5), xlongueur / 10, Color.Black, Color.Black);

            brasG = new Bras(g, xcorps + xlongueur / 4, ycorps + 2, xlongueur / 3, yhauteur / 3, Color.Yellow, Color.White, 0);
            brasD = new Bras(g, xcorps + xlongueur / 4, ycorps + 2, xlongueur / 3, yhauteur / 3, Color.Yellow, Color.White, 0);

            Corps = new Rectangle(g, xcorps, ycorps, xlongueur, yhauteur, Color.Black, Color.Black);

            JambeG = new Jambe(g, xcorps + xlongueur / 4, ycorps + yhauteur + yhauteur / 3 - 40, xlongueur / 3, yhauteur / 3, Color.Black, Color.LightPink, 0);
            JambeD = new Jambe(g, xcorps + xlongueur / 4, ycorps + yhauteur + yhauteur / 3 - 40, xlongueur / 3, yhauteur / 3, Color.Black, Color.LightPink, 0);
        }
Example #2
0
        public Spectateur(Graphics g, int xcorps, int ycorps, int xlongueur, int yhauteur,
                          Color crayon, Color centercolor) : base(g, xcorps, ycorps, xlongueur, yhauteur, crayon, centercolor)
        {
            Tete = new Cercle(g, xcorps + xlongueur / 2, (ycorps - xlongueur / 2), xlongueur / 2, Color.Black, Color.LightPink);

            OeilD = new Cercle(g, xcorps + xlongueur - 7, (ycorps - (xlongueur / 2) - 3), xlongueur / 10, Color.Black, Color.Black);

            OeilG = new Cercle(g, xcorps + xlongueur - 15, (ycorps - xlongueur / 2 - 3), xlongueur / 10, Color.Black, Color.Black);

            bouche = new Cercle(g, xcorps + xlongueur - 11, (ycorps - xlongueur / 3), xlongueur / 8, Color.Black, Color.Transparent);

            brasD = new Bras(g, xcorps + xlongueur, ycorps + 2, xlongueur / 3, yhauteur / 3, Color.Black, Color.White, 0);

            brasG = new Bras(g, xcorps + xlongueur / 6 - 10, ycorps + 2, xlongueur / 3, yhauteur / 3, Color.Black, Color.White, 0);
        }
Example #3
0
        public Arbitre(Graphics g, int xcorps, int ycorps, int xlongueur, int yhauteur,
                       Color crayon, Color centercolor) : base(g, xcorps, ycorps, xlongueur, yhauteur, crayon, centercolor)
        {
            Tete = new Cercle(g, xcorps + xlongueur / 2, (ycorps - xlongueur / 2), xlongueur / 2, Color.Black, Color.LightPink);

            Oeil = new Cercle(g, xcorps + xlongueur - 10, (ycorps - xlongueur / 2 - 5), xlongueur / 10, Color.Black, Color.Black);

            brasG = new Bras(g, xcorps + xlongueur / 4, ycorps + 2, xlongueur / 3, yhauteur / 3, Color.Yellow, Color.Black, 0);
            brasD = new Bras(g, xcorps + xlongueur / 4, ycorps + 2, xlongueur / 3, yhauteur / 3, Color.Yellow, Color.Black, 0);

            Corps = new Rectangle(g, xcorps, ycorps, xlongueur, yhauteur, Color.Black, Color.White);

            JambeG = new Jambe(g, xcorps + xlongueur / 4, ycorps + yhauteur + yhauteur / 3 - 40, xlongueur / 3, yhauteur / 3, Color.Black, Color.LightPink, 0);
            JambeD = new Jambe(g, xcorps + xlongueur / 4, ycorps + yhauteur + yhauteur / 3 - 40, xlongueur / 3, yhauteur / 3, Color.Black, Color.LightPink, 0);

            //Casquette

            CasquetteP1 = new Rectangle(g, 450, 45, 25, 10, Color.Black, Color.Black);
            Penne       = new Rectangle(g, 475, 50, 10, 5, Color.Black, Color.Black);
        }