添加Override

dp
kn5886348135 3 years ago
parent f33e0b52d6
commit a1eee7427f

@ -49,6 +49,7 @@ public class RectBullet extends BaseBullet {
this.group = group;
}
@Override
public void paint(Graphics g) {
if (!living) {
tf.bullets.remove(this);

@ -133,7 +133,7 @@ public class RectTank extends BaseTank{
if (this.group == Group.BAD && random.nextInt(100) > 95)
this.fire();
if (this.group == Group.BAD && random.nextInt(100) > 95)
if (this.group == Group.GOOD && random.nextInt(100) > 95)
randomDir();
boundsCheck();

Loading…
Cancel
Save