public Bonhomme(PictureBox hebergeur, int xsg, int ysg, int longueur, int hauteur) : base(hebergeur, xsg, ysg, longueur, hauteur, 0) { // (10, 60, 30, 80); this._Decor = new decor(hebergeur, 0, longueur * 7, longueur * 80, hauteur * 3, 0, Color.White, Color.White); this._Casque = new casque(hebergeur, (longueur / 2) - 5, (hauteur / 4) - 2, longueur, hauteur / 4, 0, Color.Black, Color.DarkRed); this._Tete = new MonCercle(hebergeur, xsg + (longueur / 2), ysg - (hauteur / 5), hauteur / 5, Color.Black, Color.Aquamarine); this._Oeil = new MonCercle(hebergeur, xsg / 2 + (longueur), ysg - (hauteur / 5), hauteur / 20, Color.Black, Color.White); this._JambeDroite = new Jambe(hebergeur, longueur, hauteur + ysg, longueur / 2, hauteur / 2, 0, Color.Black, Color.DarkSlateGray); this._JambeGauche = new Jambe(hebergeur, longueur, hauteur + ysg, longueur / 2, hauteur / 2, 0, Color.Black, Color.DarkSlateGray); this._BrasDroit = new Bras(hebergeur, longueur / 2 + xsg / 2, hauteur - xsg / 2, (longueur / 3) + xsg / 5, hauteur / 2, 0, Color.Black, Color.DarkRed); this._BrasGauche = new Bras(hebergeur, longueur / 2 + xsg / 2, hauteur - xsg / 2, (longueur / 3) + xsg / 5, hauteur / 2, 0, Color.Black, Color.DarkRed); this._Sacados = new MonRectangle_tournant(hebergeur, xsg - 22, hauteur - xsg - 8, longueur, hauteur / 2, 0, Color.Black, Color.DarkSlateGray); this._Snowboard = new snowboard(hebergeur, xsg * 10, longueur * 7 + xsg, longueur * 3, hauteur / 3, 0, Color.Black, Color.DarkSlateBlue); }
public snowboarder(PictureBox hebergeur, int xsg, int ysg, int longueur, int hauteur) : base(hebergeur, xsg, ysg, longueur, hauteur) { this._Decor = new decor(hebergeur, 0, longueur * 7, longueur * 80, hauteur * 3, 0, Color.White, Color.White); this._Casque = new casque(hebergeur, (longueur / 2) - 5, (hauteur / 4) - 2, longueur, hauteur / 4, 0, Color.Black, Color.DarkRed); this._Snowboard = new snowboard(hebergeur, xsg * 10, longueur * 7 + xsg, longueur * 3, hauteur / 3, 0, Color.Black, Color.DarkSlateBlue); }