Exemplo n.º 1
0
        public StormHammerAoeObstacle(StormHammerEvadable ability, TrackingProjectile projectile, Unit9 target)
            : this(ability)
        {
            const int RadiusIncrease = 50;
            const int RangeIncrease  = 100;

            this.Speed           = ability.RangedAbility.Speed;
            this.Radius          = ability.RangedAbility.Radius + RadiusIncrease;
            this.Range           = ability.RangedAbility.Range + RangeIncrease;
            this.EndObstacleTime = GameManager.RawGameTime + (this.Range / this.Speed);

            this.AddProjectile(projectile, target);
        }
Exemplo n.º 2
0
        public StormHammerAoeObstacle(StormHammerEvadable ability)
            : base(ability)
        {
            const int RadiusIncrease = 50;
            const int RangeIncrease  = 100;

            this.Position    = this.Caster.Position;
            this.Speed       = ability.RangedAbility.Speed;
            this.Radius      = ability.RangedAbility.Radius + RadiusIncrease;
            this.Range       = ability.RangedAbility.Range + RangeIncrease;
            this.EndPosition = this.Caster.InFront(this.Range);
            this.Polygon     = new Polygon.Rectangle(this.Position, this.EndPosition, this.Radius);
            this.IsUpdated   = false;
        }