home *** CD-ROM | disk | FTP | other *** search
- package ENGINE.DISPLAY.EFFECTS
- {
- import ENGINE.CORE.OCache;
- import ENGINE.DISPLAY.OBM;
- import ENGINE.DISPLAY.ODisplay;
-
- public class OEffects
- {
-
- private static var iEffects:OCache = new OCache();
-
-
- public function OEffects()
- {
- super();
- }
-
- public static function RegisterColor(param1:String, param2:String, param3:*) : void
- {
- var _loc4_:OEffect = null;
- if((_loc4_ = iEffects.GetItem(param1)) == null)
- {
- return;
- }
- _loc4_.RegisterColor(param2,param3);
- }
-
- public static function RegisterEffect(param1:String, param2:OEffect) : void
- {
- iEffects.SetItem(param1,param2);
- }
-
- public static function Make(param1:Array) : OBM
- {
- var _loc2_:OEffect = null;
- _loc2_ = iEffects.GetItem(param1[3]);
- if(_loc2_ == null)
- {
- return null;
- }
- _loc2_.Init(param1[4],param1[5],param1[6]);
- return _loc2_.Apply(param1[1],param1[2],param1[7],param1[8]);
- }
-
- public static function GetEffect(param1:String) : OEffect
- {
- return iEffects.GetItem(param1);
- }
-
- public static function RegisterFilter(param1:String, param2:String, param3:*) : void
- {
- var _loc4_:OEffect = null;
- if((_loc4_ = iEffects.GetItem(param1)) == null)
- {
- return;
- }
- _loc4_.RegisterFilter(param2,param3);
- }
-
- public static function Apply(param1:*, param2:Number, param3:String, param4:String, param5:String, param6:Number = 1, param7:Number = 0, param8:Number = 0) : OBM
- {
- var _loc9_:OEffect = null;
- if((_loc9_ = iEffects.GetItem(param3)) == null)
- {
- return null;
- }
- _loc9_.Init(param4,param5,param6);
- return _loc9_.Apply([ODisplay.SpriteLib,param1],param2,param7,param8);
- }
- }
- }
-