public DScanItemViewModel(IDScanItem item) { Item = item; }
private bool IsTargetItemNotOnGrid(IDScanItem arg) { return(!arg.Distance.HasValue && (POTENTIAL_TARGET_TYPES.Contains(arg.Type) || _types.IsShipTypeName(arg.Type))); }
public static bool IsShip(this IDScanItem arg) { return(ShipTypes.Instance.IsShipTypeName(arg.Type)); }
public bool Equals(IDScanItem other) { return(string.Equals(Type, other.Type) && string.Equals(Name, other.Name)); }
public static bool IsForceField(this IDScanItem arg) { return(arg.Type == "Force Field" || arg.Type == "Kraftfeld"); }
public static bool IsMoon(this IDScanItem arg) { return(arg.Type == "Moon" || arg.Type == "Mond"); }
public static bool IsTower(this IDScanItem x) { return(x.Type.Contains("Control Tower") || x.Type.Contains("Kontrollturm")); }
public static bool IsStargate(this IDScanItem x) { return(x.Type.StartsWith("Stargate") || x.Type.StartsWith("Sternentor"));//TODO german? }
private static bool IsIncludedItem(IDScanItem arg) { return(!EXCLUDED_TYPES.Contains(arg.Type) && !arg.Type.StartsWith("Planet (") && !arg.Type.EndsWith("Wreck") && !arg.Type.EndsWith("Wrack")); }