public Hitsparks(HitSpark type) { this.type = type; animator = new SpriteAnimator <HitSpark>(new Vector2(30, 30)); }
public ObjectPool(HitSpark type, ContentManager content) { objects = new List <Hitsparks>(); this.type = type; this.content = content; }
public Hitbox(int damage, int chipDamage, int hitstun, int blockstun, Vector2 pushback, Rectangle hitboxBounds, Vector2 positionOffset, CancelState cancelStrength, HitSpark attackStrength, AttackProperty attackProperty = AttackProperty.Hit, int pushbackDuration = 5, int hitStop = -1, bool ignorePushback = false, ThrowType throwType = ThrowType.none) { this.damage = damage; this.chipDamage = chipDamage; this.hitstun = hitstun; this.blockstun = blockstun; this.pushbackDuration = pushbackDuration; this.pushback = pushback; this.hitboxBounds = hitboxBounds; this.positionOffset = positionOffset; this.attackProperty = attackProperty; this.cancelStrength = cancelStrength; this.attackStrength = attackStrength; this.ignorePushback = ignorePushback; this.throwType = throwType; moveMasterID = MasterObjectContainer.GetMoveMasterID(); moveCurrentUseID = 0; if (hitStop == -1) { if (attackStrength == HitSpark.light) { this.hitStop = 5; } else if (attackStrength == HitSpark.medium) { this.hitStop = 7; } else if (attackStrength == HitSpark.heavy) { this.hitStop = 9; } else { this.hitStop = 11; } } else { this.hitStop = hitStop; } }