2018-01-03 13:18:01 +01:00
|
|
|
|
/*
|
|
|
|
|
* Base des objets Bras et jambe
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-01-04 14:03:06 +01:00
|
|
|
|
using System.Windows.Forms;
|
2018-01-03 13:18:01 +01:00
|
|
|
|
|
|
|
|
|
namespace Bonhomme02
|
|
|
|
|
{
|
|
|
|
|
class BaseBJ
|
|
|
|
|
{
|
2018-01-04 11:34:30 +01:00
|
|
|
|
Peau Haut, Millieux, Bas, parent;
|
2018-01-04 14:03:06 +01:00
|
|
|
|
double angleHaut, angleMillieux, angleBas, longueur;
|
2018-01-04 11:34:30 +01:00
|
|
|
|
public BaseBJ()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2018-01-04 14:03:06 +01:00
|
|
|
|
public BaseBJ(PictureBox Hebergeur, ref Peau parent, Peau bas, double longueur, double epaisseur, double angle)
|
2018-01-04 11:34:30 +01:00
|
|
|
|
{
|
|
|
|
|
this.parent = parent;
|
|
|
|
|
angleHaut = angleMillieux = angleBas = 0;
|
2018-01-04 14:03:06 +01:00
|
|
|
|
this.Haut = new Peau(Hebergeur, ref parent, longueur/2, epaisseur, angle);
|
|
|
|
|
this.Millieux = new Peau(Hebergeur, ref this.Haut, longueur/2, epaisseur, angle);
|
|
|
|
|
this.Bas = bas;
|
|
|
|
|
this.Bas.parent = this.Millieux;
|
|
|
|
|
}
|
|
|
|
|
public void Afficher(IntPtr handle)
|
|
|
|
|
{
|
|
|
|
|
Haut.Afficher(handle);
|
|
|
|
|
Millieux.Afficher(handle);
|
|
|
|
|
Bas.Afficher(handle);
|
2018-01-04 11:34:30 +01:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-03 13:18:01 +01:00
|
|
|
|
}
|
|
|
|
|
}
|