2018-01-03 13:18:01 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-01-05 16:28:13 +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 12:19:46 +01:00
|
|
|
|
using System.Windows.Forms;
|
2018-01-03 13:18:01 +01:00
|
|
|
|
|
|
|
|
|
namespace Bonhomme02
|
|
|
|
|
{
|
|
|
|
|
class Bras : BaseBJ
|
|
|
|
|
{
|
2018-01-05 16:28:13 +01:00
|
|
|
|
public override Point Coordonnee
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (parent != null)
|
|
|
|
|
{
|
|
|
|
|
return parent.Coordonnee + parent.longueur/8;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
return coordonnee;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
if (parent != null)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Un enfant ne peut modifier ces coordonée !");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
coordonnee = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-01-05 12:19:46 +01:00
|
|
|
|
public Bras()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public Bras(PictureBox Hebergeur, ref Peau parent, double longueur, double epaisseur, double angle) : base( Hebergeur, ref parent, longueur, epaisseur, angle)
|
|
|
|
|
{
|
|
|
|
|
base.Bas = new Pied(Hebergeur, ref base.Millieux, longueur * 0.3125, epaisseur, 0);
|
|
|
|
|
}
|
2018-01-03 13:18:01 +01:00
|
|
|
|
}
|
|
|
|
|
}
|