Ejemplo n.º 1
0
 public LinearProjectileObstacle(LinearProjectileEvadable ability, Vector3 startPosition, Vector3 direction)
     : this(ability, startPosition)
 {
     this.EndPosition      = startPosition.Extend2D(direction, this.Range);
     this.Polygon          = new Polygon.Rectangle(this.Position, this.EndPosition, this.Radius);
     this.NavMeshObstacles = this.Pathfinder.AddNavMeshObstacle(this.Position, this.EndPosition, this.Radius);
     this.NavMeshId        = 1; //hack
 }
Ejemplo n.º 2
0
        public LinearProjectileObstacle(LinearProjectileEvadable ability, Vector3 startPosition)
            : base(ability)
        {
            const int RadiusIncrease = 50;
            const int RangeIncrease  = 100;

            this.Position  = startPosition;
            this.Speed     = ability.RangedAbility.Speed;
            this.Radius    = ability.RangedAbility.Radius + RadiusIncrease;
            this.Range     = ability.RangedAbility.Range + RangeIncrease;
            this.IsUpdated = false;
        }
Ejemplo n.º 3
0
 public LinearProjectileUnitObstacle(LinearProjectileEvadable ability, Unit unit)
     : base(ability, unit.Position)
 {
     this.ObstacleUnit = unit;
 }
Ejemplo n.º 4
0
 public LinearProjectileUnitObstacle(LinearProjectileEvadable ability, Vector3 startPosition)
     : base(ability, startPosition)
 {
 }
Ejemplo n.º 5
0
 public PowershotObstacle(LinearProjectileEvadable ability, Vector3 startPosition, Vector3 direction)
     : base(ability, startPosition, direction)
 {
 }
Ejemplo n.º 6
0
 public SacredArrowObstacle(LinearProjectileEvadable ability, Vector3 startPosition, float angle)
     : base(ability, startPosition)
 {
     this.angle = angle;
 }
Ejemplo n.º 7
0
 public TimberChainObstacle(LinearProjectileEvadable ability, Vector3 startPosition)
     : base(ability, startPosition)
 {
     this.timberChain = (TimberChain)ability.RangedAbility;
 }