using _2DGAMELIB;

namespace SlaveMatrix
{
    public class 舌_長 : 舌
    {
    	public ShapePart X0Y0_舌1;

    	public ShapePart X0Y0_舌2;

    	public ShapePart X0Y0_舌3;

    	public ShapePart X0Y0_舌4;

    	public ShapePart X0Y0_舌5;

    	public ShapePart X0Y0_舌股左_舌1;

    	public ShapePart X0Y0_舌股左_舌2;

    	public ShapePart X0Y0_舌股左_舌3;

    	public ShapePart X0Y0_舌股左_舌4;

    	public ShapePart X0Y0_舌股左_舌5;

    	public ShapePart X0Y0_舌股左_舌6;

    	public ShapePart X0Y0_舌股右_舌1;

    	public ShapePart X0Y0_舌股右_舌2;

    	public ShapePart X0Y0_舌股右_舌3;

    	public ShapePart X0Y0_舌股右_舌4;

    	public ShapePart X0Y0_舌股右_舌5;

    	public ShapePart X0Y0_舌股右_舌6;

    	public ColorD 舌1CD;

    	public ColorD 舌2CD;

    	public ColorD 舌3CD;

    	public ColorD 舌4CD;

    	public ColorD 舌5CD;

    	public ColorD 舌股左_舌1CD;

    	public ColorD 舌股左_舌2CD;

    	public ColorD 舌股左_舌3CD;

    	public ColorD 舌股左_舌4CD;

    	public ColorD 舌股左_舌5CD;

    	public ColorD 舌股左_舌6CD;

    	public ColorD 舌股右_舌1CD;

    	public ColorD 舌股右_舌2CD;

    	public ColorD 舌股右_舌3CD;

    	public ColorD 舌股右_舌4CD;

    	public ColorD 舌股右_舌5CD;

    	public ColorD 舌股右_舌6CD;

    	public ColorP X0Y0_舌1CP;

    	public ColorP X0Y0_舌2CP;

    	public ColorP X0Y0_舌3CP;

    	public ColorP X0Y0_舌4CP;

    	public ColorP X0Y0_舌5CP;

    	public ColorP X0Y0_舌股左_舌1CP;

    	public ColorP X0Y0_舌股左_舌2CP;

    	public ColorP X0Y0_舌股左_舌3CP;

    	public ColorP X0Y0_舌股左_舌4CP;

    	public ColorP X0Y0_舌股左_舌5CP;

    	public ColorP X0Y0_舌股左_舌6CP;

    	public ColorP X0Y0_舌股右_舌1CP;

    	public ColorP X0Y0_舌股右_舌2CP;

    	public ColorP X0Y0_舌股右_舌3CP;

    	public ColorP X0Y0_舌股右_舌4CP;

    	public ColorP X0Y0_舌股右_舌5CP;

    	public ColorP X0Y0_舌股右_舌6CP;

    	public ShapePart[] Pars;

    	private Vector2D[] mm;

    	public override bool 欠損
    	{
    		get
    		{
    			return 欠損_;
    		}
    		set
    		{
    			欠損_ = value;
    		}
    	}

    	public override bool 筋肉
    	{
    		get
    		{
    			return 筋肉_;
    		}
    		set
    		{
    			筋肉_ = value;
    		}
    	}

    	public override bool 拘束
    	{
    		get
    		{
    			return 拘束_;
    		}
    		set
    		{
    			拘束_ = value;
    		}
    	}

    	public bool 舌1_表示
    	{
    		get
    		{
    			return X0Y0_舌1.Dra;
    		}
    		set
    		{
    			X0Y0_舌1.Dra = value;
    			X0Y0_舌1.Hit = value;
    		}
    	}

    	public bool 舌2_表示
    	{
    		get
    		{
    			return X0Y0_舌2.Dra;
    		}
    		set
    		{
    			X0Y0_舌2.Dra = value;
    			X0Y0_舌2.Hit = value;
    		}
    	}

