private IEnumerable <InteractiveTile> GetAdjacentInteractiveTiles(Unit unit) { return(MathUtils.GetAdjacentPoints(unit.GridPosition) .Where(p => !_map.IsOccupied(p)) .Select(p => _map.GetTileByPosition(p)) .Where(tile => tile != null)); }
public InteractiveTile GetInteractiveTileByLocation(Vector2 position) { return(_map.GetTileByPosition(position)); }