home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / germ_roundup.swf / scripts / __Packages / Invulnerable.as < prev    next >
Encoding:
Text File  |  2007-03-20  |  657 b   |  31 lines

  1. class Invulnerable extends Germ
  2. {
  3.    function Invulnerable()
  4.    {
  5.       super();
  6.    }
  7.    function update(nElapsed)
  8.    {
  9.       this.render();
  10.    }
  11.    function react(oPlayer)
  12.    {
  13.       var _loc1_ = this;
  14.       _global.oSound.playSnd("pickup");
  15.       oPlayer.invulnerable();
  16.       switch(_loc1_.nSegment)
  17.       {
  18.          case 0:
  19.             _loc1_.oData.sPowerupBot = null;
  20.             break;
  21.          case 1:
  22.             _loc1_.oData.sPowerupMid = null;
  23.             break;
  24.          case 2:
  25.             _loc1_.oData.sPowerupTop = null;
  26.       }
  27.       delete _loc1_.mcBuild.mcGerm;
  28.       _loc1_.handler.removeClip(_loc1_);
  29.    }
  30. }
  31.