Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- import __AS3__.vec.*;
- public class Collection extends Object
- {
- public var screenshots:Vector.<Screenshot>;
- private static var a1_1_1:Class = Collection_a1_1_1;
- private static var a1_2_1:Class = Collection_a1_2_1;
- private static var a1_2_2:Class = Collection_a1_2_2;
- private static var a1_3_1:Class = Collection_a1_3_1;
- private static var a1_3_2:Class = Collection_a1_3_2;
- private static var a1_4_1:Class = Collection_a1_4_1;
- private static var a1_5_1:Class = Collection_a1_5_1;
- private static var a1_6_1:Class = Collection_a1_6_1;
- private static var a2_1_1:Class = Collection_a2_1_1;
- private static var a2_1_2:Class = Collection_a2_1_2;
- private static var a2_2_1:Class = Collection_a2_2_1;
- private static var a2_3_1:Class = Collection_a2_3_1;
- private static var a2_4_1:Class = Collection_a2_4_1;
- private static var a2_5_1:Class = Collection_a2_5_1;
- private static var a2_5_2:Class = Collection_a2_5_2;
- private static var a2_5_3:Class = Collection_a2_5_3;
- private static var a2_6_1:Class = Collection_a2_6_1;
- private static var a2_6_2:Class = Collection_a2_6_2;
- private static var a2_7_1:Class = Collection_a2_7_1;
- private static var a2_7_2:Class = Collection_a2_7_2;
- private static var a2_8_1:Class = Collection_a2_8_1;
- private static var a3_1_1:Class = Collection_a3_1_1;
- private static var a3_1_2:Class = Collection_a3_1_2;
- private static var a3_2_1:Class = Collection_a3_2_1;
- private static var a3_3_1:Class = Collection_a3_3_1;
- private static var a3_3_2:Class = Collection_a3_3_2;
- private static var a3_4_1:Class = Collection_a3_4_1;
- private static var a3_4_2:Class = Collection_a3_4_2;
- private static var a3_5_1:Class = Collection_a3_5_1;
- private static var a3_5_2:Class = Collection_a3_5_2;
- private static var a3_6_1:Class = Collection_a3_6_1;
- private static var a3_6_2:Class = Collection_a3_6_2;
- private static var a3_7_1:Class = Collection_a3_7_1;
- private static var a3_7_2:Class = Collection_a3_7_2;
- private static var a3_8_1:Class = Collection_a3_8_1;
- private static var a3_8_2:Class = Collection_a3_8_2;
- private static var a3_8_3:Class = Collection_a3_8_3;
- private static var a4_1_1:Class = Collection_a4_1_1;
- private static var a4_2_1:Class = Collection_a4_2_1;
- private static var a4_3_1:Class = Collection_a4_3_1;
- private static var a4_4_1:Class = Collection_a4_4_1;
- private static var a4_5_1:Class = Collection_a4_5_1;
- private static var a4_6_1:Class = Collection_a4_6_1;
- private static var a4_7_1:Class = Collection_a4_7_1;
- private static var a4_8_1:Class = Collection_a4_8_1;
- private static var a4_9_1:Class = Collection_a4_9_1;
- private static var a4_9_2:Class = Collection_a4_9_2;
- private static var a4_9_3:Class = Collection_a4_9_3;
- private static var a5_1_1:Class = Collection_a5_1_1;
- private static var a5_2_1:Class = Collection_a5_2_1;
- private static var a5_3_1:Class = Collection_a5_3_1;
- private static var a5_3_2:Class = Collection_a5_3_2;
- private static var a5_4_1:Class = Collection_a5_4_1;
- private static var a5_4_2:Class = Collection_a5_4_2;
- private static var a5_5_1:Class = Collection_a5_5_1;
- private static var a5_5_2:Class = Collection_a5_5_2;
- private static var a5_6_1:Class = Collection_a5_6_1;
- private static var a5_7_1:Class = Collection_a5_7_1;
- private static var a5_8_1:Class = Collection_a5_8_1;
- private static var a5_8_2:Class = Collection_a5_8_2;
- public function Collection() : void
- {
- this.screenshots = new Vector.<Screenshot>;
- this.initScreenshots();
- return;
- }// end function
- private function initScreenshots() : void
- {
- this.screenshots.push(new Screenshot(new a1_1_1(), 1, 1, 1, "mp_coop_doors"));
- this.screenshots.push(new Screenshot(new a1_2_1(), 1, 2, 1, "mp_coop_race_2"));
- this.screenshots.push(new Screenshot(new a1_2_2(), 1, 2, 2, "mp_coop_race_2"));
- this.screenshots.push(new Screenshot(new a1_3_1(), 1, 3, 1, "mp_coop_laser_2"));
- this.screenshots.push(new Screenshot(new a1_3_2(), 1, 3, 2, "mp_coop_laser_2"));
- this.screenshots.push(new Screenshot(new a1_4_1(), 1, 4, 1, "mp_coop_rat_maze"));
- this.screenshots.push(new Screenshot(new a1_5_1(), 1, 5, 1, "mp_coop_laser_crusher"));
- this.screenshots.push(new Screenshot(new a1_6_1(), 1, 6, 1, "mp_coop_teambts"));
- this.screenshots.push(new Screenshot(new a2_1_1(), 2, 1, 1, "mp_coop_fling_3"));
- this.screenshots.push(new Screenshot(new a2_1_2(), 2, 1, 2, "mp_coop_fling_3"));
- this.screenshots.push(new Screenshot(new a2_2_1(), 2, 2, 1, "mp_coop_infinifling_train"));
- this.screenshots.push(new Screenshot(new a2_3_1(), 2, 3, 1, "mp_coop_come_along"));
- this.screenshots.push(new Screenshot(new a2_4_1(), 2, 4, 1, "mp_coop_fling_1"));
- this.screenshots.push(new Screenshot(new a2_5_1(), 2, 5, 1, "mp_coop_catapult_1"));
- this.screenshots.push(new Screenshot(new a2_5_2(), 2, 5, 2, "mp_coop_catapult_1"));
- this.screenshots.push(new Screenshot(new a2_5_3(), 2, 5, 3, "mp_coop_catapult_1"));
- this.screenshots.push(new Screenshot(new a2_6_1(), 2, 6, 1, "mp_coop_multifling_1"));
- this.screenshots.push(new Screenshot(new a2_6_2(), 2, 6, 2, "mp_coop_multifling_1"));
- this.screenshots.push(new Screenshot(new a2_7_1(), 2, 7, 1, "mp_coop_fling_crushers"));
- this.screenshots.push(new Screenshot(new a2_7_2(), 2, 7, 2, "mp_coop_fling_crushers"));
- this.screenshots.push(new Screenshot(new a2_8_1(), 2, 8, 1, "mp_coop_fan"));
- this.screenshots.push(new Screenshot(new a3_1_1(), 3, 1, 1, "mp_coop_wall_intro"));
- this.screenshots.push(new Screenshot(new a3_1_2(), 3, 1, 2, "mp_coop_wall_intro"));
- this.screenshots.push(new Screenshot(new a3_2_1(), 3, 2, 1, "mp_coop_wall_2"));
- this.screenshots.push(new Screenshot(new a3_3_1(), 3, 3, 1, "mp_coop_catapult_wall_intro"));
- this.screenshots.push(new Screenshot(new a3_3_2(), 3, 3, 2, "mp_coop_catapult_wall_intro"));
- this.screenshots.push(new Screenshot(new a3_4_1(), 3, 4, 1, "mp_coop_wall_block"));
- this.screenshots.push(new Screenshot(new a3_4_2(), 3, 4, 2, "mp_coop_wall_block"));
- this.screenshots.push(new Screenshot(new a3_5_1(), 3, 5, 1, "mp_coop_catapult_2"));
- this.screenshots.push(new Screenshot(new a3_5_2(), 3, 5, 2, "mp_coop_catapult_2"));
- this.screenshots.push(new Screenshot(new a3_6_1(), 3, 6, 1, "mp_coop_turret_walls"));
- this.screenshots.push(new Screenshot(new a3_6_2(), 3, 6, 2, "mp_coop_turret_walls"));
- this.screenshots.push(new Screenshot(new a3_7_1(), 3, 7, 1, "mp_coop_turret_ball"));
- this.screenshots.push(new Screenshot(new a3_7_2(), 3, 7, 2, "mp_coop_turret_ball"));
- this.screenshots.push(new Screenshot(new a3_8_1(), 3, 8, 1, "mp_coop_wall_5"));
- this.screenshots.push(new Screenshot(new a3_8_2(), 3, 8, 2, "mp_coop_wall_5"));
- this.screenshots.push(new Screenshot(new a3_8_3(), 3, 8, 3, "mp_coop_wall_5"));
- this.screenshots.push(new Screenshot(new a4_1_1(), 4, 1, 1, "mp_coop_tbeam_redirect"));
- this.screenshots.push(new Screenshot(new a4_2_1(), 4, 2, 1, "mp_coop_tbeam_drill"));
- this.screenshots.push(new Screenshot(new a4_3_1(), 4, 3, 1, "mp_coop_tbeam_catch_grind_1"));
- this.screenshots.push(new Screenshot(new a4_4_1(), 4, 4, 1, "mp_coop_tbeam_laser_1"));
- this.screenshots.push(new Screenshot(new a4_5_1(), 4, 5, 1, "mp_coop_tbeam_polarity"));
- this.screenshots.push(new Screenshot(new a4_6_1(), 4, 6, 1, "mp_coop_tbeam_polarity2"));
- this.screenshots.push(new Screenshot(new a4_7_1(), 4, 7, 1, "mp_coop_tbeam_polarity3"));
- this.screenshots.push(new Screenshot(new a4_8_1(), 4, 8, 1, "mp_coop_tbeam_maze"));
- this.screenshots.push(new Screenshot(new a4_9_1(), 4, 9, 1, "mp_coop_tbeam_end"));
- this.screenshots.push(new Screenshot(new a4_9_2(), 4, 9, 2, "mp_coop_tbeam_end"));
- this.screenshots.push(new Screenshot(new a4_9_3(), 4, 9, 3, "mp_coop_tbeam_end"));
- this.screenshots.push(new Screenshot(new a5_1_1(), 5, 1, 1, "mp_coop_paint_come_along"));
- this.screenshots.push(new Screenshot(new a5_2_1(), 5, 2, 1, "mp_coop_paint_redirect"));
- this.screenshots.push(new Screenshot(new a5_3_1(), 5, 3, 1, "mp_coop_paint_bridge"));
- this.screenshots.push(new Screenshot(new a5_3_2(), 5, 3, 2, "mp_coop_paint_bridge"));
- this.screenshots.push(new Screenshot(new a5_4_1(), 5, 4, 1, "mp_coop_paint_walljumps"));
- this.screenshots.push(new Screenshot(new a5_4_2(), 5, 4, 2, "mp_coop_paint_walljumps"));
- this.screenshots.push(new Screenshot(new a5_5_1(), 5, 5, 1, "mp_coop_paint_speed_fling"));
- this.screenshots.push(new Screenshot(new a5_5_2(), 5, 5, 2, "mp_coop_paint_speed_fling"));
- this.screenshots.push(new Screenshot(new a5_6_1(), 5, 6, 1, "mp_coop_paint_red_racer"));
- this.screenshots.push(new Screenshot(new a5_7_1(), 5, 7, 1, "mp_coop_paint_speed_catch"));
- this.screenshots.push(new Screenshot(new a5_8_1(), 5, 8, 1, "mp_coop_paint_longjump_intro"));
- this.screenshots.push(new Screenshot(new a5_8_2(), 5, 8, 2, "mp_coop_paint_longjump_intro"));
- return;
- }// end function
- public function kill() : void
- {
- var _loc_1:int = 0;
- while (_loc_1 < this.screenshots.length)
- {
- this.screenshots[_loc_1].kill();
- _loc_1++;
- }
- return;
- }// end function
- public function getAreaNumber(param1:int, param2:int) : int
- {
- var _loc_3:int = 0;
- var _loc_4:int = 0;
- while (_loc_4 < this.screenshots.length)
- {
- if (this.screenshots[_loc_4].course == param1)
- {
- if (this.screenshots[_loc_4].chamber == param2)
- {
- _loc_3++;
- }
- }
- _loc_4++;
- }
- return _loc_3;
- }// end function
- public function getChamberNumber(param1:int) : int
- {
- var _loc_2:* = new Vector.<int>;
- var _loc_3:int = 0;
- while (_loc_3 < this.screenshots.length)
- {
- if (this.screenshots[_loc_3].course == param1)
- {
- if (_loc_2.indexOf(this.screenshots[_loc_3].chamber) == -1)
- {
- _loc_2.push(this.screenshots[_loc_3].chamber);
- }
- }
- _loc_3++;
- }
- return _loc_2.length;
- }// end function
- public function find(param1:int, param2:int, param3:int) : Screenshot
- {
- var _loc_4:int = 0;
- while (_loc_4 < this.screenshots.length)
- {
- if (this.screenshots[_loc_4].course == param1)
- {
- if (this.screenshots[_loc_4].chamber == param2)
- {
- if (this.screenshots[_loc_4].area == param3)
- {
- return this.screenshots[_loc_4];
- }
- }
- }
- _loc_4++;
- }
- return null;
- }// end function
- public function nextArea(param1:Screenshot) : Screenshot
- {
- var _loc_2:Screenshot = null;
- _loc_2 = this.find(param1.course, param1.chamber, (param1.area + 1));
- if (_loc_2)
- {
- return _loc_2;
- }
- _loc_2 = this.find(param1.course, (param1.chamber + 1), 1);
- if (_loc_2)
- {
- return _loc_2;
- }
- _loc_2 = this.find((param1.course + 1), 1, 1);
- if (_loc_2)
- {
- return _loc_2;
- }
- return this.find(1, 1, 1);
- }// end function
- public function previousArea(param1:Screenshot) : Screenshot
- {
- var _loc_2:Screenshot = null;
- var _loc_3:int = 0;
- _loc_2 = this.find(param1.course, param1.chamber, (param1.area - 1));
- if (_loc_2)
- {
- return _loc_2;
- }
- _loc_2 = this.find(param1.course, (param1.chamber - 1), this.getAreaNumber(param1.course, (param1.chamber - 1)));
- if (_loc_2)
- {
- return _loc_2;
- }
- _loc_3 = this.getChamberNumber((param1.course - 1));
- _loc_2 = this.find((param1.course - 1), _loc_3, this.getAreaNumber((param1.course - 1), _loc_3));
- if (_loc_2)
- {
- return _loc_2;
- }
- return this.find(1, 1, 1);
- }// end function
- public function nextChamber(param1:Screenshot) : Screenshot
- {
- var _loc_2:Screenshot = null;
- _loc_2 = this.find(param1.course, (param1.chamber + 1), 1);
- if (_loc_2)
- {
- return _loc_2;
- }
- _loc_2 = this.find(param1.course, 1, 1);
- return _loc_2;
- }// end function
- public function previousChamber(param1:Screenshot) : Screenshot
- {
- var _loc_2:Screenshot = null;
- var _loc_3:int = 0;
- _loc_2 = this.find(param1.course, (param1.chamber - 1), 1);
- if (_loc_2)
- {
- return _loc_2;
- }
- _loc_2 = this.find(param1.course, this.getChamberNumber(param1.course), 1);
- if (_loc_2)
- {
- return _loc_2;
- }
- _loc_2 = this.lastCourse();
- return this.find(_loc_2.course, this.getChamberNumber(_loc_2.course), 1);
- }// end function
- public function nextCourse(param1:Screenshot) : Screenshot
- {
- var _loc_2:Screenshot = null;
- _loc_2 = this.find((param1.course + 1), 1, 1);
- if (_loc_2)
- {
- return _loc_2;
- }
- return this.find(1, 1, 1);
- }// end function
- public function previousCourse(param1:Screenshot) : Screenshot
- {
- var _loc_2:Screenshot = null;
- _loc_2 = this.find((param1.course - 1), 1, 1);
- if (_loc_2)
- {
- return _loc_2;
- }
- return this.lastCourse();
- }// end function
- private function lastCourse() : Screenshot
- {
- var _loc_1:int = 0;
- var _loc_2:int = 0;
- while (_loc_2 < this.screenshots.length)
- {
- if (this.screenshots[_loc_2].course > _loc_1)
- {
- _loc_1 = this.screenshots[_loc_2].course;
- }
- _loc_2++;
- }
- return this.find(_loc_1, 1, 1);
- }// end function
- }
- }
Add Comment
Please, Sign In to add comment