2018-01-03 13:18:01 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-01-05 15:29:45 +01:00
|
|
|
|
using System.Drawing;
|
2018-01-03 13:18:01 +01:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-01-05 15:29:45 +01:00
|
|
|
|
using System.Windows.Forms;
|
2018-01-03 13:18:01 +01:00
|
|
|
|
|
|
|
|
|
namespace Bonhomme02
|
|
|
|
|
{
|
|
|
|
|
class Bonhomme : Peau
|
|
|
|
|
{
|
2018-01-05 15:29:45 +01:00
|
|
|
|
Tete tete;
|
2018-01-05 16:28:13 +01:00
|
|
|
|
public Jambe jambe1, jambe2;
|
|
|
|
|
public Bras bras;
|
2018-01-05 15:29:45 +01:00
|
|
|
|
|
|
|
|
|
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;
|
2018-01-05 16:28:13 +01:00
|
|
|
|
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);
|
2018-01-05 15:29:45 +01:00
|
|
|
|
}
|
|
|
|
|
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);
|
2018-01-05 16:28:13 +01:00
|
|
|
|
jambe1.Afficher(handle);
|
|
|
|
|
jambe2.Afficher(handle);
|
|
|
|
|
bras.Afficher(handle);
|
2018-01-05 15:29:45 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public new void Cacher(IntPtr handle)
|
|
|
|
|
{
|
|
|
|
|
base.Cacher(handle);
|
|
|
|
|
tete.Cacher(handle);
|
2018-01-05 16:28:13 +01:00
|
|
|
|
jambe1.Cacher(handle);
|
|
|
|
|
jambe2.Cacher(handle);
|
|
|
|
|
bras.Cacher(handle);
|
2018-01-05 15:29:45 +01:00
|
|
|
|
}
|
2018-01-03 13:18:01 +01:00
|
|
|
|
}
|
|
|
|
|
}
|