当前位置: 首页>>代码示例>>C#>>正文


C# Obj_AI_Minion类代码示例

本文整理汇总了C#中Obj_AI_Minion的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Minion类的具体用法?C# Obj_AI_Minion怎么用?C# Obj_AI_Minion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Obj_AI_Minion类属于命名空间,在下文中一共展示了Obj_AI_Minion类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetAggroTurret

 /// <summary>
 ///     Return the Attacking turret.
 /// </summary>
 /// <param name="minion">
 ///     The minion.
 /// </param>
 /// <returns>
 ///     The <see cref="bool" />
 /// </returns>
 public static Obj_AI_Base GetAggroTurret(Obj_AI_Minion minion)
 {
     var activeTurret =
         ActiveAttacks.Values.FirstOrDefault(
             m => (m.Source is Obj_AI_Turret) && m.Target.NetworkId == minion.NetworkId);
     return activeTurret?.Source;
 }
开发者ID:parkyoungsoo,项目名称:LeagueSharp.SDK,代码行数:16,代码来源:Health.cs

示例2: Farm

 public static void Farm(Obj_AI_Minion minion)
 {
     if (Q.IsReady() && Q.GetDamage(minion) < minion.Health)
     {
         Q.Cast(minion);
     }
 }
开发者ID:ElKappa,项目名称:LeagueSharp,代码行数:7,代码来源:Annie.cs

示例3: CastSpell

 public bool CastSpell(Obj_AI_Minion target)
 {
     if (!CanUseSpell(target))
         return false;
     ObjectManager.Player.Spellbook.CastSpell(Slot, target);
     return true;
 }
开发者ID:09samed09,项目名称:LeagueSharp2,代码行数:7,代码来源:HeroSpell.cs

示例4: IsImportant

 public static bool IsImportant(Obj_AI_Minion minion)
 {
     return minion.IsValidTarget()
         && (minion.Name.ToLower().Contains("baron")
         || minion.Name.ToLower().Contains("dragon")
         || minion.Name.ToLower().Contains("herald"));
 }
开发者ID:giaanthunder,项目名称:EloBuddy,代码行数:7,代码来源:SmiteManager.cs

示例5: Farm

 public static void Farm(Obj_AI_Minion minion)
 {
     if (Q.IsReady())
     {
         Q.Cast();
     }
 }
开发者ID:ElKappa,项目名称:LeagueSharp,代码行数:7,代码来源:Tristana.cs

示例6: Farm

        public static void Farm(Obj_AI_Minion minion)
        {
            Q.SetSkillshot(0.26f, 50f, 1700f, true, SkillshotType.SkillshotLine);

            if (Player.Level < 6)
            {
                if (Player.GetAutoAttackDamage(minion) > minion.Health && Player.Distance(minion.Position) < Player.AttackRange)
                {
                    Player.IssueOrder(GameObjectOrder.AutoAttack, minion);
                }

                if (E.IsReady() && CountMinions(Player.Position, 500, ENEMY_TEAM) > 3)
                {
                    E.Cast(minion);
                }
            }

            if (W.IsReady() &&
                W.GetDamage(minion) > minion.Health &&
                W.IsInRange(minion) &&
                Player.Mana > 50)
            {
                W.Cast(minion);
            }

            if (Player.Level >= 6 && Player.CountEnemiesInRange(1000) == 0 && Player.Mana > 150)
            {
                if (Q.IsReady() && Player.ManaPercent > 20)
                {
                    Q.Cast(minion.Position);
                }
                else if (Q.IsReady() && Q.GetDamage(minion) > minion.Health && Q.GetPrediction(minion).Hitchance > HitChance.Low)
                {
                    Q.Cast(minion.Position);
                }
                else
                {
                    Q.Cast(minion.Position);
                }

                if (R.IsReady() && CountMinions(minion.Position, 500,ENEMY_TEAM) > 3)
                {
                    R.Cast();
                }
                if (W.IsReady() &&W.IsInRange(minion))
                {
                    W.Cast(minion);
                }
                if (E.IsReady() && E.IsInRange(minion))
                {
                    E.Cast(minion);
                }
            }

            //if (W.IsReady() && CountMinions(Player.Position, W.Range, ENEMY_TEAM) > 2)
            //{
            //    W.Cast(minion.Position);
            //}
        }
开发者ID:ElKappa,项目名称:LeagueSharp,代码行数:59,代码来源:Ryze.cs

