home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / Clusterz / Clusterz.swf / scripts / ENGINE / DISPLAY / EFFECTS / OEffects.as < prev   
Encoding:
Text File  |  2008-09-12  |  2.0 KB  |  72 lines

  1. package ENGINE.DISPLAY.EFFECTS
  2. {
  3.    import ENGINE.CORE.OCache;
  4.    import ENGINE.DISPLAY.OBM;
  5.    import ENGINE.DISPLAY.ODisplay;
  6.    
  7.    public class OEffects
  8.    {
  9.       
  10.       private static var iEffects:OCache = new OCache();
  11.        
  12.       
  13.       public function OEffects()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       public static function RegisterColor(param1:String, param2:String, param3:*) : void
  19.       {
  20.          var _loc4_:OEffect = null;
  21.          if((_loc4_ = iEffects.GetItem(param1)) == null)
  22.          {
  23.             return;
  24.          }
  25.          _loc4_.RegisterColor(param2,param3);
  26.       }
  27.       
  28.       public static function RegisterEffect(param1:String, param2:OEffect) : void
  29.       {
  30.          iEffects.SetItem(param1,param2);
  31.       }
  32.       
  33.       public static function Make(param1:Array) : OBM
  34.       {
  35.          var _loc2_:OEffect = null;
  36.          _loc2_ = iEffects.GetItem(param1[3]);
  37.          if(_loc2_ == null)
  38.          {
  39.             return null;
  40.          }
  41.          _loc2_.Init(param1[4],param1[5],param1[6]);
  42.          return _loc2_.Apply(param1[1],param1[2],param1[7],param1[8]);
  43.       }
  44.       
  45.       public static function GetEffect(param1:String) : OEffect
  46.       {
  47.          return iEffects.GetItem(param1);
  48.       }
  49.       
  50.       public static function RegisterFilter(param1:String, param2:String, param3:*) : void
  51.       {
  52.          var _loc4_:OEffect = null;
  53.          if((_loc4_ = iEffects.GetItem(param1)) == null)
  54.          {
  55.             return;
  56.          }
  57.          _loc4_.RegisterFilter(param2,param3);
  58.       }
  59.       
  60.       public static function Apply(param1:*, param2:Number, param3:String, param4:String, param5:String, param6:Number = 1, param7:Number = 0, param8:Number = 0) : OBM
  61.       {
  62.          var _loc9_:OEffect = null;
  63.          if((_loc9_ = iEffects.GetItem(param3)) == null)
  64.          {
  65.             return null;
  66.          }
  67.          _loc9_.Init(param4,param5,param6);
  68.          return _loc9_.Apply([ODisplay.SpriteLib,param1],param2,param7,param8);
  69.       }
  70.    }
  71. }
  72.