    	public bool 舌3_表示
    	{
    		get
    		{
    			return X0Y0_舌3.Dra;
    		}
    		set
    		{
    			X0Y0_舌3.Dra = value;
    			X0Y0_舌3.Hit = value;
    		}
    	}

    	public bool 舌4_表示
    	{
    		get
    		{
    			return X0Y0_舌4.Dra;
    		}
    		set
    		{
    			X0Y0_舌4.Dra = value;
    			X0Y0_舌4.Hit = value;
    		}
    	}

    	public bool 舌5_表示
    	{
    		get
    		{
    			return X0Y0_舌5.Dra;
    		}
    		set
    		{
    			X0Y0_舌5.Dra = value;
    			X0Y0_舌5.Hit = value;
    		}
    	}

    	public bool 舌股左_舌1_表示
    	{
    		get
    		{
    			return X0Y0_舌股左_舌1.Dra;
    		}
    		set
    		{
    			X0Y0_舌股左_舌1.Dra = value;
    			X0Y0_舌股左_舌1.Hit = value;
    		}
    	}

    	public bool 舌股左_舌2_表示
    	{
    		get
    		{
    			return X0Y0_舌股左_舌2.Dra;
    		}
    		set
    		{
    			X0Y0_舌股左_舌2.Dra = value;
    			X0Y0_舌股左_舌2.Hit = value;
    		}
    	}

    	public bool 舌股左_舌3_表示
    	{
    		get
    		{
    			return X0Y0_舌股左_舌3.Dra;
    		}
    		set
    		{
    			X0Y0_舌股左_舌3.Dra = value;
    			X0Y0_舌股左_舌3.Hit = value;
    		}
    	}

    	public bool 舌股左_舌4_表示
    	{
    		get
    		{
    			return X0Y0_舌股左_舌4.Dra;
    		}
    		set
    		{
    			X0Y0_舌股左_舌4.Dra = value;
    			X0Y0_舌股左_舌4.Hit = value;
    		}
    	}

    	public bool 舌股左_舌5_表示
    	{
    		get
    		{
    			return X0Y0_舌股左_舌5.Dra;
    		}
    		set
    		{
    			X0Y0_舌股左_舌5.Dra = value;
    			X0Y0_舌股左_舌5.Hit = value;
    		}
    	}

    	public bool 舌股左_舌6_表示
    	{
    		get
    		{
    			return X0Y0_舌股左_舌6.Dra;
    		}
    		set
    		{
    			X0Y0_舌股左_舌6.Dra = value;
    			X0Y0_舌股左_舌6.Hit = value;
    		}
    	}

    	public bool 舌股右_舌1_表示
    	{
    		get
    		{
    			return X0Y0_舌股右_舌1.Dra;
    		}
    		set
    		{
    			X0Y0_舌股右_舌1.Dra = value;
    			X0Y0_舌股右_舌1.Hit = value;
    		}
    	}

    	public bool 舌股右_舌2_表示
    	{
    		get
    		{
    			return X0Y0_舌股右_舌2.Dra;
    		}
    		set
    		{
    			X0Y0_舌股右_舌2.Dra = value;
    			X0Y0_舌股右_舌2.Hit = value;
    		}
    	}

    	public bool 舌股右_舌3_表示
    	{
    		get
    		{
    			return X0Y0_舌股右_舌3.Dra;
    		}
    		set
    		{
    			X0Y0_舌股右_舌3.Dra = value;
    			X0Y0_舌股右_舌3.Hit = value;
    		}
    	}

    	public bool 舌股右_舌4_表示
    	{
    		get
    		{
    			return X0Y0_舌股右_舌4.Dra;
    		}
    		set
    		{
    			X0Y0_舌股右_舌4.Dra = value;
    			X0Y0_舌股右_舌4.Hit = value;
    		}
    	}

    	public bool 舌股右_舌5_表示
    	{
    		get
    		{
    			return X0Y0_舌股右_舌5.Dra;
    		}
    		set
    		{
    			X0Y0_舌股右_舌5.Dra = value;
    			X0Y0_舌股右_舌5.Hit = value;
    		}
    	}

