/** * Returns an array of all shapes currently in the game. * * @return an array of all shapes currently in the game. */ public static Shape[] getAllShapes() { return allShapes.toArray(new Shape[0]); }
static Shape[] getSolids() { return solidShapes.toArray(new Shape[0]); }