Files
SlaveMatrix-SDL/SlaveMatrix/SlaveMatrix/BodyPartClasses/スタンプW.cs
2025-05-07 10:45:18 -07:00

69 lines
1.6 KiB
C#

using System.Drawing;
using _2DGAMELIB;
namespace SlaveMatrix
{
public class W : Stamp
{
private Ele Par;
public override void Draw(Are Are)
{
try
{
if (sta.Count <= 0)
{
return;
}
foreach (sep stum in sta)
{
p = stum.Ele..Current.GetPar(stum.Path);
stum.Sta.B = p.AngleBase - stum.Par.AngleBase;
stum.Sta.B = p.ToGlobal(stum.Pos);
stum.Sta.();
stum.Sta..Draw(Are);
}
}
catch
{
}
}
public bool Add(Vector2D cp, Color hc, Ele he)
{
if (2(he) && he == Par)
{
p = he..GetHitPar_(hc);
c2 = he.GetParOfColorP(p).ColorD.;
if (c2.Col1 == Cha..O.Col1 || c2.Col2 == Cha..O.Col1)
{
if (sta.Count >= 33)
{
sep = sta[0];
sta.RemoveAt(0);
sep.Sta.Dispose();
}
sep = default(sep);
sep.Sta = EleD.GetEle(Are.DisUnit, Med, Cha.);
sep.Sta.SetHitFalse();
sep.Sta.C = 45.0 * (double)(RNG.XS.NextBool() ? 1 : (-1)) * RNG.XS.NextDouble();
sep.Ele = he;
sep.Par = p;
sep.Path = sep.Par.GetPath();
sep.Pos = sep.Par.ToLocal(cp + (he. - cp).newNormalize() * 0.01);
sta.Add(sep);
}
return true;
}
return false;
}
public W(Med Med, Are Are, Cha Cha, Bod Bod, EleD EleD, Ele Par)
: base(Med, Are, Cha, Bod, EleD)
{
this.Par = Par;
EleD.B = 0.9;
}
}
}