|
|
|
@ -23,7 +23,6 @@ public class CircleTank extends BaseTank{
|
|
|
|
|
public static final int WIDTH = ResourceManager.tankD.getWidth();
|
|
|
|
|
public static final int HEIGHT = ResourceManager.tankD.getHeight();
|
|
|
|
|
private Random random = new Random();
|
|
|
|
|
public Rectangle rect = new Rectangle();
|
|
|
|
|
FireStrategy fireStrategy;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -58,8 +57,8 @@ public class CircleTank extends BaseTank{
|
|
|
|
|
if(!living) tankFrame.enemyTanks.remove(this);
|
|
|
|
|
//根据方向绘制坦克
|
|
|
|
|
Color c = g.getColor();
|
|
|
|
|
g.setColor(this.group == Group.BAD ? Color.RED : Color.YELLOW);
|
|
|
|
|
g.fillOval(x,y, 40, 40);
|
|
|
|
|
g.setColor(this.group == Group.BAD ? Color.PINK : Color.YELLOW);
|
|
|
|
|
g.fillOval(x,y, 50, 50);
|
|
|
|
|
g.setColor(c);
|
|
|
|
|
move();
|
|
|
|
|
}
|
|
|
|
|