|
@ -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) |
|
|
{ |
|
|
{ |
|
|