    	public bool 舌股右_舌6_表示
    	{
    		get
    		{
    			return X0Y0_舌股右_舌6.Dra;
    		}
    		set
    		{
    			X0Y0_舌股右_舌6.Dra = value;
    			X0Y0_舌股右_舌6.Hit = value;
    		}
    	}

    	public bool 股舌表示
    	{
    		get
    		{
    			return 舌股左_舌1_表示;
    		}
    		set
    		{
    			舌股左_舌1_表示 = value;
    			舌股左_舌2_表示 = value;
    			舌股左_舌3_表示 = value;
    			舌股左_舌4_表示 = value;
    			舌股左_舌5_表示 = value;
    			舌股左_舌6_表示 = value;
    			舌股右_舌1_表示 = value;
    			舌股右_舌2_表示 = value;
    			舌股右_舌3_表示 = value;
    			舌股右_舌4_表示 = value;
    			舌股右_舌5_表示 = value;
    			舌股右_舌6_表示 = value;
    		}
    	}

    	public override bool 表示
    	{
    		get
    		{
    			return 舌1_表示;
    		}
    		set
    		{
    			舌1_表示 = value;
    			舌2_表示 = value;
    			舌3_表示 = value;
    			舌4_表示 = value;
    			舌5_表示 = value;
    			舌股左_舌1_表示 = value;
    			舌股左_舌2_表示 = value;
    			舌股左_舌3_表示 = value;
    			舌股左_舌4_表示 = value;
    			舌股左_舌5_表示 = value;
    			舌股左_舌6_表示 = value;
    			舌股右_舌1_表示 = value;
    			舌股右_舌2_表示 = value;
    			舌股右_舌3_表示 = value;
    			舌股右_舌4_表示 = value;
    			舌股右_舌5_表示 = value;
    			舌股右_舌6_表示 = value;
    		}
    	}

    	public override double Intensity
    	{
    		get
    		{
    			return 舌1CD.不透明度;
    		}
    		set
    		{
    			舌1CD.不透明度 = value;
    			舌2CD.不透明度 = value;
    			舌3CD.不透明度 = value;
    			舌4CD.不透明度 = value;
    			舌5CD.不透明度 = value;
    			舌股左_舌1CD.不透明度 = value;
    			舌股左_舌2CD.不透明度 = value;
    			舌股左_舌3CD.不透明度 = value;
    			舌股左_舌4CD.不透明度 = value;
    			舌股左_舌5CD.不透明度 = value;
    			舌股左_舌6CD.不透明度 = value;
    			舌股右_舌1CD.不透明度 = value;
    			舌股右_舌2CD.不透明度 = value;
    			舌股右_舌3CD.不透明度 = value;
    			舌股右_舌4CD.不透明度 = value;
    			舌股右_舌5CD.不透明度 = value;
    			舌股右_舌6CD.不透明度 = value;
    		}
    	}

