本文整理汇总了C#中Obj_AI_Minion类的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Minion类的具体用法?C# Obj_AI_Minion怎么用?C# Obj_AI_Minion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Obj_AI_Minion类属于命名空间,在下文中一共展示了Obj_AI_Minion类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: getDPS
public override float getDPS(Obj_AI_Minion minion)
{
float dps = 0;
if (Q.Level != 0)
dps += Q.GetDamage(minion) / Qdata.Cooldown;
if (E.Level != 0)
dps += E.GetDamage(minion) / (Qdata.Cooldown-2);
dps += (float)player.GetAutoAttackDamage(minion) * player.AttackSpeedMod;
dpsFix = dps;
return (dps == 0) ? 999 : dps;
}
开发者ID:Merc491,项目名称:GoodGuyJodu,代码行数:11,代码来源:Amumu.cs
示例17: LargeUpdate
protected override void LargeUpdate()
{
if (GameObject == null || GameObject.IsDead)
GameObject = ObjectManager.Get<Obj_AI_Minion>().FirstOrDefault(x => x.CampNumber > 0 && x.Name.Contains("Baron12.1.1") && x.IsVisible);
if (CanBeDone() && ObjectiveCommons.HasAnyoneNashorBuff())
{
_respawnTime = (int)Game.Time + 7 * 60 - Tolerance;
GameObject = null;
}
base.LargeUpdate();
}
开发者ID:jayblah,项目名称:TheNinow,代码行数:13,代码来源:ObjectiveBaron.cs
示例18: attackMinion
public override void attackMinion(Obj_AI_Minion minion, bool onlyAA)
{
if (JungleOrbwalker.CanAttack())
{
UseE(minion);
UseR(minion);
}
// shouldUseSafe();
if (JungleClearer.focusedCamp.useSafe)
JungleOrbwalker.attackMinion(minion, JungleClearer.focusedCamp.safePosition);
else
JungleOrbwalker.attackMinion(minion, minion.Position.To2D().Extend(player.Position.To2D(), 100).To3D());
}
开发者ID:Merc491,项目名称:GoodGuyJodu,代码行数:14,代码来源:Jinx.cs
示例19: Camp
public Camp(int campId, string name, Vector2 position, int respawnTime)
{
_respawnDuration = respawnTime * 60 * 1000;
_isMajor = IsMajorCamp(name);
Name = name;
Sprite = GetMapSprite(Name, position);
RenderText = GetRenderText(position, _isMajor);
RespawnTime = 0;
foreach (var obj in ObjectManager.Get<Obj_AI_Minion>().Where(obj => obj.CampNumber == campId))
CampObject = obj;
Game.OnGameUpdate += Game_OnGameUpdate;
}
开发者ID:se05010,项目名称:LeagueSharp13,代码行数:14,代码来源:Camps.cs
示例20: Heal
static Heal()
{
Game.OnUpdate += Game_OnGameUpdate;
adCarry = ObjectManager.Get<Obj_AI_Base>().FirstOrDefault(x => x.IsMe);
jungleMobs = ObjectManager.Get<Obj_AI_Minion>().FirstOrDefault(x => x.IsValidTarget(Orbwalking.GetRealAutoAttackRange(ObjectManager.Player) + 100)
&& x.CharData.BaseSkinName.Contains("Dragon")
|| x.CharData.BaseSkinName.Contains("Baron")
|| x.CharData.BaseSkinName.Contains("SRU_Blue")
|| x.CharData.BaseSkinName.Contains("SRU_Red") && x.IsVisible && !x.IsDead);
if (adCarry != null)
{
Console.Write(adCarry.CharData.BaseSkinName);
}
}
开发者ID:Sthephanfelix,项目名称:LeagueSharp-4,代码行数:14,代码来源:Heal.cs
注:本文中的Obj_AI_Minion类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论