public final class GridUtil
extends java.lang.Object
| Constructor and Description | 
|---|
| GridUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <K> java.util.List<K> | getAllElementsFromGrid(Grid<K> grid)Gets all elements in a grid | 
| static <K,T extends BoardElement> | getMatchingElements(K type,
                   Grid<T> grid)Finds all tiles/walls with a certain type | 
public static <K> java.util.List<K> getAllElementsFromGrid(Grid<K> grid)
K - The type of the elements int the gridgrid - The grid to get elements frompublic static <K,T extends BoardElement> java.util.List<BoardElementContainer<T>> getMatchingElements(K type, Grid<T> grid)
K - Type of the type to look forT - Type of the gridtype - The type of tile/wall to look forgrid - The grid to look through