Example #1
0
 public virtual Effect CloneToDirection(float offset, Enums.AttackType type, Enums.AttackSubType subType)
 {
     return(new Effect()
     {
         Active = false
     });
 }
Example #2
0
        public override Effect CloneToDirection(float offset, Enums.AttackType type, Enums.AttackSubType subType)
        {
            Bullet bullet = new Bullet();

            bullet.LoadEffect(Texture);
            bullet.Position      = Position;
            bullet.Rotation      = (Rotation + offset) % (float)(2 * Math.PI);
            bullet.MaxSpeed      = MaxSpeed;
            bullet.Color         = Color;
            bullet.MinDamage     = MinDamage;
            bullet.MaxDamage     = MaxDamage;
            bullet.CastedBy      = CastedBy;
            bullet.EffectType    = type;
            bullet.EffectSubType = subType;

            return(bullet);
        }