Remove @Override from Interface implementing methods in Player class.
This commit is contained in:
parent
46efd1e04e
commit
eb4bdc6ada
|
@ -75,7 +75,6 @@ public class Player extends ShootingEntity implements KeyboardListener {
|
||||||
super.remove();
|
super.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void keyPressed(KeyEvent e) {
|
public void keyPressed(KeyEvent e) {
|
||||||
//spontaneous fire happens here
|
//spontaneous fire happens here
|
||||||
if(e.getKeyCode() == KeyEvent.VK_SPACE) {
|
if(e.getKeyCode() == KeyEvent.VK_SPACE) {
|
||||||
|
@ -83,7 +82,6 @@ public class Player extends ShootingEntity implements KeyboardListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void keyReleased(KeyEvent e) {
|
public void keyReleased(KeyEvent e) {
|
||||||
//space up -> reset shot cooldown
|
//space up -> reset shot cooldown
|
||||||
if(e.getKeyCode() == KeyEvent.VK_SPACE) {
|
if(e.getKeyCode() == KeyEvent.VK_SPACE) {
|
||||||
|
@ -91,7 +89,7 @@ public class Player extends ShootingEntity implements KeyboardListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void keyTyped(KeyEvent e) {}
|
public void keyTyped(KeyEvent e) {}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue