public HeroTank(int x, int y,int type, int direction, int speed,Graphics g) {
super(x, y, type,direction, speed,g);
}
}
// 敌人坦克类
class EnemyTank extends Tank implements Runnable{
int times=0;
Vector<Shot> enemyshots=new Vector<Shot>();
Vector<EnemyTank> ets=new Vector<EnemyTank>();
public EnemyTank(int x, int y,int type, int direction, int speed,Graphics g) {
super(x, y,type, direction, speed,g);
}
public void setEts(Vector<EnemyTank> vv){
this.ets=vv;
}
// 控制敌人坦克不重叠
public boolean isTouchOtherEnmenyTank(){
boolean b=false;