public bool HasGlobalVision(Vector2 coords) { Vector2 vector = TranslateToNavGrid(coords); NavigationGridCell cell = GetCell((short)vector.X, (short)vector.Y); return(cell != null && cell.HasFlag(NavigationGridCellFlags.HAS_GLOBAL_VISION)); }
public bool IsSeeThrough(Vector2 coords) { Vector2 vector = TranslateToNavGrid(new Vector2 { X = coords.X, Y = coords.Y }); NavigationGridCell cell = GetCell((short)vector.X, (short)vector.Y); return(cell != null && cell.HasFlag(NavigationGridCellFlags.SEE_THROUGH)); }
public bool IsBrush(Vector2 coords) { Vector2 vector = TranslateToNavGrid(new Vector2 { X = coords.X, Y = coords.Y }); NavigationGridCell cell = GetCell((short)vector.X, (short)vector.Y); return(cell != null && cell.HasFlag(NavigationGridCellFlags.HAS_GRASS)); }
public bool IsWalkable(Vector2 coords) { Vector2 vector = TranslateToNavGrid(new Vector2 { X = coords.X, Y = coords.Y }); NavigationGridCell cell = GetCell((short)vector.X, (short)vector.Y); return(cell != null && !cell.HasFlag(NavigationGridCellFlags.NOT_PASSABLE)); }