コード例 #1
0
ファイル: Shooter.cs プロジェクト: MK4H/MHUrho
 /// <summary>
 /// Checks if <paramref name="target"/> can be shot at, mainly if the target is in range.
 /// </summary>
 /// <param name="target">The target to check.</param>
 /// <returns>True of target can be shot at, false otherwise.</returns>
 public bool CanShootAt(IRangeTarget target)
 {
     return(projectileType.IsInRange(Entity.Position, target));
 }