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


C# Obj_AI_Base.IsStructure方法代码示例

本文整理汇总了C#中Obj_AI_Base.IsStructure方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.IsStructure方法的具体用法?C# Obj_AI_Base.IsStructure怎么用?C# Obj_AI_Base.IsStructure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Obj_AI_Base的用法示例。


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

示例1: CastHextechGunBlade

        public bool CastHextechGunBlade(Obj_AI_Base target)
        {
            if (target == null || !target.IsValidTarget() || target.IsStructure() || target.IsMinion()) return false;

            var Hextech = ItemUtil.GetItem(ItemId.Hextech_Gunblade, 700);

            if (Hextech.IsOwned() && Hextech.IsReady() && Hextech.IsInRange(target) && Hextech.Cast(target)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:ItemController.cs

示例2: CastIgnite

        public bool CastIgnite(Obj_AI_Base target)
        {
            if (target == null || !target.IsValidTarget() || target.IsStructure() || target.IsMinion) return false;

            var summoner = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Ignite);

            if (summoner != null && summoner.IsReady() && summoner.IsInRange(target) && summoner.Cast(target)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:SummonersController.cs

示例3: CastBilgeBtrk

        public bool CastBilgeBtrk(Obj_AI_Base target)
        {
            if (target == null || !target.IsValidTarget() || target.IsStructure() || target.IsMinion()) return false;

            var bilgewaterBtrk = ItemUtil.GetItem(ItemId.Bilgewater_Cutlass, 550);

            if (bilgewaterBtrk.IsOwned() && bilgewaterBtrk.IsReady() && bilgewaterBtrk.IsInRange(target) && bilgewaterBtrk.Cast(target)) return true;

            bilgewaterBtrk = ItemUtil.GetItem(ItemId.Blade_of_the_Ruined_King, 550);

            if (bilgewaterBtrk.IsOwned() && bilgewaterBtrk.IsReady() && bilgewaterBtrk.IsInRange(target) && bilgewaterBtrk.Cast(target)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:14,代码来源:ItemController.cs

示例4: CastSmite

        public bool CastSmite(Obj_AI_Base target)
        {
            if (target == null || !target.IsValidTarget() || target.IsStructure()) return false;

            var summoner = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Smite);

            if (summoner != null && summoner.IsReady() && summoner.IsInRange(target))
            {
                if (target.IsMinion())
                {
                    if (summoner.Cast(target)) return true;
                }

                else if ((summoner.Name.Contains("gank") || summoner.Name.Contains("duel")) && summoner.Cast(target)) return true;
            }

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:18,代码来源:SummonersController.cs

示例5: OnTurretAttack

 private static void OnTurretAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (!(sender.IsStructure()) || !args.Target.IsMe)
     {
         return;
     }
     turretIsAttackingMe = true;
     currentTurret = sender;
 }
开发者ID:Enochen,项目名称:EloBuddy,代码行数:9,代码来源:Program.cs

示例6: CastFaceOfTheMountain

        public bool CastFaceOfTheMountain(Obj_AI_Base ally)
        {
            if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;

            var fotmountain = ItemUtil.GetItem(ItemId.Face_of_the_Mountain, 600);

            if (fotmountain.IsOwned() && fotmountain.IsReady() && fotmountain.IsInRange(ally) && fotmountain.Cast(ally)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:ItemController.cs

示例7: CastRanduin

        public bool CastRanduin(Obj_AI_Base target = null)
        {
            if (target == null || !target.IsValidTarget() || target.IsStructure()) return false;

            if (target != null)
            {
                var randuin = ItemUtil.GetItem(ItemId.Randuins_Omen, 450);//500 of range

                if (randuin.IsOwned() && randuin.IsReady() && randuin.IsInRange(target) && randuin.Cast()) return true;
            }
            else
            {
                var randuin = ItemUtil.GetItem(ItemId.Randuins_Omen, 500);//500 of range

                if (randuin.IsOwned() && randuin.IsReady() && randuin.Cast()) return true;
            }

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:19,代码来源:ItemController.cs

示例8: CastSolari

        public bool CastSolari(Obj_AI_Base ally)
        {
            if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;

            var solari = ItemUtil.GetItem(ItemId.Locket_of_the_Iron_Solari, 600);

            if (solari.IsOwned() && solari.IsReady() && solari.IsInRange(ally) && solari.Cast(ally)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:ItemController.cs

示例9: CastMikael

        public bool CastMikael(Obj_AI_Base ally)
        {
            if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;

            var mikael = ItemUtil.GetItem(ItemId.Mikaels_Crucible, 600);

            if (mikael.IsOwned() && mikael.IsReady() && mikael.IsInRange(ally) && mikael.Cast(ally)) return true;

            return false;
        }
开发者ID:himrengod,项目名称:Elobuddy-1,代码行数:10,代码来源:ItemController.cs

示例10: OnProcessSpellCast

        private static void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (sender.IsValid<AIHeroClient>() && sender.LSIsValidTarget() && sender.Type == GameObjectType.AIHeroClient && sender.IsEnemy && sender.IsVisible && sender.IsHPBarRendered)
            {
                var heroSender = ObjectManager.Get<AIHeroClient>().First(x => x.NetworkId == sender.NetworkId);
                if (heroSender.GetSpellSlot(args.SData.Name) == SpellSlot.Unknown && args.Target.Type == Player.Type)
                {
                    AggroTarget = ObjectManager.GetUnitByNetworkId<AIHeroClient>((uint)args.Target.NetworkId);
                    incomingDamage = (float)heroSender.LSGetAutoAttackDamage(AggroTarget);
                }

                if (heroSender.ChampionName == "Jinx" && args.SData.Name.Contains("JinxQAttack")
                    && args.Target.Type == Player.Type)
                {
                    AggroTarget = ObjectManager.GetUnitByNetworkId<AIHeroClient>((uint)args.Target.NetworkId);
                    incomingDamage = (float)heroSender.LSGetAutoAttackDamage(AggroTarget);
                }
            }

            if (sender.IsValid<Obj_AI_Turret>() && sender.IsStructure() && sender.Type == GameObjectType.obj_AI_Turret && sender.IsEnemy)
            {
                if (args.Target.Type == Player.Type)
                {
                    if (sender.LSDistance(Allies().ServerPosition, true) <= 900 * 900)
                    {
                        AggroTarget = ObjectManager.GetUnitByNetworkId<AIHeroClient>((uint)args.Target.NetworkId);

                        incomingDamage =
                            (float)
                            sender.CalcDamage(
                                AggroTarget,
                                DamageType.Physical,
                                sender.BaseAttackDamage + sender.FlatPhysicalDamageMod);
                    }
                }
            }
        }
开发者ID:yashine59fr,项目名称:PortAIO,代码行数:37,代码来源:ElLux.cs


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