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


C# Obj_AI_Base.GetMobTeam方法代码示例

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


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

示例1: JungleMinManaPercent

        public static float JungleMinManaPercent(Obj_AI_Base mob)
        {
            // Enable / Disable Min Mana
            if (!ModeConfig.MenuFarm.Item("Farm.MinMana.Enable").GetValue<KeyBind>().Active)
            {
                return 0f;
            }

            // Don't Control Min Mana if I have blue buff
            if (MenuMinMana.Item("MinMana.DontCheckBlueBuff").GetValue<bool>() && ObjectManager.Player.HasBlueBuff())
            {
                return 0f;
            }

            // Don't check min mana If I'm taking enemy blue / red
            var dontCheckMinMana = MenuMinMana.Item("MinMana.DontCheckEnemyBuff").GetValue<StringList>().SelectedIndex;

            if ((dontCheckMinMana == 1 || dontCheckMinMana == 3)
                && mob.GetMobTeam(Q.Range) == (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
                && (mob.SkinName == "SRU_Blue" || mob.SkinName == "SRU_Red"))
            {
                return 0f;
            }

            if ((dontCheckMinMana == 2 || dontCheckMinMana == 3)
                && mob.GetMobTeam(Q.Range) != (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
                && (mob.SkinName == "SRU_Blue" || mob.SkinName == "SRU_Red"))
            {
                return 0f;
            }

            return MenuMinMana.Item("MinMana.Jungle").GetValue<Slider>().Value;
        }
开发者ID:CjShu,项目名称:xQx-LeagueSharp,代码行数:33,代码来源:ModeJungle.cs

示例2: JungleMinManaPercent

        public static float JungleMinManaPercent(Obj_AI_Base mob)
        {
            // Enable / Disable Min Mana
            if (!ModeConfig.MenuFarm["Farm.MinMana.Enable"].Cast<KeyBind>().CurrentValue)
            {
                return 0f;
            }

            // Don't Control Min Mana if I have blue buff
            if (MenuLocal["MinMana.DontCheckBlueBuff"].Cast<CheckBox>().CurrentValue && ObjectManager.Player.HasBlueBuff())
            {
                return 0f;
            }

            // Don't check min mana If I'm taking enemy blue / red
            var dontCheckMinMana = MenuLocal["MinMana.DontCheckEnemyBuff"].Cast<ComboBox>().CurrentValue;

            if ((dontCheckMinMana == 1 || dontCheckMinMana == 3)
                && mob.GetMobTeam(Q.Range) == (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
                && (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
            {
                return 0f;
            }

            if ((dontCheckMinMana == 2 || dontCheckMinMana == 3)
                && mob.GetMobTeam(Q.Range) != (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
                && (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
            {
                return 0f;
            }

            return MenuLocal["MinMana.Jungle"].Cast<Slider>().CurrentValue;
        }
开发者ID:yashine59fr,项目名称:PortAIO,代码行数:33,代码来源:ModeJungle.cs

示例3: JungleMinManaPercent

        public static float JungleMinManaPercent(Obj_AI_Base mob)
        {
            // Enable / Disable Min Mana
            if (!ModeConfig.MenuFarm["Farm.MinMana.Enable"].Cast<KeyBind>().CurrentValue)
            {
                return 0f;
            }

            // Don't Control Min Mana
            if (MenuLocal["MinMana.Jungle.DontCheckBlueBuff"].Cast<CheckBox>().CurrentValue &&
                ObjectManager.Player.HasBuffInst("CrestoftheAncientGolem"))
            {
                return 0f;
            }

            var dontCheckMinMana =
                MenuLocal["MinMana.Jungle.DontCheckEnemyBuff"].Cast<ComboBox>().CurrentValue;

            if ((dontCheckMinMana == 1 || dontCheckMinMana == 3) &&
                mob.GetMobTeam(Q.Range) == (GameObjectTeam)ObjectManager.Player.Team &&
                (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
            {
                return 0f;
            }

            if ((dontCheckMinMana == 2 || dontCheckMinMana == 3) &&
                mob.GetMobTeam(Q.Range) != (GameObjectTeam)ObjectManager.Player.Team &&
                (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
            {
                return 0f;
            }

            // Return Min Mana Baron / Dragon
            if (GetMobType(mob) == MobTypes.Baron || GetMobType(mob) == MobTypes.Dragon)
            {
                return MenuLocal["MinMana.Jungle.BigBoys"].Cast<Slider>().CurrentValue;
            }

            // Return Min Mana Ally Big / Small
            if (mob.GetMobTeam(Q.Range) == (GameObjectTeam)ObjectManager.Player.Team)
            {
                return GetMobType(mob) == MobTypes.Big
                    ? MenuLocal["MinMana.Jungle.AllyBig"].Cast<Slider>().CurrentValue
                    : MenuLocal["MinMana.Jungle.AllySmall"].Cast<Slider>().CurrentValue;
            }

            // Return Min Mana Enemy Big / Small
            if (mob.GetMobTeam(Q.Range) != (GameObjectTeam)ObjectManager.Player.Team)
            {
                return GetMobType(mob) == MobTypes.Big
                    ? MenuLocal["MinMana.Jungle.EnemyBig"].Cast<Slider>().CurrentValue
                    : MenuLocal["MinMana.Jungle.EnemySmall"].Cast<Slider>().CurrentValue;
            }

            return 0f;
        }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:56,代码来源:CommonManaManager.cs

示例4: JungleMinManaPercent

        public static float JungleMinManaPercent(Obj_AI_Base mob)
        {
            // Enable / Disable Min Mana
            if (!MenuLocal.Item("MinMana.Enable").GetValue<KeyBind>().Active)
            {
                return 0f;
            }

            // Don't Control Min Mana
            if (MenuLocal.Item("MinMana.Jungle.DontCheckBlueBuff").GetValue<bool>() &&
                ObjectManager.Player.HasBuffInst("CrestoftheAncientGolem"))
            {
                return 0f;
            }

            var dontCheckMinMana =
                MenuLocal.Item("MinMana.Jungle.DontCheckEnemyBuff").GetValue<StringList>().SelectedIndex;

            if ((dontCheckMinMana == 1 || dontCheckMinMana == 3) &&
                mob.GetMobTeam(Q.Range) == (GameObjectTeam) ObjectManager.Player.Team &&
                (mob.SkinName == "SRU_Blue" || mob.SkinName == "SRU_Red"))
            {
                return 0f;
            }

            if ((dontCheckMinMana == 2 || dontCheckMinMana == 3) &&
                mob.GetMobTeam(Q.Range) != (GameObjectTeam) ObjectManager.Player.Team &&
                (mob.SkinName == "SRU_Blue" || mob.SkinName == "SRU_Red"))
            {
                return 0f;
            }

            // Return Min Mana Baron / Dragon
            if (GetMobType(mob) == MobTypes.Baron || GetMobType(mob) == MobTypes.Dragon)
            {
                return MenuLocal.Item("MinMana.Jungle.BigBoys").GetValue<Slider>().Value;
            }

            // Return Min Mana Ally Big / Small
            if (mob.GetMobTeam(Q.Range) == (GameObjectTeam) ObjectManager.Player.Team)
            {
                return GetMobType(mob) == MobTypes.Big
                    ? MenuLocal.Item("MinMana.Jungle.AllyBig").GetValue<Slider>().Value
                    : MenuLocal.Item("MinMana.Jungle.AllySmall").GetValue<Slider>().Value;
            }

            // Return Min Mana Enemy Big / Small
            if (mob.GetMobTeam(Q.Range) != (GameObjectTeam) ObjectManager.Player.Team)
            {
                return GetMobType(mob) == MobTypes.Big
                    ? MenuLocal.Item("MinMana.Jungle.EnemyBig").GetValue<Slider>().Value
                    : MenuLocal.Item("MinMana.Jungle.EnemySmall").GetValue<Slider>().Value;
            }

            return 0f;
        }
开发者ID:CjShu,项目名称:JINX,代码行数:56,代码来源:CommonManaManager.cs

示例5: JungleMinManaPercent

        public static float JungleMinManaPercent(Obj_AI_Base mob)
        {
            // Enable / Disable Min Mana
            if (!getKeyBindItem(ModeConfig.MenuFarm, "Farm.MinMana.Enable"))
            {
                return 0f;
            }

            // Don't Control Min Mana if I have blue buff
            if (getCheckBoxItem(MenuLocal, "MinMana.DontCheckBlueBuff") && ObjectManager.Player.HasBlueBuff())
            {
                return 0f;
            }

            // Don't check min mana If I'm taking enemy blue / red
            var dontCheckMinMana = getBoxItem(MenuLocal, "MinMana.DontCheckEnemyBuff");

            if ((dontCheckMinMana == 1 || dontCheckMinMana == 3)
                && mob.GetMobTeam(Q.Range) == (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
                && (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
            {
                return 0f;
            }

            if ((dontCheckMinMana == 2 || dontCheckMinMana == 3)
                && mob.GetMobTeam(Q.Range) != (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
                && (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
            {
                return 0f;
            }

            return getSliderItem(MenuLocal, "MinMana.Jungle");
        }
开发者ID:yashine59fr,项目名称:PortAIO,代码行数:33,代码来源:ModeJungle.cs


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