62 lines
1.8 KiB
C#
62 lines
1.8 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Drawing;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
using System.Windows.Forms;
|
||
|
||
namespace Bonhomme02
|
||
{
|
||
class Bonhomme : Peau
|
||
{
|
||
Tete tete;
|
||
public Jambe jambe1, jambe2;
|
||
public Bras bras;
|
||
|
||
public Bonhomme() : base()
|
||
{
|
||
|
||
}
|
||
|
||
public Bonhomme(PictureBox hebergeur) : base( hebergeur)
|
||
{
|
||
}
|
||
public Bonhomme(PictureBox hebergeur, double lg, double ep, double angle) : base( hebergeur, lg, ep, angle)
|
||
{
|
||
|
||
}
|
||
public Bonhomme(PictureBox hebergeur, int xy) : base( hebergeur, xy)
|
||
{
|
||
}
|
||
|
||
public Bonhomme(PictureBox hebergeur, int x, int y, double lg, double ep, double angle) : base( hebergeur, x, y, lg, ep, angle)
|
||
{
|
||
Peau me = this;
|
||
jambe1 = new Jambe(hebergeur, ref me, lg, ep/4, Math.PI / 2);
jambe2 = new Jambe(hebergeur, ref me, lg, ep / 4, Math.PI / 2);
tete = new Tete(hebergeur, ref me, (int)(ep*3.5/4));
|
||
bras = new Bras(hebergeur, ref me, lg, ep/4, Math.PI / 2);
|
||
}
|
||
public Bonhomme(PictureBox hebergeur, ref Peau parent, double lg, double ep, double angle) : base( hebergeur, ref parent, lg, ep, angle)
|
||
{
|
||
|
||
}
|
||
public new void Afficher(IntPtr handle)
|
||
{
|
||
base.Afficher(handle);
|
||
tete.Afficher(handle);
|
||
jambe1.Afficher(handle);
|
||
jambe2.Afficher(handle);
|
||
bras.Afficher(handle);
|
||
}
|
||
|
||
public new void Cacher(IntPtr handle)
|
||
{
|
||
base.Cacher(handle);
|
||
tete.Cacher(handle);
|
||
jambe1.Cacher(handle);
|
||
jambe2.Cacher(handle);
|
||
bras.Cacher(handle);
|
||
}
|
||
}
|
||
}
|