Guest User

Untitled

a guest
Apr 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package
  2. {
  3.     import __AS3__.vec.*;
  4.  
  5.     public class Collection extends Object
  6.     {
  7.         public var screenshots:Vector.<Screenshot>;
  8.         private static var a1_1_1:Class = Collection_a1_1_1;
  9.         private static var a1_2_1:Class = Collection_a1_2_1;
  10.         private static var a1_2_2:Class = Collection_a1_2_2;
  11.         private static var a1_3_1:Class = Collection_a1_3_1;
  12.         private static var a1_3_2:Class = Collection_a1_3_2;
  13.         private static var a1_4_1:Class = Collection_a1_4_1;
  14.         private static var a1_5_1:Class = Collection_a1_5_1;
  15.         private static var a1_6_1:Class = Collection_a1_6_1;
  16.         private static var a2_1_1:Class = Collection_a2_1_1;
  17.         private static var a2_1_2:Class = Collection_a2_1_2;
  18.         private static var a2_2_1:Class = Collection_a2_2_1;
  19.         private static var a2_3_1:Class = Collection_a2_3_1;
  20.         private static var a2_4_1:Class = Collection_a2_4_1;
  21.         private static var a2_5_1:Class = Collection_a2_5_1;
  22.         private static var a2_5_2:Class = Collection_a2_5_2;
  23.         private static var a2_5_3:Class = Collection_a2_5_3;
  24.         private static var a2_6_1:Class = Collection_a2_6_1;
  25.         private static var a2_6_2:Class = Collection_a2_6_2;
  26.         private static var a2_7_1:Class = Collection_a2_7_1;
  27.         private static var a2_7_2:Class = Collection_a2_7_2;
  28.         private static var a2_8_1:Class = Collection_a2_8_1;
  29.         private static var a3_1_1:Class = Collection_a3_1_1;
  30.         private static var a3_1_2:Class = Collection_a3_1_2;
  31.         private static var a3_2_1:Class = Collection_a3_2_1;
  32.         private static var a3_3_1:Class = Collection_a3_3_1;
  33.         private static var a3_3_2:Class = Collection_a3_3_2;
  34.         private static var a3_4_1:Class = Collection_a3_4_1;
  35.         private static var a3_4_2:Class = Collection_a3_4_2;
  36.         private static var a3_5_1:Class = Collection_a3_5_1;
  37.         private static var a3_5_2:Class = Collection_a3_5_2;
  38.         private static var a3_6_1:Class = Collection_a3_6_1;
  39.         private static var a3_6_2:Class = Collection_a3_6_2;
  40.         private static var a3_7_1:Class = Collection_a3_7_1;
  41.         private static var a3_7_2:Class = Collection_a3_7_2;
  42.         private static var a3_8_1:Class = Collection_a3_8_1;
  43.         private static var a3_8_2:Class = Collection_a3_8_2;
  44.         private static var a3_8_3:Class = Collection_a3_8_3;
  45.         private static var a4_1_1:Class = Collection_a4_1_1;
  46.         private static var a4_2_1:Class = Collection_a4_2_1;
  47.         private static var a4_3_1:Class = Collection_a4_3_1;
  48.         private static var a4_4_1:Class = Collection_a4_4_1;
  49.         private static var a4_5_1:Class = Collection_a4_5_1;
  50.         private static var a4_6_1:Class = Collection_a4_6_1;
  51.         private static var a4_7_1:Class = Collection_a4_7_1;
  52.         private static var a4_8_1:Class = Collection_a4_8_1;
  53.         private static var a4_9_1:Class = Collection_a4_9_1;
  54.         private static var a4_9_2:Class = Collection_a4_9_2;
  55.         private static var a4_9_3:Class = Collection_a4_9_3;
  56.         private static var a5_1_1:Class = Collection_a5_1_1;
  57.         private static var a5_2_1:Class = Collection_a5_2_1;
  58.         private static var a5_3_1:Class = Collection_a5_3_1;
  59.         private static var a5_3_2:Class = Collection_a5_3_2;
  60.         private static var a5_4_1:Class = Collection_a5_4_1;
  61.         private static var a5_4_2:Class = Collection_a5_4_2;
  62.         private static var a5_5_1:Class = Collection_a5_5_1;
  63.         private static var a5_5_2:Class = Collection_a5_5_2;
  64.         private static var a5_6_1:Class = Collection_a5_6_1;
  65.         private static var a5_7_1:Class = Collection_a5_7_1;
  66.         private static var a5_8_1:Class = Collection_a5_8_1;
  67.         private static var a5_8_2:Class = Collection_a5_8_2;
  68.  
  69.         public function Collection() : void
  70.         {
  71.             this.screenshots = new Vector.<Screenshot>;
  72.             this.initScreenshots();
  73.             return;
  74.         }// end function
  75.  
  76.         private function initScreenshots() : void
  77.         {
  78.             this.screenshots.push(new Screenshot(new a1_1_1(), 1, 1, 1, "mp_coop_doors"));
  79.             this.screenshots.push(new Screenshot(new a1_2_1(), 1, 2, 1, "mp_coop_race_2"));
  80.             this.screenshots.push(new Screenshot(new a1_2_2(), 1, 2, 2, "mp_coop_race_2"));
  81.             this.screenshots.push(new Screenshot(new a1_3_1(), 1, 3, 1, "mp_coop_laser_2"));
  82.             this.screenshots.push(new Screenshot(new a1_3_2(), 1, 3, 2, "mp_coop_laser_2"));
  83.             this.screenshots.push(new Screenshot(new a1_4_1(), 1, 4, 1, "mp_coop_rat_maze"));
  84.             this.screenshots.push(new Screenshot(new a1_5_1(), 1, 5, 1, "mp_coop_laser_crusher"));
  85.             this.screenshots.push(new Screenshot(new a1_6_1(), 1, 6, 1, "mp_coop_teambts"));
  86.             this.screenshots.push(new Screenshot(new a2_1_1(), 2, 1, 1, "mp_coop_fling_3"));
  87.             this.screenshots.push(new Screenshot(new a2_1_2(), 2, 1, 2, "mp_coop_fling_3"));
  88.             this.screenshots.push(new Screenshot(new a2_2_1(), 2, 2, 1, "mp_coop_infinifling_train"));
  89.             this.screenshots.push(new Screenshot(new a2_3_1(), 2, 3, 1, "mp_coop_come_along"));
  90.             this.screenshots.push(new Screenshot(new a2_4_1(), 2, 4, 1, "mp_coop_fling_1"));
  91.             this.screenshots.push(new Screenshot(new a2_5_1(), 2, 5, 1, "mp_coop_catapult_1"));
  92.             this.screenshots.push(new Screenshot(new a2_5_2(), 2, 5, 2, "mp_coop_catapult_1"));
  93.             this.screenshots.push(new Screenshot(new a2_5_3(), 2, 5, 3, "mp_coop_catapult_1"));
  94.             this.screenshots.push(new Screenshot(new a2_6_1(), 2, 6, 1, "mp_coop_multifling_1"));
  95.             this.screenshots.push(new Screenshot(new a2_6_2(), 2, 6, 2, "mp_coop_multifling_1"));
  96.             this.screenshots.push(new Screenshot(new a2_7_1(), 2, 7, 1, "mp_coop_fling_crushers"));
  97.             this.screenshots.push(new Screenshot(new a2_7_2(), 2, 7, 2, "mp_coop_fling_crushers"));
  98.             this.screenshots.push(new Screenshot(new a2_8_1(), 2, 8, 1, "mp_coop_fan"));
  99.             this.screenshots.push(new Screenshot(new a3_1_1(), 3, 1, 1, "mp_coop_wall_intro"));
  100.             this.screenshots.push(new Screenshot(new a3_1_2(), 3, 1, 2, "mp_coop_wall_intro"));
  101.             this.screenshots.push(new Screenshot(new a3_2_1(), 3, 2, 1, "mp_coop_wall_2"));
  102.             this.screenshots.push(new Screenshot(new a3_3_1(), 3, 3, 1, "mp_coop_catapult_wall_intro"));
  103.             this.screenshots.push(new Screenshot(new a3_3_2(), 3, 3, 2, "mp_coop_catapult_wall_intro"));
  104.             this.screenshots.push(new Screenshot(new a3_4_1(), 3, 4, 1, "mp_coop_wall_block"));
  105.             this.screenshots.push(new Screenshot(new a3_4_2(), 3, 4, 2, "mp_coop_wall_block"));
  106.             this.screenshots.push(new Screenshot(new a3_5_1(), 3, 5, 1, "mp_coop_catapult_2"));
  107.             this.screenshots.push(new Screenshot(new a3_5_2(), 3, 5, 2, "mp_coop_catapult_2"));
  108.             this.screenshots.push(new Screenshot(new a3_6_1(), 3, 6, 1, "mp_coop_turret_walls"));
  109.             this.screenshots.push(new Screenshot(new a3_6_2(), 3, 6, 2, "mp_coop_turret_walls"));
  110.             this.screenshots.push(new Screenshot(new a3_7_1(), 3, 7, 1, "mp_coop_turret_ball"));
  111.             this.screenshots.push(new Screenshot(new a3_7_2(), 3, 7, 2, "mp_coop_turret_ball"));
  112.             this.screenshots.push(new Screenshot(new a3_8_1(), 3, 8, 1, "mp_coop_wall_5"));
  113.             this.screenshots.push(new Screenshot(new a3_8_2(), 3, 8, 2, "mp_coop_wall_5"));
  114.             this.screenshots.push(new Screenshot(new a3_8_3(), 3, 8, 3, "mp_coop_wall_5"));
  115.             this.screenshots.push(new Screenshot(new a4_1_1(), 4, 1, 1, "mp_coop_tbeam_redirect"));
  116.             this.screenshots.push(new Screenshot(new a4_2_1(), 4, 2, 1, "mp_coop_tbeam_drill"));
  117.             this.screenshots.push(new Screenshot(new a4_3_1(), 4, 3, 1, "mp_coop_tbeam_catch_grind_1"));
  118.             this.screenshots.push(new Screenshot(new a4_4_1(), 4, 4, 1, "mp_coop_tbeam_laser_1"));
  119.             this.screenshots.push(new Screenshot(new a4_5_1(), 4, 5, 1, "mp_coop_tbeam_polarity"));
  120.             this.screenshots.push(new Screenshot(new a4_6_1(), 4, 6, 1, "mp_coop_tbeam_polarity2"));
  121.             this.screenshots.push(new Screenshot(new a4_7_1(), 4, 7, 1, "mp_coop_tbeam_polarity3"));
  122.             this.screenshots.push(new Screenshot(new a4_8_1(), 4, 8, 1, "mp_coop_tbeam_maze"));
  123.             this.screenshots.push(new Screenshot(new a4_9_1(), 4, 9, 1, "mp_coop_tbeam_end"));
  124.             this.screenshots.push(new Screenshot(new a4_9_2(), 4, 9, 2, "mp_coop_tbeam_end"));
  125.             this.screenshots.push(new Screenshot(new a4_9_3(), 4, 9, 3, "mp_coop_tbeam_end"));
  126.             this.screenshots.push(new Screenshot(new a5_1_1(), 5, 1, 1, "mp_coop_paint_come_along"));
  127.             this.screenshots.push(new Screenshot(new a5_2_1(), 5, 2, 1, "mp_coop_paint_redirect"));
  128.             this.screenshots.push(new Screenshot(new a5_3_1(), 5, 3, 1, "mp_coop_paint_bridge"));
  129.             this.screenshots.push(new Screenshot(new a5_3_2(), 5, 3, 2, "mp_coop_paint_bridge"));
  130.             this.screenshots.push(new Screenshot(new a5_4_1(), 5, 4, 1, "mp_coop_paint_walljumps"));
  131.             this.screenshots.push(new Screenshot(new a5_4_2(), 5, 4, 2, "mp_coop_paint_walljumps"));
  132.             this.screenshots.push(new Screenshot(new a5_5_1(), 5, 5, 1, "mp_coop_paint_speed_fling"));
  133.             this.screenshots.push(new Screenshot(new a5_5_2(), 5, 5, 2, "mp_coop_paint_speed_fling"));
  134.             this.screenshots.push(new Screenshot(new a5_6_1(), 5, 6, 1, "mp_coop_paint_red_racer"));
  135.             this.screenshots.push(new Screenshot(new a5_7_1(), 5, 7, 1, "mp_coop_paint_speed_catch"));
  136.             this.screenshots.push(new Screenshot(new a5_8_1(), 5, 8, 1, "mp_coop_paint_longjump_intro"));
  137.             this.screenshots.push(new Screenshot(new a5_8_2(), 5, 8, 2, "mp_coop_paint_longjump_intro"));
  138.             return;
  139.         }// end function
  140.  
  141.         public function kill() : void
  142.         {
  143.             var _loc_1:int = 0;
  144.             while (_loc_1 < this.screenshots.length)
  145.             {
  146.                
  147.                 this.screenshots[_loc_1].kill();
  148.                 _loc_1++;
  149.             }
  150.             return;
  151.         }// end function
  152.  
  153.         public function getAreaNumber(param1:int, param2:int) : int
  154.         {
  155.             var _loc_3:int = 0;
  156.             var _loc_4:int = 0;
  157.             while (_loc_4 < this.screenshots.length)
  158.             {
  159.                
  160.                 if (this.screenshots[_loc_4].course == param1)
  161.                 {
  162.                     if (this.screenshots[_loc_4].chamber == param2)
  163.                     {
  164.                         _loc_3++;
  165.                     }
  166.                 }
  167.                 _loc_4++;
  168.             }
  169.             return _loc_3;
  170.         }// end function
  171.  
  172.         public function getChamberNumber(param1:int) : int
  173.         {
  174.             var _loc_2:* = new Vector.<int>;
  175.             var _loc_3:int = 0;
  176.             while (_loc_3 < this.screenshots.length)
  177.             {
  178.                
  179.                 if (this.screenshots[_loc_3].course == param1)
  180.                 {
  181.                     if (_loc_2.indexOf(this.screenshots[_loc_3].chamber) == -1)
  182.                     {
  183.                         _loc_2.push(this.screenshots[_loc_3].chamber);
  184.                     }
  185.                 }
  186.                 _loc_3++;
  187.             }
  188.             return _loc_2.length;
  189.         }// end function
  190.  
  191.         public function find(param1:int, param2:int, param3:int) : Screenshot
  192.         {
  193.             var _loc_4:int = 0;
  194.             while (_loc_4 < this.screenshots.length)
  195.             {
  196.                
  197.                 if (this.screenshots[_loc_4].course == param1)
  198.                 {
  199.                     if (this.screenshots[_loc_4].chamber == param2)
  200.                     {
  201.                         if (this.screenshots[_loc_4].area == param3)
  202.                         {
  203.                             return this.screenshots[_loc_4];
  204.                         }
  205.                     }
  206.                 }
  207.                 _loc_4++;
  208.             }
  209.             return null;
  210.         }// end function
  211.  
  212.         public function nextArea(param1:Screenshot) : Screenshot
  213.         {
  214.             var _loc_2:Screenshot = null;
  215.             _loc_2 = this.find(param1.course, param1.chamber, (param1.area + 1));
  216.             if (_loc_2)
  217.             {
  218.                 return _loc_2;
  219.             }
  220.             _loc_2 = this.find(param1.course, (param1.chamber + 1), 1);
  221.             if (_loc_2)
  222.             {
  223.                 return _loc_2;
  224.             }
  225.             _loc_2 = this.find((param1.course + 1), 1, 1);
  226.             if (_loc_2)
  227.             {
  228.                 return _loc_2;
  229.             }
  230.             return this.find(1, 1, 1);
  231.         }// end function
  232.  
  233.         public function previousArea(param1:Screenshot) : Screenshot
  234.         {
  235.             var _loc_2:Screenshot = null;
  236.             var _loc_3:int = 0;
  237.             _loc_2 = this.find(param1.course, param1.chamber, (param1.area - 1));
  238.             if (_loc_2)
  239.             {
  240.                 return _loc_2;
  241.             }
  242.             _loc_2 = this.find(param1.course, (param1.chamber - 1), this.getAreaNumber(param1.course, (param1.chamber - 1)));
  243.             if (_loc_2)
  244.             {
  245.                 return _loc_2;
  246.             }
  247.             _loc_3 = this.getChamberNumber((param1.course - 1));
  248.             _loc_2 = this.find((param1.course - 1), _loc_3, this.getAreaNumber((param1.course - 1), _loc_3));
  249.             if (_loc_2)
  250.             {
  251.                 return _loc_2;
  252.             }
  253.             return this.find(1, 1, 1);
  254.         }// end function
  255.  
  256.         public function nextChamber(param1:Screenshot) : Screenshot
  257.         {
  258.             var _loc_2:Screenshot = null;
  259.             _loc_2 = this.find(param1.course, (param1.chamber + 1), 1);
  260.             if (_loc_2)
  261.             {
  262.                 return _loc_2;
  263.             }
  264.             _loc_2 = this.find(param1.course, 1, 1);
  265.             return _loc_2;
  266.         }// end function
  267.  
  268.         public function previousChamber(param1:Screenshot) : Screenshot
  269.         {
  270.             var _loc_2:Screenshot = null;
  271.             var _loc_3:int = 0;
  272.             _loc_2 = this.find(param1.course, (param1.chamber - 1), 1);
  273.             if (_loc_2)
  274.             {
  275.                 return _loc_2;
  276.             }
  277.             _loc_2 = this.find(param1.course, this.getChamberNumber(param1.course), 1);
  278.             if (_loc_2)
  279.             {
  280.                 return _loc_2;
  281.             }
  282.             _loc_2 = this.lastCourse();
  283.             return this.find(_loc_2.course, this.getChamberNumber(_loc_2.course), 1);
  284.         }// end function
  285.  
  286.         public function nextCourse(param1:Screenshot) : Screenshot
  287.         {
  288.             var _loc_2:Screenshot = null;
  289.             _loc_2 = this.find((param1.course + 1), 1, 1);
  290.             if (_loc_2)
  291.             {
  292.                 return _loc_2;
  293.             }
  294.             return this.find(1, 1, 1);
  295.         }// end function
  296.  
  297.         public function previousCourse(param1:Screenshot) : Screenshot
  298.         {
  299.             var _loc_2:Screenshot = null;
  300.             _loc_2 = this.find((param1.course - 1), 1, 1);
  301.             if (_loc_2)
  302.             {
  303.                 return _loc_2;
  304.             }
  305.             return this.lastCourse();
  306.         }// end function
  307.  
  308.         private function lastCourse() : Screenshot
  309.         {
  310.             var _loc_1:int = 0;
  311.             var _loc_2:int = 0;
  312.             while (_loc_2 < this.screenshots.length)
  313.             {
  314.                
  315.                 if (this.screenshots[_loc_2].course > _loc_1)
  316.                 {
  317.                     _loc_1 = this.screenshots[_loc_2].course;
  318.                 }
  319.                 _loc_2++;
  320.             }
  321.             return this.find(_loc_1, 1, 1);
  322.         }// end function
  323.  
  324.     }
  325. }
Add Comment
Please, Sign In to add comment