diff --git a/GameArena.java b/GameArena.java index 8d74c66..337448f 100644 --- a/GameArena.java +++ b/GameArena.java @@ -458,6 +458,15 @@ public void removeText(Text t) this.removeObject(t); } + /** + * Removes every object that has ever been added to the GameArena. Nothing + * should appear on the GameArena window after this has executed. + */ + public void clearGameArena() { + things.clear(); + } + + /** * Pause for a 1/50 of a second. * This method causes your program to delay for 1/50th of a second. You'll find this useful if you're trying to animate your application.