
var FBadGuy = new Class({
    Extends: BadGuy,
    initialize: function(){
        this.parent();
        this.HTMLIncarnation.setStyle('background-image',"url('img/fbadguy.png')");
        this.fCounter=0;
        this.changeInterval=150+Math.round(Math.random()*50);
    },
    updateHeroSprite: function(){
          if(this.fCounter>=this.changeInterval){
              if(this.life==0){
                  this.life=99999; // imortal
                  this.HTMLIncarnation.setStyle('background-image',"url('img/fireball.png')");
              }else{
                  this.life=0;
                  this.HTMLIncarnation.setStyle('background-image',"url('img/fbadguy.png')");
              }
              this.fCounter=0;
          }
          this.fCounter++;
      }
    });
