public void fire() {
        switch (weapon){
            case 0: bullets.add(new ABullet(x + width/2-2, y+5));
                    ABoard.playSound(ABoard.Sbullet);
                    break;
            case 1: if(missiles.size()<ABoard.missileMax){
                    ABoard.playSound(ABoard.Smissile);
                    missiles.add(new AMissile(x + 22, y+10)); 
                    missiles.add(new AMissile(x - 1, y+10));
                    }
                    break;
            case 2: if(lasers.size() < 5){                       
                        ABoard.playSound(ABoard.Slaser);
                        lasers.add(new ALaser(x,y));
                        beams--;
                        if(beams == 0){
                            weapon = 0;
                            if(missile == true) weapon = 1;
                        }                       
                    }
                        
                    break;
    }
  //     
    }