    	public 舌_長(double DisUnit, 配色指定 配色指定, BodyColorSet 体配色, ModeEventDispatcher Med, 舌_長D e)
    	{
    		ThisType = GetType();
    		Dif dif = new Dif();
    		dif.Tag = "長";
    		dif.Add(new PartGroup(Sta.胴体["舌"][0][1]));
    		Body = new Difs();
    		Body.Tag = dif.Tag;
    		Body.Add(dif);
    		PartGroup partGroup = Body[0][0];
    		X0Y0_舌1 = partGroup["舌1"].ToPar();
    		X0Y0_舌2 = partGroup["舌2"].ToPar();
    		X0Y0_舌3 = partGroup["舌3"].ToPar();
    		X0Y0_舌4 = partGroup["舌4"].ToPar();
    		X0Y0_舌5 = partGroup["舌5"].ToPar();
    		PartGroup pars2 = partGroup["舌股左"].ToPars();
    		X0Y0_舌股左_舌1 = pars2["舌1"].ToPar();
    		X0Y0_舌股左_舌2 = pars2["舌2"].ToPar();
    		X0Y0_舌股左_舌3 = pars2["舌3"].ToPar();
    		X0Y0_舌股左_舌4 = pars2["舌4"].ToPar();
    		X0Y0_舌股左_舌5 = pars2["舌5"].ToPar();
    		X0Y0_舌股左_舌6 = pars2["舌6"].ToPar();
    		pars2 = partGroup["舌股右"].ToPars();
    		X0Y0_舌股右_舌1 = pars2["舌1"].ToPar();
    		X0Y0_舌股右_舌2 = pars2["舌2"].ToPar();
    		X0Y0_舌股右_舌3 = pars2["舌3"].ToPar();
    		X0Y0_舌股右_舌4 = pars2["舌4"].ToPar();
    		X0Y0_舌股右_舌5 = pars2["舌5"].ToPar();
    		X0Y0_舌股右_舌6 = pars2["舌6"].ToPar();
    		Body.SetJoints();
    		接続根 = new JointD(Body);
    		右 = e.右;
    		反転X = e.反転X;
    		反転Y = e.反転Y;
    		基準C = e.基準C;
    		位置C = e.位置C;
    		角度B = e.角度B;
    		角度C = e.角度C;
    		尺度B = e.尺度B;
    		尺度C = e.尺度C;
    		尺度XB = e.尺度XB;
    		尺度XC = e.尺度XC;
    		尺度YB = e.尺度YB;
    		尺度YC = e.尺度YC;
    		肥大 = e.肥大;
    		身長 = e.身長;
    		Xv = e.Xv;
    		Yv = e.Yv;
    		Xi = e.Xi;
    		Yi = e.Yi;
    		サイズ = e.サイズ;
    		サイズX = e.サイズX;
    		サイズY = e.サイズY;
    		舌1_表示 = e.舌1_表示;
    		舌2_表示 = e.舌2_表示;
    		舌3_表示 = e.舌3_表示;
    		舌4_表示 = e.舌4_表示;
    		舌5_表示 = e.舌5_表示;
    		舌股左_舌1_表示 = e.舌股左_舌1_表示;
    		舌股左_舌2_表示 = e.舌股左_舌2_表示;
    		舌股左_舌3_表示 = e.舌股左_舌3_表示;
    		舌股左_舌4_表示 = e.舌股左_舌4_表示;
    		舌股左_舌5_表示 = e.舌股左_舌5_表示;
    		舌股左_舌6_表示 = e.舌股左_舌6_表示;
    		舌股右_舌1_表示 = e.舌股右_舌1_表示;
    		舌股右_舌2_表示 = e.舌股右_舌2_表示;
    		舌股右_舌3_表示 = e.舌股右_舌3_表示;
    		舌股右_舌4_表示 = e.舌股右_舌4_表示;
    		舌股右_舌5_表示 = e.舌股右_舌5_表示;
    		舌股右_舌6_表示 = e.舌股右_舌6_表示;
    		股舌表示 = e.股舌表示;
    		欠損 = e.欠損;
    		筋肉 = e.筋肉;
    		拘束 = e.拘束;
    		if (!e.表示)
    		{
    			表示 = false;
    		}
    		base.配色指定 = 配色指定;
    		配色(体配色);
    		Pars = new ShapePart[17]
    		{
    			X0Y0_舌1, X0Y0_舌2, X0Y0_舌3, X0Y0_舌4, X0Y0_舌5, X0Y0_舌股左_舌1, X0Y0_舌股左_舌2, X0Y0_舌股左_舌3, X0Y0_舌股左_舌4, X0Y0_舌股左_舌5,
    			X0Y0_舌股左_舌6, X0Y0_舌股右_舌1, X0Y0_舌股右_舌2, X0Y0_舌股右_舌3, X0Y0_舌股右_舌4, X0Y0_舌股右_舌5, X0Y0_舌股右_舌6
    		};
    		X0Y0_舌1CP = new ColorP(X0Y0_舌1, 舌1CD, DisUnit, abj: true);
    		X0Y0_舌2CP = new ColorP(X0Y0_舌2, 舌2CD, DisUnit, abj: true);
    		X0Y0_舌3CP = new ColorP(X0Y0_舌3, 舌3CD, DisUnit, abj: true);
    		X0Y0_舌4CP = new ColorP(X0Y0_舌4, 舌4CD, DisUnit, abj: true);
    		X0Y0_舌5CP = new ColorP(X0Y0_舌5, 舌5CD, DisUnit, abj: true);
    		X0Y0_舌股左_舌1CP = new ColorP(X0Y0_舌股左_舌1, 舌股左_舌1CD, DisUnit, abj: true);
    		X0Y0_舌股左_舌2CP = new ColorP(X0Y0_舌股左_舌2, 舌股左_舌2CD, DisUnit, abj: true);
    		X0Y0_舌股左_舌3CP = new ColorP(X0Y0_舌股左_舌3, 舌股左_舌3CD, DisUnit, abj: true);
    		X0Y0_舌股左_舌4CP = new ColorP(X0Y0_舌股左_舌4, 舌股左_舌4CD, DisUnit, abj: true);
    		X0Y0_舌股左_舌5CP = new ColorP(X0Y0_舌股左_舌5, 舌股左_舌5CD, DisUnit, abj: true);
    		X0Y0_舌股左_舌6CP = new ColorP(X0Y0_舌股左_舌6, 舌股左_舌6CD, DisUnit, abj: true);
    		X0Y0_舌股右_舌1CP = new ColorP(X0Y0_舌股右_舌1, 舌股右_舌1CD, DisUnit, abj: true);
    		X0Y0_舌股右_舌2CP = new ColorP(X0Y0_舌股右_舌2, 舌股右_舌2CD, DisUnit, abj: true);
    		X0Y0_舌股右_舌3CP = new ColorP(X0Y0_舌股右_舌3, 舌股右_舌3CD, DisUnit, abj: true);
    		X0Y0_舌股右_舌4CP = new ColorP(X0Y0_舌股右_舌4, 舌股右_舌4CD, DisUnit, abj: true);
    		X0Y0_舌股右_舌5CP = new ColorP(X0Y0_舌股右_舌5, 舌股右_舌5CD, DisUnit, abj: true);
    		X0Y0_舌股右_舌6CP = new ColorP(X0Y0_舌股右_舌6, 舌股右_舌6CD, DisUnit, abj: true);
    		Intensity = e.濃度;
    	}

