Adds the getTotalChildren function to the TileGrid class.
@@ -610,6 +610,20 @@ public final class TileGrid {
return resultTiles;
}
+ /**
+ * Retrieves the total number of child grids.
+ *
+ * @return
+ * The total number of child grids.
+ */
+ public int getTotalChildren() {
+ childLock.readLock().lock();
+ final int total = childGrids.size();
+ childLock.readLock().unlock();
+
+ return total;
+ }
+
/**
* Retrieves the x-axis coordinate of the grid within it's parent.
*
