Browse Source

added timer to wave class plus mutator for gameMode field

pull/1/head
16nlyons 8 years ago
parent
commit
676d7f780a
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/tanks/Tanks.java

+ 4
- 2
src/tanks/Tanks.java View File

@ -369,7 +369,6 @@ public class Tanks
ActionListener s = new ActionListener() ActionListener s = new ActionListener()
{ {
@Override @Override
public void actionPerformed(ActionEvent e) public void actionPerformed(ActionEvent e)
{ {
@ -379,7 +378,10 @@ public class Tanks
}; };
spawn = new Timer(2000,s); spawn = new Timer(2000,s);
spawn.start(); spawn.start();
}
public void setGameMode(int newGameMode)
{
newGameMode=gameMode;
} }
public void draw(Graphics g) public void draw(Graphics g)
{ {

Loading…
Cancel
Save