Example #1
0
 /**
  * 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]);
 }
Example #2
0
 static Shape[] getSolids() {
   return solidShapes.toArray(new Shape[0]);
 }