    	public override void 色更新()
    	{
    		Pars.GetMiY_MaY(out mm);
    		X0Y0_舌1CP.Update(mm);
    		X0Y0_舌2CP.Update(mm);
    		X0Y0_舌3CP.Update(mm);
    		X0Y0_舌4CP.Update(mm);
    		X0Y0_舌5CP.Update(mm);
    		X0Y0_舌股左_舌1CP.Update(mm);
    		X0Y0_舌股左_舌2CP.Update(mm);
    		X0Y0_舌股左_舌3CP.Update(mm);
    		X0Y0_舌股左_舌4CP.Update(mm);
    		X0Y0_舌股左_舌5CP.Update(mm);
    		X0Y0_舌股左_舌6CP.Update(mm);
    		X0Y0_舌股右_舌1CP.Update(mm);
    		X0Y0_舌股右_舌2CP.Update(mm);
    		X0Y0_舌股右_舌3CP.Update(mm);
    		X0Y0_舌股右_舌4CP.Update(mm);
    		X0Y0_舌股右_舌5CP.Update(mm);
    		X0Y0_舌股右_舌6CP.Update(mm);
    	}

    	private void 配色(BodyColorSet 体配色)
    	{
    		配色N0(体配色);
    	}

    	private void 配色N0(BodyColorSet 体配色)
    	{
    		舌1CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌2CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌3CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌4CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌5CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股左_舌1CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股左_舌2CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股左_舌3CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股左_舌4CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股左_舌5CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股左_舌6CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股右_舌1CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股右_舌2CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股右_舌3CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股右_舌4CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股右_舌5CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    		舌股右_舌6CD = new ColorD(ref 体配色.粘膜線, ref 体配色.舌);
    	}
    }
}
