home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / org / cove / ape / _gf356.as < prev    next >
Encoding:
Text File  |  2008-09-26  |  2.0 KB  |  80 lines

  1. package Code.org.cove.ape
  2. {
  3.    public class _gf356 extends _um83
  4.    {
  5.        
  6.       
  7.       private var delta:_be271;
  8.       
  9.       public function _gf356()
  10.       {
  11.          super();
  12.          delta = new _be271();
  13.       }
  14.       
  15.       public function _aw164(param1:Number, param2:_be271) : void
  16.       {
  17.          var _loc3_:_hu144 = null;
  18.          var _loc4_:Array = null;
  19.          var _loc5_:int = 0;
  20.          var _loc6_:int = 0;
  21.          var _loc7_:Number = NaN;
  22.          var _loc8_:Number = NaN;
  23.          _loc5_ = int((_loc4_ = _id359).length);
  24.          _loc6_ = 0;
  25.          while(_loc6_ < _loc5_)
  26.          {
  27.             _loc3_ = _loc4_[_loc6_];
  28.             _loc7_ = _loc3_.center.distance(param2);
  29.             _loc8_ = _uv357(param2,_loc3_.center) + param1;
  30.             _loc3_._ej28 = Math.cos(_loc8_) * _loc7_ + param2.x;
  31.             _loc3_._th99 = Math.sin(_loc8_) * _loc7_ + param2.y;
  32.             _loc6_++;
  33.          }
  34.       }
  35.       
  36.       public function _sh87(param1:Number, param2:_be271) : void
  37.       {
  38.          var _loc3_:Number = NaN;
  39.          _loc3_ = param1 * _ex374.PI_OVER_ONE_EIGHTY;
  40.          _aw164(_loc3_,param2);
  41.       }
  42.       
  43.       protected function _uv357(param1:_be271, param2:_be271) : Number
  44.       {
  45.          delta._rk329(param2.x - param1.x,param2.y - param1.y);
  46.          return Math.atan2(delta.y,delta.x);
  47.       }
  48.       
  49.       public function update() : void
  50.       {
  51.       }
  52.       
  53.       public function set fixed(param1:Boolean) : void
  54.       {
  55.          var _loc2_:int = 0;
  56.          _loc2_ = 0;
  57.          while(_loc2_ < _id359.length)
  58.          {
  59.             _id359[_loc2_].fixed = param1;
  60.             _loc2_++;
  61.          }
  62.       }
  63.       
  64.       public function get fixed() : Boolean
  65.       {
  66.          var _loc1_:int = 0;
  67.          _loc1_ = 0;
  68.          while(_loc1_ < _id359.length)
  69.          {
  70.             if(!_id359[_loc1_].fixed)
  71.             {
  72.                return false;
  73.             }
  74.             _loc1_++;
  75.          }
  76.          return true;
  77.       }
  78.    }
  79. }
  80.