本文整理汇总了C#中Point3D.GetMobilesInRange方法的典型用法代码示例。如果您正苦于以下问题:C# Point3D.GetMobilesInRange方法的具体用法?C# Point3D.GetMobilesInRange怎么用?C# Point3D.GetMobilesInRange使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Point3D
的用法示例。
在下文中一共展示了Point3D.GetMobilesInRange方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AcquireTargets
public List<Mobile> AcquireTargets(BaseCreature pet, Point3D p, int range)
{
return
p.GetMobilesInRange(pet.Map, range)
.Where(
m =>
m != null && m != pet && m.Alive && m is BaseCreature && !m.IsControlled())
.ToList();
}
示例2: AcquireTargets
public List<Mobile> AcquireTargets(Point3D p, int range)
{
return
p.GetMobilesInRange(Map, range)
.Where(
m =>
m != null && !m.Deleted && m.Alive && !m.Hidden &&
(m.Player || (m is BaseCreature && ((BaseCreature)m).GetMaster() is PlayerMobile && !m.IsDeadBondedPet)))
.ToList();
}
示例3: AcquireTargets
public virtual IEnumerable<Mobile> AcquireTargets(Point3D p, int range)
{
return
p.GetMobilesInRange(Map, range)
.Where(
m =>
m != null && !m.Deleted && m != this && m.AccessLevel <= AccessLevel && m.Alive &&
(m.Player || Combatant == m ||
(m is BaseCreature && ((BaseCreature) m).GetMaster() is PlayerMobile)));
}
示例4: AcquireAllTargets
public List<Mobile> AcquireAllTargets(Point3D p, int range)
{
return
p.GetMobilesInRange(Map, range)
.Where(
m =>
m != null && !m.Deleted && m != this && m.Alive && m is ZombieAvatar)
.ToList();
}
示例5: AcquireAllTargets
public List<Mobile> AcquireAllTargets(Point3D p, int range)
{
return
p.GetMobilesInRange(Map, range)
.Where(
m =>
m != null && !m.Deleted && m.AccessLevel == AccessLevel.Player && m != this && m.Alive && CanBeHarmful(m, false, true) && (m.Party == null || m.Party != Party) &&
(m.Player || (m is BaseCreature && ((BaseCreature)m).GetMaster() is PlayerMobile)))
.ToList();
}
示例6: AcquireTargets
public List<Mobile> AcquireTargets(Point3D p, int range)
{
return
p.GetMobilesInRange(Map, range)
.Where(
m =>
m != null && !m.Deleted && m.AccessLevel == AccessLevel.Player && m != this && m.Alive && CanBeHarmful(m, false, true) && (m.Party == null || m.Party != Party) &&
(m.Player))
.ToList();
}