示例7: CanCloneAttack

 public static bool CanCloneAttack(Obj_AI_Minion clone)
 {
     if (clone != null)
     {
         return Utils.GameTimeTickCount >= LastAATick + (clone.AttackDelay - clone.AttackCastDelay) * 1000;
     }
     return false;
 }
开发者ID:fgpmaia123,项目名称:LeagueSharp-21,代码行数:8,代码来源:Shaco.cs

示例8: getDPS

 public override float getDPS(Obj_AI_Minion minion)
 {
     float dps = 0;
     dps += (float)player.GetAutoAttackDamage(minion) * player.AttackSpeedMod;
     dps += 30;
     dpsFix = dps;
     return dps;
 }
开发者ID:Merc491,项目名称:GoodGuyJodu,代码行数:8,代码来源:Warwick.cs

示例9: Orbwalking_OnAttack

 private void Orbwalking_OnAttack(AttackableUnit unit, AttackableUnit target)
 {
     if (unit.IsMe && target is Obj_AI_Minion)
     {
         LastAttackedminiMinion = (Obj_AI_Minion) target;
         LastAttackedminiMinionTime = Utils.GameTimeTickCount;
     }
 }
开发者ID:koolkaracter,项目名称:LeagueSharp,代码行数:8,代码来源:Ezreal.cs

示例10: CanCloneAttack

 public static bool CanCloneAttack(Obj_AI_Minion ghost)
 {
     if (ghost != null)
     {
         return Utils.GameTimeTickCount >= LastAATick + (ghost.AttackDelay - ghost.AttackCastDelay) * 1000;
     }
     return false;
 }
开发者ID:uio25371555,项目名称:LeagueSharp-4,代码行数:8,代码来源:Mordekaiser.cs

示例11: IsKillableMinion

        /// <summary>
        ///     This function will check if the given target is killable
        /// </summary>
        /// <param name="target">Must be a OBJAIMinion</param>
        /// <param name="range">Must be a float value where to check the max range</param>
        /// <param name="key">Must be a Spellslot key for assign the damage</param>
        /// <returns></returns>
        public static bool IsKillableMinion(Obj_AI_Minion target, float range, SpellSlot key)
        {
            var x = target;
            if (x.IsValidTarget(range) && x.TotalShieldHealth() + 5 <= Player.Instance.GetSpellDamage(x, key))
            {
                return true;
            }

            return false;
        }
开发者ID:Enelx,项目名称:EloBuddy,代码行数:17,代码来源:Logic.cs

示例12: attackMinion

 public override void attackMinion(Obj_AI_Minion minion, bool onlyAA)
 {
     if (JungleOrbwalker.CanAttack())
     {
         UseW(minion);
         UseE(minion);
         UseR(minion);
     }
     JungleOrbwalker.attackMinion(minion, minion.Position.To2D().Extend(player.Position.To2D(), 150).To3D());
 }
开发者ID:Merc491,项目名称:GoodGuyJodu,代码行数:10,代码来源:Warwick.cs

示例13: AvgPos

 public Vector3 AvgPos(Obj_AI_Minion[] objects)
 {
     double x = 0, y = 0;
     foreach (Obj_AI_Minion obj in objects)
     {
         x += obj.Position.X;
         y += obj.Position.Y;
     }
     return new Vector2((float) (x/objects.Count()), (float) (y/objects.Count())).To3DWorld();
 }
开发者ID:KoalaHuman,项目名称:EloBuddy-2,代码行数:10,代码来源:Push.cs

示例14: DragonSteal

        public static void DragonSteal(Obj_AI_Minion dragon)
        {
            var time = (int)(ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).SData.SpellTotalTime * 1000) - 100 + Game.Ping / 2;

            HealthPrediction.GetHealthPrediction(dragon, time, (int) Spells.R.Delay);

            if (b)
            {
                
            }
        }
开发者ID:Sthephanfelix,项目名称:LeagueSharp-4,代码行数:11,代码来源:JungleSteal.cs

示例15: HasBuff

 public bool HasBuff(Obj_AI_Minion jungleBigMob)
 {
     foreach (JungleMob jungleMob in JungleMobs)
     {
         if (jungleBigMob.SkinName.Contains(jungleMob.Name))
         {
             return jungleMob.Buff;
         }
     }
     return false;
 }
开发者ID:zjian1013,项目名称:SAwareness,代码行数:11,代码来源:Timers.cs


注:本文中的Obj_AI_Minion类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。