Ejemplo n.º 1
0
 public Arbre(Graphics g, int xArbre, int yArbre, int xlongueurArbre, int ylargeurArbre) : base(g, xArbre, yArbre, xlongueurArbre, yArbre)
 {
     tronc    = new Rectangle(g, xArbre, yArbre, xlongueurArbre, ylargeurArbre, Color.Brown, Color.Brown);
     feuille1 = new Cercle(g, xArbre - 15, yArbre + 20, 40, Color.Black, Color.Green);
     feuille2 = new Cercle(g, xArbre + 10, yArbre, 40, Color.Black, Color.Green);
     feuille3 = new Cercle(g, xArbre + 40, yArbre + 20, 40, Color.Black, Color.Green);
 }
Ejemplo n.º 2
0
 public Sol(Graphics g, int xSol, int ySol, int xlongueurSol, int yhauteurSol) : base(g, xSol, ySol, xlongueurSol, yhauteurSol)
 {
     Terrain             = new Rectangle(g, 1, 160, 941, 170, Color.Green, Color.Green);
     LigneCentre         = new Rectangle(g, 468, 160, 1, 175, Color.White, Color.White);
     Centre              = new Cercle(g, 470, 240, 40, Color.White, Color.Transparent);
     ExterieurHaut       = new Rectangle(g, 1, 149, 941, 10, Color.Green, Color.Green);
     ExterieurBas        = new Rectangle(g, 1, 330, 941, 30, Color.Green, Color.Green);
     LigneExterieureHaut = new Rectangle(g, 115, 160, 715, 1, Color.White, Color.White);
     LigneExterieureBas  = new Rectangle(g, 115, 335, 710, 1, Color.White, Color.White);
     LigneGoalD          = new Rectangle(g, 825, 160, 1, 175, Color.White, Color.White);
     ligneGoalG          = new Rectangle(g, 115, 160, 1, 175, Color.White, Color.White);
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
 public Ballon(Graphics g, int xSol, int ySol, int xlongueurSol, int yhauteurSol) : base(g, xSol, ySol, xlongueurSol, yhauteurSol)
 {
     structure = new Cercle(g, 280, 205, 15, Color.Black, Color.Orange);
 }