Ejemplo n.º 1
0
 public AbilityResolver_TrickShot(ActorData actor, Ability ability, AbilityPriority priority, ActorTargeting.AbilityRequestData abilityRequestData)
     : base(actor, ability, priority, abilityRequestData)
 {
 }
 private AbilityResolver GetAbilityResolver(ActorData actor, Ability ability, AbilityPriority priority, ActorTargeting.AbilityRequestData abilityRequestData)
 {
     if (ability.m_abilityName == "Trick Shot")
     {
         Log.Info("AbilityResolver_TrickShot");
         return(new AbilityResolver_TrickShot(actor, ability, priority, abilityRequestData));
     }
     else if (ability.m_abilityName == "Trapwire")
     {
         Log.Info("AbilityResolver_TrapWire");
         return(new AbilityResolver_TrapWire(actor, ability, priority, abilityRequestData));
     }
     return(new AbilityResolver(actor, ability, priority, abilityRequestData));
 }
Ejemplo n.º 3
0
        public AbilityResolver_TrapWire(ActorData actor, Ability ability, AbilityPriority priority, ActorTargeting.AbilityRequestData abilityRequestData)
            : base(actor, ability, priority, abilityRequestData)
        {
            BoardSquare square = GetGameplayRefSquare(abilityRequestData.m_targets[0], m_caster);

            m_targetSquare = square.GetGridPosition();
            m_targetPos    = GetHighlightGoalPos(Targeter, abilityRequestData.m_targets[0], m_caster); // TODO fix height if it matters (probably just different heights on different maps)
            Vector3 pos = m_targetPos * 2 - square.GetWorldPosition();

            m_secondarySquare = Board.Get().GetSquare(pos).GetGridPosition();
        }