public Ryu(Vector3 pos, Sprite sprite, SpriteManager sm, SpriteManager fireballSm) { this.pos = pos; this.sprite = sprite; this.sm = sm; this.fireballSm = fireballSm; fireball = new RyuFireball(this.fireballSm); sprite.hidden = false; fireball.sprite.hidden = false; animSet = new RyuAnimSet(sprite, sm); dashInfo = new DashInfo(animSet, this); moveSet = new RyuMoveSet(this); }
public void SetDashInfo(DashInfo dashInfo) { CheckModifiable(); this.dashInfo = dashInfo; isDashed = (dashInfo.gapLength > 0 || dashInfo.secondaryMiddleLength > 0 || dashInfo.secondaryEndLength > 0); }
private static void DrawDashedWithOffset(GraphicsTarget g, SymPath path, Pen pen, DashInfo dashes, float offsetRight, float miterLimit, RenderOptions renderOpts) { float[] distances; distances = ComputeDashDistances(path, LocationKind.DashAndGapLengths, dashes.dashLength, dashes.firstDashLength, dashes.lastDashLength, dashes.gapLength, dashes.minGaps, 0, dashes.secondaryEndGaps, dashes.secondaryEndLength, dashes.secondaryMiddleGaps, dashes.secondaryMiddleLength, 1.0F, false); if (distances.Length == 0 || (dashes.gapLength < renderOpts.minResolution && (dashes.secondaryMiddleGaps == 0 || dashes.secondaryMiddleLength < renderOpts.minResolution) && (dashes.secondaryEndGaps == 0 || dashes.secondaryEndLength < renderOpts.minResolution))) { // No dashes, or the dashes are too small to be visible. Draw solid. if (offsetRight != 0) { SymPath offsetPath = path.OffsetRight(offsetRight, miterLimit); offsetPath.Draw(g, pen); } else path.Draw(g, pen); } else { path.DrawDashedOffsetBizzarro(g, pen, distances, 0, offsetRight, miterLimit); } }
private static void DrawDashed(GraphicsTarget g, SymPath path, Pen pen, DashInfo dashes, RenderOptions renderOpts) { DrawDashedWithOffset(g, path, pen, dashes, 0, 1, renderOpts); }
public DashData(ulong timelength, DashInfo dash) { TimeLength = timelength; Dash = dash; }
public DashModifier(DashInfo info, Entity casterEntity, Entity targetEntity, Vector3 collidedProjectilePosition, Environment environment, CollectionOfInteractions modifierInteractionCollection) : base(info, casterEntity, targetEntity, collidedProjectilePosition, environment, modifierInteractionCollection) { this.info = info; }