From 676d7f780aa2e269881a09f47b68a977d37d8310 Mon Sep 17 00:00:00 2001 From: 16nlyons Date: Tue, 31 May 2016 10:06:50 -0400 Subject: [PATCH] added timer to wave class plus mutator for gameMode field --- src/tanks/Tanks.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tanks/Tanks.java b/src/tanks/Tanks.java index c77fbe8..6e30a80 100644 --- a/src/tanks/Tanks.java +++ b/src/tanks/Tanks.java @@ -369,7 +369,6 @@ public class Tanks ActionListener s = new ActionListener() { - @Override public void actionPerformed(ActionEvent e) { @@ -379,7 +378,10 @@ public class Tanks }; spawn = new Timer(2000,s); spawn.start(); - + } + public void setGameMode(int newGameMode) + { + newGameMode=gameMode; } public void draw(Graphics g) {