Section 1
//Locale (ascb.util.Locale)
package ascb.util {
import flash.system.*;
public class Locale {
private var
:String;
private var :String;
public static const GERMAN:String = "de";
public static const CHINESE:String = "zh";
public static const ENGLISH:String = "en";
public static const SPANISH:String = "es";
public static const UK:String = "UK";
public static const US:String = "US";
public static const FRENCH:String = "fr";
public static const JAPANESE:String = "jp";
private static var __sLanguage:String;
private static var __sVariant:String;
public function Locale(_arg1:String=null, _arg2:String=null){
= _arg1;
= _arg2;
}
public function set language(_arg1:String):void{
= _arg1;
}
public function get variant():String{
if (
== null){
if (Locale.svariant == null){
if (Capabilities.language.length > 2){
= Capabilities.language.substr(3);
} else {
if (language == ENGLISH){
if (new Date().getTimezoneOffset() > 120){
= US;
} else {
= UK;
};
} else {
if (language == SPANISH){
if (new Date().getTimezoneOffset() > 120){
= "MX";
} else {
= "ES";
};
};
};
};
} else {
= Locale.svariant;
};
};
return (
);
}
public function ():void{
= null;
= null;
}
public function set languageVariant(_arg1:String):void{
var _local2:Array = _arg1.split("-");
= _local2[0];
= _local2[1];
}
public function set variant(_arg1:String):void{
= _arg1;
}
public function get languageVariant():String{
var _local1:String = language;
if (variant != null){
_local1 = (_local1 + ("-" + variant));
};
return (_local1);
}
public function get language():String{
if ( == null){
if (Locale.slanguage == null){
= Capabilities.language.substr(0, 2);
} else {
= Locale.slanguage;
};
};
return ();
}
public static function sreset():void{
__sLanguage = null;
__sVariant = null;
}
public static function get slanguage():String{
return (__sLanguage);
}
public static function set slanguage(_arg1:String):void{
__sLanguage = _arg1;
}
public static function set svariant(_arg1:String):void{
__sVariant = _arg1;
}
public static function get svariant():String{
return (__sVariant);
}
public static function get slanguageVariant():String{
var _local1:String = slanguage;
if (svariant != null){
_local1 = (_local1 + ("-" + svariant));
};
return (_local1);
}
public static function set slanguageVariant(_arg1:String):void{
var _local2:Array = _arg1.split("-");
__sLanguage = _local2[0];
__sVariant = _local2[1];
}
}
}//package ascb.util
Section 2
//NumberFormat (ascb.util.NumberFormat)
package ascb.util {
public class NumberFormat {
private var
:String;
public function NumberFormat(_arg1:String=null){
= _arg1;
}
public function (_arg1:String, _arg2:Number, _arg3:Boolean, _arg4:Locale):Number{
if (_arg4 == null){
_arg4 = new Locale();
};
var _local5:Object = (_arg3, _arg4);
var _local6:Array = _arg1.split("");
if (isNaN(_arg2)){
if (_local6[0] == "O"){
if (_local6[1] == "x"){
_arg2 = 16;
} else {
_arg2 = 8;
};
} else {
if (_local6[0] == "#"){
_arg2 = 16;
} else {
_arg2 = (isNaN(_arg2)) ? 10 : _arg2;
};
};
};
var _local7:Number = 0;
while (_local7 < _local6.length) {
switch (_local6[_local7]){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
break;
case _local5.decimal:
_local6[_local7] = ".";
break;
default:
if (_arg2 > 10){
if ((((((_local6[_local7].charCodeAt(0) > 64)) && ((_local6[_local7].charCodeAt(0) < 91)))) || ((((_local6[_local7].charCodeAt(0) > 96)) && ((_local6[_local7].charCodeAt(0) < 123)))))){
break;
};
};
_local6.splice(_local7, 1);
_local7--;
};
_local7++;
};
if (_arg2 == 10){
return (Number(_local6.join("")));
};
return (parseInt(_local6.join(""), _arg2));
}
private function (_arg1:Boolean, _arg2:Locale):Object{
var _local3:Object = new Object();
switch (_arg2.languageVariant){
case "en-US":
_local3.currency = "$";
_local3.group = ",";
_local3.decimal = ".";
_local3.before = true;
break;
case "en-UK":
_local3.currency = "£";
_local3.group = ",";
_local3.decimal = ".";
_local3.before = true;
break;
case "es-MX":
_local3.currency = "$";
_local3.group = ",";
_local3.decimal = ".";
_local3.before = true;
break;
case "es-ES":
_local3.currency = "€";
_local3.group = ".";
_local3.decimal = ",";
_local3.before = false;
break;
case "fr":
_local3.currency = "€";
_local3.group = ".";
_local3.decimal = ",";
_local3.before = false;
break;
case "sv":
_local3.currency = "kr";
_local3.group = (_arg1) ? "," : " ";
_local3.decimal = ".";
_local3.before = false;
break;
case "jp":
_local3.currency = " 5";
_local3.group = ",";
_local3.decimal = ".";
_local3.before = true;
break;
case "nl":
_local3.currency = "€";
_local3.group = ".";
_local3.decimal = ",";
_local3.before = true;
break;
default:
_local3.currency = "€";
_local3.group = ".";
_local3.decimal = ",";
_local3.before = true;
break;
};
return (_local3);
}
public function format(_arg1:Number, _arg2:Object=null, _arg3:Object=null):String{
var _local4:String;
var _local10:Number;
var _local11:String;
var _local12:Object;
var _local13:Locale;
var _local14:Locale;
var _local15:Number;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:Number;
var _local21:Number;
var _local22:Boolean;
var _local23:Array;
var _local24:Number;
if (typeof(_arg2) == "number"){
_local10 = Number(_arg2);
_local4 = _arg1.toString(_local10);
_local11 = "";
if (_local10 == 16){
_local11 = "0x";
};
if (_local10 == 8){
_local11 = "0";
};
if (_arg3 != null){
_local11 = String(_arg3);
};
return ((_local11 + _local4.toUpperCase()));
};
var _local5 = ",";
var _local6 = ".";
if (((!((_arg2 == null))) && (_arg2.hasOwnProperty("group")))){
_local12 = _arg2;
} else {
_local13 = Locale(_arg2);
if (_local13 == null){
_local13 = new Locale();
};
_local14 = Locale(_local13);
_local12 = (false, _local14);
};
_local5 = _local12.decimal;
_local6 = _local12.group;
var _local7:Array = String(_arg1).split(".");
var _local8:Array = _local7[0].split("");
var _local9:Array = ((_local7.length)>1) ? _local7[1].split("") : new Array();
if (
== null){
_local15 = 1;
_local8.reverse();
_local16 = 0;
while (_local16 < _local8.length) {
if (_local15 > 3){
_local15 = 0;
_local8.splice(_local16, 0, _local6);
};
_local15++;
_local16++;
};
_local8.reverse();
_local4 = _local8.join("");
if (_local7[1] != null){
_local4 = (_local4 + (_local5 + _local7[1]));
};
} else {
_local17 =
.split("");
_local16 = 0;
while (_local16 < _local17.length) {
if (((((!((_local17[_local16] == "0"))) && (!((_local17[_local16] == "#"))))) && (!((_local17[_local16] == "."))))){
_local17.splice(_local16, 1);
_local16--;
};
_local16++;
};
_local17 = _local17.join("").split(".");
_local18 = _local17[0].split("");
_local19 = ((_local17.length)>1) ? _local17[1].split("") : new Array();
_local15 = _local18.length;
_local20 = 0;
_local21 = 0;
_local4 = "";
if (_local15 < _local8.length){
_local16 = 0;
while (_local16 < (_local8.length - _local15)) {
_local4 = (_local4 + _local8[_local16]);
_local20++;
_local16++;
};
} else {
if (_local15 > _local8.length){
_local16 = 0;
while (_local16 < (_local15 - _local8.length)) {
if (_local18[_local16] == "0"){
_local4 = (_local4 + "0");
} else {
if (_local18[_local16] == "#"){
_local4 = (_local4 + " ");
};
};
_local21++;
_local16++;
};
};
};
_local22 = false;
_local16 = _local21;
while (_local16 < _local18.length) {
if ((((_local18[_local16] == "0")) || ((_local18[_local16] == "#")))){
_local4 = (_local4 + ((_local8[_local20])==undefined) ? "" : _local8[_local20]);
_local20++;
};
_local16++;
};
_local17 =
.split(".");
_local17 = _local17[0].split("");
_local23 = _local4.split("");
_local22 = false;
_local16 = 0;
while (_local16 < _local17.length) {
if (((((!((_local17[_local16] == "0"))) && (!((_local17[_local16] == "#"))))) && (!((_local17[_local16] == "."))))){
if (_local22){
_local23.splice(_local16, 0, _local6);
} else {
_local23.splice(_local16, 0, " ");
};
};
if (((!((_local23[_local16] == " "))) && (!((_local23[_local16] == "0"))))){
_local22 = true;
};
_local16++;
};
_local4 = _local23.join("");
if (_local19.length > 0){
_local4 = (_local4 + _local5);
};
_local16 = 0;
while (_local16 < _local19.length) {
if (_local9[_local16] == null){
if (_local19[_local16] == "0"){
_local4 = (_local4 + "0");
} else {
if (_local19[_local16] == "#"){
_local4 = (_local4 + " ");
};
};
} else {
_local24 = Number(((_local9[_local16] + "") + _local9[(_local16 + 1)]));
if ((((_local16 == (_local19.length - 1))) && (!(isNaN(_local24))))){
_local4 = (_local4 + String(Math.round((_local24 / 10))));
} else {
_local4 = (_local4 + _local9[_local16]);
};
};
_local16++;
};
};
return (_local4);
}
public function set mask(_arg1:String):void{
= _arg1;
}
public function (_arg1:Number, _arg2:Object=null):String{
var _local15:Object;
var _local16:Number;
var _local4:Locale = ((arguments[1] is Locale)) ? arguments[1] : new Locale();
if (((!((_arg2 == null))) && (_arg2.hasOwnProperty("group")))){
_local15 = _arg2;
} else {
_local15 = (true, _local4);
};
var _local5:String = _local15.currency;
var _local6:String = _local15.group;
var _local7:String = _local15.decimal;
var _local8:String =
;
= null;
var _local9:Locale = new Locale();
_local9.language = "en";
_local9.variant = "US";
var _local10:String = format(_arg1, _local9);
= _local8;
var _local11:Array = _local10.split(".");
if (_local11[1] == undefined){
_local11[1] = "00";
} else {
_local11[1] = Number(_local11[1]);
_local16 = String(_local11[1]).length;
if (_local16 > 2){
_local11[1] = (_local11[1] / Math.pow(10, (_local16 - 2)));
_local11[1] = Math.round(_local11[1]);
};
};
_local10 = _local11.join(".");
var _local12:Array = _local10.split("");
var _local13:Number = 0;
while (_local13 < _local12.length) {
if (_local12[_local13] == ","){
_local12[_local13] = _local6;
} else {
if (_local12[_local13] == "."){
_local12[_local13] = _local7;
};
};
_local13++;
};
var _local14:String = (((_local15.before) ? _local5 : "" + _local12.join("")) + (_local15.before) ? "" : _local5);
return (_local14);
}
public function get mask():String{
return (
);
}
}
}//package ascb.util
Section 3
//NumberUtilities (ascb.util.NumberUtilities)
package ascb.util {
public class NumberUtilities {
private static var _aUniqueIDs:Array;
public static function random(_arg1:Number, _arg2:Number=0, _arg3:Number=1):Number{
var _local6:Number;
if (_arg1 > _arg2){
_local6 = _arg1;
_arg1 = _arg2;
_arg2 = _local6;
};
var _local4:Number = ((_arg2 - _arg1) + (1 * _arg3));
var _local5:Number = (Math.random() * _local4);
_local5 = (_local5 + _arg1);
return (floor(_local5, _arg3));
}
public static function ceil(_arg1:Number, _arg2:Number=1):Number{
return ((Math.ceil((_arg1 / _arg2)) * _arg2));
}
public static function getUnique():Number{
if (_aUniqueIDs == null){
_aUniqueIDs = new Array();
};
var _local1:Date = new Date();
var _local2:Number = _local1.getTime();
while (!(isUnique(_local2))) {
_local2 = (_local2 + _slot1.random(_local1.getTime(), (2 * _local1.getTime())));
};
_aUniqueIDs.push(_local2);
return (_local2);
}
private static function isUnique(_arg1:Number):Boolean{
var _local2:Number = 0;
while (_local2 < _aUniqueIDs.length) {
if (_aUniqueIDs[_local2] == _arg1){
return (false);
};
_local2++;
};
return (true);
}
public static function floor(_arg1:Number, _arg2:Number=1):Number{
return ((Math.floor((_arg1 / _arg2)) * _arg2));
}
public static function round(_arg1:Number, _arg2:Number=1):Number{
return ((Math.round((_arg1 / _arg2)) * _arg2));
}
}
}//package ascb.util
Section 4
//MochiBot (Mochi.MochiBot)
package Mochi {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package Mochi
Section 5
//FontAsset (mx.core.FontAsset)
package mx.core {
import flash.text.*;
public class FontAsset extends Font implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 6
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 7
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 8
//OokActionScript3AnimationAds (OokAds.OokActionScript3AnimationAds)
package OokAds {
import OokClickable.*;
public class OokActionScript3AnimationAds extends OokClickable {
}
}//package OokAds
Section 9
//OokActionScript3CookBookAds (OokAds.OokActionScript3CookBookAds)
package OokAds {
import OokClickable.*;
public class OokActionScript3CookBookAds extends OokClickable {
}
}//package OokAds
Section 10
//OokFlash9IDEAds (OokAds.OokFlash9IDEAds)
package OokAds {
import OokClickable.*;
public class OokFlash9IDEAds extends OokClickable {
}
}//package OokAds
Section 11
//OokFlashGameDeluxeAds (OokAds.OokFlashGameDeluxeAds)
package OokAds {
import OokClickable.*;
public class OokFlashGameDeluxeAds extends OokClickable {
}
}//package OokAds
Section 12
//OokFlexBuilderAds (OokAds.OokFlexBuilderAds)
package OokAds {
import OokClickable.*;
public class OokFlexBuilderAds extends OokClickable {
}
}//package OokAds
Section 13
//OokMangaDeluxeAds (OokAds.OokMangaDeluxeAds)
package OokAds {
import OokClickable.*;
public class OokMangaDeluxeAds extends OokClickable {
}
}//package OokAds
Section 14
//OokAIState (OokAI.OokAIState)
package OokAI {
import OokMessage.*;
import flash.display.*;
import OokObject.*;
public class OokAIState extends Sprite {
public function enter(_arg1:OokBaseObject):void{
}
public function execute(_arg1:OokBaseObject):void{
if (((_arg1.isDying()) || (_arg1.isDead()))){
_arg1.getFSM().changeAIState(new OokAIStateIdle());
};
}
public function exit(_arg1:OokBaseObject):void{
}
public function onMessage(_arg1:OokBaseObject, _arg2:OokMessageParcel):void{
}
}
}//package OokAI
Section 15
//OokAIStateGetVisualContact (OokAI.OokAIStateGetVisualContact)
package OokAI {
import OokBody.OokBodyType.*;
import OokObject.*;
public class OokAIStateGetVisualContact extends OokAIState {
private var :OokBody;
public function OokAIStateGetVisualContact(_arg1:OokBody){
this. = _arg1;
}
override public function enter(_arg1:OokBaseObject):void{
if (this..getTeam() != _arg1.getTeam()){
_arg1.getFSM().changeAIState(new OokAIStateMoveToTarget(this.));
} else {
_arg1.getFSM().changeAIState(new OokAIStateIdle());
};
}
override public function execute(_arg1:OokBaseObject):void{
}
override public function exit(_arg1:OokBaseObject):void{
}
}
}//package OokAI
Section 16
//OokAIStateIdle (OokAI.OokAIStateIdle)
package OokAI {
import OokMessage.*;
import OokObject.*;
public class OokAIStateIdle extends OokAIState {
override public function enter(_arg1:OokBaseObject):void{
_arg1.setMovingLeft(false);
_arg1.setMovingRight(false);
}
override public function execute(_arg1:OokBaseObject):void{
}
override public function exit(_arg1:OokBaseObject):void{
}
override public function onMessage(_arg1:OokBaseObject, _arg2:OokMessageParcel):void{
}
}
}//package OokAI
Section 17
//OokAIStateMachine (OokAI.OokAIStateMachine)
package OokAI {
import OokMessage.*;
import flash.display.*;
import OokObject.*;
public class OokAIStateMachine extends Sprite {
private var
:OokAIState;
private var
:OokAIState;
private var :OokAIState;
private var owner:OokBaseObject;
public function OokAIStateMachine(_arg1:OokBaseObject){
this. = null;
this.
= null;
this.
= null;
this.owner = _arg1;
}
public function update():void{
if (this.
!= null){
this.
.execute(owner);
};
if (this. != null){
this..execute(owner);
};
}
public function setGlobalState(_arg1:OokAIState):void{
this.
= _arg1;
}
public function setCurrentState(_arg1:OokAIState):void{
this. = _arg1;
}
public function getCurrentState():OokAIState{
return (this.);
}
public function handleMessage(_arg1:OokMessageParcel):void{
this..onMessage(owner, _arg1);
}
public function changeAIState(_arg1:OokAIState):void{
this.
= this.;
if (this. != null){
this..exit(owner);
};
this. = _arg1;
this..enter(owner);
}
public function backToPreviousState():void{
this.changeAIState(this.
);
}
}
}//package OokAI
Section 18
//OokAIStateMoveToBase (OokAI.OokAIStateMoveToBase)
package OokAI {
import OokMessage.*;
import OokObject.*;
import OokEnum.*;
public class OokAIStateMoveToBase extends OokAIState {
private var
:OokBaseObject;
private var :Number;
override public function enter(_arg1:OokBaseObject):void{
this. = 150;
= OokObjectManager.getObjectFromID(OokIDEnum.I_UFO);
}
override public function execute(_arg1:OokBaseObject):void{
super.execute(_arg1);
_arg1.setAimX((
.x - _arg1.x));
_arg1.setAimY((
.y - _arg1.y));
if ((
.x - _arg1.x) < -(this.)){
_arg1.setMovingRight(false);
_arg1.setMovingLeft(true);
} else {
if ((
.x - _arg1.x) > this.){
_arg1.setMovingLeft(false);
_arg1.setMovingRight(true);
} else {
_arg1.setMovingLeft(false);
_arg1.setMovingRight(false);
GameEnum.causeOfGameOver = "Your flag was captured to UFO.";
OokMessageDispatcher.dispatchMessage(OokIDEnum.P_PLAYER, OokIDEnum.GS_GAME_STATE_FSM, OokMessageEnum.MSG_GAME_OVER, 0, null);
};
};
}
override public function exit(_arg1:OokBaseObject):void{
_arg1.setMovingLeft(false);
_arg1.setMovingRight(false);
_arg1.setFiring(false);
}
override public function onMessage(_arg1:OokBaseObject, _arg2:OokMessageParcel):void{
switch (_arg2.message){
case OokMessageEnum.CHANGE_THE_NAME:
_arg1.setName("name changed");
break;
};
}
}
}//package OokAI
Section 19
//OokAIStateMoveToTarget (OokAI.OokAIStateMoveToTarget)
package OokAI {
import OokMessage.*;
import OokObject.*;
public class OokAIStateMoveToTarget extends OokAIState {
private var :OokBaseObject;
private var :Number;
public function OokAIStateMoveToTarget(_arg1:OokBaseObject){
this. = _arg1;
this. = 50;
}
override public function enter(_arg1:OokBaseObject):void{
}
override public function execute(_arg1:OokBaseObject):void{
super.execute(_arg1);
if (((.isDead()) || (.isDying()))){
_arg1.getFSM().changeAIState(new OokAIStateIdle());
} else {
if (_arg1.getIsCarryingFlag()){
_arg1.getFSM().changeAIState(new OokAIStateMoveToBase());
} else {
_arg1.setAimX((.x - _arg1.x));
_arg1.setAimY((.y - _arg1.y));
if ((.x - _arg1.x) < -(this.)){
_arg1.setMovingRight(false);
_arg1.setMovingLeft(true);
} else {
if ((.x - _arg1.x) > this.){
_arg1.setMovingLeft(false);
_arg1.setMovingRight(true);
} else {
_arg1.setMovingLeft(false);
_arg1.setMovingRight(false);
};
};
};
};
}
override public function exit(_arg1:OokBaseObject):void{
_arg1.setMovingLeft(false);
_arg1.setMovingRight(false);
_arg1.setFiring(false);
}
override public function onMessage(_arg1:OokBaseObject, _arg2:OokMessageParcel):void{
}
}
}//package OokAI
Section 20
//AimingMode (OokBody.BodyMode.AimingMode)
package OokBody.BodyMode {
import OokBody.OokBodyType.*;
import OokEnum.*;
public class AimingMode extends ShootingMode {
private static var selfCall:Boolean = false;
private static var instance:AimingMode;
public function AimingMode(){
if (AimingMode.selfCall){
super();
AimingMode.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
override public function enter(_arg1:OokBody):void{
}
override public function execute(_arg1:OokBody):void{
if (_arg1.getID() == OokIDEnum.P_PLAYER){
_arg1.setAimX(_arg1.mouseX);
_arg1.setAimY(_arg1.mouseY);
};
var _local2:Array = _arg1.getArrayOfBodySet();
var _local3:Array = _arg1.getArrayOfWeapon();
var _local4:Number = (_arg1.getAimX() - _local3[_arg1.getCurrentWeapon()].x);
var _local5:Number = (_arg1.getAimY() - _local3[_arg1.getCurrentWeapon()].y);
var _local6:Number = Math.atan2(_local5, _local4);
var _local7:Number = ((_local6 * 180) / Math.PI);
_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation = _local7;
_local2[_arg1.getCurrentBodySet()]["arm"].getRightArm().rotation = _local7;
_local3[_arg1.getCurrentWeapon()].rotation = _local7;
if ((((((((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation >= _arg1.getLimitTopRight())) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation <= _arg1.getLimitBottomRight())))) || ((((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation >= -180)) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation <= _arg1.getLimitTopLeft())))))) || ((((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation <= 180)) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation >= _arg1.getLimitBottomLeft())))))){
_local2[_arg1.getCurrentBodySet()]["head"].rotation = _local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation;
} else {
if ((((((_arg1.getFacing() == GameEnum.LEFT)) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation < _arg1.getLimitBottomLeft())))) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation > _arg1.getFlipPointBottom())))){
_local2[_arg1.getCurrentBodySet()]["head"].rotation = _arg1.getLimitBottomLeft();
} else {
if ((((((_arg1.getFacing() == GameEnum.LEFT)) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation > _arg1.getLimitTopLeft())))) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation < _arg1.getFlipPointTop())))){
_local2[_arg1.getCurrentBodySet()]["head"].rotation = _arg1.getLimitTopLeft();
} else {
if ((((((_arg1.getFacing() == GameEnum.RIGHT)) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation > _arg1.getLimitBottomRight())))) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation < _arg1.getFlipPointBottom())))){
_local2[_arg1.getCurrentBodySet()]["head"].rotation = _arg1.getLimitBottomRight();
} else {
if ((((((_arg1.getFacing() == GameEnum.RIGHT)) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation < _arg1.getLimitTopRight())))) && ((_local2[_arg1.getCurrentBodySet()]["arm"].getLeftArm().rotation > _arg1.getFlipPointTop())))){
_local2[_arg1.getCurrentBodySet()]["head"].rotation = _arg1.getLimitTopRight();
};
};
};
};
};
_local3[_arg1.getCurrentWeapon()].update();
_arg1.checkFlip();
_arg1.checkMove();
}
override public function exit(_arg1:OokBody):void{
}
public static function getInstance():AimingMode{
if (AimingMode.instance != null){
return (AimingMode.instance);
};
AimingMode.selfCall = true;
AimingMode.instance = new (AimingMode);
return (AimingMode.instance);
}
}
}//package OokBody.BodyMode
Section 21
//BodyMode (OokBody.BodyMode.BodyMode)
package OokBody.BodyMode {
import OokBody.OokBodyType.*;
import flash.display.*;
public class BodyMode extends Sprite {
public function enter(_arg1:OokBody):void{
}
public function execute(_arg1:OokBody):void{
}
public function exit(_arg1:OokBody):void{
}
}
}//package OokBody.BodyMode
Section 22
//BodyModeFSM (OokBody.BodyMode.BodyModeFSM)
package OokBody.BodyMode {
import OokBody.OokBodyType.*;
import flash.display.*;
public class BodyModeFSM extends Sprite {
private var :BodyMode;
private var :BodyMode;
private var owner:OokBody;
private var :BodyMode;
public function BodyModeFSM(_arg1:OokBody){
this. = null;
this. = null;
this. = null;
this.owner = _arg1;
}
public function ():void{
this.changeMode(this.);
}
public function (_arg1:BodyMode):void{
this. = _arg1;
}
public function update():void{
if (this. != null){
this..execute(owner);
};
if (this. != null){
this..execute(owner);
};
}
public function
(_arg1:BodyMode):void{
this. = _arg1;
}
public function changeMode(_arg1:BodyMode):void{
this. = this.;
if (this. != null){
this..exit(owner);
};
this. = _arg1;
this..enter(owner);
}
}
}//package OokBody.BodyMode
Section 23
//DeadMode (OokBody.BodyMode.DeadMode)
package OokBody.BodyMode {
import OokBody.OokBodyType.*;
public class DeadMode extends BodyMode {
private static var selfCall:Boolean = false;
private static var instance:DeadMode;
public function DeadMode(){
if (DeadMode.selfCall){
super();
DeadMode.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
override public function enter(_arg1:OokBody):void{
_arg1.setDead(true);
_arg1.setBoundary(_arg1.getDeadBoundary(), _arg1.getHeadHeight());
}
override public function execute(_arg1:OokBody):void{
_arg1.checkMove();
}
override public function exit(_arg1:OokBody):void{
}
public static function getInstance():DeadMode{
if (DeadMode.instance != null){
return (DeadMode.instance);
};
DeadMode.selfCall = true;
DeadMode.instance = new (DeadMode);
return (DeadMode.instance);
}
}
}//package OokBody.BodyMode
Section 24
//DieByShotMode (OokBody.BodyMode.DieByShotMode)
package OokBody.BodyMode {
import OokBody.OokBodyType.*;
import OokEnum.*;
public class DieByShotMode extends BodyMode {
private static var selfCall:Boolean = false;
private static var instance:DieByShotMode;
public function DieByShotMode(){
if (DieByShotMode.selfCall){
super();
DieByShotMode.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
override public function enter(_arg1:OokBody):void{
_arg1.setDying(true);
_arg1.addBodyLog(_arg1.getPresetSpeech(GameEnum.SPEECH_TYPE_DYING), false);
}
override public function execute(_arg1:OokBody):void{
if (_arg1.getID() == OokIDEnum.P_PLAYER){
};
if (_arg1.getFacing() == GameEnum.RIGHT){
if (_arg1.getRotateBodyComponent() > -90){
_arg1.setRotateBodyComponentBy(-10);
} else {
_arg1.changeBodyMode(DeadMode.getInstance());
};
} else {
if (_arg1.getRotateBodyComponent() < 90){
_arg1.setRotateBodyComponentBy(10);
} else {
_arg1.changeBodyMode(DeadMode.getInstance());
};
};
}
override public function exit(_arg1:OokBody):void{
_arg1.setDying(false);
}
public static function getInstance():DieByShotMode{
if (DieByShotMode.instance != null){
return (DieByShotMode.instance);
};
DieByShotMode.selfCall = true;
DieByShotMode.instance = new (DieByShotMode);
return (DieByShotMode.instance);
}
}
}//package OokBody.BodyMode
Section 25
//ShootingMode (OokBody.BodyMode.ShootingMode)
package OokBody.BodyMode {
public class ShootingMode extends BodyMode {
}
}//package OokBody.BodyMode
Section 26
//GreyType1LeftArm001 (OokBody.OokArm.OokLeftArm.GreyType1LeftArm001)
package OokBody.OokArm.OokLeftArm {
public class GreyType1LeftArm001 extends LeftArm {
public function GreyType1LeftArm001(){
super(10, 16);
}
}
}//package OokBody.OokArm.OokLeftArm
Section 27
//GreyType2LeftArm (OokBody.OokArm.OokLeftArm.GreyType2LeftArm)
package OokBody.OokArm.OokLeftArm {
public class GreyType2LeftArm extends LeftArm {
public function GreyType2LeftArm(){
super(0, 35);
}
}
}//package OokBody.OokArm.OokLeftArm
Section 28
//LeftArm (OokBody.OokArm.OokLeftArm.LeftArm)
package OokBody.OokArm.OokLeftArm {
import OokBody.OokBodyType.*;
public class LeftArm extends OokBodyOrgan {
public function LeftArm(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package OokBody.OokArm.OokLeftArm
Section 29
//SandyLeftArmNormal (OokBody.OokArm.OokLeftArm.SandyLeftArmNormal)
package OokBody.OokArm.OokLeftArm {
public class SandyLeftArmNormal extends LeftArm {
public function SandyLeftArmNormal(){
super(0, 0);
}
}
}//package OokBody.OokArm.OokLeftArm
Section 30
//GreyType1RightArm001 (OokBody.OokArm.OokRightArm.GreyType1RightArm001)
package OokBody.OokArm.OokRightArm {
public class GreyType1RightArm001 extends RightArm {
public function GreyType1RightArm001(){
super(-3, 25);
}
}
}//package OokBody.OokArm.OokRightArm
Section 31
//GreyType2RightArm (OokBody.OokArm.OokRightArm.GreyType2RightArm)
package OokBody.OokArm.OokRightArm {
public class GreyType2RightArm extends RightArm {
public function GreyType2RightArm(){
super(-14, 40);
}
}
}//package OokBody.OokArm.OokRightArm
Section 32
//RightArm (OokBody.OokArm.OokRightArm.RightArm)
package OokBody.OokArm.OokRightArm {
import OokBody.OokBodyType.*;
public class RightArm extends OokBodyOrgan {
public function RightArm(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package OokBody.OokArm.OokRightArm
Section 33
//SandyRightArmNormal (OokBody.OokArm.OokRightArm.SandyRightArmNormal)
package OokBody.OokArm.OokRightArm {
public class SandyRightArmNormal extends RightArm {
public function SandyRightArmNormal(){
super(-15, 20);
}
}
}//package OokBody.OokArm.OokRightArm
Section 34
//Arm (OokBody.OokArm.Arm)
package OokBody.OokArm {
import flash.display.*;
import OokBody.OokArm.OokLeftArm.*;
import OokBody.OokArm.OokRightArm.*;
public class Arm extends MovieClip {
private var :Array;
private var :Array;
private var :Number;
public function Arm(_arg1:Array, _arg2:Array, _arg3:Number){
this. = _arg1;
this. = _arg2;
this. = _arg3;
();
}
public function getLeftArm():LeftArm{
return ([]);
}
public function getCarrying():Number{
return (this.);
}
public function setCarrying(_arg1:Number):void{
this. = _arg1;
}
public function getRightArm():RightArm{
return ([]);
}
private function ():void{
}
}
}//package OokBody.OokArm
Section 35
//GreyType1Arm001 (OokBody.OokArm.GreyType1Arm001)
package OokBody.OokArm {
import OokBody.OokArm.OokLeftArm.*;
import OokBody.OokArm.OokRightArm.*;
import OokEnum.*;
public class GreyType1Arm001 extends Arm {
private var :Array;
private var :Array;
private var :Number;
public function GreyType1Arm001(){
= new Array();
[GameEnum.RIFLE_BULLPUP] = new GreyType1LeftArm001();
[GameEnum.NOTHING] = new GreyType1LeftArm001();
= new Array();
[GameEnum.RIFLE_BULLPUP] = new GreyType1RightArm001();
[GameEnum.NOTHING] = new GreyType1RightArm001();
= GameEnum.NOTHING;
super(, , );
}
}
}//package OokBody.OokArm
Section 36
//GreyType2Arm (OokBody.OokArm.GreyType2Arm)
package OokBody.OokArm {
import OokBody.OokArm.OokLeftArm.*;
import OokBody.OokArm.OokRightArm.*;
import OokEnum.*;
public class GreyType2Arm extends Arm {
private var :Array;
private var :Array;
private var :Number;
public function GreyType2Arm(){
= new Array();
[GameEnum.WEAPON_GREY_DARK_BLAST] = new GreyType2LeftArm();
[GameEnum.NOTHING] = new GreyType2LeftArm();
= new Array();
[GameEnum.WEAPON_GREY_DARK_BLAST] = new GreyType2RightArm();
[GameEnum.NOTHING] = new GreyType2RightArm();
= GameEnum.NOTHING;
super(, , );
}
}
}//package OokBody.OokArm
Section 37
//SandyArmNormal (OokBody.OokArm.SandyArmNormal)
package OokBody.OokArm {
import OokBody.OokArm.OokLeftArm.*;
import OokBody.OokArm.OokRightArm.*;
import OokEnum.*;
public class SandyArmNormal extends Arm {
private var :Array;
private var :Array;
private var :Number;
public function SandyArmNormal(){
= new Array();
[GameEnum.RIFLE_BULLPUP] = new SandyLeftArmNormal();
[GameEnum.ASSULT_RIFLE] = new SandyLeftArmNormal();
[GameEnum.MAXNUM] = new SandyLeftArmNormal();
[GameEnum.PISTOL] = new SandyLeftArmNormal();
[GameEnum.SUB_MACHINE] = new SandyLeftArmNormal();
[GameEnum.SHOT_GUN] = new SandyLeftArmNormal();
[GameEnum.SNIPER_RIFLE] = new SandyLeftArmNormal();
[GameEnum.GRENADE_LAUNCHER] = new SandyLeftArmNormal();
[GameEnum.FLAME_THROWER] = new SandyLeftArmNormal();
[GameEnum.ROCKET_LAUNCHER] = new SandyLeftArmNormal();
= new Array();
[GameEnum.RIFLE_BULLPUP] = new SandyRightArmNormal();
[GameEnum.ASSULT_RIFLE] = new SandyRightArmNormal();
[GameEnum.MAXNUM] = new SandyRightArmNormal();
[GameEnum.PISTOL] = new SandyRightArmNormal();
[GameEnum.SUB_MACHINE] = new SandyRightArmNormal();
[GameEnum.SHOT_GUN] = new SandyRightArmNormal();
[GameEnum.SNIPER_RIFLE] = new SandyRightArmNormal();
[GameEnum.GRENADE_LAUNCHER] = new SandyRightArmNormal();
[GameEnum.FLAME_THROWER] = new SandyRightArmNormal();
[GameEnum.ROCKET_LAUNCHER] = new SandyRightArmNormal();
= GameEnum.MAXNUM;
super(, , );
}
}
}//package OokBody.OokArm
Section 38
//GreyBodyType1 (OokBody.OokBodySet.GreyBodyType1)
package OokBody.OokBodySet {
import OokAI.*;
import OokBody.OokBodyType.*;
import OokObject.*;
import OokVision.*;
import OokConversation.*;
import OokWeapon.OokGun.*;
import ascb.util.*;
import OokEnum.*;
import OokBody.OokTorso.*;
import OokBody.OokLeg.*;
import OokBody.OokArm.*;
import OokBody.OokHead.*;
import OokBoundary.BodyBoundary.*;
public class GreyBodyType1 extends OokBodyHumanoid {
public function GreyBodyType1(_arg1:Object, _arg2:Number){
var _local3:Object = new Object();
_local3.head = new GreyType1Head001();
_local3.torso = new GreyType1Torso001();
_local3.arm = new GreyType1Arm001();
_local3.leg = new GreyType1Leg001();
_local3.legCrouch = new GreyType1Leg001();
var _local4:Array = new Array();
_local4[GameEnum.WEAPON_GREY_BLAST] = new GhostSniperRifle(_arg1, this);
_local4[GameEnum.NOTHING] = new Nothing(_arg1, this);
super(_arg1, _local3, _local4, GameEnum.TEAM_B, new GreyType1Boundary001(), new BodyBoundary002(), new GreyType1DeadBoundary(), new OokVision001(), _arg2);
super.setName("Common Grey");
super.(2);
super. (100);
super.
(8);
super.setMovingSpeed(8);
super.(175);
super.(5);
super.(-175);
super.
(-5);
super.(50);
super.(50);
super.setHealth(super.(), this);
super.setShield(super.
());
var _local5:OokBaseObject = OokObjectManager.getObjectFromID(OokIDEnum.I_FLAG);
if (_local5 != null){
if (!OokObjectManager.getObjectFromID(OokIDEnum.I_FLAG).getIsBeingCarried()){
super.getFSM().changeAIState(new OokAIStateMoveToTarget(_local5));
return;
};
};
_local5 = OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER);
if (_local5 != null){
if (((!(_local5.isDead())) && (!(_local5.isDying())))){
super.getFSM().changeAIState(new OokAIStateMoveToTarget(_local5));
return;
};
};
super.getFSM().changeAIState(new OokAIStateIdle());
}
override public function onVisualContact(_arg1:OokBody):void{
if (((super.isDead()) || (super.isDying()))){
super.getFSM().changeAIState(new OokAIStateIdle());
return;
};
if ((super.getFSM().getCurrentState() is OokAIStateIdle)){
if ((super.getFSM().getCurrentState() is OokAIStateMoveToTarget)){
return;
};
super.getFSM().changeAIState(new OokAIStateGetVisualContact(_arg1));
};
}
override public function getConversation():Conversation{
return (new Conversation001());
}
override public function setDying(_arg1:Boolean):void{
if (_arg1){
controlPanel.SFXController.playSFX(SoundID.S_ALIEN_SCREAM_DEAD, 1, 0);
};
super.setDying(_arg1);
}
override public function getPresetSpeech(_arg1:Number):String{
if (_arg1 == GameEnum.SPEECH_TYPE_DYING){
switch (NumberUtilities.random(1, 3)){
case 1:
return ("Arkk");
case 2:
return ("You bloody human");
case 3:
return ("Erkk");
};
};
return ("");
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() != this.getTeam()){
if (((!(this.isDead())) && (!(this.isDying())))){
_arg1.onHandToHandHit(this);
};
};
super.onCollideWithBody(_arg1);
}
}
}//package OokBody.OokBodySet
Section 39
//GreyBodyType2 (OokBody.OokBodySet.GreyBodyType2)
package OokBody.OokBodySet {
import OokAI.*;
import OokBody.OokBodyType.*;
import OokObject.*;
import OokVision.*;
import OokConversation.*;
import OokWeapon.OokGun.*;
import ascb.util.*;
import OokEnum.*;
import OokBody.OokTorso.*;
import OokBody.OokLeg.*;
import OokBody.OokArm.*;
import OokBody.OokHead.*;
import OokBoundary.BodyBoundary.*;
public class GreyBodyType2 extends OokBodyHumanoid {
public function GreyBodyType2(_arg1:Object, _arg2:Number){
var _local3:Object = new Object();
_local3.head = new GreyType2Head();
_local3.torso = new GreyType2Torso();
_local3.arm = new GreyType2Arm();
_local3.leg = new GreyType2Leg();
_local3.legCrouch = new GreyType2Leg();
var _local4:Array = new Array();
_local4[GameEnum.WEAPON_GREY_BLAST] = new GhostSniperRifle(_arg1, this);
_local4[GameEnum.NOTHING] = new Nothing(_arg1, this);
super(_arg1, _local3, _local4, GameEnum.TEAM_B, new GreyType2Boundary(), new GreyType2Boundary(), new GreyType1DeadBoundary(), new OokVision001(), _arg2);
super.setName("Chukalapa");
super.(5);
super. (200);
super.
(6);
super.setMovingSpeed(6);
super.(175);
super.(5);
super.(-175);
super.
(-5);
super.(200);
super.(100);
super.setHealth(super.(), this);
super.setShield(super.
());
var _local5:OokBaseObject = OokObjectManager.getObjectFromID(OokIDEnum.I_FLAG);
if (_local5 != null){
if (!OokObjectManager.getObjectFromID(OokIDEnum.I_FLAG).getIsBeingCarried()){
super.getFSM().changeAIState(new OokAIStateMoveToTarget(_local5));
return;
};
};
_local5 = OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER);
if (_local5 != null){
if (((!(_local5.isDead())) && (!(_local5.isDying())))){
super.getFSM().changeAIState(new OokAIStateMoveToTarget(_local5));
return;
};
};
super.getFSM().changeAIState(new OokAIStateIdle());
}
override public function getCarryingItemPositionY():Number{
return (-20);
}
override public function onVisualContact(_arg1:OokBody):void{
if (((super.isDead()) || (super.isDying()))){
super.getFSM().changeAIState(new OokAIStateIdle());
return;
};
if ((super.getFSM().getCurrentState() is OokAIStateIdle)){
if ((super.getFSM().getCurrentState() is OokAIStateMoveToTarget)){
return;
};
super.getFSM().changeAIState(new OokAIStateGetVisualContact(_arg1));
};
}
override public function getPresetSpeech(_arg1:Number):String{
if (_arg1 == GameEnum.SPEECH_TYPE_DYING){
switch (NumberUtilities.random(1, 3)){
case 1:
return ("Arkk");
case 2:
return ("You bloody human");
case 3:
return ("Erkk");
};
};
return ("");
}
override public function getConversation():Conversation{
return (new Conversation001());
}
override public function setDying(_arg1:Boolean):void{
if (_arg1){
controlPanel.SFXController.playSFX(SoundID.S_ALIEN_SCREAM_DEAD_2, 1, 0);
};
super.setDying(_arg1);
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (((!(this.isDead())) && (!(this.isDying())))){
_arg1.onHandToHandHit(this);
};
super.onCollideWithBody(_arg1);
}
override public function getCarryingItemPositionX():Number{
return (90);
}
}
}//package OokBody.OokBodySet
Section 40
//SandyBody (OokBody.OokBodySet.SandyBody)
package OokBody.OokBodySet {
import OokBody.OokBodyType.*;
import OokObject.*;
import OokVision.*;
import OokConversation.*;
import OokWeapon.OokGun.*;
import OokEnum.*;
import OokBody.OokTorso.*;
import OokBody.OokLeg.*;
import OokBody.OokArm.*;
import OokBody.OokHead.*;
import OokBoundary.BodyBoundary.*;
public class SandyBody extends OokBodyHumanoid {
public function SandyBody(_arg1:Object, _arg2:Number){
var _local3:Object = new Object();
_local3.head = new SandyHead();
_local3.torso = new SandyTorso();
_local3.arm = new SandyArmNormal();
_local3.leg = new SandyLeg();
_local3.legCrouch = new SandyLeg();
var _local4:Array = new Array();
_local4[GameEnum.RIFLE_BULLPUP] = new GhostSniperRifle(_arg1, this);
_local4[GameEnum.ASSULT_RIFLE] = new AssultRifle(_arg1, this);
_local4[GameEnum.MAXNUM] = new Maxnum(_arg1, this);
_local4[GameEnum.PISTOL] = new Pistol(_arg1, this);
_local4[GameEnum.SUB_MACHINE] = new SubMachine(_arg1, this);
_local4[GameEnum.SHOT_GUN] = new ShotGun(_arg1, this);
_local4[GameEnum.SNIPER_RIFLE] = new SniperRifle(_arg1, this);
_local4[GameEnum.GRENADE_LAUNCHER] = new GrenadeLauncher(_arg1, this);
_local4[GameEnum.FLAME_THROWER] = new FlameThrower(_arg1, this);
_local4[GameEnum.ROCKET_LAUNCHER] = new RocketLauncher(_arg1, this);
super(_arg1, _local3, _local4, GameEnum.TEAM_A, new SandyBoundary(), new SandyBoundary(), new SandyDeadBoundary(), new OokVision001(), _arg2);
super.setName("Space Marine Trainee");
super.
(18);
super.setMovingSpeed(18);
}
override public function getConversation():Conversation{
return (new Conversation001());
}
}
}//package OokBody.OokBodySet
Section 41
//OokBody (OokBody.OokBodyType.OokBody)
package OokBody.OokBodyType {
import flash.events.*;
import OokAI.*;
import OokLevel.*;
import OokBoundary.BoundaryType.*;
import OokWeapon.*;
import flash.display.*;
import OokObject.*;
import OokVision.*;
import OokConversation.*;
import OokWeapon.OokBullet.*;
import OokBody.BodyMode.*;
import flash.text.*;
import ascb.util.*;
import OokItem.*;
import OokEnum.*;
import OokBody.OokTorso.*;
import OokBody.OokLeg.*;
import OokUI.UIBodyBar.*;
import OokBody.OokArm.*;
import OokBody.OokHead.*;
import OokLog.*;
import flash.utils.*;
import flash.ui.*;
public class OokBody extends OokMobileObject {
private const FONT_SCALE:Number = 1;
private var torso:Torso;
private var
:StyleSheet;
private var :Boolean;
private var leg:Leg;
private var :Array;
private var :Number;// = 2000
private var :UIHealthBar;
private var floor:Number;
private var :BodyBoundary;
private var
:OokWeapon;
private var :BodyBoundary;
private var :Boolean;
private var :Number;
public var :Array;
private var
:Number;
private var :UIArmorBar;
private var :Number;
private var :Number;
private var arm:Arm;
private var :Boolean;// = false
private var
:BodyMode;
private var :Boolean;// = false
private var
:Boolean;
private var :OokAIStateMachine;
private var :Boolean;// = false
private var :BodyBoundary;
private var :Boolean;
private var :Number;// = 0
private var :Number;
private var
:Array;
private var :BodyModeFSM;
private var :Number;
private var :Number;// = -25
protected var controlPanel:Object;
private var :Number;
private var :BodyBoundary;
private var :Number;
private var :Number;// = -155
private var :Number;
private var :Number;
private var :Boolean;// = false
private var :Number;
private var :Number;// = 175
private var
:Boolean;
private var :Number;
private var :Number;// = 1
private var :Boolean;
private var :TextField;
private var :Boolean;
private var :NumberFormat;
private var
:Boolean;
private var
:Boolean;// = false
private var :Boolean;
private var :Number;
private var :Boolean;// = false
private var :Number;// = 90
public var
:Array;
private var :Number;// = -90
private var :Boolean;// = false
private var :Number;
private var :Number;// = 0
private var :String;// = "No name."
private var
:Number;// = 0
private var :Boolean;// = true
private var legCrouch:Leg;
private var :Boolean;
private var :Number;
private var :Boolean;
private var :OokLevel;
private var :Number;// = 0
private var :Number;
private var
:Number;
private var
:Number;
private var
:Boolean;// = false
private var
:Number;// = 1
private var head:Head;
private var :OokVision;
public var :Object;
private var :Number;// = 5
private var :Number;// = 1
private var :Number;// = 0
public function OokBody(_arg1:Object, _arg2:Object, _arg3:Array, _arg4:Number, _arg5:BodyBoundary, _arg6:BodyBoundary, _arg7:BodyBoundary, _arg8:OokVision, _arg9:Number){
super(_arg9);
this.controlPanel = _arg1;
this. = 100;
this. = 200;
this.
= new Array();
this. = new Array();
this. = this.;
this. = this.;
this. = 10;
this. = 12;
this.
= 400;
this. = 0;
this. = -40;
= true;
this. = false;
this.
= false;
this. = false;
this. = false;
this.
= 10;
this. = 5;
this.
= 14;
this. = _arg5;
this. = _arg6;
this. = _arg7;
this. = (this..height - this..height);
this. = true;
this. = _arg8;
this. = this.;
this..(this);
= this.
;
= false;
= false;
this.(_arg4);
this.
= new Array();
this. = _arg2;
this. = _arg3;
this.
.push(_arg2);
();
}
public function (_arg1:Number):void{
this. = _arg1;
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg2 == false){
_arg1.onCollideWithBody(this);
};
}
public function setDead(_arg1:Boolean):void{
this. = _arg1;
if (this. ){
this.
= getTimer();
};
}
public function (_arg1:Number):void{
this. = _arg1;
}
override public function setName(_arg1:String):void{
this. = _arg1;
}
public function getTimeOfDeath():Number{
return (this.
);
}
public function onBulletHit(_arg1:Bullet):void{
var _local2:Number;
this.controlPanel.SFXController.playSFX(SoundID.S_BULLET_HIT_FLESH, 1, 0);
if (((!(this.isDying())) && (!(this.isDead())))){
if (this.getShield() > 0){
if (_arg1.getPenetrationPower() > this.getShield()){
_local2 = this.getShield();
this.setShield(0);
this.setHealth(((this.getHealth() - _arg1.getPenetrationPower()) - _local2), _arg1.getOwner());
} else {
this.setShield((this.getShield() - _arg1.getPenetrationPower()));
};
} else {
if (this.getHealth() > 0){
this.setHealth((this.getHealth() - _arg1.getPenetrationPower()), _arg1.getOwner());
};
};
};
}
public function getArrayOfBodySet():Array{
return (this.
);
}
public function ():Number{
return (this.);
}
public function (_arg1:Number):void{
this. = _arg1;
}
private function ():void{
this..gotoAndStop(Math.round(((this. * 100) / this.)));
}
public function ():Boolean{
return (this. );
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function setLevel(_arg1:OokLevel):void{
this. = _arg1;
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function changeBodyMode(_arg1:BodyMode):void{
this..changeMode(_arg1);
}
public function
():void{
[ ]["torso"].play();
[ ]["leg"].gotoAndStop(3);
[ ]["legCrouch"].stop();
}
public function setIsOnSlope(_arg1:Boolean):void{
this. = _arg1;
}
override public function getIsCarryingFlag():Boolean{
return (this.);
}
public function (_arg1:Boolean):void{
this.
= _arg1;
}
private function ():void{
if (!this.){
if (((this.) || (this.))){
this.
[ ]["leg"].stop();
this. = false;
return;
};
if (((this.()) || (this. ()))){
if (!this.){
this.
[ ]["leg"].play();
this. = true;
};
} else {
this.
[ ]["leg"].stop();
this. = false;
};
} else {
if (((this.) || (this.))){
this.
[ ]["legCrouch"].stop();
this.
= false;
return;
};
if (((this.()) || (this. ()))){
if (!this.
){
this.
[ ]["legCrouch"].play();
this.
= true;
};
} else {
this.
[ ]["legCrouch"].stop();
this.
= false;
};
};
}
override public function getShield():Number{
return (this. );
}
public function addBodyLog(_arg1:String, _arg2:Boolean=true):void{
this..push(new OokLog(_arg1, this.
, "logMessage", 0, (-(this.) - 100), this.FONT_SCALE, 500, 4000));
if (_arg2){
controlPanel.SFXController.playSFX(SoundID.S_ITEM_PICK_UP, 1, 0);
};
var _local3:int;
while (_local3 < (this..length - 1)) {
this.[_local3].shiftUp(35);
_local3++;
};
this.addChild(this.[(this..length - 1)]);
}
public function onHandToHandHit(_arg1:OokBody):void{
if (((!(this.isDying())) || (!(this.isDead())))){
if (this.getShield() > 0){
this.setShield((this.getShield() - _arg1. ()));
} else {
if (this.getHealth() > 0){
this.setHealth((this.getHealth() - _arg1. ()), _arg1);
};
};
};
}
public function onVanishing():void{
}
override public function keyDownHandler(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == GameEnum.KEY_A)))){
this.setMovingLeft(true);
return;
};
if ((((_arg1.keyCode == Keyboard.RIGHT)) || ((_arg1.keyCode == GameEnum.KEY_D)))){
this.setMovingRight(true);
return;
};
if (_arg1.keyCode == GameEnum.KEY_Q){
[this.].setFiring(false);
this.
( );
return;
};
if ((((_arg1.keyCode == Keyboard.UP)) || ((_arg1.keyCode == GameEnum.KEY_W)))){
if (!this.
){
if (!){
= true;
};
};
return;
};
if ((((((_arg1.keyCode == GameEnum.KEY_1)) && (!((this.getCurrentWeapon() == GameEnum.PISTOL))))) && (!((this.[GameEnum.PISTOL] == null))))){
this.[this.].setFiring(false);
this.
(GameEnum.PISTOL);
return;
};
if ((((((_arg1.keyCode == GameEnum.KEY_2)) && (!((this.getCurrentWeapon() == GameEnum.MAXNUM))))) && (!((this.[GameEnum.MAXNUM] == null))))){
this.[this.].setFiring(false);
this.
(GameEnum.MAXNUM);
return;
};
if ((((((_arg1.keyCode == GameEnum.KEY_3)) && (!((this.getCurrentWeapon() == GameEnum.RIFLE_BULLPUP))))) && (!((this.[GameEnum.RIFLE_BULLPUP] == null))))){
this.[this.].setFiring(false);
this.
(GameEnum.RIFLE_BULLPUP);
return;
};
if ((((((_arg1.keyCode == GameEnum.KEY_4)) && (!((this.getCurrentWeapon() == GameEnum.ASSULT_RIFLE))))) && (!((this.[GameEnum.ASSULT_RIFLE] == null))))){
this.[this.].setFiring(false);
this.
(GameEnum.ASSULT_RIFLE);
return;
};
if ((((((_arg1.keyCode == GameEnum.KEY_5)) && (!((this.getCurrentWeapon() == GameEnum.SUB_MACHINE))))) && (!((this.[GameEnum.SUB_MACHINE] == null))))){
this.[this.].setFiring(false);
this.
(GameEnum.SUB_MACHINE);
return;
};
if ((((((_arg1.keyCode == GameEnum.KEY_6)) && (!((this.getCurrentWeapon() == GameEnum.SHOT_GUN))))) && (!((this.[GameEnum.SHOT_GUN] == null))))){
this.[this.].setFiring(false);
this.
(GameEnum.SHOT_GUN);
return;
};
if (_arg1.keyCode == GameEnum.KEY_R){
this.[this.].reload();
return;
};
}
public function (_arg1:Number):void{
this. = (this. + _arg1);
this.addBodyLog((("+" + _arg1) + " Score"), false);
}
override public function mouseDownHandler(_arg1:MouseEvent):void{
setFiring(true);
}
override public function setFiring(_arg1:Boolean):void{
[this.].setFiring(_arg1);
}
override public function isDying():Boolean{
return (this.);
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function isJumping():Boolean{
return (this.);
}
public function (_arg1:Boolean):void{
this. = _arg1;
}
public function ():void{
this.controlPanel["bodyController"].removeBody(this);
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function isRequestForStandableCheck():Boolean{
return (this.);
}
public function setShield(_arg1:Number):void{
this. = _arg1;
if (this. > this.){
this. = this.;
return;
};
if (this. < 0){
this. = 0;
};
}
override public function keyUpHandler(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == GameEnum.KEY_A)))){
this.setMovingLeft(false);
return;
};
if ((((_arg1.keyCode == Keyboard.RIGHT)) || ((_arg1.keyCode == GameEnum.KEY_D)))){
this.setMovingRight(false);
return;
};
if ((((_arg1.keyCode == Keyboard.UP)) || ((_arg1.keyCode == GameEnum.KEY_W)))){
setDisableJumping();
= false;
return;
};
}
public function
(_arg1:Number):void{
this. = _arg1;
}
public function getArrayOfWeapon():Array{
return (this.);
}
public function getCurrentBodySet():Number{
return (this. );
}
public function ():Boolean{
return (this.);
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function getRotateBodyComponent():Number{
return (this.torso.rotation);
}
public function getCurrentWeaponForBullet():OokWeapon{
return (this.[]);
}
public function setEnableJumping():void{
this.
= false;
this. = getBoundary().getVirtualY();
}
override public function setMovingRight(_arg1:Boolean):void{
this.
= _arg1;
}
override public function isDead():Boolean{
return (this. );
}
public function getLimitBottomLeft():Number{
return (this.);
}
public function setBoundary(_arg1:BodyBoundary, _arg2:Number=0):void{
_arg1.setBoundaryPosition(this., _arg2);
this. = _arg1;
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function ():Number{
return ();
}
public function ():Number{
return ();
}
private function ():void{
this. = new TextField();
this..embedFonts = true;
this..styleSheet =
;
this..htmlText = "";
this..scaleX = this.FONT_SCALE;
this..scaleY = this.FONT_SCALE;
this..width = 500;
this..x = -((this..width / 2));
this..y = ((this..height - this.) + 10);
this..selectable = false;
this.addBodyLog("protect the flag\n|", false);
}
override public function getCurrentWeaponMagnifyPower():Number{
return (this.[].getMagnifyPower());
}
override public function getTeam():Number{
return (this.);
}
override public function setMovingSpeed(_arg1:Number):void{
this. = _arg1;
}
public function update():void{
if (this..getVirtualY() > 2000){
this..setVirtualY(500);
this..setVirtualX(500);
};
this..update();
this. .update();
this.
();
this.();
this.();
this.();
this.();
}
public function getVision():OokVision{
return (this.);
}
public function getFacing():Number{
return (this.
);
}
override public function getScore():Number{
return (this. );
}
public function ():Boolean{
return (this.
);
}
private function
():void{
var _local1:int;
while (_local1 < this.
.length) {
this.
[_local1].moveRelativeToParent(this);
_local1++;
};
}
public function ():Boolean{
return (this.
);
}
public function ():void{
this..htmlText = (("<p class='logMessage'>" + this.getName()) + "</p>");
this..y = ((this..height - this.) + 10);
}
public function checkMove():void{
var _local1:Number;
var _local2:Number;
if ( ){
= -();
} else {
if (
){
= ;
} else {
= 0;
};
};
if (this..getPreviousVirtualY() < this..getVirtualY()){
this. = true;
this. = false;
} else {
this. = false;
};
if ((() && (!()))){
if (!
){
_local1 = ( - y);
_local2 = Math.sqrt((_local1 * _local1));
if (_local2 >= this.
){
setEnableJumping();
= ;
} else {
= ;
};
} else {
= ;
};
} else {
= ;
};
this.();
.setVirtualX((.getVirtualX() + ));
.setVirtualY((.getVirtualY() + ));
();
}
override public function setFacing(_arg1:Number):void{
this.
= _arg1;
}
public function getConversation():Conversation{
return (new Conversation());
}
override public function getName():String{
return (this.);
}
public function getFlipPointBottom():Number{
return (this. );
}
override public function mouseUpHandler(_arg1:MouseEvent):void{
setFiring(false);
}
private function ():void{
this.
= new StyleSheet();
this.
.setStyle(".logMessage", GameEnum.STYLESHEET_BODY_LOG);
this.arm =
[ ].arm;
this.head =
[ ].head;
this.torso =
[ ].torso;
this.leg =
[ ].leg;
this.legCrouch =
[ ].legCrouch;
this. = this.arm.getCarrying();
this. = this.head.getHeadHeight();
this..y = -(this.getHeadHeight());
this..setupBoundary(this);
this. = new UIHealthBar();
this. = new UIArmorBar();
this..y = Math.round((-(this.getHeadHeight()) - 20));
this..y = (this..y - this..height);
var _local1:int;
while (_local1 < this..length) {
if (this.[_local1] != null){
this.[_local1].x = (this.[_local1].getAdjustX() + this.arm.getRightArm().getAdjustX());
this.[_local1].y = (this.[_local1].getAdjustY() + this.arm.getRightArm().getAdjustY());
};
_local1++;
};
this.head.y = this.head.getAdjustY();
this.head.x = this.head.getAdjustX();
this.arm.getLeftArm().x = this.arm.getLeftArm().getAdjustX();
this.arm.getLeftArm().y = this.arm.getLeftArm().getAdjustY();
this.arm.getRightArm().x = this.arm.getRightArm().getAdjustX();
this.arm.getRightArm().y = this.arm.getRightArm().getAdjustY();
this.torso.x = this.torso.getAdjustX();
this.torso.y = this.torso.getAdjustY();
this.leg.x = this.leg.getAdjustX();
this.leg.y = this.leg.getAdjustY();
this. = super.getFSM();
this. .setCurrentState(new OokAIStateIdle());
this. .setGlobalState(new OokAIStateIdle());
this.();
this.addChild(this.);
this.addChild(this.);
this.addChild(this. );
this.addChildAt(this.arm.getLeftArm(), 0);
this.addChildAt(this.leg, 1);
this.addChildAt(this.torso, 2);
this.addChildAt(this.head, 3);
this.addChildAt(this.[], 4);
this.addChildAt(this.arm.getRightArm(), 5);
this.addChild(this.);
this.addChild(this.);
this.addChild(this.);
this.addChild(this.);
this. = new BodyModeFSM(this);
this..changeMode(AimingMode.getInstance());
this.
();
}
public function ():BodyBoundary{
return (this.);
}
public function setRotateBodyComponentBy(_arg1:Number):void{
this.arm.getLeftArm().rotation = (this.arm.getLeftArm().rotation + _arg1);
this.arm.getRightArm().rotation = (this.arm.getRightArm().rotation + _arg1);
this.head.rotation = (this.head.rotation + _arg1);
this.torso.rotation = (this.torso.rotation + _arg1);
this.leg.rotation = (this.leg.rotation + _arg1);
this.legCrouch.rotation = (this.legCrouch.rotation + _arg1);
}
public function getPresetSpeech(_arg1:Number):String{
return ("");
}
public function (_arg1:Boolean):void{
this.
= _arg1;
}
override public function getHeadHeight():Number{
return (this.);
}
public function getCarryingItemPositionX():Number{
return ((this..width / 2));
}
public function getCarryingItemPositionY():Number{
return (20);
}
public function getLimitTopRight():Number{
return (this.);
}
public function ():void{
this.
[ ]["arm"].getLeftArm().rotation = 90;
[ ]["arm"].getRightArm().rotation = 90;
}
public function onVisualContact(_arg1:OokBody):void{
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function getDeadBoundary():BodyBoundary{
return (this. );
}
public function getLimitTopLeft():Number{
return (this.);
}
public function (_arg1:OokBaseObject):Boolean{
var _local2:int;
while (_local2 < this.
.length) {
if (this.
[_local2] == _arg1){
this.
[_local2].setIsBeingCarried(false);
this.
.splice(_local2, 1);
return (true);
};
_local2++;
};
return (false);
}
private function ():void{
var _local1:int;
while (_local1 < this..length) {
if (getTimer() >= this.[_local1].getDestroyTime()){
this.removeChild(this.[_local1]);
this.[_local1] = null;
this..splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function getAimingVision():Boolean{
return (this.);
}
public function getCurrentWeapon():Number{
return (this.);
}
public function setBending(_arg1:Boolean):void{
if (((!(this.)) && (!(this.)))){
this. = _arg1;
if (this.){
this.setBoundary(this., this. );
this.removeChild(
[ ].leg);
this.addChildAt(
[ ].legCrouch, 1);
this.
[ ].legCrouch.scaleX =
[ ].leg.scaleX;
this.setMovingSpeed(this.);
} else {
this.setBoundary(this., -(this. ));
this.removeChild(
[ ].legCrouch);
this.addChildAt(
[ ].leg, 1);
this.setMovingSpeed(this.
);
};
};
}
public function getWeaponByIndex(_arg1:Number):OokWeapon{
return (this.[_arg1]);
}
public function (_arg1:Number):void{
this.
= _arg1;
}
override public function getHealth():Number{
return (this.);
}
override public function getWeapon():OokWeapon{
return (this.[]);
}
private function ():void{
this..gotoAndStop(Math.round(((this. * 100) / this.)));
}
public function setHealth(_arg1:Number, _arg2:OokBody):void{
this. = _arg1;
if (this. > this.){
this. = this.;
return;
};
if (this. <= 0){
_arg2.(this.);
this..changeMode(DieByShotMode.getInstance());
};
}
public function
(_arg1:Number):void{
this. = _arg1;
}
public function ():Number{
return (this.);
}
public function getLimitBottomRight():Number{
return (this.);
}
public function ():Number{
return ();
}
override public function setMovingLeft(_arg1:Boolean):void{
this. = _arg1;
}
override public function getBendBoundaryHeight():Number{
return (this..height);
}
public function ():Number{
return ([].y);
}
public function ():Number{
return ([].x);
}
public function checkFlip():void{
if (Math.round(super.getAimX()) == 0){
return;
};
if ((((
== GameEnum.RIGHT)) && ((super.getAimX() < ([].x + [].getInverseAx()))))){
this.
[ ]["arm"].getRightArm().x =
[ ]["arm"].getRightArm().getInverseAx();
this.
[ ]["arm"].getLeftArm().x =
[ ]["arm"].getLeftArm().getInverseAx();
this.
[ ]["leg"].x =
[ ]["leg"].getInverseAx();
this.
[ ]["torso"].x =
[ ]["torso"].getInverseAx();
this.
[ ]["head"].x =
[ ]["head"].getInverseAx();
this.[].x = (this.[].getInverseAx() + this.arm.getRightArm().getInverseAx());
this.
[ ]["leg"].scaleX = -1;
this.
[ ]["torso"].scaleX = -1;
this.
[ ]["arm"].getLeftArm().scaleY = -1;
this.
[ ]["arm"].getRightArm().scaleY = -1;
this.
[ ]["head"].scaleY = -1;
this.[].scaleY = -1;
this..scaleX = -1;
= GameEnum.LEFT;
if ((((
[ ]["arm"].getLeftArm().rotation > )) && ((
[ ]["arm"].getLeftArm().rotation < )))){
this.
[ ]["head"].rotation = ;
} else {
if ((((
[ ]["arm"].getLeftArm().rotation < )) && ((
[ ]["arm"].getLeftArm().rotation > )))){
this.
[ ]["head"].rotation = ;
};
};
} else {
if ((((
== GameEnum.LEFT)) && ((super.getAimX() > ([].x + [].getAdjustX()))))){
this.
[ ]["arm"].getRightArm().x =
[ ]["arm"].getRightArm().getAdjustX();
this.
[ ]["arm"].getLeftArm().x =
[ ]["arm"].getLeftArm().getAdjustX();
this.
[ ]["leg"].x =
[ ]["leg"].getAdjustX();
this.
[ ]["torso"].x =
[ ]["torso"].getAdjustX();
this.
[ ]["head"].x =
[ ]["head"].getAdjustX();
this.[].x = (this.[].getAdjustX() + this.arm.getRightArm().getAdjustX());
this.
[ ]["leg"].scaleX = 1;
this.
[ ]["torso"].scaleX = 1;
this.
[ ]["arm"].getLeftArm().scaleY = 1;
this.
[ ]["arm"].getRightArm().scaleY = 1;
this.
[ ]["head"].scaleY = 1;
this.[].scaleY = 1;
this..scaleX = 1;
this.
= GameEnum.RIGHT;
if ((((
[ ]["arm"].getLeftArm().rotation > )) && ((
[ ]["arm"].getLeftArm().rotation < )))){
this.
[ ]["head"].rotation = ;
} else {
if ((((
[ ]["arm"].getLeftArm().rotation < )) && ((
[ ]["arm"].getLeftArm().rotation > )))){
this.
[ ]["head"].rotation = ;
};
};
};
};
}
public function render():void{
x = .getVirtualX();
if (this.isDead()){
y = .getVirtualY();
} else {
y = (.getVirtualY() + this.);
};
if ( != null){
if (!){
.adjustMovingFocusedBodyToCenter(x, y);
} else {
.adjustMovingFocusedBodyToCenter(x, (y - this. ));
};
};
}
public function ():Number{
return (this.);
}
public function getTimeOfDeathDelay():Number{
return (this.);
}
public function
():void{
var _local1:int;
while (_local1 < this.
.length) {
this.
[_local1].setIsBeingCarried(false);
this.
.splice(_local1, 1);
_local1++;
};
this.(false);
}
override public function getBoundary():Boundary{
return ();
}
public function getFlipPointTop():Number{
return (this.);
}
public function
(_arg1:Boolean):void{
this. = _arg1;
}
public function
():Number{
return (this.);
}
public function setPosition(_arg1:Number, _arg2:Number):void{
this.getBoundary().setVirtualX(_arg1);
this.getBoundary().setVirtualY(_arg2);
}
private function
(_arg1:Number):void{
if (this. != _arg1){
this.removeChild(
[ ]["arm"].getLeftArm());
this.removeChild([this.]);
this.removeChild(
[ ]["arm"].getRightArm());
this. = this.;
this. = _arg1;
[ ]["arm"].setCarrying(_arg1);
[ ]["arm"].getLeftArm().x =
[ ]["arm"].getLeftArm().getAdjustX();
[ ]["arm"].getRightArm().x =
[ ]["arm"].getRightArm().getAdjustX();
[ ]["arm"].getLeftArm().y =
[ ]["arm"].getLeftArm().getAdjustY();
[ ]["arm"].getRightArm().y =
[ ]["arm"].getRightArm().getAdjustY();
this.addChildAt(
[ ]["arm"].getLeftArm(), 0);
this.addChildAt([this.], 4);
this.addChildAt(
[ ]["arm"].getRightArm(), 5);
this.[this.].scaleY = (
[ ]["arm"].getLeftArm().scaleY = (
[ ]["arm"].getRightArm().scaleY =
[ ]["head"].scaleY));
if (this.
== GameEnum.LEFT){
this.
[ ]["arm"].getRightArm().x =
[ ]["arm"].getRightArm().getInverseAx();
this.
[ ]["arm"].getLeftArm().x =
[ ]["arm"].getLeftArm().getInverseAx();
this.[_arg1].x = (this.[_arg1].getAdjustX() + this.arm.getRightArm().getInverseAx());
} else {
this.
[ ]["arm"].getRightArm().x =
[ ]["arm"].getRightArm().getAdjustX();
this.
[ ]["arm"].getLeftArm().x =
[ ]["arm"].getLeftArm().getAdjustX();
this.[_arg1].x = (this.[_arg1].getAdjustX() + this.arm.getRightArm().getAdjustX());
};
};
}
public function
(_arg1:Boolean):void{
this. = _arg1;
}
public function
():Boolean{
return (this.);
}
override public function getLevel():OokLevel{
return (this. );
}
public function
():Boolean{
return (this.);
}
public function
(_arg1:Number):void{
this.
= _arg1;
}
public function addCarryingItem(_arg1:OokBaseObject):void{
if ((_arg1 is OokRedFlag)){
if (this.getTeam() == GameEnum.TEAM_A){
return;
};
this.(true);
};
this.
.push(_arg1);
this.
[(this.
.length - 1)].setIsBeingCarried(true);
}
public function ():Boolean{
return (this.
);
}
public function setDying(_arg1:Boolean):void{
this. = _arg1;
if (this.){
this.
();
};
}
public function (_arg1:Number):void{
this. = _arg1;
}
private function ():void{
if (this.){
this. = false;
};
if (this.){
this.setBending(!(this.));
this. = false;
if (!this.){
this. = true;
};
};
}
public function ():Number{
return (this.);
}
public function setDisableJumping():void{
this.
= true;
}
}
}//package OokBody.OokBodyType
Section 42
//OokBodyHumanoid (OokBody.OokBodyType.OokBodyHumanoid)
package OokBody.OokBodyType {
import OokBoundary.BoundaryType.*;
import OokVision.*;
public class OokBodyHumanoid extends OokBody {
public function OokBodyHumanoid(_arg1:Object, _arg2:Object, _arg3:Array, _arg4:Number, _arg5:BodyBoundary, _arg6:BodyBoundary, _arg7:BodyBoundary, _arg8:OokVision, _arg9:Number){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9);
}
}
}//package OokBody.OokBodyType
Section 43
//OokBodyOrgan (OokBody.OokBodyType.OokBodyOrgan)
package OokBody.OokBodyType {
import flash.display.*;
public class OokBodyOrgan extends MovieClip {
private var :Number;
private var :Number;
public function OokBodyOrgan(_arg1:Number, _arg2:Number){
this. = _arg1;
this. = _arg2;
}
public function getAdjustX():Number{
return (this.);
}
public function getInverseAx():Number{
return (-(this.));
}
public function getAdjustY():Number{
return (this. );
}
public function getInverseAy():Number{
return (-(this. ));
}
}
}//package OokBody.OokBodyType
Section 44
//GreyType1Head001 (OokBody.OokHead.GreyType1Head001)
package OokBody.OokHead {
public class GreyType1Head001 extends Head {
public function GreyType1Head001(){
super(185.9, 0, 0);
();
}
private function ():void{
}
}
}//package OokBody.OokHead
Section 45
//GreyType2Head (OokBody.OokHead.GreyType2Head)
package OokBody.OokHead {
public class GreyType2Head extends Head {
public function GreyType2Head(){
super(180, 0, 0);
();
}
private function ():void{
}
}
}//package OokBody.OokHead
Section 46
//Head (OokBody.OokHead.Head)
package OokBody.OokHead {
import OokBody.OokBodyType.*;
public class Head extends OokBodyOrgan {
private var :Number;
public function Head(_arg1:Number, _arg2:Number, _arg3:Number){
super(_arg2, _arg3);
this. = _arg1;
}
public function getHeadHeight():Number{
return (this.);
}
}
}//package OokBody.OokHead
Section 47
//SandyHead (OokBody.OokHead.SandyHead)
package OokBody.OokHead {
public class SandyHead extends Head {
public function SandyHead(){
super(170, 0, 0);
();
}
private function ():void{
}
}
}//package OokBody.OokHead
Section 48
//GreyType1Leg001 (OokBody.OokLeg.GreyType1Leg001)
package OokBody.OokLeg {
public class GreyType1Leg001 extends Leg {
public function GreyType1Leg001(){
super(0, -5);
}
}
}//package OokBody.OokLeg
Section 49
//GreyType2Leg (OokBody.OokLeg.GreyType2Leg)
package OokBody.OokLeg {
public class GreyType2Leg extends Leg {
public function GreyType2Leg(){
super(0, -5);
}
}
}//package OokBody.OokLeg
Section 50
//Leg (OokBody.OokLeg.Leg)
package OokBody.OokLeg {
import OokBody.OokBodyType.*;
public class Leg extends OokBodyOrgan {
public function Leg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package OokBody.OokLeg
Section 51
//SandyLeg (OokBody.OokLeg.SandyLeg)
package OokBody.OokLeg {
public class SandyLeg extends Leg {
public function SandyLeg(){
super(0, 0);
}
}
}//package OokBody.OokLeg
Section 52
//GreyType1Torso001 (OokBody.OokTorso.GreyType1Torso001)
package OokBody.OokTorso {
public class GreyType1Torso001 extends Torso {
public function GreyType1Torso001(){
super(0, 0);
();
}
private function ():void{
}
}
}//package OokBody.OokTorso
Section 53
//GreyType2Torso (OokBody.OokTorso.GreyType2Torso)
package OokBody.OokTorso {
public class GreyType2Torso extends Torso {
public function GreyType2Torso(){
super(0, 0);
();
}
private function ():void{
}
}
}//package OokBody.OokTorso
Section 54
//SandyTorso (OokBody.OokTorso.SandyTorso)
package OokBody.OokTorso {
public class SandyTorso extends Torso {
public function SandyTorso(){
super(0, 0);
();
}
private function ():void{
}
}
}//package OokBody.OokTorso
Section 55
//Torso (OokBody.OokTorso.Torso)
package OokBody.OokTorso {
import OokBody.OokBodyType.*;
public class Torso extends OokBodyOrgan {
public function Torso(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package OokBody.OokTorso
Section 56
//BodyBoundary002 (OokBoundary.BodyBoundary.BodyBoundary002)
package OokBoundary.BodyBoundary {
import OokBoundary.BoundaryType.*;
public class BodyBoundary002 extends BodyBoundary {
public function BodyBoundary002(){
();
}
private function ():void{
}
}
}//package OokBoundary.BodyBoundary
Section 57
//GreyType1Boundary001 (OokBoundary.BodyBoundary.GreyType1Boundary001)
package OokBoundary.BodyBoundary {
import OokBoundary.BoundaryType.*;
public class GreyType1Boundary001 extends BodyBoundary {
public function GreyType1Boundary001(){
();
}
private function ():void{
}
}
}//package OokBoundary.BodyBoundary
Section 58
//GreyType1DeadBoundary (OokBoundary.BodyBoundary.GreyType1DeadBoundary)
package OokBoundary.BodyBoundary {
import OokBoundary.BoundaryType.*;
public class GreyType1DeadBoundary extends BodyBoundary {
public function GreyType1DeadBoundary(){
();
}
private function ():void{
}
}
}//package OokBoundary.BodyBoundary
Section 59
//GreyType2Boundary (OokBoundary.BodyBoundary.GreyType2Boundary)
package OokBoundary.BodyBoundary {
import OokBoundary.BoundaryType.*;
public class GreyType2Boundary extends BodyBoundary {
public function GreyType2Boundary(){
();
}
private function ():void{
}
}
}//package OokBoundary.BodyBoundary
Section 60
//SandyBoundary (OokBoundary.BodyBoundary.SandyBoundary)
package OokBoundary.BodyBoundary {
import OokBoundary.BoundaryType.*;
public class SandyBoundary extends BodyBoundary {
public function SandyBoundary(){
();
}
private function ():void{
}
}
}//package OokBoundary.BodyBoundary
Section 61
//SandyDeadBoundary (OokBoundary.BodyBoundary.SandyDeadBoundary)
package OokBoundary.BodyBoundary {
import OokBoundary.BoundaryType.*;
public class SandyDeadBoundary extends BodyBoundary {
public function SandyDeadBoundary(){
();
}
private function ():void{
}
}
}//package OokBoundary.BodyBoundary
Section 62
//BodyBoundary (OokBoundary.BoundaryType.BodyBoundary)
package OokBoundary.BoundaryType {
import OokObject.*;
public class BodyBoundary extends Boundary {
private var
:Number;
public function getBendBoundaryHeight():Number{
return (this.
);
}
override public function setupBoundary(_arg1:OokMobileObject):void{
super.mobileObject = _arg1;
this.y = -(_arg1.getHeadHeight());
super.setVirtualX(_arg1.x);
super.setVirtualY((_arg1.y - _arg1.getHeadHeight()));
super.setPreviousVirtualX(super.getVirtualX());
super.setPreviousVirtualY(super.getVirtualY());
this.
= _arg1.getBendBoundaryHeight();
}
}
}//package OokBoundary.BoundaryType
Section 63
//Boundary (OokBoundary.BoundaryType.Boundary)
package OokBoundary.BoundaryType {
import flash.display.*;
import OokObject.*;
import OokEnum.*;
public class Boundary extends Sprite {
protected var mobileObject:OokMobileObject;
private var :Number;
private var :Number;
private var :Number;
private var :Number;
public function Boundary(){
if (!GameEnum.DEBUG_MODE){
this.alpha = 0;
};
}
public function getVirtualX():Number{
return (this.);
}
protected function setPreviousVirtualX(_arg1:Number):void{
this. = _arg1;
}
public function setupBoundary(_arg1:OokMobileObject):void{
this.mobileObject = _arg1;
this. = _arg1.x;
this. = _arg1.y;
this. = _arg1.y;
this. = this.;
this. = this.;
}
public function ():Number{
return (this.);
}
public function getVirtualY():Number{
return (this.);
}
public function setVirtualX(_arg1:Number):void{
this.setPreviousVirtualX(this.);
this. = _arg1;
}
public function setVirtualY(_arg1:Number):void{
this.setPreviousVirtualY(this.);
this. = _arg1;
}
public function setBoundaryPosition(_arg1:Boundary, _arg2:Number=0):void{
this. = _arg1.getVirtualX();
this. = (_arg1.getVirtualY() + _arg2);
this. = _arg1.();
this. = _arg1.getPreviousVirtualY();
}
protected function setPreviousVirtualY(_arg1:Number):void{
this. = _arg1;
}
public function getPreviousVirtualY():Number{
return (this.);
}
}
}//package OokBoundary.BoundaryType
Section 64
//ItemBoundary (OokBoundary.BoundaryType.ItemBoundary)
package OokBoundary.BoundaryType {
public class ItemBoundary extends Boundary {
}
}//package OokBoundary.BoundaryType
Section 65
//SoundBoundary (OokBoundary.BoundaryType.SoundBoundary)
package OokBoundary.BoundaryType {
public class SoundBoundary extends Boundary {
public function SoundBoundary(){
();
}
private function ():void{
}
}
}//package OokBoundary.BoundaryType
Section 66
//ItemBoxBoundary (OokBoundary.ItemBoundary.ItemBoxBoundary)
package OokBoundary.ItemBoundary {
import OokBoundary.BoundaryType.*;
public class ItemBoxBoundary extends ItemBoundary {
public function ItemBoxBoundary(){
();
}
private function ():void{
}
}
}//package OokBoundary.ItemBoundary
Section 67
//RedFlagBoundary (OokBoundary.ItemBoundary.RedFlagBoundary)
package OokBoundary.ItemBoundary {
import OokBoundary.BoundaryType.*;
public class RedFlagBoundary extends ItemBoundary {
public function RedFlagBoundary(){
();
}
private function ():void{
}
}
}//package OokBoundary.ItemBoundary
Section 68
//SoundBoundaryHuman (OokBoundary.SoundBoundary.SoundBoundaryHuman)
package OokBoundary.SoundBoundary {
import OokBoundary.BoundaryType.*;
public class SoundBoundaryHuman extends SoundBoundary {
}
}//package OokBoundary.SoundBoundary
Section 69
//OokClickable (OokClickable.OokClickable)
package OokClickable {
import flash.events.*;
import flash.display.*;
import OokCursor.*;
import flash.ui.*;
public class OokClickable extends MovieClip {
private var :OokCustomCursor;
public function OokClickable(){
this. = new OokCustomCursor();
this.addEventListener(MouseEvent.MOUSE_OVER, );
this.addEventListener(MouseEvent.MOUSE_OUT, );
this.addEventListener(MouseEvent.MOUSE_MOVE, );
}
private function (_arg1:MouseEvent):void{
Mouse.show();
this.removeChild(this.);
}
private function (_arg1:MouseEvent):void{
this..x = _arg1.localX;
this..y = _arg1.localY;
_arg1.updateAfterEvent();
}
private function (_arg1:MouseEvent):void{
Mouse.hide();
this.addChild(this.);
}
}
}//package OokClickable
Section 70
//BodyController (OokController.BodyController)
package OokController {
import OokBody.OokBodyType.*;
import OokObject.*;
import OokEnum.*;
import flash.utils.*;
public class BodyController extends Controller {
private var :Array;
private var :Number;
private var :Array;
private var :Array;
private var :Array;
private var :Array;
private var :Array;
private var :Number;
public function BodyController(){
();
}
public function getFocusedBody():OokBody{
return (this.[this.][this.]);
}
public function removeBody(_arg1:OokBody):void{
var _local2:Number = _arg1.getTeam();
var _local3:OokBody;
var _local4:Number = -1;
var _local5:int;
while (_local5 < this.[_local2].length) {
if (this.[_local2][_local5] == _arg1){
_local3 = this.[_local2][_local5];
_local4 = _local5;
break;
};
_local5++;
};
if ((((_local3 == null)) || ((_local4 == -1)))){
return;
};
this.removeChild([_local2][_local4]);
this.[_local2][_local4] = null;
this.[_local2].splice(_local4, 1);
OokObjectManager.removeObject(_local3);
}
public function update():void{
var _local2:int;
var _local1:int;
while (_local1 < GameEnum.TOTAL_NUMBER_OF_TEAM) {
_local2 = 0;
while (_local2 < [_local1].length) {
[_local1][_local2].update();
if ([_local1][_local2].isDead()){
if (getTimer() > ([_local1][_local2].getTimeOfDeath() + [_local1][_local2].getTimeOfDeathDelay())){
[_local1][_local2].onVanishing();
removeBody([_local1][_local2]);
_local2--;
};
};
_local2++;
};
_local1++;
};
}
public function getFocusedBodyIndex():Number{
return (this.);
}
private function ():void{
= new Array();
= new Array();
= new Array();
= new Array();
= new Array();
= new Array();
[GameEnum.TEAM_A] = ;
[GameEnum.TEAM_B] = ;
[GameEnum.TEAM_C] = ;
[GameEnum.TEAM_D] = ;
[GameEnum.TEAM_E] = ;
= 0;
= 0;
}
public function getBody(_arg1:Number, _arg2:Number):OokBody{
return (this.[_arg1][_arg2]);
}
public function addBody(_arg1:OokBody, _arg2:Number, _arg3:Number, _arg4:Boolean=false):OokBody{
var _local5:Number = _arg1.getTeam();
this.[_local5].push(_arg1);
this.[_local5][([_local5].length - 1)].setPosition(_arg2, _arg3);
if (_arg4 == true){
this. = ([_local5].length - 1);
this. = _local5;
};
OokObjectManager.registerObject([_local5][([_local5].length - 1)]);
this.addChild([_local5][([_local5].length - 1)]);
return (this.getBody(_local5, ([_local5].length - 1)));
}
public function
():Number{
return (this.);
}
public function getNumberOfBody(_arg1:Number):Number{
return (this.[_arg1].length);
}
}
}//package OokController
Section 71
//BulletController (OokController.BulletController)
package OokController {
import OokWeapon.OokBullet.*;
import OokEnum.*;
public class BulletController extends Controller {
private var :Array;
private var :Array;
private var :Array;
private var :Array;
private var :Array;
private var :Array;
public function BulletController(){
();
}
public function destroyBullet(_arg1:Number, _arg2:Number):Boolean{
removeChild([_arg1][_arg2]);
[_arg1][_arg2] = null;
[_arg1].splice(_arg2, 1);
return (true);
}
private function ():void{
var _local2:int;
var _local1:int;
while (_local1 < GameEnum.TOTAL_NUMBER_OF_TEAM) {
_local2 = 0;
while (_local2 < [_local1].length) {
[_local1][_local2].update();
if (![_local1][_local2].isStillEffective()){
removeChild([_local1][_local2]);
[_local1][_local2] = null;
[_local1].splice(_local2, 1);
_local2--;
};
_local2++;
};
_local1++;
};
}
public function getNumberOfBullet(_arg1:Number):Number{
return ([_arg1].length);
}
public function update():void{
();
}
public function addBullet(_arg1:Bullet):void{
var _local2:Number = _arg1.getTeam();
[_local2].push(_arg1);
addChild([_local2][([_local2].length - 1)]);
}
private function ():void{
= new Array();
= new Array();
= new Array();
= new Array();
= new Array();
= new Array();
[GameEnum.TEAM_A] = ;
[GameEnum.TEAM_B] = ;
[GameEnum.TEAM_C] = ;
[GameEnum.TEAM_D] = ;
[GameEnum.TEAM_E] = ;
}
public function getBullet(_arg1:Number, _arg2:Number):Bullet{
return ([_arg1][_arg2]);
}
}
}//package OokController
Section 72
//CollisionController (OokController.CollisionController)
package OokController {
import OokAI.*;
import OokBody.OokBodyType.*;
import OokObject.*;
import OokWeapon.OokBullet.*;
import OokEffect.*;
import OokHitable.*;
import OokItem.*;
import OokInteractiveObject.*;
import OokSlope.*;
import OokEnum.*;
public class CollisionController extends Controller {
private var controlPanel:Object;
public function CollisionController(_arg1:Object){
this.controlPanel = _arg1;
();
}
public function (_arg1:Number, _arg2:Number):void{
var _local5:Number;
var _local6:int;
var _local7:OokBody;
var _local3:Number = GameEnum.TOTAL_NUMBER_OF_TEAM;
var _local4:int;
while (_local4 < _local3) {
_local5 = controlPanel["bodyController"].getNumberOfBody(_local4);
_local6 = 0;
while (_local6 < _local5) {
_local7 = controlPanel["bodyController"].getBody(_local4, _local6);
if ((((((((_arg1 >= (_local7.getBoundary().getVirtualX() - (_local7.getBoundary().width / 2)))) && ((_arg1 <= (_local7.getBoundary().getVirtualX() + (_local7.getBoundary().width / 2)))))) && ((_arg2 <= (_local7.getBoundary().getVirtualY() + _local7.getBoundary().height))))) && ((_arg2 >= (_local7.getBoundary().getVirtualY() - (_local7.getBoundary().height * (1 / 4))))))){
this.controlPanel["conversationController"].openConversation(_local7, this.controlPanel["bodyController"].getFocusedBody());
};
_local6++;
};
_local4++;
};
}
private function ():void{
var _local4:int;
var _local5:Bullet;
var _local6:int;
var _local7:OokHitable;
var _local1:Number = GameEnum.TOTAL_NUMBER_OF_TEAM;
var _local2:Number = controlPanel["hitableController"].getNumberOfHitable();
var _local3:int;
while (_local3 < _local1) {
_local4 = 0;
while (_local4 < controlPanel["bulletController"].getNumberOfBullet(_local3)) {
_local5 = controlPanel["bulletController"].getBullet(_local3, _local4);
_local6 = 0;
while (_local6 < _local2) {
_local7 = controlPanel["hitableController"].getHitable(_local6);
if (_local7.hitTestObject(_local5)){
_local7.onCollideWithBullet();
controlPanel.effectController.addEffect(new OokEffect001(), _local5.getPointOfContactX(), _local5.getPointOfContactY());
if (controlPanel["bulletController"].destroyBullet(_local3, _local4)){
_local4--;
break;
};
};
_local6++;
};
_local4++;
};
_local3++;
};
}
private function ():void{
var _local1:OokItem;
var _local2:OokBody;
var _local4:int;
var _local5:int;
var _local3:int;
while (_local3 < 1) {
_local4 = 0;
while (_local4 < controlPanel["bodyController"].getNumberOfBody(_local3)) {
_local2 = controlPanel["bodyController"].getBody(_local3, _local4);
_local5 = 0;
while (_local5 < controlPanel["itemController"].getNumberOfItem()) {
_local1 = controlPanel["itemController"].getItem(_local5);
if (_local1.hitTestObject(_local2.getBoundary())){
_local1.onCollideWithBody(_local2);
};
_local5++;
};
_local4++;
};
_local3++;
};
}
private function ():void{
var _local6:int;
var _local7:Bullet;
var _local8:int;
var _local9:OokSlope;
var _local1 = "slopeController";
var _local2 = "bulletController";
var _local3:Number = GameEnum.TOTAL_NUMBER_OF_TEAM;
var _local4:Number = controlPanel[_local1].getNumberOfSlope();
var _local5:int;
while (_local5 < _local3) {
_local6 = 0;
while (_local6 < controlPanel[_local2].getNumberOfBullet(_local5)) {
_local7 = controlPanel[_local2].getBullet(_local5, _local6);
_local8 = 0;
while (_local8 < _local4) {
_local9 = controlPanel[_local1].getSlope(_local8);
if (_local9.hitTestObject(_local7)){
if ((((((_local7.x >= _local9.x)) && (((_local7.x + _local7.width) <= (_local9.x + _local9.width))))) && (((_local7.y + (_local7.height / 2)) >= ((_local9.y + _local9.height) + _local9.getStandPoint(_local7.x)))))){
controlPanel.effectController.addEffect(new OokEffect001(), _local7.getPointOfContactX(), _local7.getPointOfContactY());
if (controlPanel[_local2].destroyBullet(_local5, _local6)){
_local6--;
break;
};
};
};
_local8++;
};
_local6++;
};
_local5++;
};
}
private function
():void{
var _local4:Number;
var _local5:int;
var _local6:OokBody;
var _local7:int;
var _local8:OokBody;
var _local9:int;
var _local10:OokBody;
var _local11:int;
var _local12:int;
var _local13:OokBody;
var _local14:Number;
var _local1:Number = GameEnum.TOTAL_NUMBER_OF_TEAM;
var _local2:int;
while (_local2 < _local1) {
_local4 = controlPanel["bodyController"].getNumberOfBody(_local2);
_local5 = 0;
while (_local5 < (_local4 - 1)) {
_local6 = controlPanel["bodyController"].getBody(_local2, _local5);
_local7 = (_local5 + 1);
while (_local7 < _local4) {
_local8 = controlPanel["bodyController"].getBody(_local2, _local7);
if (_local6.getBoundary().hitTestObject(_local8.getBoundary())){
};
_local7++;
};
_local5++;
};
_local2++;
};
var _local3:int;
while (_local3 < (_local1 - 1)) {
_local9 = 0;
while (_local9 < controlPanel["bodyController"].getNumberOfBody(_local3)) {
_local10 = controlPanel["bodyController"].getBody(_local3, _local9);
_local11 = (_local3 + 1);
while (_local11 < _local1) {
_local12 = 0;
while (_local12 < controlPanel["bodyController"].getNumberOfBody(_local11)) {
_local13 = controlPanel["bodyController"].getBody(_local11, _local12);
if (_local10.getBoundary().hitTestObject(_local13.getBoundary())){
_local14 = (_local10.getBoundary().getVirtualX() - _local13.getBoundary().getVirtualX());
if (_local14 >= 0){
};
_local10.onCollideWithBody(_local13, GameEnum.ENABLE_CALL_BACK);
};
_local12++;
};
_local11++;
};
_local9++;
};
_local3++;
};
}
public function update():void{
this.
();
this.();
this.();
this.();
this.
();
this.();
this.();
this.();
this.();
this.();
this.();
this. ();
this.();
}
private function ():void{
var _local4:int;
var _local5:OokBody;
var _local6:int;
var _local7:OokHitable;
var _local8:Number;
var _local9:Number;
var _local1:Number = GameEnum.TOTAL_NUMBER_OF_TEAM;
var _local2:Number = controlPanel["hitableController"].getNumberOfHitable();
var _local3:int;
while (_local3 < _local1) {
_local4 = 0;
while (_local4 < controlPanel["bodyController"].getNumberOfBody(_local3)) {
_local5 = controlPanel["bodyController"].getBody(_local3, _local4);
if (_local5.isDying()){
} else {
_local6 = 0;
while (_local6 < _local2) {
_local7 = controlPanel["hitableController"].getHitable(_local6);
if (_local7.hitTestObject(_local5.getBoundary())){
_local8 = (_local5.getBoundary().getVirtualX() - _local7.x);
if (_local5.isRequestForStandableCheck()){
_local9 = _local5.getBendBoundaryHeight();
} else {
_local9 = _local5.getBoundary().height;
};
if ((_local5.getBoundary().getPreviousVirtualY() + _local9) > _local7.y){
if (_local5.getBoundary().getPreviousVirtualY() <= (_local7.y + _local7.height)){
if (_local8 >= 0){
_local5.getBoundary().setVirtualX(((_local7.x + _local7.width) + (_local5.getBoundary().width / 2)));
} else {
_local5.getBoundary().setVirtualX((_local7.x - (_local5.getBoundary().width / 2)));
};
} else {
if (_local5.isRequestForStandableCheck()){
_local5.setBending(true);
} else {
_local5.getBoundary().setVirtualY((_local7.y + _local7.height));
_local5.setDisableJumping();
};
};
} else {
_local5.getBoundary().setVirtualY((_local7.y - _local5.getBoundary().height));
_local5.setEnableJumping();
};
};
_local5.render();
_local6++;
};
};
_local4++;
};
_local3++;
};
}
private function ():void{
var _local1:OokItem;
var _local2:OokBody;
var _local4:int;
_local1 = OokItem(OokObjectManager.getObjectFromID(OokIDEnum.I_FLAG));
var _local3 = 1;
while (_local3 < 2) {
_local4 = 0;
while (_local4 < controlPanel["bodyController"].getNumberOfBody(_local3)) {
_local2 = controlPanel["bodyController"].getBody(_local3, _local4);
if (_local1.hitTestObject(_local2.getBoundary())){
_local1.onCollideWithBody(_local2);
};
_local4++;
};
_local3++;
};
}
private function
():void{
var _local1:Bullet;
var _local2:OokBody;
var _local5:int;
var _local6:int;
var _local7:int;
var _local3:Boolean;
var _local4:int;
while (_local4 < GameEnum.TOTAL_NUMBER_OF_TEAM) {
_local5 = 0;
while (_local5 < controlPanel["bulletController"].getNumberOfBullet(_local4)) {
_local1 = controlPanel["bulletController"].getBullet(_local4, _local5);
_local6 = 0;
while (_local6 < GameEnum.TOTAL_NUMBER_OF_TEAM) {
if (_local4 == _local6){
} else {
if (_local3){
_local3 = false;
break;
};
_local7 = 0;
while (_local7 < controlPanel["bodyController"].getNumberOfBody(_local6)) {
_local2 = controlPanel["bodyController"].getBody(_local6, _local7);
if (_local1.hitTestObject(_local2.getBoundary())){
_local2.onBulletHit(_local1);
controlPanel.effectController.addEffect(new OokEffect001(), _local1.getPointOfContactX(), _local1.getPointOfContactY());
if (controlPanel.bulletController.destroyBullet(_local4, _local5)){
_local5--;
_local3 = true;
break;
};
};
_local7++;
};
};
_local6++;
};
_local5++;
};
_local4++;
};
}
private function ():void{
}
private function ():void{
var _local6:int;
var _local7:OokBody;
var _local8:int;
var _local9:OokSlope;
var _local1 = "slopeController";
var _local2 = "bodyController";
var _local3:Number = GameEnum.TOTAL_NUMBER_OF_TEAM;
var _local4:Number = controlPanel[_local1].getNumberOfSlope();
var _local5:int;
while (_local5 < _local3) {
_local6 = 0;
while (_local6 < controlPanel[_local2].getNumberOfBody(_local5)) {
_local7 = controlPanel[_local2].getBody(_local5, _local6);
_local8 = 0;
while (_local8 < _local4) {
_local9 = controlPanel[_local1].getSlope(_local8);
if (_local9.hitTestObject(_local7.getBoundary())){
if ((((((((_local7.isJumping() == false)) && ((_local7.getBoundary().getVirtualX() >= _local9.x)))) && ((_local7.getBoundary().getVirtualX() <= (_local9.x + _local9.width))))) && (((_local7.getBoundary().getVirtualY() + _local7.getBoundary().height) >= ((_local9.y + _local9.height) + _local9.getStandPoint(_local7.getBoundary().getVirtualX())))))){
_local7.getBoundary().setVirtualY((((_local9.y + _local9.height) + _local9.getStandPoint(_local7.getBoundary().getVirtualX())) - _local7.getBoundary().height));
_local7.setIsOnSlope(true);
_local7.setEnableJumping();
};
} else {
_local7.setIsOnSlope(false);
};
_local7.render();
_local8++;
};
_local6++;
};
_local5++;
};
}
private function ():void{
var _local1:OokBody = controlPanel["bodyController"].getFocusedBody().getSoundBoundary();
}
private function ():void{
var _local5:OokItem;
var _local6:int;
var _local7:OokSlope;
var _local1 = "itemController";
var _local2 = "slopeController";
var _local3:Number = controlPanel[_local2].getNumberOfSlope();
var _local4:int;
while (_local4 < controlPanel[_local1].getNumberOfItem()) {
_local5 = controlPanel[_local1].getItem(_local4);
_local6 = 0;
while (_local6 < _local3) {
_local7 = controlPanel[_local2].getSlope(_local6);
if (_local7.hitTestObject(_local5.getBoundary())){
if ((((((_local5.getBoundary().getVirtualX() >= _local7.x)) && ((_local5.getBoundary().getVirtualX() <= (_local7.x + _local7.width))))) && (((_local5.getBoundary().getVirtualY() + _local5.getBoundary().height) >= ((_local7.y + _local7.height) + _local7.getStandPoint(_local5.getBoundary().getVirtualX())))))){
_local5.getBoundary().setVirtualY((((_local7.y + _local7.height) + _local7.getStandPoint(_local5.getBoundary().getVirtualX())) - _local5.getBoundary().height));
};
};
_local5.render();
_local6++;
};
_local4++;
};
}
private function ():void{
var _local3:OokHitable;
var _local4:int;
var _local5:OokHitable;
var _local1:Number = controlPanel["hitableController"].getNumberOfHitable();
var _local2:int;
while (_local2 < (_local1 - 1)) {
_local3 = controlPanel["hitableController"].getHitable(_local2);
_local4 = (_local2 + 1);
while (_local4 < _local1) {
_local5 = controlPanel["hitableController"].getHitable(_local4);
if (_local3.hitTestObject(_local5)){
};
_local4++;
};
_local2++;
};
}
private function ():void{
var _local4:Number;
var _local5:int;
var _local6:OokBody;
var _local7:int;
var _local8:OokBody;
var _local9:int;
var _local10:OokBody;
var _local11:int;
var _local12:int;
var _local13:OokBody;
var _local1:Number = GameEnum.TOTAL_NUMBER_OF_TEAM;
var _local2:int;
while (_local2 < _local1) {
_local4 = controlPanel["bodyController"].getNumberOfBody(_local2);
_local5 = 0;
while (_local5 < (_local4 - 1)) {
_local6 = controlPanel["bodyController"].getBody(_local2, _local5);
_local7 = (_local5 + 1);
while (_local7 < _local4) {
_local8 = controlPanel["bodyController"].getBody(_local2, _local7);
if (_local6.getVision().hitTestObject(_local8.getBoundary())){
};
_local7++;
};
_local5++;
};
_local2++;
};
var _local3:int;
while (_local3 < _local1) {
_local9 = 0;
while (_local9 < controlPanel["bodyController"].getNumberOfBody(_local3)) {
_local10 = controlPanel["bodyController"].getBody(_local3, _local9);
_local11 = 0;
while (_local11 < _local1) {
_local12 = 0;
while (_local12 < controlPanel["bodyController"].getNumberOfBody(_local11)) {
_local13 = controlPanel["bodyController"].getBody(_local11, _local12);
if (_local10 == _local13){
} else {
if (_local10.getVision().hitTestObject(_local13.getBoundary())){
_local10.onVisualContact(_local13);
};
};
_local12++;
};
_local11++;
};
_local9++;
};
_local3++;
};
}
private function ():void{
var _local1:OokInteractiveObject;
var _local2:OokBody;
var _local4:int;
var _local5:int;
var _local3:int;
while (_local3 < GameEnum.TOTAL_NUMBER_OF_TEAM) {
_local4 = 0;
while (_local4 < controlPanel["bodyController"].getNumberOfBody(_local3)) {
_local2 = controlPanel["bodyController"].getBody(_local3, _local4);
_local5 = 0;
while (_local5 < controlPanel["interactiveObjectController"].getNumberOfInteractiveObject()) {
_local1 = controlPanel["interactiveObjectController"].getInteractiveObject(_local5);
if (_local1.hitTestObject(_local2.getBoundary())){
_local1.onCollideWithBody(_local2);
};
_local5++;
};
_local4++;
};
_local3++;
};
}
private function ():void{
var _local4:OokItem;
var _local5:int;
var _local6:OokHitable;
var _local7:Number;
var _local8:Number;
var _local1:Number = controlPanel["itemController"].getNumberOfItem();
var _local2:Number = controlPanel["hitableController"].getNumberOfHitable();
var _local3:int;
while (_local3 < _local1) {
_local4 = controlPanel["itemController"].getItem(_local3);
if (_local4.getIsBeingCarried()){
_local4.render();
} else {
_local5 = 0;
while (_local5 < _local2) {
_local6 = controlPanel["hitableController"].getHitable(_local5);
if (_local6.hitTestObject(_local4.getBoundary())){
_local7 = (_local4.getBoundary().getVirtualX() - _local6.x);
_local8 = _local4.getBoundary().height;
if ((_local4.getBoundary().getPreviousVirtualY() + _local8) > _local6.y){
if (_local4.getBoundary().getPreviousVirtualY() <= (_local6.y + _local6.height)){
if (_local7 >= 0){
_local4.getBoundary().setVirtualX(((_local6.x + _local6.width) + (_local4.getBoundary().width / 2)));
} else {
_local4.getBoundary().setVirtualX((_local6.x - (_local4.getBoundary().width / 2)));
};
} else {
_local4.getBoundary().setVirtualY((_local6.y + _local6.height));
};
} else {
_local4.getBoundary().setVirtualY((_local6.y - _local4.getBoundary().height));
};
};
_local4.render();
_local5++;
};
};
_local3++;
};
}
}
}//package OokController
Section 73
//Controller (OokController.Controller)
package OokController {
import flash.display.*;
public class Controller extends Sprite {
}
}//package OokController
Section 74
//ConversationController (OokController.ConversationController)
package OokController {
import flash.events.*;
import OokBody.OokBodyType.*;
import OokConversation.*;
import flash.text.*;
import OokPortrait.*;
public class ConversationController extends Controller {
private var :TextField;
private var :Boolean;
private var :OokPortrait;
private var
:Conversation;
private var :OokBody;
private var :TextField;
private var :Number;
private var
:TextField;
private var :OokBody;
public function ConversationController(){
();
}
public function update():void{
if (((this.
.isEnding()) || (!(this.())))){
this.();
};
}
public function isHavingConversation():Boolean{
return (this.);
}
private function ():void{
this. = false;
this. = 1000;
}
public function keyDownHandler(_arg1:KeyboardEvent):void{
this.
.keyDownHandler(_arg1);
}
private function ():Boolean{
var _local1:Number = (.getBoundary().getVirtualX() - .getBoundary().getVirtualX());
var _local2:Number = (.getBoundary().getVirtualY() - .getBoundary().getVirtualY());
var _local3:Number = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
if (_local3 > this.){
return (false);
};
return (true);
}
public function openConversation(_arg1:OokBody, _arg2:OokBody):void{
if (this.){
this.();
return;
};
this. = _arg1;
this. = _arg2;
if (!this.()){
this. = null;
this. = null;
return;
};
this. = true;
this.
= this..getConversation();
this. = this.
.getDialogTextField();
this.
= this.
.getChoiceTextField();
this. = this.
.getSpeakerNameTextField();
this. = this.
.getPortrait();
this.addChild(this.
);
this.addChild(this.);
this.addChild(this. );
this.addChild(this.
);
this.addChild(this.);
}
public function ():void{
this. = false;
this.removeChild(this.
);
this.removeChild(this.);
this.removeChild(this. );
this.removeChild(this.
);
this.removeChild(this.);
this.
= null;
this. = null;
this. = null;
this. = null;
this.
= null;
this. = null;
this. = null;
}
}
}//package OokController
Section 75
//EffectController (OokController.EffectController)
package OokController {
import OokEffect.*;
public class EffectController extends Controller {
private var :Array;
public function EffectController(){
this.();
}
private function ():void{
this. = new Array();
}
public function addEffect(_arg1:OokEffect, _arg2:Number, _arg3:Number):void{
this..push(_arg1);
this.[(.length - 1)].x = _arg2;
this.[(.length - 1)].y = _arg3;
this.addChild([(.length - 1)]);
}
public function
(_arg1:Number):void{
this.removeChild(this.[_arg1]);
this.[_arg1] = null;
this..splice(_arg1, 1);
}
public function ():Number{
return (this..length);
}
public function update():void{
var _local1:int;
while (_local1 < this..length) {
if (this.[_local1].currentFrame == this.[_local1].totalFrames){
this.
(_local1);
_local1--;
};
_local1++;
};
}
public function
(_arg1:Number):OokEffect{
return (this.[_arg1]);
}
}
}//package OokController
Section 76
//HitableController (OokController.HitableController)
package OokController {
import OokHitable.*;
public class HitableController extends Controller {
private var
:Array;
public function HitableController(){
this.();
}
private function ():void{
this.
= new Array();
}
public function getNumberOfHitable():Number{
return (this.
.length);
}
public function update():void{
}
public function addHitable(_arg1:OokHitable, _arg2:Number, _arg3:Number):void{
this.
.push(_arg1);
this.
[(
.length - 1)].x = _arg2;
this.
[(
.length - 1)].y = _arg3;
this.addChild(
[(
.length - 1)]);
}
public function getHitable(_arg1:Number):OokHitable{
return (this.
[_arg1]);
}
}
}//package OokController
Section 77
//HudController (OokController.HudController)
package OokController {
import OokUI.*;
public class HudController extends Controller {
private var
:OokHud;
public function HudController(_arg1:Object){
(_arg1);
}
private function (_arg1:Object):void{
= new OokHud(_arg1);
addChild(
);
}
public function getHud():OokHud{
return (this.
);
}
public function setNumberOfBullet(_arg1:Number):void{
.setNumberOfBullet(_arg1);
}
public function setNumberOfMagazine(_arg1:Number):void{
.setNumberOfMagazine(_arg1);
}
public function getUIBoxHeight():Number{
return (this.
.getUIBoxHeight());
}
public function update():void{
this.
.update();
}
public function setMessage(_arg1:String):void{
.setMessage(_arg1);
}
public function setHealth(_arg1:Number):void{
.setHealth(_arg1);
}
}
}//package OokController
Section 78
//InteractiveObjectController (OokController.InteractiveObjectController)
package OokController {
import OokInteractiveObject.*;
public class InteractiveObjectController extends Controller {
private var :Array;
public function InteractiveObjectController(){
();
}
private function ():void{
= new Array();
}
public function getInteractiveObject(_arg1:Number):OokInteractiveObject{
return ([_arg1]);
}
public function addInteractiveObject(_arg1:OokInteractiveObject, _arg2:Number, _arg3:Number):void{
.push(_arg1);
[(.length - 1)].setPosition(_arg2, _arg3);
addChild([(.length - 1)]);
}
public function update():void{
}
public function getNumberOfInteractiveObject():Number{
return (.length);
}
}
}//package OokController
Section 79
//ItemController (OokController.ItemController)
package OokController {
import OokItem.*;
public class ItemController extends Controller {
private var
:Array;
public function ItemController(){
this.();
}
private function ():void{
this.
= new Array();
}
public function update():void{
var _local1:int;
while (_local1 < this.
.length) {
this.
[_local1].update();
if (this.
[_local1].isDead()){
this.removeChild(this.
[_local1]);
this.
[_local1] = null;
this.
.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function addItem(_arg1:OokItem, _arg2:Number, _arg3:Number):void{
this.
.push(_arg1);
this.
[(
.length - 1)].setPosition(_arg2, _arg3);
this.addChild(
[(
.length - 1)]);
}
public function
(_arg1:OokItem):Boolean{
var _local2:int;
while (_local2 < this.
.length) {
if (_arg1 == this.
[_local2]){
this.removeChild(this.
[_local2]);
this.
[_local2] = null;
this.
.splice(_local2, 1);
return (true);
};
_local2++;
};
return (false);
}
public function getItem(_arg1:Number):OokItem{
return (this.
[_arg1]);
}
public function getNumberOfItem():Number{
return (this.
.length);
}
}
}//package OokController
Section 80
//MissionController (OokController.MissionController)
package OokController {
public class MissionController extends Controller {
private var controlPanel:Object;
public function MissionController(_arg1:Object){
this.controlPanel = _arg1;
();
}
private function ():void{
}
public function update():void{
}
}
}//package OokController
Section 81
//SFXController (OokController.SFXController)
package OokController {
import OokSound.OokSFX.*;
import OokEnum.*;
import OokSound.OokSFXCaller.*;
public class SFXController extends Controller {
private var :Array;
private var :Array;
public function SFXController(){
this.();
}
private function ():void{
this. = new Array();
this. = new Array();
this.[SoundID.S_PISTOL_SHOT] = new CallerPistolShotSFX();
this.[SoundID.S_BULLET_HIT_FLESH] = new CallerBulletHitFleshSFX();
this.[SoundID.S_ALIEN_SCREAM_DEAD] = new CallerAlienScreamDeadSFX();
this.[SoundID.S_ALIEN_SCREAM_DEAD_2] = new CallerAlienScreamDead2SFX();
this.[SoundID.S_SHOT_GUN_SHOT] = new CallerShotGunShotSFX();
this.[SoundID.S_SUB_MACHINE_SHOT] = new CallerSubMachineShotSFX();
this.[SoundID.S_ASSULT_RIFLE_SHOT] = new CallerAssultRifleShotSFX();
this.[SoundID.S_MAXNUM_SHOT] = new CallerMaxnumShotSFX();
this.[SoundID.S_GHOST_RIFLE_SHOT] = new CallerGhostRifleShotSFX();
this.[SoundID.S_SNIPER_RIFLE_SHOT] = new CallerSniperShotSFX();
this.[SoundID.S_ITEM_PICK_UP] = new CallerItemPickedUpSFX();
this.[SoundID.S_PISTOL_RELOAD_IN] = new CallerPistolReloadInSFX();
this.[SoundID.S_PISTOL_RELOAD_OUT] = new CallerPistolReloadOutSFX();
this.[SoundID.S_BULLET_HIT_CONCRET] = new CallerConcreatHitSFX();
this.[SoundID.S_BULLET_HIT_SAND] = new CallerSandHitSFX();
}
public function playSFX(_arg1:Number, _arg2:Number, _arg3:Number):void{
if (this.[_arg1] == null){
return;
};
this..push(this.[_arg1].getNewInstance());
this.[(this..length - 1)].play();
}
public function update():void{
var _local1:int;
while (_local1 < this..length) {
if (this.[_local1].getSoundComplete()){
this.(_local1);
_local1--;
};
_local1++;
};
}
public function (_arg1:Number):void{
this.[_arg1] = null;
this..splice(_arg1, 1);
}
public function (_arg1:Number):OokSFX{
return (this.[_arg1]);
}
public function
():Number{
return (this..length);
}
public function ():Number{
return (this..length);
}
}
}//package OokController
Section 82
//SlopeController (OokController.SlopeController)
package OokController {
import OokSlope.*;
public class SlopeController extends Controller {
private var :Array;
public function SlopeController(){
this.();
}
private function ():void{
this. = new Array();
}
public function getSlope(_arg1:Number):OokSlope{
return (this.[_arg1]);
}
public function getNumberOfSlope():Number{
return (this..length);
}
public function update():void{
}
public function addSlope(_arg1:OokSlope, _arg2:Number, _arg3:Number):void{
this..push(_arg1);
this.[(.length - 1)].x = _arg2;
this.[(.length - 1)].y = _arg3;
this.addChild([(.length - 1)]);
}
}
}//package OokController
Section 83
//TriggerController (OokController.TriggerController)
package OokController {
import OokTrigger.*;
public class TriggerController extends Controller {
private var :Object;
public function TriggerController(_arg1:Object){
();
}
private function ():void{
this. = new Object();
}
public function ():Number{
return (this..length);
}
public function (_arg1:OokTrigger, _arg2:String):void{
this.[_arg2] = _arg1;
this.addChild([_arg2]);
}
public function update():void{
}
public function (_arg1:String):OokTrigger{
return (this.[_arg1]);
}
}
}//package OokController
Section 84
//Conversation (OokConversation.Conversation)
package OokConversation {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import OokPortrait.*;
import OokEnum.*;
public class Conversation extends Sprite {
private var
:StyleSheet;
private var :TextField;
private var
:Boolean;
private var :TextField;
private var
:TextField;
private var :OokPortrait;
public function Conversation(){
();
}
public function isEnding():Boolean{
return (this.
);
}
public function update(_arg1:String, _arg2:String, _arg3:String):void{
this. .htmlText = (("<p class='dialog'>" + _arg1) + "</p>");
this.
.htmlText = (("<p class='choice'>" + _arg2) + "</p>");
this..htmlText = (("<p class='speakerName'>" + _arg3) + "</p>");
}
public function updatePortrait(_arg1:OokPortrait):void{
this. = _arg1;
}
public function setEnding(_arg1:Boolean):void{
this.
= _arg1;
}
public function keyDownHandler(_arg1:KeyboardEvent):void{
}
public function getDialogTextField():TextField{
return (this. );
}
private function ():void{
= false;
= new StyleSheet();
.setStyle(".dialog", GameEnum.STYLESHEET_DIALOG);
.setStyle(".speakerName", GameEnum.STYLESHEET_SPEAKER);
.setStyle(".choice", GameEnum.STYLESHEET_CHOICE);
this. = new TextField();
this..border = true;
this..embedFonts = true;
this..textColor = 0xFFFFFF;
this..styleSheet =
;
this..htmlText = "";
this..scaleX = 3;
this..scaleY = 2;
this..x = 150;
this..y = 5;
this..wordWrap = true;
this. = new TextField();
this. .border = true;
this. .embedFonts = true;
this. .textColor = 0xFFFFFF;
this. .styleSheet =
;
this. .htmlText = "";
this. .scaleX = 3;
this. .scaleY = 3;
this. .x = 150;
this. .y = 30;
this. .wordWrap = true;
this.
= new TextField();
this.
.border = true;
this.
.embedFonts = true;
this.
.textColor = 0xFFFFFF;
this.
.styleSheet =
;
this.
.htmlText = "";
this.
.width = 600;
this.
.height = 300;
this.
.x = 10;
this.
.y = 200;
this.
.wordWrap = true;
}
public function getSpeakerNameTextField():TextField{
return (this.);
}
public function getChoiceTextField():TextField{
return (this.
);
}
public function getPortrait():OokPortrait{
return (this.);
}
}
}//package OokConversation
Section 85
//Conversation001 (OokConversation.Conversation001)
package OokConversation {
import flash.events.*;
import OokPortrait.*;
import OokEnum.*;
public class Conversation001 extends Conversation {
private var :Array;
private var :Number;
private var :Array;
private var :Number;
private var :Array;
private var :Number;
private var :Array;
public function Conversation001(){
();
}
private function
():void{
super.update(this.(), this.(), this.
());
}
private function ():String{
return (this.[]);
}
private function ():void{
this. = new Array();
this. = new Array();
this. = new Array();
this. = new Array();
this. = 0;
this. = 0;
this. = 0;
this. ();
this.();
this.();
super.update(this.(), this.(), this.
());
}
private function ():String{
return (this.[]);
}
private function ():OokPortrait{
return (this.[]);
}
override public function keyDownHandler(_arg1:KeyboardEvent):void{
if (this. == 0){
if (_arg1.keyCode == GameEnum.KEY_1){
this. = 1;
this.
();
} else {
if (_arg1.keyCode == GameEnum.KEY_2){
this.();
};
};
};
}
private function ():void{
this.[0] = "Palm";
this.[1] = "Ook";
}
private function ():void{
this.[0] = "Hello stranger, what can I do for you?";
this.[0] = ("1> What is this place?\n" + "2> Good bye.");
this.[1] = "This is Everland.";
this.[1] = ("1> Hm?\n" + "2> Good bye.");
}
private function
():String{
return (this.[this.]);
}
private function ():void{
super.setEnding(true);
}
private function ():void{
this.[0] = new OokPortrait001();
super.updatePortrait(this.());
}
}
}//package OokConversation
Section 86
//OokCustomCursor (OokCursor.OokCustomCursor)
package OokCursor {
import flash.display.*;
public class OokCustomCursor extends MovieClip {
var :uint;// = 10
var :uint;// = 0xFFFFFF
public function OokCustomCursor(){
this.mouseEnabled = false;
}
}
}//package OokCursor
Section 87
//OokEffect (OokEffect.OokEffect)
package OokEffect {
import flash.display.*;
public class OokEffect extends MovieClip {
public function OokEffect(){
();
}
private function ():void{
}
}
}//package OokEffect
Section 88
//OokEffect001 (OokEffect.OokEffect001)
package OokEffect {
public class OokEffect001 extends OokEffect {
}
}//package OokEffect
Section 89
//GameEnum (OokEnum.GameEnum)
package OokEnum {
public class GameEnum {
public static const MAG_SIZE_GRENADE_LAUNCHER:Number = 10;
public static const ANIME_CROUCH:Number = 11;
public static const LEFT:Number = 2;
public static const ANIME_STAY_KNOCKED_DOWN:Number = 9;
public static const SCREEN_WIDTH:Number = 1400;
public static const RELOAD_TIME_ROCKET_LAUNCHER:Number = 2000;
public static const START_UP_ROCKET_LAUNCHER_AMMO:Number = 10;
public static const MAGNIFY_RIFLE_SCOPE:Number = 3;
public static const DEBUG_MODE:Boolean = false;
public static const KEY_0:Number = 48;
public static const KEY_3:Number = 51;
public static const KEY_4:Number = 52;
public static const KEY_5:Number = 53;
public static const KEY_6:Number = 54;
public static const KEY_7:Number = 55;
public static const KEY_1:Number = 49;
public static const KEY_2:Number = 50;
public static const ANIME_ON_FLAME:Number = 18;
public static const KEY_8:Number = 56;
public static const KEY_9:Number = 57;
public static const KEY_A:Number = 65;
public static const KEY_C:Number = 67;
public static const KEY_D:Number = 68;
public static const ANIME_STRONG_ATTACK:Number = 5;
public static const KEY_F:Number = 70;
public static const KEY_G:Number = 71;
public static const KEY_H:Number = 72;
public static const KEY_B:Number = 66;
public static const KEY_J:Number = 74;
public static const KEY_K:Number = 75;
public static const KEY_N:Number = 78;
public static const KEY_O:Number = 79;
public static const KEY_I:Number = 73;
public static const RELOAD_TIME_ASSULT_RIFLE:Number = 600;
public static const KEY_R:Number = 82;
public static const KEY_E:Number = 69;
public static const KEY_U:Number = 85;
public static const KEY_P:Number = 80;
public static const KEY_Q:Number = 81;
public static const KEY_Y:Number = 89;
public static const SCREEN_HEIGHT:Number = 1000;
public static const ANIME_FLINCH:Number = 7;
public static const KEY_M:Number = 77;
public static const KEY_V:Number = 86;
public static const KEY_X:Number = 88;
public static const RIFLE_BULLPUP:Number = 5;
public static const SHOT_GUN:Number = 2;
public static const KEY_T:Number = 84;
public static const RELOAD_TIME_SNIPER_RIFLE:Number = 2000;
public static const STYLESHEET_HEADER4:Object = {textAlign:"right", color:"#FFFFFF", fontFamily:"ook_zekton", fontSize:"25", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const KEY_W:Number = 87;
public static const MAG_SIZE_PISTOL:Number = 10;
public static const KEY_S:Number = 83;
public static const ENABLE_CALL_BACK:Boolean = false;
public static const ANIME_WALKING:Number = 1;
public static const STYLESHEET_HEADER3:Object = {textAlign:"center", color:"#FFFFFF", fontFamily:"ook_zekton", fontSize:"35", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const FIRING_RATE_ASSULT_RIFLE:Number = 16;
public static const RELOAD_TIME_GHOST_RIFLE:Number = 1000;
public static const WEAPON_GREY_BLAST:Number = 11;
public static const RELOAD_TIME_SUB_MACHINE:Number = 500;
public static const KEY_L:Number = 76;
public static const KEY_Z:Number = 90;
public static const FIRING_RATE_SNIPER_RIFLE:Number = 5;
public static const STYLESHEET_HEADER2:Object = {textAlign:"center", color:"#FFFFFF", fontFamily:"ook_zekton", fontSize:"40", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const START_UP_SNIPER_RIFLE_AMMO:Number = 40;
public static const ANIME_GET_UP:Number = 10;
public static const ANIME_PREPARE_JUMP:Number = 14;
public static const ANIME_THROWN:Number = 12;
public static const START_UP_PISTOL_AMMO:Number = 100;
public static const FIRING_RATE_NOTHING:Number = 10;
public static const MAG_SIZE_MAXNUM:Number = 7;
public static const RELOAD_TIME_GRENADE_LAUNCHER:Number = 2500;
public static const FIRING_RATE_ROCKET_LAUNCHER:Number = 1;
public static const ROCKET_LAUNCHER:Number = 10;
public static const ANIME_DIE_BY_FLAMED:Number = 19;
public static const ANIME_RUNNING:Number = 2;
public static const MAG_SIZE_ASSULT_RIFLE:Number = 40;
public static const START_UP_ASSULT_RIFLE_AMMO:Number = 60;
public static const ANIME_BLOCK:Number = 6;
public static const FLAME_THROWER:Number = 9;
public static const FOCUS_BODY:Boolean = true;
public static const MAG_SIZE_SNIPER_RIFLE:Number = 30;
public static const MAG_SIZE_SHOT_GUN:Number = 11;
public static const STYLESHEET_CHOICE:Object = {textAlign:"center", color:"#000000", fontFamily:"ook_zekton", fontSize:"9", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const STYLESHEET_DIALOG:Object = {color:"#000000", fontFamily:"ook_zekton", fontSize:"9", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const FIRE_MODE_SINGLE_SHOT:Number = 1;
public static const TEAM_A:Number = 0;
public static const TEAM_B:Number = 1;
public static const TEAM_C:Number = 2;
public static const TEAM_D:Number = 3;
public static const TEAM_E:Number = 4;
public static const SPEECH_TYPE_HURT:Number = 3;
public static const MAGNIFY_SNIPER_SCOPE:Number = 4;
public static const FIRING_RATE_PISTOL:Number = 15;
public static const FIRE_MODE_FULL_AUTO:Number = 3;
public static const STYLESHEET_SPEAKER:Object = {color:"#000000", fontFamily:"ook_zekton", fontSize:"9", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const MAG_SIZE_NOTHING:Number = 0;
public static const STYLESHEET_MENU:Object = {color:"#FFFFFF", fontFamily:"ook_zekton", fontSize:"45", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const SPEECH_TYPE_HAPPY:Number = 5;
public static const SUB_MACHINE:Number = 4;
public static const WEAPON_SHUKARAPA_BLOOD_SPLIT:Number = 13;
public static const WEAPON_GREY_DARK_BLAST:Number = 12;
public static const FIRING_RATE_SHOT_GUN:Number = 15;
public static const SPEECH_TYPE_ATTACK:Number = 4;
public static const FIRING_RATE_MAXNUM:Number = 10;
public static const ANIME_KNOCKED_DOWN:Number = 8;
public static const RELOAD_TIME_NOTHING:Number = 100;
public static const SPEECH_TYPE_DEAD:Number = 2;
public static const START_UP_FLAME_THROWER_AMMO:Number = 50;
public static const MAG_SIZE_GHOST_RIFLE:Number = 30;
public static const MAGNIFY_NONE:Number = 1;
public static const RELOAD_TIME_FLAME_THROWER:Number = 1000;
public static const ASSULT_RIFLE:Number = 7;
public static const START_UP_NOTHING_AMMO:Number = 100;
public static const TOTAL_NUMBER_OF_TEAM:Number = 5;
public static const START_UP_MAXNUM_AMMO:Number = 50;
public static const START_UP_SUB_MACHINE_AMMO:Number = 100;
public static const FIRING_RATE_GRENADE_LAUNCHER:Number = 5;
public static const FIRING_RATE_GHOST_RIFLE:Number = 10;
public static const SNIPER_RIFLE:Number = 3;
public static const MAG_SIZE_SUB_MACHINE:Number = 50;
public static const ANIME_DIE_BY_SLASHED:Number = 21;
public static const STYLESHEET_CENTER:Object = {textAlign:"center", color:"#FFFFFF", fontFamily:"ook_zekton", fontSize:"45", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const RELOAD_TIME_SHOT_GUN:Number = 2000;
public static const SPEECH_TYPE_DYING:Number = 1;
public static const PISTOL:Number = 1;
public static const MENU_Y:Number = 200;
public static const START_UP_GRENADE_LAUNCHER_AMMO:Number = 40;
public static const RELOAD_TIME_PISTOL:Number = 500;
public static const START_UP_GHOST_RIFLE_AMMO:Number = 45;
public static const FIRING_RATE_SUB_MACHINE:Number = 18;
public static const GRENADE_LAUNCHER:Number = 8;
public static const MIDDLE:Number = 3;
public static const ANIME_DIE_BY_SHOT:Number = 16;
public static const LOCKED_DOMAIN:String = "";
public static const MAG_SIZE_FLAME_THROWER:Number = 50;
public static const STYLESHEET_HEADER:Object = {textAlign:"center", color:"#FFFFFF", fontFamily:"ook_zekton", fontSize:"70", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const MAXNUM:Number = 6;
public static const NOTHING:Number = 0;
public static const ANIME_SUPER_ATTACK:Number = 20;
public static const ANIME_LIGHT_ATTACK:Number = 4;
public static const RELOAD_TIME_MAXNUM:Number = 1000;
public static const CD_RANGE:Number = 2000;
public static const ANIME_HIT_FROM_THROWN:Number = 13;
public static const MAGNIFY_IPSV:Number = 2;
public static const ANIME_STANDING:Number = 0;
public static const ANIME_LAND_JUMP:Number = 15;
public static const ANIME_DIE_CROUCH_BY_SHOT:Number = 17;
public static const ANIME_JUMPING:Number = 3;
public static const START_UP_SHOT_GUN_AMMO:Number = 30;
public static const STYLESHEET_BODY_LOG:Object = {textAlign:"center", color:"#FFFFFF", fontFamily:"ook_zekton", fontSize:"35", marginLeft:"0", marginRight:"0", textIndent:"0"};
public static const FIRING_RATE_FLAME_THROWER:Number = 10;
public static const MAG_SIZE_ROCKET_LAUNCHER:Number = 1;
public static const RIGHT:Number = 1;
public static var causeOfGameOver:String = "";
public static var isPause:Boolean = false;
}
}//package OokEnum
Section 90
//OokIDEnum (OokEnum.OokIDEnum)
package OokEnum {
public class OokIDEnum {
public static const I_HIGH_LAND:Number = 6;
public static const N_NPC_1:Number = 2;
public static const N_NPC_2:Number = 3;
public static const I_INTER_1:Number = 4;
public static const GS_IN_GAME_SCREEN:Number = 9;
public static const OOK_MAIN:Number = 0;
public static const GS_SPONSOR_CS_PLAYER:Number = 13;
public static const GS_CREDIT_MENU:Number = 10;
public static const IT_MAXNUM_BULLET_BOX:Number = 19;
public static const GS_MAIN_MENU:Number = 11;
public static const IT_ASSULT_RIFLE_BULLET_BOX:Number = 20;
public static const H_LEVEL_WALL:Number = 30;
public static const IT_SUB_MACHINE_BULLET_BOX:Number = 23;
public static const I_FLAG:Number = 5;
public static const IT_ROCKET_BULLET_BOX:Number = 22;
public static const H_OBSTACLE:Number = 31;
public static const IT_SNIPER_BULLET_BOX:Number = 25;
public static const IT_SHOT_GUN_SHELL_BOX:Number = 21;
public static const IT_FLAME_BULLET_BOX:Number = 16;
public static const P_PLAYER:Number = 1;
public static const IT_PISTOL_BULLET_BOX:Number = 18;
public static const IT_GRENADE_BULLET_BOX:Number = 24;
public static const ADS_MANGADELUXE_COM:Number = 32;
public static const I_UNA_HELI001:Number = 7;
public static const H_LEVEL_1_FLOOR:Number = 28;
public static const GS_PRELOADER_PLAYER:Number = 12;
public static const H_STANDARD_SOLID:Number = 29;
public static const I_UFO:Number = 8;
public static const GS_GAME_OVER:Number = 14;
public static const IT_HEALTH_BOX:Number = 26;
public static const GS_GAME_STATE_FSM:Number = 15;
public static const IT_RIFLE_BULLET_BOX:Number = 17;
public static const IT_ARMOR_BOX:Number = 27;
}
}//package OokEnum
Section 91
//OokMessageEnum (OokEnum.OokMessageEnum)
package OokEnum {
public class OokMessageEnum {
public static const TEST:Number = 1;
public static const MSG_GAME_OVER:Number = 3;
public static const CHANGE_THE_NAME:Number = 2;
}
}//package OokEnum
Section 92
//SoundID (OokEnum.SoundID)
package OokEnum {
public class SoundID {
public static const S_HUMAN_SCREAM_ATTACK:Number = 33;
public static const S_UI_BUTTON_CLICK:Number = 45;
public static const S_UI_KEYBOARD_DOWN:Number = 48;
public static const S_SHOT_GUN_RELOAD:Number = 16;
public static const S_ROCKET_LAUNCHER_RELOAD:Number = 20;
public static const S_GRENADE_LAUNCHER_RELOAD:Number = 18;
public static const S_SUB_MACHINE_RELOAD:Number = 15;
public static const S_HUMAN_SCREAM_ATTACK_2:Number = 34;
public static const S_PISTOL_RELOAD_IN:Number = 52;
public static const S_ALIEN_SCREAM_DEAD:Number = 25;
public static const S_UI_KEYBOARD_UP:Number = 49;
public static const S_SUB_MACHINE_SHOT:Number = 5;
public static const S_HUMAN_SCREAM_HURT:Number = 29;
public static const S_GHOST_RIFLE_RELOAD:Number = 13;
public static const S_ALIEN_CRAW_ATTACK:Number = 21;
public static const S_BULLET_HIT_ROCK:Number = 35;
public static const S_PISTOL_RELOAD_OUT:Number = 51;
public static const S_GHOST_RIFLE_SHOT:Number = 3;
public static const S_FLAME_BURNING_2:Number = 42;
public static const S_SNIPER_RIFLE_RELOAD:Number = 17;
public static const S_PISTOL_RELOAD:Number = 11;
public static const S_BULLET_HIT_FLESH:Number = 37;
public static const S_SHOT_GUN_SHOT:Number = 6;
public static const S_ROCKET_LAUNCHER_SHOT:Number = 10;
public static const S_FLAME_BURNING:Number = 41;
public static const S_FLAME_THROWER_RELOAD:Number = 19;
public static const S_BULLET_HIT_SAND:Number = 38;
public static const S_BULLET_HIT_BLICK:Number = 39;
public static const S_MAXNUM_SHOT:Number = 2;
public static const S_ALIEN_CRAW_ATTACK_2:Number = 28;
public static const S_SNIPER_RIFLE_SHOT:Number = 7;
public static const S_ALIEN_HOLY_BLAST_ATTACK:Number = 23;
public static const S_HUMAN_SCREAM_DEAD:Number = 31;
public static const S_BULLET_HIT_CONCRET:Number = 40;
public static const S_UI_BUTTON_HOVER:Number = 47;
public static const S_HUMAN_SCREAM_HURT_2:Number = 30;
public static const S_ITEM_PICK_UP:Number = 50;
public static const S_BULLET_HIT_ARMOR:Number = 36;
public static const S_ASSULT_RIFLE_SHOT:Number = 4;
public static const S_HUMAN_SCREAM_DEAD_2:Number = 32;
public static const S_ROCKET_EXPLODE:Number = 43;
public static const S_ALIEN_SCREAM_HURT_2:Number = 27;
public static const S_PISTOL_SHOT:Number = 1;
public static const S_ALIEN_BLOOD_BLAST_ATTACK:Number = 24;
public static const S_ALIEN_SCREAM_HURT:Number = 22;
public static const S_FLAME_THROWER_SHOT:Number = 9;
public static const S_ALIEN_SCREAM_DEAD_2:Number = 26;
public static const S_ASSULT_RIFLE_RELOAD:Number = 14;
public static const S_MAXNUM_RELOAD:Number = 12;
public static const S_ROCKET_EXPLODE_2:Number = 44;
public static const S_UI_BUTTON_RELEASE:Number = 46;
public static const S_GRENADE_LAUNCHER_SHOT:Number = 8;
}
}//package OokEnum
Section 93
//Background (OokEnvironment.Background)
package OokEnvironment {
import flash.display.*;
public class Background extends Sprite {
public function Background(_arg1:Number, _arg2:Number){
this.x = _arg1;
this.y = _arg2;
}
}
}//package OokEnvironment
Section 94
//Background1 (OokEnvironment.Background1)
package OokEnvironment {
public class Background1 extends Background {
public function Background1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
this.scaleX = 1.5;
}
}
}//package OokEnvironment
Section 95
//ParallaxBackground1 (OokEnvironment.ParallaxBackground1)
package OokEnvironment {
public class ParallaxBackground1 extends Background {
public function ParallaxBackground1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package OokEnvironment
Section 96
//OokFactory (OokFactory.OokFactory)
package OokFactory {
import flash.events.*;
import flash.display.*;
import Mochi.*;
import OokObject.*;
import OokMenu.*;
import OokPreloader.*;
import OokFont.*;
import OokEnum.*;
import flash.utils.*;
public class OokFactory extends MovieClip {
private var :Number;
private var :Number;
private var :Number;
private var :PlayButton;
private var :OokPreloader;
public function OokFactory(){
this.stop();
this.();
}
private function
(_arg1:Event):void{
this..removeEventListener(MouseEvent.MOUSE_UP,
);
this.removeChild(this.);
this.removeChild(this.);
nextFrame();
();
}
private function
():void{
var _local2:Object;
var _local3:OokBaseObject;
var _local1:Class = Class(getDefinitionByName("Ook"));
if (_local1){
_local2 = new (_local1);
addChild((_local2 as DisplayObject));
_local3 = OokBaseObject(_local2);
_local3.startGame();
};
}
private function ():void{
this. = new PlayButton();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = (((GameEnum.SCREEN_HEIGHT / 2) - (this..height / 2)) + 110);
this..addEventListener(MouseEvent.MOUSE_UP,
);
this.addChild(this.);
}
private function ():void{
this.();
this.graphics.lineStyle(1, 0);
this.graphics.beginFill(0, 1);
this.graphics.drawRect(0, 0, 1400, 1000);
this.graphics.endFill();
this. = new OokPreloader();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = ((GameEnum.SCREEN_HEIGHT / 2) - (this..height / 2));
this.addChild(this.);
this.addEventListener(Event.ENTER_FRAME, );
MochiBot.track(this, "af49ab04");
}
private function ():void{
new OokNeuropol();
new OokNasaliza();
new OokZekton();
new OokZeroHour();
}
private function (_arg1:Event):void{
this. = root.loaderInfo.bytesTotal;
this. = root.loaderInfo.bytesLoaded;
this. = Math.round(((this. * 100) / this.));
this..gotoAndStop(this.);
if (this. >= this.){
this.removeEventListener(Event.ENTER_FRAME, );
this.();
};
}
private function ():void{
this.();
}
}
}//package OokFactory
Section 97
//OokNasaliza (OokFont.OokNasaliza)
package OokFont {
import flash.display.*;
import flash.text.*;
public class OokNasaliza extends Sprite {
public static var font:Class = OokNasaliza_font;
public function OokNasaliza(){
Font.registerFont(font);
}
}
}//package OokFont
Section 98
//OokNasaliza_font (OokFont.OokNasaliza_font)
package OokFont {
import mx.core.*;
public class OokNasaliza_font extends FontAsset {
}
}//package OokFont
Section 99
//OokNeuropol (OokFont.OokNeuropol)
package OokFont {
import flash.display.*;
import flash.text.*;
public class OokNeuropol extends Sprite {
public static var font:Class = OokNeuropol_font;
public function OokNeuropol(){
Font.registerFont(font);
}
}
}//package OokFont
Section 100
//OokNeuropol_font (OokFont.OokNeuropol_font)
package OokFont {
import mx.core.*;
public class OokNeuropol_font extends FontAsset {
}
}//package OokFont
Section 101
//OokZekton (OokFont.OokZekton)
package OokFont {
import flash.display.*;
import flash.text.*;
public class OokZekton extends Sprite {
public static var font:Class = OokZekton_font;
public function OokZekton(){
Font.registerFont(font);
}
}
}//package OokFont
Section 102
//OokZekton_font (OokFont.OokZekton_font)
package OokFont {
import mx.core.*;
public class OokZekton_font extends FontAsset {
}
}//package OokFont
Section 103
//OokZeroHour (OokFont.OokZeroHour)
package OokFont {
import flash.display.*;
import flash.text.*;
public class OokZeroHour extends Sprite {
public static var font:Class = OokZeroHour_font;
public function OokZeroHour(){
Font.registerFont(font);
}
}
}//package OokFont
Section 104
//OokZeroHour_font (OokFont.OokZeroHour_font)
package OokFont {
import mx.core.*;
public class OokZeroHour_font extends FontAsset {
}
}//package OokFont
Section 105
//OokCreditMenu (OokGameState.OokCreditMenu)
package OokGameState {
import flash.events.*;
import OokObject.*;
import OokMenu.*;
import OokEnum.*;
import OokClickable.*;
import OokAds.*;
import flash.net.*;
public class OokCreditMenu extends OokGameState {
private var :OokButton;
private var :CreditText;
private var :OokClickable;
private var
:OokButton;
private var :Number;// = 120
public function OokCreditMenu(_arg1:OokBaseObject){
super(_arg1, OokIDEnum.GS_CREDIT_MENU);
this.();
}
private function ():void{
owner.getGameStateFSM().changeGameState(new OokMainMenu(owner));
}
private function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.flashgamedeluxe.com");
navigateToURL(_local2, "_blank");
}
private function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.flashgamedeluxe.com");
navigateToURL(_local2, "_blank");
}
override public function exit():void{
super.exit();
this.
.removeEventListener(MouseEvent.MOUSE_UP, );
this.removeChild(this.
);
this.removeChild(this. );
this.removeChild(this.);
}
private function ():void{
this.
= new BackButton();
this.
.x = ((GameEnum.SCREEN_WIDTH / 2) - (this.
.width / 2));
this.
.y = GameEnum.MENU_Y;
this. = new AuthorSiteButton();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = (this.
.y + this.);
this. = new CreditText();
this. .x = (GameEnum.SCREEN_WIDTH / 2);
this. .y = (((this..y + this..height) + this.) - 50);
this. = new OokFlashGameDeluxeAds();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = ((GameEnum.SCREEN_HEIGHT - this..height) - 100);
this..addEventListener(MouseEvent.MOUSE_UP, );
this..addEventListener(MouseEvent.MOUSE_UP, );
this.
.addEventListener(MouseEvent.MOUSE_UP, );
}
override public function execute():void{
}
override public function enter():void{
super.enter();
this.addChild(this.
);
this.addChild(this. );
this.addChild(this.);
this.addChild(this.);
}
private function (_arg1:Event):void{
();
}
}
}//package OokGameState
Section 106
//OokFlashGameDeluxeScreen (OokGameState.OokFlashGameDeluxeScreen)
package OokGameState {
import flash.events.*;
import OokObject.*;
import OokAds.*;
import OokEnum.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
public class OokFlashGameDeluxeScreen extends OokGameState {
private var :Number;
private var :Number;// = 4000
private var :OokFlashGameDeluxeAds;
private var :Number;
public function OokFlashGameDeluxeScreen(_arg1:OokBaseObject){
super(_arg1, OokIDEnum.ADS_MANGADELUXE_COM);
this. = new OokFlashGameDeluxeAds();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = ((GameEnum.SCREEN_HEIGHT / 2) - (this..height / 2));
this. = getTimer();
this. = (this. + this.);
this..addEventListener(MouseEvent.MOUSE_UP, );
}
override public function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ESCAPE){
};
}
override public function exit():void{
super.exit();
this..removeEventListener(MouseEvent.MOUSE_UP, );
this.removeChild(this.);
}
private function (_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.flashgamedeluxe.com");
navigateToURL(_local2, "_blank");
}
override public function execute():void{
if (getTimer() > this.){
this.();
};
}
override public function enter():void{
super.enter();
this.addChild(this.);
}
private function ():void{
owner.getGameStateFSM().changeGameState(new OokMainMenu(owner));
}
}
}//package OokGameState
Section 107
//OokGameOver (OokGameState.OokGameOver)
package OokGameState {
import flash.events.*;
import OokObject.*;
import flash.text.*;
import ascb.util.*;
import OokMenu.*;
import OokEnum.*;
import OokClickable.*;
import OokAds.*;
import flash.net.*;
public class OokGameOver extends OokGameState {
private var
:StyleSheet;
private var :OokClickable;
private var :TextField;
private var :OokClickable;
private var :TextField;
private var :OokClickable;
private var :NumberFormat;
private var
:OokButton;
private var :GameOverText;
private var :Number;// = 120
public function OokGameOver(_arg1:OokBaseObject){
super(_arg1, OokIDEnum.GS_GAME_OVER);
this.();
}
override public function execute():void{
}
private function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.mangadeluxe.com");
navigateToURL(_local2, "_blank");
}
private function (_arg1:Event):void{
}
private function ():void{
this. = new NumberFormat("0000000");
this.
= new BackButton();
this.
.x = ((GameEnum.SCREEN_WIDTH / 2) - (this.
.width / 2));
this.
.y = GameEnum.MENU_Y;
this. = new GameOverText();
this..x = (GameEnum.SCREEN_WIDTH / 2);
this..y = ((this.
.y + this.
.height) + this.);
this.
= new StyleSheet();
this.
.setStyle(".center", GameEnum.STYLESHEET_CENTER);
this. = new TextField();
this..embedFonts = true;
this..textColor = 0xFFFFFF;
this..styleSheet =
;
this..htmlText = "";
this..width = 700;
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = (this.
.y + this.);
this..selectable = false;
this. = new TextField();
this..embedFonts = true;
this..textColor = 0xFFFFFF;
this..styleSheet =
;
this..htmlText = "";
this..width = 500;
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = (this..y + this.);
this..selectable = false;
this. = new OokActionScript3AnimationAds();
this. .x = 200;
this. .y = (((GameEnum.SCREEN_HEIGHT / 2) - (this. .height / 2)) - 100);
this. = new OokActionScript3CookBookAds();
this..x = ((GameEnum.SCREEN_WIDTH - 200) - this..width);
this..y = (((GameEnum.SCREEN_HEIGHT / 2) - (this..height / 2)) - 100);
this. = new OokMangaDeluxeAds();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = ((GameEnum.SCREEN_HEIGHT - this..height) - 100);
this..htmlText = (("<p class='center'>You score is " + this..format(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getScore())) + "</p>");
this..htmlText = (("<p class='center'>" + GameEnum.causeOfGameOver) + "</p>");
this.
.addEventListener(MouseEvent.MOUSE_UP, );
this..addEventListener(MouseEvent.MOUSE_UP, );
this. .addEventListener(MouseEvent.MOUSE_UP, );
this..addEventListener(MouseEvent.MOUSE_UP, );
}
private function ():void{
owner.getGameStateFSM().changeGameState(new OokMainMenu(owner));
}
override public function enter():void{
super.enter();
this.addChild(this.
);
this.addChild(this.);
this.addChild(this.);
this.addChild(this.);
this.addChild(this. );
this.addChild(this.);
this.addChild(this.);
}
private function (_arg1:Event):void{
();
}
private function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FFoundation-Actionscript-3-0-Animation-Making%2Fdp%2F1590597915%2F&tag=mangadecom-20&linkCode=ur2&camp=1789&creative=9325");
navigateToURL(_local2, "_blank");
}
override public function exit():void{
super.exit();
this.
.removeEventListener(MouseEvent.MOUSE_UP, );
this.removeChild(this.
);
this.removeChild(this.);
this.removeChild(this.);
this.removeChild(this.);
}
private function
(_arg1:Event):void{
}
private function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FActionScript-3-0-Cookbook-Application-Developers%2Fdp%2F0596526954%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1215353298%26sr%3D8-1&tag=mangadecom-20&linkCode=ur2&camp=1789&creative=9325");
navigateToURL(_local2, "_blank");
}
private function (_arg1:Event):void{
}
}
}//package OokGameState
Section 108
//OokGameState (OokGameState.OokGameState)
package OokGameState {
import flash.events.*;
import OokMessage.*;
import OokObject.*;
public class OokGameState extends OokBaseObject {
protected var owner:OokBaseObject;
public function OokGameState(_arg1:OokBaseObject, _arg2:Number){
super(_arg2);
this.owner = _arg1;
}
override public function keyUpHandler(_arg1:KeyboardEvent):void{
}
override public function mouseUpHandler(_arg1:MouseEvent):void{
}
override public function mouseDownHandler(_arg1:MouseEvent):void{
}
public function execute():void{
}
public function enter():void{
owner.addChild(this);
owner.getStage().focus = this;
}
override public function keyDownHandler(_arg1:KeyboardEvent):void{
}
public function exit():void{
owner.removeChild(this);
}
public function onMessage(_arg1:OokBaseObject, _arg2:OokMessageParcel):void{
}
}
}//package OokGameState
Section 109
//OokGameStateFSM (OokGameState.OokGameStateFSM)
package OokGameState {
import flash.events.*;
import OokMessage.*;
import OokObject.*;
import OokEnum.*;
public class OokGameStateFSM extends OokBaseObject {
private var
:OokGameState;
private var
:OokGameState;
private var owner:OokBaseObject;
private var :OokGameState;
public function OokGameStateFSM(_arg1:OokBaseObject){
super(OokIDEnum.GS_GAME_STATE_FSM);
this. = null;
this.
= null;
this.
= null;
this.owner = _arg1;
}
override public function mouseDownHandler(_arg1:MouseEvent):void{
this..mouseDownHandler(_arg1);
}
override public function keyUpHandler(_arg1:KeyboardEvent):void{
this..keyUpHandler(_arg1);
}
public function update():void{
if (this.
!= null){
this.
.execute();
};
if (this. != null){
this..execute();
};
}
override public function mouseUpHandler(_arg1:MouseEvent):void{
this..mouseUpHandler(_arg1);
}
override public function keyDownHandler(_arg1:KeyboardEvent):void{
this..keyDownHandler(_arg1);
}
public function setGlobalState(_arg1:OokGameState):void{
this.
= _arg1;
}
public function changeGameState(_arg1:OokGameState):void{
this.
= this.;
if (this. != null){
this..exit();
};
this. = _arg1;
this..enter();
}
public function setCurrentState(_arg1:OokGameState):void{
this. = _arg1;
}
override public function handleMessage(_arg1:OokMessageParcel):void{
this..onMessage(owner, _arg1);
}
public function backToPreviousState():void{
this.changeGameState(this.
);
}
}
}//package OokGameState
Section 110
//OokInGameScreen (OokGameState.OokInGameScreen)
package OokGameState {
import flash.events.*;
import OokMessage.*;
import OokLevel.*;
import OokObject.*;
import OokSniper.*;
import OokEnum.*;
import OokController.*;
public class OokInGameScreen extends OokGameState {
private var :OokLevel;
private var :OokSniperScope;
private var controlPanel:Object;
private var :OokSniperScene;
public function OokInGameScreen(_arg1:OokBaseObject){
super(_arg1, OokIDEnum.GS_IN_GAME_SCREEN);
();
}
override public function onMessage(_arg1:OokBaseObject, _arg2:OokMessageParcel):void{
switch (_arg2.message){
case OokMessageEnum.MSG_GAME_OVER:
_arg1.getGameStateFSM().changeGameState(new OokGameOver(_arg1));
break;
};
}
override public function mouseDownHandler(_arg1:MouseEvent):void{
this. .mouseDownHandler(_arg1);
}
override public function keyDownHandler(_arg1:KeyboardEvent):void{
this. .keyDownHandler(_arg1);
}
public function getControlPanel():Object{
return (this.controlPanel);
}
override public function exit():void{
super.exit();
}
public function ():OokSniperScope{
return (this.);
}
private function ():void{
this.x = 0;
this.y = 0;
this.controlPanel = new Object();
this.controlPanel.conversationController = new ConversationController();
this.controlPanel.bulletController = new BulletController();
this.controlPanel.interactiveObjectController = new InteractiveObjectController();
this.controlPanel.hitableController = new HitableController();
this.controlPanel.itemController = new ItemController();
this.controlPanel.bodyController = new BodyController();
this.controlPanel.collisionController = new CollisionController(controlPanel);
this.controlPanel.missionController = new MissionController(controlPanel);
this.controlPanel.hudController = new HudController(controlPanel);
this.controlPanel.triggerController = new TriggerController(controlPanel);
this.controlPanel.effectController = new EffectController();
this.controlPanel.slopeController = new SlopeController();
this.controlPanel.SFXController = new SFXController();
this. = new OokLevel001(this);
this. = new OokSniperScope();
this.addChild( );
this.addChild(controlPanel.hudController);
this.addChild(controlPanel.conversationController);
}
public function enterSniperMode():void{
this..x = (GameEnum.SCREEN_WIDTH / 2);
this..y = (GameEnum.SCREEN_HEIGHT / 2);
this..scaleX = 1;
this..scaleY = 1;
this.mask = this.;
this.addChild(this.);
}
public function (_arg1:OokLevel):void{
this. = _arg1;
}
override public function execute():void{
this.update();
}
public function exitSniperMode():void{
this.mask = null;
this.removeChild(this.);
this. = null;
}
public function update():void{
if (!GameEnum.isPause){
this. .update();
this.controlPanel.bulletController.update();
this.controlPanel.interactiveObjectController.update();
this.controlPanel.hitableController.update();
this.controlPanel.bodyController.update();
this.controlPanel.itemController.update();
this.controlPanel.collisionController.update();
this.controlPanel.hudController.update();
this.controlPanel.effectController.update();
this.controlPanel.slopeController.update();
this.controlPanel.SFXController.update();
if (controlPanel.conversationController.isHavingConversation()){
this.controlPanel.conversationController.update();
};
};
}
override public function mouseUpHandler(_arg1:MouseEvent):void{
this. .mouseUpHandler(_arg1);
}
override public function enter():void{
super.enter();
}
override public function keyUpHandler(_arg1:KeyboardEvent):void{
this. .keyUpHandler(_arg1);
}
}
}//package OokGameState
Section 111
//OokMainMenu (OokGameState.OokMainMenu)
package OokGameState {
import flash.events.*;
import flash.display.*;
import OokObject.*;
import flash.text.*;
import OokMenu.*;
import OokEnum.*;
import OokClickable.*;
import OokAds.*;
import flash.net.*;
public class OokMainMenu extends OokGameState {
private var
:StyleSheet;
private var :OokButton;
private var :OokButton;
private var :TextField;
private var
:OokButton;
private var :OokClickable;
private var :OokButton;
private var
:OokClickable;
private var :MovieClip;
private var :Number;// = 120
public function OokMainMenu(_arg1:OokBaseObject){
super(_arg1, OokIDEnum.GS_MAIN_MENU);
this.();
}
private function (_arg1:Event):void{
();
}
private function ():void{
this. = new GameLogo();
this..x = (GameEnum.SCREEN_WIDTH / 2);
this..y = 80;
this. = new NewGameButton();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = ((this..y + this..height) + this.);
this.
= new CreditButton();
this.
.x = ((GameEnum.SCREEN_WIDTH / 2) - (this.
.width / 2));
this.
.y = (this..y + this.);
this. = new MoreGamesButton();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = (this.
.y + this.);
this. = new ViewHighScoreButton();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = (this..y + this.);
this.
= new StyleSheet();
this.
.setStyle(".header2", GameEnum.STYLESHEET_HEADER2);
this. = new TextField();
this..embedFonts = true;
this..textColor = 0xFFFFFF;
this..styleSheet =
;
this..htmlText = "";
this..width = 1200;
this..height = 400;
this..border = false;
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = 850;
this..selectable = false;
this..htmlText = (("<p class='header2'>" + "Copyright © 2008 Phatthara Yotviriyapanit") + "</p>");
this. = new OokFlash9IDEAds();
this..x = 200;
this..y = ((GameEnum.SCREEN_HEIGHT / 2) - (this..height / 2));
this.
= new OokFlexBuilderAds();
this.
.x = ((GameEnum.SCREEN_WIDTH - 200) - this.
.width);
this.
.y = ((GameEnum.SCREEN_HEIGHT / 2) - (this.
.height / 2));
this..addEventListener(MouseEvent.MOUSE_UP, );
this.
.addEventListener(MouseEvent.MOUSE_UP,
);
this..addEventListener(MouseEvent.MOUSE_UP, );
this..addEventListener(MouseEvent.MOUSE_UP, );
this.
.addEventListener(MouseEvent.MOUSE_UP, );
this..addEventListener(MouseEvent.MOUSE_UP, );
}
private function ():void{
owner.getGameStateFSM().changeGameState(new OokInGameScreen(owner));
}
private function (_arg1:Event):void{
}
override public function enter():void{
super.enter();
this.addChild(this.);
this.addChild(this.);
this.addChild(this.
);
this.addChild(this.);
this.addChild(this.);
this.addChild(this.);
this.addChild(this.
);
this.addChild(this.);
}
private function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FAdobe-Flex-Builder-Pro-3-0%2Fdp%2FB0014A0V5E%3Fie%3DUTF8%26s%3Dsoftware%26qid%3D1215353739%26sr%3D1-1&tag=mangadecom-20&linkCode=ur2&camp=1789&creative=9325");
navigateToURL(_local2, "_blank");
}
private function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.flashgamedeluxe.com");
navigateToURL(_local2, "_blank");
}
private function
(_arg1:Event):void{
owner.getGameStateFSM().changeGameState(new OokCreditMenu(owner));
}
override public function exit():void{
super.exit();
this..removeEventListener(MouseEvent.MOUSE_UP, );
this.
.removeEventListener(MouseEvent.MOUSE_UP,
);
this..removeEventListener(MouseEvent.MOUSE_UP, );
this..removeEventListener(MouseEvent.MOUSE_UP, );
this.removeChild(this.);
this.removeChild(this.);
this.removeChild(this.
);
this.removeChild(this.);
this.removeChild(this.);
this.removeChild(this.);
}
private function (_arg1:Event):void{
var _local2:URLRequest = new URLRequest("http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FAdobe-38039481-Flash-CS3-Professional%2Fdp%2FB000NDICRW%3Fie%3DUTF8%26s%3Dsoftware%26qid%3D1215353634%26sr%3D1-1&tag=mangadecom-20&linkCode=ur2&camp=1789&creative=9325");
navigateToURL(_local2, "_blank");
}
override public function execute():void{
}
}
}//package OokGameState
Section 112
//OokMangaDeluxeScreen (OokGameState.OokMangaDeluxeScreen)
package OokGameState {
import flash.events.*;
import OokObject.*;
import OokAds.*;
import OokEnum.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
public class OokMangaDeluxeScreen extends OokGameState {
private var :Number;
private var :Number;// = 4000
private var :OokMangaDeluxeAds;
private var :Number;
public function OokMangaDeluxeScreen(_arg1:OokBaseObject){
super(_arg1, OokIDEnum.ADS_MANGADELUXE_COM);
this. = new OokMangaDeluxeAds();
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = ((GameEnum.SCREEN_HEIGHT / 2) - (this..height / 2));
this. = getTimer();
this. = (this. + this.);
this..addEventListener(MouseEvent.MOUSE_UP, );
}
override public function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ESCAPE){
};
}
override public function exit():void{
super.exit();
this..removeEventListener(MouseEvent.MOUSE_UP, );
this.removeChild(this.);
}
private function (_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.mangadeluxe.com");
navigateToURL(_local2, "_blank");
}
override public function execute():void{
if (getTimer() > this.){
this.();
};
}
override public function enter():void{
super.enter();
this.addChild(this.);
}
private function ():void{
owner.getGameStateFSM().changeGameState(new OokFlashGameDeluxeScreen(owner));
}
}
}//package OokGameState
Section 113
//OokConcreatType1 (OokHitable.OokConcreatType1)
package OokHitable {
import OokEnum.*;
public class OokConcreatType1 extends OokHitable {
public function OokConcreatType1(_arg1:Object){
super(OokIDEnum.H_STANDARD_SOLID, _arg1);
}
override public function onCollideWithBullet():void{
controlPanel.SFXController.playSFX(SoundID.S_BULLET_HIT_CONCRET, 1, 0);
}
}
}//package OokHitable
Section 114
//OokConcreatType2 (OokHitable.OokConcreatType2)
package OokHitable {
import OokEnum.*;
public class OokConcreatType2 extends OokHitable {
public function OokConcreatType2(_arg1:Object){
super(OokIDEnum.H_STANDARD_SOLID, _arg1);
}
override public function onCollideWithBullet():void{
controlPanel.SFXController.playSFX(SoundID.S_BULLET_HIT_CONCRET, 1, 0);
}
}
}//package OokHitable
Section 115
//OokConcreatWall (OokHitable.OokConcreatWall)
package OokHitable {
import OokEnum.*;
public class OokConcreatWall extends OokHitable {
public function OokConcreatWall(_arg1:Object){
super(OokIDEnum.H_STANDARD_SOLID, _arg1);
this.scaleY = 2;
}
override public function onCollideWithBullet():void{
controlPanel.SFXController.playSFX(SoundID.S_BULLET_HIT_CONCRET, 1, 0);
}
}
}//package OokHitable
Section 116
//OokHitable (OokHitable.OokHitable)
package OokHitable {
import OokObject.*;
public class OokHitable extends OokBaseObject {
protected var controlPanel:Object;
public function OokHitable(_arg1:Number, _arg2:Object){
super(_arg1);
(_arg2);
}
private function (_arg1:Object):void{
this.controlPanel = _arg1;
}
public function onCollideWithBullet():void{
}
}
}//package OokHitable
Section 117
//OokHitable001 (OokHitable.OokHitable001)
package OokHitable {
import OokEnum.*;
public class OokHitable001 extends OokHitable {
public function OokHitable001(_arg1:Object){
super(OokIDEnum.H_STANDARD_SOLID, _arg1);
}
}
}//package OokHitable
Section 118
//OokHitableFloor001 (OokHitable.OokHitableFloor001)
package OokHitable {
import OokEnum.*;
public class OokHitableFloor001 extends OokHitable {
public function OokHitableFloor001(_arg1:Object){
super(OokIDEnum.H_LEVEL_1_FLOOR, _arg1);
this.scaleX = 1.5;
this.alpha = 0;
}
override public function onCollideWithBullet():void{
}
}
}//package OokHitable
Section 119
//HighLand001 (OokInteractiveObject.HighLand001)
package OokInteractiveObject {
public class HighLand001 extends OokInteractiveObject {
public function HighLand001(_arg1:Number){
super(_arg1);
}
}
}//package OokInteractiveObject
Section 120
//OokInteractiveObject (OokInteractiveObject.OokInteractiveObject)
package OokInteractiveObject {
import OokObject.*;
public class OokInteractiveObject extends OokBaseObject {
public function OokInteractiveObject(_arg1:Number){
super(_arg1);
();
}
private function ():void{
}
public function setPosition(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package OokInteractiveObject
Section 121
//UFO (OokInteractiveObject.UFO)
package OokInteractiveObject {
public class UFO extends OokInteractiveObject {
public function UFO(_arg1:Number){
super(_arg1);
this.scaleX = -7;
this.scaleY = 7;
}
}
}//package OokInteractiveObject
Section 122
//UNAHeli001 (OokInteractiveObject.UNAHeli001)
package OokInteractiveObject {
public class UNAHeli001 extends OokInteractiveObject {
public function UNAHeli001(_arg1:Number){
super(_arg1);
this.scaleX = -7;
this.scaleY = 7;
}
}
}//package OokInteractiveObject
Section 123
//ItemArmor (OokItem.ItemArmor)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class ItemArmor extends OokItem {
private var :Number;// = 50
public function ItemArmor(){
super(OokIDEnum.IT_ARMOR_BOX, new ItemBoxBoundary());
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() == GameEnum.TEAM_A){
_arg1.setShield((_arg1.getShield() + this.));
_arg1.addBodyLog((("+" + this.) + " Armor"));
this.setDead(true);
};
}
}
}//package OokItem
Section 124
//ItemAssultRifleBullet (OokItem.ItemAssultRifleBullet)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class ItemAssultRifleBullet extends OokItem {
private var :Number;// = 30
public function ItemAssultRifleBullet(){
super(OokIDEnum.IT_ASSULT_RIFLE_BULLET_BOX, new ItemBoxBoundary());
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() == GameEnum.TEAM_A){
_arg1.getWeaponByIndex(GameEnum.ASSULT_RIFLE).setAmmoQuantity((_arg1.getWeaponByIndex(GameEnum.ASSULT_RIFLE).getAmmoQuantity() + this.));
_arg1.addBodyLog((("+" + this.) + " Assult Rifle Ammo"));
this.setDead(true);
};
}
}
}//package OokItem
Section 125
//ItemHealth (OokItem.ItemHealth)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class ItemHealth extends OokItem {
private var :Number;// = 20
public function ItemHealth(){
super(OokIDEnum.IT_HEALTH_BOX, new ItemBoxBoundary());
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() == GameEnum.TEAM_A){
_arg1.setHealth((_arg1.getHealth() + this.), _arg1);
_arg1.addBodyLog((("+" + this.) + " Health"));
this.setDead(true);
};
}
}
}//package OokItem
Section 126
//ItemMaxnumBullet (OokItem.ItemMaxnumBullet)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class ItemMaxnumBullet extends OokItem {
private var :Number;// = 30
public function ItemMaxnumBullet(){
super(OokIDEnum.IT_MAXNUM_BULLET_BOX, new ItemBoxBoundary());
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() == GameEnum.TEAM_A){
_arg1.getWeaponByIndex(GameEnum.MAXNUM).setAmmoQuantity((_arg1.getWeaponByIndex(GameEnum.MAXNUM).getAmmoQuantity() + this.));
_arg1.addBodyLog((("+" + this.) + " Maxnum Ammo"));
this.setDead(true);
};
}
}
}//package OokItem
Section 127
//ItemPistolBullet (OokItem.ItemPistolBullet)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class ItemPistolBullet extends OokItem {
private var :Number;// = 40
public function ItemPistolBullet(){
super(OokIDEnum.IT_PISTOL_BULLET_BOX, new ItemBoxBoundary());
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() == GameEnum.TEAM_A){
_arg1.getWeaponByIndex(GameEnum.PISTOL).setAmmoQuantity((_arg1.getWeaponByIndex(GameEnum.PISTOL).getAmmoQuantity() + this.));
_arg1.addBodyLog((("+" + this.) + " Pistol Ammo"));
this.setDead(true);
};
}
}
}//package OokItem
Section 128
//ItemRifleBullet (OokItem.ItemRifleBullet)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class ItemRifleBullet extends OokItem {
private var :Number;// = 40
public function ItemRifleBullet(){
super(OokIDEnum.IT_RIFLE_BULLET_BOX, new ItemBoxBoundary());
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() == GameEnum.TEAM_A){
_arg1.getWeaponByIndex(GameEnum.RIFLE_BULLPUP).setAmmoQuantity((_arg1.getWeaponByIndex(GameEnum.RIFLE_BULLPUP).getAmmoQuantity() + this.));
_arg1.addBodyLog((("+" + this.) + " Ghost Rifle Ammo"));
this.setDead(true);
};
}
}
}//package OokItem
Section 129
//ItemShotGunShell (OokItem.ItemShotGunShell)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class ItemShotGunShell extends OokItem {
private var :Number;// = 20
public function ItemShotGunShell(){
super(OokIDEnum.IT_SHOT_GUN_SHELL_BOX, new ItemBoxBoundary());
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() == GameEnum.TEAM_A){
_arg1.getWeaponByIndex(GameEnum.SHOT_GUN).setAmmoQuantity((_arg1.getWeaponByIndex(GameEnum.SHOT_GUN).getAmmoQuantity() + this.));
_arg1.addBodyLog((("+" + this.) + " Shotgun Shell"));
this.setDead(true);
};
}
}
}//package OokItem
Section 130
//ItemSubMachineBullet (OokItem.ItemSubMachineBullet)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class ItemSubMachineBullet extends OokItem {
private var :Number;// = 50
public function ItemSubMachineBullet(){
super(OokIDEnum.IT_SUB_MACHINE_BULLET_BOX, new ItemBoxBoundary());
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (_arg1.getTeam() == GameEnum.TEAM_A){
_arg1.getWeaponByIndex(GameEnum.SUB_MACHINE).setAmmoQuantity((_arg1.getWeaponByIndex(GameEnum.SUB_MACHINE).getAmmoQuantity() + this.));
_arg1.addBodyLog((("+" + this.) + " Sub Machine Ammo"));
this.setDead(true);
};
}
}
}//package OokItem
Section 131
//OokItem (OokItem.OokItem)
package OokItem {
import OokBoundary.BoundaryType.*;
import OokBody.OokBodyType.*;
import OokObject.*;
public class OokItem extends OokMobileObject {
private var :Number;
private var :Number;
private var :ItemBoundary;
private var :Boolean;
public function OokItem(_arg1:Number, _arg2:ItemBoundary){
super(_arg1);
this. = _arg2;
this. = 0;
this. = 5;
this. = false;
();
}
override public function getBoundary():Boundary{
return (this.);
}
override public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
if (((((super.getIsBeingCarried()) || (_arg1.isDead()))) || (_arg1.isDying()))){
return;
};
_arg1.addCarryingItem(this);
}
public function update():void{
this..setVirtualX((.getVirtualX() + ));
this..setVirtualY((.getVirtualY() + ));
if (this..getVirtualY() > 2000){
this..setVirtualY(500);
this..setVirtualX(500);
};
}
public function setPosition(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
this..setupBoundary(this);
}
public function setDead(_arg1:Boolean):void{
this. = _arg1;
}
override public function isDead():Boolean{
return (this. );
}
private function ():void{
this.addChild(this.);
}
public function render():void{
x = .getVirtualX();
y = .getVirtualY();
}
}
}//package OokItem
Section 132
//OokRedFlag (OokItem.OokRedFlag)
package OokItem {
import OokBody.OokBodyType.*;
import OokEnum.*;
import OokBoundary.ItemBoundary.*;
public class OokRedFlag extends OokItem {
public function OokRedFlag(){
super(OokIDEnum.I_FLAG, new RedFlagBoundary());
}
override public function moveRelativeToParent(_arg1:OokBody):void{
if (_arg1.getFacing() == GameEnum.LEFT){
this.getBoundary().setVirtualX((_arg1.getBoundary().getVirtualX() - _arg1.getCarryingItemPositionX()));
this.scaleX = 1;
} else {
this.getBoundary().setVirtualX((_arg1.getBoundary().getVirtualX() + _arg1.getCarryingItemPositionX()));
this.scaleX = -1;
};
this.getBoundary().setVirtualY((_arg1.getBoundary().getVirtualY() - _arg1.getCarryingItemPositionY()));
}
}
}//package OokItem
Section 133
//OokLevel (OokLevel.OokLevel)
package OokLevel {
import flash.events.*;
import OokMessage.*;
import OokBoundary.BoundaryType.*;
import OokGameState.*;
import flash.display.*;
import OokObject.*;
import OokEnvironment.*;
import OokEnum.*;
import OokBoundary.SoundBoundary.*;
public class OokLevel extends Sprite {
private var :OokInGameScreen;
private var :Number;// = 400
private var :Number;
private var :Number;
private var :Number;
protected var :Number;
protected var :Number;
private var :Boolean;
private var :Boolean;
private var :Background;
private var
:Number;
private var
:SoundBoundary;
private var :Number;
private var
:Number;
private var
:Number;// = 0.5
private var
:Number;
private var
:Number;
private var
:Boolean;
private var
:Number;
private var
:Number;
private var
:Number;
private var
:Number;
private var :Number;
protected var controlPanel:Object;
private var :Background;
private var :Number;
private var :Background;
private var :Background;
private var
:Number;
private var :Number;
private var :Number;
private var
:Number;
private var :Boolean;
private var :Number;
private var :Boolean;
private var :Number;
private var :Number;// = 0
private var :Number;
protected var baseBackground:Background;
private var
:Number;
public function OokLevel(_arg1:OokInGameScreen){
(_arg1);
}
public function setPBMRS():void{
var _local1:Number = (this.baseBackground.width - this..width);
var _local2:Number = -(((this.baseBackground.width * this.scaleX) - GameEnum.SCREEN_WIDTH));
this.
= (_local1 / _local2);
}
public function mouseUpHandler(_arg1:MouseEvent):void{
if (((!(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).isDying())) && (!(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).isDead())))){
OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).mouseUpHandler(_arg1);
};
}
private function (_arg1:OokInGameScreen):void{
this. = _arg1;
this.controlPanel = this..getControlPanel();
this.x = 0;
this.y = ((GameEnum.SCREEN_HEIGHT - controlPanel.hudController.getUIBoxHeight()) - 890);
this. = this.x;
this.
= 10;
this.
= 2;
this.
= 0;
this.
= 0;
this.
= 10;
this. = false;
this.
= false;
this. = false;
this. = false;
this. = false;
this. = 0;
this. = 0;
this. = (GameEnum.SCREEN_WIDTH / 2);
this.
= (GameEnum.SCREEN_HEIGHT / 2);
this. = 0;
this.
= 0;
this. = 0;
this. = 0;
this.
= 0;
this. = 0;
this.scaleX = 0.8;
this.scaleY = 0.8;
this.
= this.scaleX;
this.
= this.scaleY;
= (GameEnum.SCREEN_WIDTH / 2);
= 580;
}
public function ():void{
var _local1:Number = OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getCurrentWeaponMagnifyPower();
if (_local1 == 0){
return;
};
this.
= this.
;
this.scaleX = _local1;
this.scaleY = _local1;
this. = this.x;
this. = this.y;
this. = this.mouseX;
this. = this.mouseY;
this.
= this.mouseY;
this. = this.mouseX;
this.x = (-(((this. * (this.scaleX * this.scaleX)) - this.)) + this.
);
this.y = (-(((this. * (this.scaleY * this.scaleY)) - this.
)) + this.
);
this. = (this.x + (GameEnum.SCREEN_WIDTH / 2));
this.
= (this.x - (GameEnum.SCREEN_WIDTH / 2));
this. = (this.y + (GameEnum.SCREEN_HEIGHT / 2));
this. = (this.y - (GameEnum.SCREEN_HEIGHT / 2));
this..enterSniperMode();
this. = true;
}
public function ():Boolean{
return (this.);
}
private function ():void{
if (this.
){
if (this.y > this.){
this.
= (this.
- this.
);
};
};
if (this.){
if (this.y < this.){
this.
= (this.
+ this.
);
};
};
if (this.){
if (this.x > this.
){
this.
= (this.
- this.
);
};
};
if (this.){
if (this.x < this.){
this.
= (this.
+ this.
);
};
};
}
protected function addAllChilds():void{
this.addChild(this.);
this.addChild(this.baseBackground);
this.addChild(controlPanel.slopeController);
this.addChild(controlPanel.interactiveObjectController);
this.addChild(controlPanel.itemController);
this.addChild(controlPanel.hitableController);
this.addChild(controlPanel.bodyController);
this.addChild(controlPanel.bulletController);
this.addChild(controlPanel.conversationController);
this.addChild(controlPanel.effectController);
}
public function ():void{
this.scaleX = this.
;
this.scaleY = this.
;
this.
= this.
;
this. = false;
this..exitSniperMode();
this.
= 0;
this.
= 0;
this.x = this.;
this.y = this.;
this.
= false;
this. = false;
this. = false;
this. = false;
}
public function mouseDownHandler(_arg1:MouseEvent):void{
if (((!(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).isDying())) && (!(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).isDead())))){
OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).mouseDownHandler(_arg1);
};
}
public function
():Number{
return ((this.x * this.
));
}
public function keyDownHandler(_arg1:KeyboardEvent):void{
if (((!(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).isDying())) && (!(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).isDead())))){
OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).keyDownHandler(_arg1);
};
}
public function
():Background{
return (this.);
}
public function
():Background{
return (this.);
}
public function
():Background{
return (this.);
}
public function
():Number{
return (controlPanel["bodyController"].getFocusedBodyIndex());
}
public function adjustMovingFocusedBodyToCenter(_arg1:Number, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
if (this.()){
this.();
this.x = (-(((this. * (this.scaleX * this.scaleX)) - this.)) + this.
);
this.y = (-(((this. * (this.scaleY * this.scaleY)) - this.
)) + this.
);
} else {
if (controlPanel["bodyController"].getFocusedBody().getAimingVision()){
if (controlPanel["bodyController"].getFocusedBody().getFacing() == GameEnum.RIGHT){
if (this. > -(this.)){
this. = (this. - this.
);
};
} else {
if (this. < this.){
this. = (this. + this.
);
};
};
} else {
if (this. != 0){
if (this. < 0){
this. = (this. + this.
);
} else {
this. = (this. - this.
);
};
};
};
_local3 = (((-(_arg1) * this.scaleX) + ) + this.);
_local4 = ((-(_arg2) * this.scaleY) + );
this.x = _local3;
if (this.x > 0){
this.x = 0;
this..x = 0;
} else {
if (-(this.x) > ((this.baseBackground.width * this.scaleX) - GameEnum.SCREEN_WIDTH)){
this.x = -(((this.baseBackground.width * this.scaleX) - GameEnum.SCREEN_WIDTH));
this..x = (this.baseBackground.width - this..width);
} else {
this..x = this.
();
};
};
};
}
public function keyUpHandler(_arg1:KeyboardEvent):void{
if (((!(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).isDying())) && (!(OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).isDead())))){
if (_arg1.keyCode == GameEnum.KEY_P){
GameEnum.isPause = !(GameEnum.isPause);
};
if (GameEnum.isPause){
return;
};
OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).keyUpHandler(_arg1);
};
}
public function
():Background{
return (this. );
}
public function (_arg1:Background):void{
this. = _arg1;
}
private function ():void{
if (this.
!= Math.ceil(this.mouseY)){
this.
= (this.
- (this.mouseY - this.
));
};
if (this. != Math.ceil(this.mouseX)){
this.
= (this.
- (this.mouseX - this.));
};
this.
= Math.ceil(this.mouseY);
this. = Math.ceil(this.mouseX);
}
protected function ():void{
this.removeChild(this.);
this.removeChild(this.baseBackground);
this.removeChild(controlPanel.slopeController);
this.removeChild(controlPanel.itemController);
this.removeChild(controlPanel.bodyController);
this.removeChild(controlPanel.interactiveObjectController);
this.removeChild(controlPanel.hitableController);
this.removeChild(controlPanel.bulletController);
this.removeChild(controlPanel.conversationController);
this.removeChild(controlPanel.effectController);
}
public function setFocusedBodyToCenter():void{
controlPanel["bodyController"].getFocusedBody().setLevel(this);
}
public function update():void{
OokMessageDispatcher.dispatchDelayedMessage();
}
public function ():void{
this.
= new SoundBoundaryHuman();
this.
.x = controlPanel["bodyController"].getFocusedBody().x;
this.
.y = controlPanel["bodyController"].getFocusedBody().y;
this.addChild(this.
);
}
public function setPB1(_arg1:Background):void{
this. = _arg1;
if ((this..width * this.scaleX) <= GameEnum.SCREEN_WIDTH){
throw (new Error(((("Custom error: parallax bg 1 is shorter than screen. PB1.width = " + (this..width * this.scaleX)) + ", SCREEN.width = ") + GameEnum.SCREEN_WIDTH)));
};
}
public function (_arg1:Background):void{
this. = _arg1;
}
public function (_arg1:Background):void{
this. = _arg1;
}
public function ():OokInGameScreen{
return (this.);
}
}
}//package OokLevel
Section 134
//OokLevel001 (OokLevel.OokLevel001)
package OokLevel {
import OokGameState.*;
import OokObject.*;
import OokEnvironment.*;
import ascb.util.*;
import OokHitable.*;
import OokItem.*;
import OokTrigger.*;
import OokInteractiveObject.*;
import OokSlope.*;
import OokEnum.*;
import OokBody.OokBodySet.*;
import flash.utils.*;
import OokBody.*;
public class OokLevel001 extends OokLevel {
private var :Number;// = 500
private var :Number;// = 1
private var :Number;// = 20
private var :Number;
private var :Number;// = 1.5
private var
:Number;// = 1050
private var :Number;// = 0
private var :Number;// = 4
private var :Number;
private var :Number;
private var :Number;
public function OokLevel001(_arg1:OokInGameScreen){
super(_arg1);
();
}
private function ():void{
var _local1 = "hitableController";
controlPanel[_local1].addHitable(new OokHitable001(controlPanel), 1000, -5000);
controlPanel[_local1].addHitable(new OokConcreatWall(controlPanel), -56, (this.
- 2000));
controlPanel[_local1].addHitable(new OokConcreatType2(controlPanel), 200, 400);
controlPanel[_local1].addHitable(new OokConcreatType2(controlPanel), 900, 500);
controlPanel[_local1].addHitable(new OokConcreatType2(controlPanel), 1800, 400);
controlPanel[_local1].addHitable(new OokConcreatType2(controlPanel), 2600, 350);
controlPanel[_local1].addHitable(new OokConcreatType2(controlPanel), 3400, 380);
controlPanel[_local1].addHitable(new OokConcreatType2(controlPanel), 4200, 450);
controlPanel[_local1].addHitable(new OokConcreatType1(controlPanel), 5000, 500);
controlPanel[_local1].addHitable(new OokConcreatWall(controlPanel), 7500, (this.
- 2000));
controlPanel[_local1].addHitable(new OokHitableFloor001(controlPanel), this., this.
);
}
override public function update():void{
super.update();
this.();
this.();
this.();
}
private function ():void{
super.baseBackground = new Background1(0, 400);
super.baseBackground.alpha = 0;
super.setPB1(new ParallaxBackground1(0, -50));
super.setPBMRS();
}
private function ():void{
var _local1:Number = OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getScore();
if (_local1 >= this.){
this. = Math.round((this. * this. ));
this.++;
controlPanel.hudController.getHud().setHeader2(((("Level: " + this.) + "\nNext Level Score: ") + this.));
this. = (this. - 1000);
this. = (this. + 1000);
};
}
private function ():void{
this. = getTimer();
this. = 10000;
this. = getTimer();
this. = 1000;
controlPanel.hudController.getHud().setHeader2(((("Level: " + this.) + "\nNext Level Score: ") + this.));
this.();
this.();
this.
();
this.();
this.();
this.();
this.();
this.();
super.setFocusedBodyToCenter();
super.addAllChilds();
}
private function
():void{
controlPanel["interactiveObjectController"].addInteractiveObject(new UNAHeli001(OokIDEnum.I_UNA_HELI001), 550, 550);
controlPanel["interactiveObjectController"].addInteractiveObject(new UFO(OokIDEnum.I_UFO), 7000, 0);
controlPanel["interactiveObjectController"].addInteractiveObject(new HighLand001(OokIDEnum.I_HIGH_LAND), 1500, 900);
controlPanel["interactiveObjectController"].addInteractiveObject(new HighLand001(OokIDEnum.I_HIGH_LAND), 2500, 900);
}
public function ():void{
if (controlPanel.bodyController.getNumberOfBody(GameEnum.TEAM_B) > this.){
return;
};
if ((getTimer() - this.) > this.){
this. = getTimer();
controlPanel["bodyController"].addBody(new GreyBodyType1(controlPanel, OokIDEnum.N_NPC_1), NumberUtilities.random(100, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 100), 1), 0);
controlPanel["bodyController"].addBody(new GreyBodyType2(controlPanel, OokIDEnum.N_NPC_1), NumberUtilities.random(100, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 100), 1), 0);
};
}
private function ():void{
var _local1 = "slopeController";
controlPanel[_local1].addSlope(new OokSlope001(), 900, 900);
controlPanel[_local1].addSlope(new OokTinySlope001(), 1500, 850);
controlPanel[_local1].addSlope(new OokTinySlope002(), 2500, 850);
controlPanel[_local1].addSlope(new OokSlope002(), 3500, 900);
}
public function ():void{
var _local1:Number;
if (controlPanel.itemController.getNumberOfItem() > this.){
return;
};
if ((getTimer() - this.) > this.){
this. = getTimer();
_local1 = NumberUtilities.random(1, 8);
switch (_local1){
case 1:
controlPanel.itemController.addItem(new ItemPistolBullet(), NumberUtilities.random(50, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 50), 1), 0);
break;
case 2:
controlPanel.itemController.addItem(new ItemMaxnumBullet(), NumberUtilities.random(50, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 50), 1), 0);
break;
case 3:
controlPanel.itemController.addItem(new ItemRifleBullet(), NumberUtilities.random(50, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 50), 1), 0);
break;
case 4:
controlPanel.itemController.addItem(new ItemAssultRifleBullet(), NumberUtilities.random(50, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 50), 1), 0);
break;
case 5:
controlPanel.itemController.addItem(new ItemShotGunShell(), NumberUtilities.random(50, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 50), 1), 0);
break;
case 6:
controlPanel.itemController.addItem(new ItemSubMachineBullet(), NumberUtilities.random(50, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 50), 1), 0);
break;
case 7:
controlPanel.itemController.addItem(new ItemArmor(), NumberUtilities.random(50, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 50), 1), 0);
break;
case 8:
controlPanel.itemController.addItem(new ItemHealth(), NumberUtilities.random(50, (OokObjectManager.getObjectFromID(OokIDEnum.H_LEVEL_1_FLOOR).width - 50), 1), 0);
break;
};
};
}
private function ():void{
}
private function ():void{
var _local1 = "itemController";
controlPanel[_local1].addItem(new OokRedFlag(), 500, 200);
}
private function ():void{
}
private function ():void{
var _local1 = "bodyController";
controlPanel[_local1].addBody(new SandyBody(controlPanel, OokIDEnum.P_PLAYER), (GameEnum.SCREEN_WIDTH / 2), (this.
- 500), GameEnum.FOCUS_BODY);
}
}
}//package OokLevel
Section 135
//OokLog (OokLog.OokLog)
package OokLog {
import flash.text.*;
import flash.utils.*;
public class OokLog extends TextField {
private var :Number;
private var :Number;
public function OokLog(_arg1:String, _arg2:StyleSheet, _arg3:String, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number=4000){
this.embedFonts = true;
this.styleSheet = _arg2;
this.htmlText = "";
this.scaleX = _arg6;
this.scaleY = _arg6;
this.width = _arg7;
this.x = -((this.width / 2));
this.y = _arg5;
this.selectable = false;
this. = _arg8;
this.htmlText = (((("<p class='" + _arg3) + "'>") + _arg1) + "</p>");
this. = (getTimer() + this.);
}
public function getDestroyTime():Number{
return (this.);
}
public function shiftUp(_arg1:Number):void{
this.y = (this.y - _arg1);
}
}
}//package OokLog
Section 136
//AuthorSiteButton (OokMenu.AuthorSiteButton)
package OokMenu {
public class AuthorSiteButton extends OokButton {
}
}//package OokMenu
Section 137
//BackButton (OokMenu.BackButton)
package OokMenu {
public class BackButton extends OokButton {
}
}//package OokMenu
Section 138
//CreditButton (OokMenu.CreditButton)
package OokMenu {
public class CreditButton extends OokButton {
}
}//package OokMenu
Section 139
//CreditText (OokMenu.CreditText)
package OokMenu {
import flash.display.*;
public class CreditText extends MovieClip {
public function CreditText(){
this.scaleX = 1.5;
this.scaleY = 1.5;
}
}
}//package OokMenu
Section 140
//GameLogo (OokMenu.GameLogo)
package OokMenu {
import flash.display.*;
public class GameLogo extends MovieClip {
public function GameLogo(){
this.scaleX = 1.5;
this.scaleY = 1.5;
}
}
}//package OokMenu
Section 141
//GameOverText (OokMenu.GameOverText)
package OokMenu {
import flash.display.*;
public class GameOverText extends MovieClip {
public function GameOverText(){
this.scaleX = 2;
this.scaleY = 2;
}
}
}//package OokMenu
Section 142
//MoreGamesButton (OokMenu.MoreGamesButton)
package OokMenu {
public class MoreGamesButton extends OokButton {
}
}//package OokMenu
Section 143
//MouseOverSFX (OokMenu.MouseOverSFX)
package OokMenu {
import flash.media.*;
public class MouseOverSFX extends Sound {
public function MouseOverSFX(){
this.play();
}
}
}//package OokMenu
Section 144
//NewGameButton (OokMenu.NewGameButton)
package OokMenu {
public class NewGameButton extends OokButton {
}
}//package OokMenu
Section 145
//OokButton (OokMenu.OokButton)
package OokMenu {
import flash.events.*;
import flash.display.*;
public class OokButton extends SimpleButton {
public function OokButton(){
this.scaleX = 1.5;
this.scaleY = 1.5;
this.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
private function mouseUpHandler(_arg1:Event):void{
new MouseOverSFX();
}
}
}//package OokMenu
Section 146
//PlayButton (OokMenu.PlayButton)
package OokMenu {
public class PlayButton extends OokButton {
}
}//package OokMenu
Section 147
//ViewHighScoreButton (OokMenu.ViewHighScoreButton)
package OokMenu {
public class ViewHighScoreButton extends OokButton {
}
}//package OokMenu
Section 148
//OokExtraInfo (OokMessage.OokExtraInfo)
package OokMessage {
public class OokExtraInfo {
private var :Number;
private var :Number;
private var :Number;
private var :Number;
public function (_arg1:Number):void{
this. = _arg1;
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function
():Number{
return (this.);
}
public function ():Number{
return (this.);
}
public function ():Number{
return (this.);
}
public function
():Number{
return (this.);
}
}
}//package OokMessage
Section 149
//OokMessageDispatcher (OokMessage.OokMessageDispatcher)
package OokMessage {
import OokObject.*;
import flash.utils.*;
public class OokMessageDispatcher {
private static var priorityQue:Array = new Array();
private static function discharge(_arg1:OokBaseObject, _arg2:OokMessageParcel):void{
if (_arg1 != null){
_arg1.handleMessage(_arg2);
};
}
public static function dispatchMessage(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:OokExtraInfo):void{
var _local6:OokBaseObject = OokObjectManager.getObjectFromID(_arg2);
var _local7:OokMessageParcel = new OokMessageParcel(_arg1, _arg2, _arg3, _arg4, _arg5);
if (_arg4 <= 0){
OokMessageDispatcher.discharge(_local6, _local7);
} else {
_local7.dispatchTime = (getTimer() + (_arg4 * 1000));
OokMessageDispatcher.priorityQue.push(_local7);
};
}
public static function dispatchDelayedMessage():void{
var _local3:OokMessageParcel;
var _local4:OokBaseObject;
var _local1:Number = getTimer();
var _local2:int;
while (_local2 < OokMessageDispatcher.priorityQue.length) {
if (OokMessageDispatcher.priorityQue[_local2].dispatchTime < _local1){
_local3 = OokMessageDispatcher.priorityQue[_local2];
_local4 = OokObjectManager.getObjectFromID(_local3.
);
OokMessageDispatcher.discharge(_local4, _local3);
OokMessageDispatcher.priorityQue[_local2] = null;
OokMessageDispatcher.priorityQue.splice(_local2, 1);
};
_local2++;
};
}
}
}//package OokMessage
Section 150
//OokMessageParcel (OokMessage.OokMessageParcel)
package OokMessage {
public class OokMessageParcel {
public var
:Number;
public var dispatchTime:Number;
public var message:Number;
public var
:OokExtraInfo;
public var
:Number;
public function OokMessageParcel(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:OokExtraInfo){
this.
= _arg1;
this.
= _arg2;
this.message = _arg3;
this.dispatchTime = _arg4;
this.
= _arg5;
}
}
}//package OokMessage
Section 151
//OokBaseObject (OokObject.OokBaseObject)
package OokObject {
import flash.events.*;
import OokAI.*;
import OokMessage.*;
import OokLevel.*;
import OokBoundary.BoundaryType.*;
import OokGameState.*;
import OokBody.OokBodyType.*;
import OokWeapon.*;
import flash.display.*;
public class OokBaseObject extends MovieClip {
private var :OokAIStateMachine;
private var
:Number;
private var :Number;
private var
:Number;
private var :Boolean;
public function OokBaseObject(_arg1:Number){
this.
= _arg1;
OokObjectManager.registerObject(this);
this. = new OokAIStateMachine(this);
this. = false;
}
public function getName():String{
return ("");
}
public function getIsCarryingFlag():Boolean{
return (false);
}
public function getCurrentWeaponMagnifyPower():Number{
return (-99);
}
public function setAimX(_arg1:Number):void{
this.
= _arg1;
}
public function setIsBeingCarried(_arg1:Boolean):void{
this. = _arg1;
}
public function onCollideWithBody(_arg1:OokBody, _arg2:Boolean=true):void{
}
public function getStage():Stage{
return (null);
}
public function getScore():Number{
return (-99);
}
public function getFSM():OokAIStateMachine{
return (this. );
}
public function startGame():void{
}
public function setName(_arg1:String):void{
}
public function getLevel():OokLevel{
return (null);
}
public function keyUpHandler(_arg1:KeyboardEvent):void{
}
public function mouseUpHandler(_arg1:MouseEvent):void{
}
public function getWeapon():OokWeapon{
return (null);
}
public function getTeam():Number{
return (-99);
}
public function setMovingSpeed(_arg1:Number):void{
}
public function getHealth():Number{
return (-99);
}
public function setFacing(_arg1:Number):void{
}
public function getShield():Number{
return (-99);
}
public function getBoundary():Boundary{
return (null);
}
public function moveRelativeToParent(_arg1:OokBody):void{
}
public function isDying():Boolean{
return (false);
}
public function getAimX():Number{
return (this.
);
}
public function getIsBeingCarried():Boolean{
return (this.);
}
public function isDead():Boolean{
return (false);
}
public function keyDownHandler(_arg1:KeyboardEvent):void{
}
public function getAimY():Number{
return (this.);
}
public function mouseDownHandler(_arg1:MouseEvent):void{
}
public function setFiring(_arg1:Boolean):void{
}
public function setAimY(_arg1:Number):void{
this. = _arg1;
}
public function getGameStateFSM():OokGameStateFSM{
return (null);
}
public function getID():Number{
return (this.
);
}
public function setMovingRight(_arg1:Boolean):void{
}
public function setMovingLeft(_arg1:Boolean):void{
}
public function handleMessage(_arg1:OokMessageParcel):void{
this. .handleMessage(_arg1);
}
}
}//package OokObject
Section 152
//OokMobileObject (OokObject.OokMobileObject)
package OokObject {
public class OokMobileObject extends OokBaseObject {
public function OokMobileObject(_arg1:Number){
super(_arg1);
}
public function getBendBoundaryHeight():Number{
return (0);
}
public function getHeadHeight():Number{
return (0);
}
}
}//package OokObject
Section 153
//OokObjectManager (OokObject.OokObjectManager)
package OokObject {
import OokMessage.*;
import flash.display.*;
import OokEnum.*;
public class OokObjectManager extends Sprite {
private static var objectDictionary:Array = new Array();
public static function removeObject(_arg1:OokBaseObject):void{
if (_arg1.getID() == OokIDEnum.P_PLAYER){
GameEnum.causeOfGameOver = "You were killed by aliens.";
OokObjectManager.objectDictionary[_arg1.getID()] = new PlayerGhostObject(OokIDEnum.P_PLAYER, OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER));
OokMessageDispatcher.dispatchMessage(OokIDEnum.P_PLAYER, OokIDEnum.GS_GAME_STATE_FSM, OokMessageEnum.MSG_GAME_OVER, 0, null);
} else {
OokObjectManager.objectDictionary[_arg1.getID()] = null;
};
}
public static function registerObject(_arg1:OokBaseObject):void{
OokObjectManager.objectDictionary[_arg1.getID()] = _arg1;
}
public static function getObjectFromID(_arg1:Number):OokBaseObject{
return (OokObjectManager.objectDictionary[_arg1]);
}
}
}//package OokObject
Section 154
//PlayerGhostObject (OokObject.PlayerGhostObject)
package OokObject {
import OokWeapon.*;
public class PlayerGhostObject extends OokBaseObject {
private var :Number;
private var :Boolean;// = true
private var
:OokBaseObject;
public function PlayerGhostObject(_arg1:Number, _arg2:OokBaseObject){
super(_arg1);
this.
= _arg2;
this.x = _arg2.x;
this.y = _arg2.y;
}
override public function getWeapon():OokWeapon{
return (this.
.getWeapon());
}
override public function getShield():Number{
return (this.
.getShield());
}
override public function getScore():Number{
return (this.
.getScore());
}
override public function isDead():Boolean{
return (this. );
}
override public function getHealth():Number{
return (this.
.getHealth());
}
}
}//package OokObject
Section 155
//OokPortrait (OokPortrait.OokPortrait)
package OokPortrait {
import flash.display.*;
public class OokPortrait extends Sprite {
public function OokPortrait(){
();
}
private function ():void{
}
}
}//package OokPortrait
Section 156
//OokPortrait001 (OokPortrait.OokPortrait001)
package OokPortrait {
public class OokPortrait001 extends OokPortrait {
}
}//package OokPortrait
Section 157
//OokPreloader (OokPreloader.OokPreloader)
package OokPreloader {
import flash.display.*;
public class OokPreloader extends MovieClip {
public function OokPreloader(){
this.scaleX = 2;
this.scaleY = 2;
}
}
}//package OokPreloader
Section 158
//OokSlope (OokSlope.OokSlope)
package OokSlope {
import flash.display.*;
public class OokSlope extends Sprite {
private var
:Number;
public function OokSlope(){
();
}
private function ():void{
var _local1:Number;
var _local2:Number;
_local1 = Math.sqrt(((this.width * this.width) + (this.height * this.height)));
_local2 = this.height;
= Math.asin((_local2 / _local1));
}
public function getAngel():Number{
return (this.
);
}
public function getStandPoint(_arg1:Number):Number{
return (0);
}
}
}//package OokSlope
Section 159
//OokSlope001 (OokSlope.OokSlope001)
package OokSlope {
public class OokSlope001 extends OokSlopeUp {
}
}//package OokSlope
Section 160
//OokSlope002 (OokSlope.OokSlope002)
package OokSlope {
public class OokSlope002 extends OokSlopeDown {
}
}//package OokSlope
Section 161
//OokSlopeDown (OokSlope.OokSlopeDown)
package OokSlope {
public class OokSlopeDown extends OokSlope {
override public function getStandPoint(_arg1:Number):Number{
return ((Math.tan(super.getAngel()) * (-((this.x - _arg1)) - this.width)));
}
}
}//package OokSlope
Section 162
//OokSlopeUp (OokSlope.OokSlopeUp)
package OokSlope {
public class OokSlopeUp extends OokSlope {
override public function getStandPoint(_arg1:Number):Number{
return ((Math.tan(super.getAngel()) * (this.x - _arg1)));
}
}
}//package OokSlope
Section 163
//OokTinySlope001 (OokSlope.OokTinySlope001)
package OokSlope {
public class OokTinySlope001 extends OokSlopeUp {
}
}//package OokSlope
Section 164
//OokTinySlope002 (OokSlope.OokTinySlope002)
package OokSlope {
public class OokTinySlope002 extends OokSlopeDown {
}
}//package OokSlope
Section 165
//OokSniperScene (OokSniper.OokSniperScene)
package OokSniper {
import flash.display.*;
public class OokSniperScene extends Sprite {
}
}//package OokSniper
Section 166
//OokSniperScope (OokSniper.OokSniperScope)
package OokSniper {
import flash.display.*;
public class OokSniperScope extends Sprite {
}
}//package OokSniper
Section 167
//AlienScreamDead2SFX (OokSound.OokSFX.AlienScreamDead2SFX)
package OokSound.OokSFX {
public class AlienScreamDead2SFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 168
//AlienScreamDeadSFX (OokSound.OokSFX.AlienScreamDeadSFX)
package OokSound.OokSFX {
public class AlienScreamDeadSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 169
//AssultRifleShotSFX (OokSound.OokSFX.AssultRifleShotSFX)
package OokSound.OokSFX {
public class AssultRifleShotSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 170
//BulletHitFleshSFX (OokSound.OokSFX.BulletHitFleshSFX)
package OokSound.OokSFX {
public class BulletHitFleshSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 171
//ConcreatHitSFX (OokSound.OokSFX.ConcreatHitSFX)
package OokSound.OokSFX {
public class ConcreatHitSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 172
//GhostRifleShotSFX (OokSound.OokSFX.GhostRifleShotSFX)
package OokSound.OokSFX {
public class GhostRifleShotSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 173
//ItemPickedUpSFX (OokSound.OokSFX.ItemPickedUpSFX)
package OokSound.OokSFX {
public class ItemPickedUpSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 174
//MaxnumShotSFX (OokSound.OokSFX.MaxnumShotSFX)
package OokSound.OokSFX {
public class MaxnumShotSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 175
//OokSFX (OokSound.OokSFX.OokSFX)
package OokSound.OokSFX {
import flash.events.*;
import flash.media.*;
public class OokSFX extends Sound {
private var
:Boolean;// = false
public function OokSFX(){
this.addEventListener(Event.SOUND_COMPLETE,
);
}
public function
(_arg1:Event):void{
this.removeEventListener(Event.SOUND_COMPLETE,
);
this.
(true);
}
public function getSoundComplete():Boolean{
return (this.
);
}
public function
(_arg1:Boolean):void{
this.
= _arg1;
}
}
}//package OokSound.OokSFX
Section 176
//PistolReloadInSFX (OokSound.OokSFX.PistolReloadInSFX)
package OokSound.OokSFX {
public class PistolReloadInSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 177
//PistolReloadOutSFX (OokSound.OokSFX.PistolReloadOutSFX)
package OokSound.OokSFX {
public class PistolReloadOutSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 178
//PistolShotSFX (OokSound.OokSFX.PistolShotSFX)
package OokSound.OokSFX {
public class PistolShotSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 179
//SandHitSFX (OokSound.OokSFX.SandHitSFX)
package OokSound.OokSFX {
public class SandHitSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 180
//ShotGunShotSFX (OokSound.OokSFX.ShotGunShotSFX)
package OokSound.OokSFX {
public class ShotGunShotSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 181
//SniperShotSFX (OokSound.OokSFX.SniperShotSFX)
package OokSound.OokSFX {
public class SniperShotSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 182
//SubMachineShotSFX (OokSound.OokSFX.SubMachineShotSFX)
package OokSound.OokSFX {
public class SubMachineShotSFX extends OokSFX {
}
}//package OokSound.OokSFX
Section 183
//CallerAlienScreamDead2SFX (OokSound.OokSFXCaller.CallerAlienScreamDead2SFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerAlienScreamDead2SFX extends CallerSFX {
public function getNewInstance():AlienScreamDead2SFX{
return (new AlienScreamDead2SFX());
}
}
}//package OokSound.OokSFXCaller
Section 184
//CallerAlienScreamDeadSFX (OokSound.OokSFXCaller.CallerAlienScreamDeadSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerAlienScreamDeadSFX extends CallerSFX {
public function getNewInstance():AlienScreamDeadSFX{
return (new AlienScreamDeadSFX());
}
}
}//package OokSound.OokSFXCaller
Section 185
//CallerAssultRifleShotSFX (OokSound.OokSFXCaller.CallerAssultRifleShotSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerAssultRifleShotSFX extends CallerSFX {
public function getNewInstance():AssultRifleShotSFX{
return (new AssultRifleShotSFX());
}
}
}//package OokSound.OokSFXCaller
Section 186
//CallerBulletHitFleshSFX (OokSound.OokSFXCaller.CallerBulletHitFleshSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerBulletHitFleshSFX extends CallerSFX {
public function getNewInstance():BulletHitFleshSFX{
return (new BulletHitFleshSFX());
}
}
}//package OokSound.OokSFXCaller
Section 187
//CallerConcreatHitSFX (OokSound.OokSFXCaller.CallerConcreatHitSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerConcreatHitSFX extends CallerSFX {
public function getNewInstance():ConcreatHitSFX{
return (new ConcreatHitSFX());
}
}
}//package OokSound.OokSFXCaller
Section 188
//CallerGhostRifleShotSFX (OokSound.OokSFXCaller.CallerGhostRifleShotSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerGhostRifleShotSFX extends CallerSFX {
public function getNewInstance():GhostRifleShotSFX{
return (new GhostRifleShotSFX());
}
}
}//package OokSound.OokSFXCaller
Section 189
//CallerItemPickedUpSFX (OokSound.OokSFXCaller.CallerItemPickedUpSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerItemPickedUpSFX extends CallerSFX {
public function getNewInstance():ItemPickedUpSFX{
return (new ItemPickedUpSFX());
}
}
}//package OokSound.OokSFXCaller
Section 190
//CallerMaxnumShotSFX (OokSound.OokSFXCaller.CallerMaxnumShotSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerMaxnumShotSFX extends CallerSFX {
public function getNewInstance():MaxnumShotSFX{
return (new MaxnumShotSFX());
}
}
}//package OokSound.OokSFXCaller
Section 191
//CallerPistolReloadInSFX (OokSound.OokSFXCaller.CallerPistolReloadInSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerPistolReloadInSFX extends CallerSFX {
public function getNewInstance():PistolReloadInSFX{
return (new PistolReloadInSFX());
}
}
}//package OokSound.OokSFXCaller
Section 192
//CallerPistolReloadOutSFX (OokSound.OokSFXCaller.CallerPistolReloadOutSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerPistolReloadOutSFX extends CallerSFX {
public function getNewInstance():PistolReloadOutSFX{
return (new PistolReloadOutSFX());
}
}
}//package OokSound.OokSFXCaller
Section 193
//CallerPistolShotSFX (OokSound.OokSFXCaller.CallerPistolShotSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerPistolShotSFX extends CallerSFX {
public function getNewInstance():PistolShotSFX{
return (new PistolShotSFX());
}
}
}//package OokSound.OokSFXCaller
Section 194
//CallerSandHitSFX (OokSound.OokSFXCaller.CallerSandHitSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerSandHitSFX extends CallerSFX {
public function getNewInstance():SandHitSFX{
return (new SandHitSFX());
}
}
}//package OokSound.OokSFXCaller
Section 195
//CallerSFX (OokSound.OokSFXCaller.CallerSFX)
package OokSound.OokSFXCaller {
public class CallerSFX {
}
}//package OokSound.OokSFXCaller
Section 196
//CallerShotGunShotSFX (OokSound.OokSFXCaller.CallerShotGunShotSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerShotGunShotSFX extends CallerSFX {
public function getNewInstance():ShotGunShotSFX{
return (new ShotGunShotSFX());
}
}
}//package OokSound.OokSFXCaller
Section 197
//CallerSniperShotSFX (OokSound.OokSFXCaller.CallerSniperShotSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerSniperShotSFX extends CallerSFX {
public function getNewInstance():SniperShotSFX{
return (new SniperShotSFX());
}
}
}//package OokSound.OokSFXCaller
Section 198
//CallerSubMachineShotSFX (OokSound.OokSFXCaller.CallerSubMachineShotSFX)
package OokSound.OokSFXCaller {
import OokSound.OokSFX.*;
public class CallerSubMachineShotSFX extends CallerSFX {
public function getNewInstance():SubMachineShotSFX{
return (new SubMachineShotSFX());
}
}
}//package OokSound.OokSFXCaller
Section 199
//OokTrigger (OokTrigger.OokTrigger)
package OokTrigger {
import flash.display.*;
public class OokTrigger extends Sprite {
protected var controlPanel:Object;
public function OokTrigger(_arg1:Object){
this.controlPanel = _arg1;
}
public function execute():void{
}
}
}//package OokTrigger
Section 200
//UIArmorBar (OokUI.UIBodyBar.UIArmorBar)
package OokUI.UIBodyBar {
import OokUI.*;
public class UIArmorBar extends UISprite {
public function UIArmorBar(){
this.stop();
}
}
}//package OokUI.UIBodyBar
Section 201
//UIHealthBar (OokUI.UIBodyBar.UIHealthBar)
package OokUI.UIBodyBar {
import OokUI.*;
public class UIHealthBar extends UISprite {
public function UIHealthBar(){
this.stop();
}
}
}//package OokUI.UIBodyBar
Section 202
//UIAssultRifleBullet (OokUI.UIBulletIcon.UIAssultRifleBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UIAssultRifleBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIAssultRifleBullet;
public function UIAssultRifleBullet(){
if (UIAssultRifleBullet.selfCall){
super();
UIAssultRifleBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIAssultRifleBullet{
if (UIAssultRifleBullet.instance != null){
return (UIAssultRifleBullet.instance);
};
UIAssultRifleBullet.selfCall = true;
UIAssultRifleBullet.instance = new (UIAssultRifleBullet);
return (UIAssultRifleBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 203
//UIFlameBullet (OokUI.UIBulletIcon.UIFlameBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UIFlameBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIFlameBullet;
public function UIFlameBullet(){
if (UIFlameBullet.selfCall){
super();
UIFlameBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIFlameBullet{
if (UIFlameBullet.instance != null){
return (UIFlameBullet.instance);
};
UIFlameBullet.selfCall = true;
UIFlameBullet.instance = new (UIFlameBullet);
return (UIFlameBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 204
//UIGrenadeBullet (OokUI.UIBulletIcon.UIGrenadeBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UIGrenadeBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIGrenadeBullet;
public function UIGrenadeBullet(){
if (UIGrenadeBullet.selfCall){
super();
UIGrenadeBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIGrenadeBullet{
if (UIGrenadeBullet.instance != null){
return (UIGrenadeBullet.instance);
};
UIGrenadeBullet.selfCall = true;
UIGrenadeBullet.instance = new (UIGrenadeBullet);
return (UIGrenadeBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 205
//UIMaxnumBullet (OokUI.UIBulletIcon.UIMaxnumBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UIMaxnumBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIMaxnumBullet;
public function UIMaxnumBullet(){
if (UIMaxnumBullet.selfCall){
super();
UIMaxnumBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIMaxnumBullet{
if (UIMaxnumBullet.instance != null){
return (UIMaxnumBullet.instance);
};
UIMaxnumBullet.selfCall = true;
UIMaxnumBullet.instance = new (UIMaxnumBullet);
return (UIMaxnumBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 206
//UIPistolBullet (OokUI.UIBulletIcon.UIPistolBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UIPistolBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIPistolBullet;
public function UIPistolBullet(){
if (UIPistolBullet.selfCall){
super();
UIPistolBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIPistolBullet{
if (UIPistolBullet.instance != null){
return (UIPistolBullet.instance);
};
UIPistolBullet.selfCall = true;
UIPistolBullet.instance = new (UIPistolBullet);
return (UIPistolBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 207
//UIRifleBullet (OokUI.UIBulletIcon.UIRifleBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UIRifleBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIRifleBullet;
public function UIRifleBullet(){
if (UIRifleBullet.selfCall){
super();
UIRifleBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIRifleBullet{
if (UIRifleBullet.instance != null){
return (UIRifleBullet.instance);
};
UIRifleBullet.selfCall = true;
UIRifleBullet.instance = new (UIRifleBullet);
return (UIRifleBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 208
//UIRocketBullet (OokUI.UIBulletIcon.UIRocketBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UIRocketBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIRocketBullet;
public function UIRocketBullet(){
if (UIRocketBullet.selfCall){
super();
UIRocketBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIRocketBullet{
if (UIRocketBullet.instance != null){
return (UIRocketBullet.instance);
};
UIRocketBullet.selfCall = true;
UIRocketBullet.instance = new (UIRocketBullet);
return (UIRocketBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 209
//UIShotGunShell (OokUI.UIBulletIcon.UIShotGunShell)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UIShotGunShell extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIShotGunShell;
public function UIShotGunShell(){
if (UIShotGunShell.selfCall){
super();
UIShotGunShell.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIShotGunShell{
if (UIShotGunShell.instance != null){
return (UIShotGunShell.instance);
};
UIShotGunShell.selfCall = true;
UIShotGunShell.instance = new (UIShotGunShell);
return (UIShotGunShell.instance);
}
}
}//package OokUI.UIBulletIcon
Section 210
//UISniperBullet (OokUI.UIBulletIcon.UISniperBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UISniperBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UISniperBullet;
public function UISniperBullet(){
if (UISniperBullet.selfCall){
super();
UISniperBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UISniperBullet{
if (UISniperBullet.instance != null){
return (UISniperBullet.instance);
};
UISniperBullet.selfCall = true;
UISniperBullet.instance = new (UISniperBullet);
return (UISniperBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 211
//UISubMachineBullet (OokUI.UIBulletIcon.UISubMachineBullet)
package OokUI.UIBulletIcon {
import OokUI.*;
public class UISubMachineBullet extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UISubMachineBullet;
public function UISubMachineBullet(){
if (UISubMachineBullet.selfCall){
super();
UISubMachineBullet.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UISubMachineBullet{
if (UISubMachineBullet.instance != null){
return (UISubMachineBullet.instance);
};
UISubMachineBullet.selfCall = true;
UISubMachineBullet.instance = new (UISubMachineBullet);
return (UISubMachineBullet.instance);
}
}
}//package OokUI.UIBulletIcon
Section 212
//OokHud (OokUI.OokHud)
package OokUI {
import flash.display.*;
import OokObject.*;
import flash.text.*;
import ascb.util.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
import flash.utils.*;
public class OokHud extends Sprite {
private const SYMBOL_GAP:Number = 10;
private const UI_TEXT_TOP_MARGIN:Number = 6.66666666666667;
private const UI_BOX_WIDTH:Number = 1400;
private const FONT_SCALE:Number = 1;
private const UI_BOX_HEIGHT:Number = 100;
private const UI_TEXT_MARGIN:Number = 100;
private var :Number;
private var
:StyleSheet;
private var :NumberFormat;
private var message:String;
private var :TextField;
private var :Number;
private var
:Number;
private var :UIArmor;
private var :Number;
private var :String;
private var :TextField;
private var :Number;// = 5000
private var controlPanel:Object;
private var
:TextField;
private var
:UISprite;
private var :String;
private var :String;
private var
:TextField;
private var :String;
private var :TextField;
private var :Number;// = 0
private var :TextField;
private var :TextField;
private var :String;
private var :Number;
private var :TextField;
private var :Number;
private var :UIHealth;
private var
:TextField;
public function OokHud(_arg1:Object){
this.controlPanel = _arg1;
();
}
public function (_arg1:String):void{
this. = (getTimer() + this.);
this. = _arg1;
}
public function (_arg1:String):void{
this. = _arg1;
}
public function ():String{
return (this.);
}
public function setHeader2(_arg1:String):void{
this. = _arg1;
}
private function ():void{
this. = (this.UI_TEXT_TOP_MARGIN + this.SYMBOL_GAP);
this. = 1050;
this. = new NumberFormat("000");
this.
= UIRifleBullet.getInstance();
this.
.x = this.;
this.
.y = this. ;
this. = UIHealth.getInstance();
this. .x = (this.UI_TEXT_MARGIN - this. .width);
this. .y = this. ;
this. = UIArmor.getInstance();
this..x = ((this.UI_TEXT_MARGIN + 200) - this..width);
this..y = this. ;
this.x = 0;
this.y = (GameEnum.SCREEN_HEIGHT - this.UI_BOX_HEIGHT);
this.scaleX = 1;
this.scaleY = 1;
this.
= new StyleSheet();
this.
.setStyle(".menu", GameEnum.STYLESHEET_MENU);
this.
.setStyle(".number", GameEnum.STYLESHEET_SPEAKER);
this.
.setStyle(".message", GameEnum.STYLESHEET_CHOICE);
this.
.setStyle(".header", GameEnum.STYLESHEET_HEADER);
this.
.setStyle(".header2", GameEnum.STYLESHEET_HEADER2);
this.
.setStyle(".header3", GameEnum.STYLESHEET_HEADER3);
this.
.setStyle(".header4", GameEnum.STYLESHEET_HEADER4);
this. = "";
this. = 100;
this.
= 5;
this. = 30;
this.message = "";
this. = "";
this. = "";
this. = "";
this. = "";
this.
= new TextField();
this.
.embedFonts = true;
this.
.textColor = 0xFFFFFF;
this.
.styleSheet =
;
this.
.htmlText = "";
this.
.scaleX = this.FONT_SCALE;
this.
.scaleY = this.FONT_SCALE;
this.
.width = 700;
this.
.x = ((GameEnum.SCREEN_WIDTH / 2) - (this.
.width / 2));
this.
.y = -700;
this.
.selectable = false;
this. = new TextField();
this..embedFonts = true;
this..textColor = 0xFFFFFF;
this..styleSheet =
;
this..htmlText = "";
this..scaleX = this.FONT_SCALE;
this..scaleY = this.FONT_SCALE;
this..width = 1200;
this..height = 400;
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = -850;
this..selectable = false;
this. = new TextField();
this..embedFonts = true;
this..textColor = 0xFFFFFF;
this..styleSheet =
;
this..htmlText = "";
this..scaleX = this.FONT_SCALE;
this..scaleY = this.FONT_SCALE;
this..width = 500;
this..x = ((GameEnum.SCREEN_WIDTH / 2) - (this..width / 2));
this..y = -600;
this..selectable = false;
this.
= new TextField();
this.
.embedFonts = true;
this.
.textColor = 0xFFFFFF;
this.
.styleSheet =
;
this.
.htmlText = "";
this.
.scaleX = this.FONT_SCALE;
this.
.scaleY = this.FONT_SCALE;
this.
.width = 500;
this.
.x = (GameEnum.SCREEN_WIDTH - this.
.width);
this.
.y = -800;
this.
.selectable = false;
this. = new TextField();
this..embedFonts = true;
this..textColor = 0xFFFFFF;
this..styleSheet =
;
this..htmlText = "";
this..scaleX = this.FONT_SCALE;
this..scaleY = this.FONT_SCALE;
this..x = 500;
this..y = this.UI_TEXT_TOP_MARGIN;
this..width = 500;
this..selectable = false;
this. = new TextField();
this..embedFonts = true;
this..styleSheet =
;
this..textColor = 0xFFFFFF;
this..htmlText = "";
this..scaleX = this.FONT_SCALE;
this..scaleY = this.FONT_SCALE;
this..x = ((this. .x + this. .width) + this.SYMBOL_GAP);
this..y = this.UI_TEXT_TOP_MARGIN;
this..width = 500;
this..selectable = false;
this. = new TextField();
this..embedFonts = true;
this..styleSheet =
;
this..textColor = 0xFFFFFF;
this..htmlText = "";
this..scaleX = this.FONT_SCALE;
this..scaleY = this.FONT_SCALE;
this..x = ((this..x + this..width) + this.SYMBOL_GAP);
this..y = this.UI_TEXT_TOP_MARGIN;
this..width = 500;
this..selectable = false;
this. = new TextField();
this..embedFonts = true;
this..styleSheet =
;
this..textColor = 0xFFFFFF;
this..scaleX = this.FONT_SCALE;
this..scaleY = this.FONT_SCALE;
this..x = ((this.
.x + this.
.width) + this.SYMBOL_GAP);
this..y = this.UI_TEXT_TOP_MARGIN;
this..width = 500;
this..selectable = false;
this.
= new TextField();
this.
.embedFonts = true;
this.
.textColor = 0xFFFFFF;
this.
.styleSheet =
;
this.
.scaleX = this.FONT_SCALE;
this.
.scaleY = this.FONT_SCALE;
this.
.x = (this..x + 110);
this.
.y = this.UI_TEXT_TOP_MARGIN;
this.
.width = 500;
this.
.selectable = false;
this.graphics.lineStyle(1, 0);
this.graphics.beginFill(0, 1);
this.graphics.drawRect(0, 0, this.UI_BOX_WIDTH, this.UI_BOX_HEIGHT);
this.graphics.endFill();
this.addChild(this.);
this.addChild(this.);
this.addChild(this.);
this.addChild(this.
);
this.addChild(this.);
this.addChild(this.
);
this.addChild(this.);
this.addChild(this.);
this.addChild(this.
);
this.addChild(this.
);
this.addChild(this.);
this.addChild(this. );
}
public function ():String{
return (this.);
}
public function setNumberOfBullet(_arg1:Number):void{
this. = _arg1;
}
private function ():void{
if (getTimer() > this.){
this. = "";
};
}
public function (_arg1:String):void{
this. = _arg1;
}
public function ():String{
return (this.);
}
private function ():void{
this.removeChild(this.
);
this.
= OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getWeapon().getBulletSymbol();
this.addChild(this.
);
this.
.x = this.;
this.
.y = this. ;
}
public function setNumberOfMagazine(_arg1:Number):void{
this.
= _arg1;
}
public function update():void{
this.();
if (OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getWeapon().getBulletSymbol() != this.
){
this. ();
};
this. = OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getHealth();
this. = OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getShield();
this. = OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getWeapon().getAmmoInMagazineQuantityForUI();
this.
= OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getWeapon().getAmmoQuantityForUI();
this..htmlText = (("<p class='menu'> " + this..format(this.)) + "</p>");
this..htmlText = (("<p class='menu'>" + this..format(this.)) + "</p>");
this..htmlText = (("<p class='menu'> " + this..format(this.)) + "</p>");
this.
.htmlText = (("<p class='menu'> | " + this..format(this.
)) + "</p>");
this.
.htmlText = (("<p class='header'>" + this.()) + "</p>");
this..htmlText = (("<p class='header2'>" + this.()) + "</p>");
this..htmlText = (("<p class='header3'>" + this.()) + "</p>");
this.
.htmlText = (("<p class='header4'>" + this.()) + "</p>");
var _local1:Number = OokObjectManager.getObjectFromID(OokIDEnum.P_PLAYER).getScore();
this..htmlText = (("<p class='menu'>Score : " + _local1) + "</p>");
}
public function ():String{
return (this.);
}
public function setMessage(_arg1:String):void{
this.message = _arg1;
}
public function setHealth(_arg1:Number):void{
this. = _arg1;
}
public function getUIBoxHeight():Number{
return (this.UI_BOX_HEIGHT);
}
}
}//package OokUI
Section 213
//UIArmor (OokUI.UIArmor)
package OokUI {
public class UIArmor extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIArmor;
public function UIArmor(){
if (UIArmor.selfCall){
super();
UIArmor.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIArmor{
if (UIArmor.instance != null){
return (UIArmor.instance);
};
UIArmor.selfCall = true;
UIArmor.instance = new (UIArmor);
return (UIArmor.instance);
}
}
}//package OokUI
Section 214
//UIHealth (OokUI.UIHealth)
package OokUI {
public class UIHealth extends UISprite {
private static var selfCall:Boolean = false;
private static var instance:UIHealth;
public function UIHealth(){
if (UIHealth.selfCall){
super();
UIHealth.selfCall = false;
} else {
throw (new Error("Error: Attemping to use new operator against singleton class"));
};
}
public static function getInstance():UIHealth{
if (UIHealth.instance != null){
return (UIHealth.instance);
};
UIHealth.selfCall = true;
UIHealth.instance = new (UIHealth);
return (UIHealth.instance);
}
}
}//package OokUI
Section 215
//UISprite (OokUI.UISprite)
package OokUI {
import flash.display.*;
public class UISprite extends MovieClip {
}
}//package OokUI
Section 216
//AssultRifleBullet (OokWeapon.OokBullet.AssultRifleBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class AssultRifleBullet extends Bullet {
public function AssultRifleBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 1200, 40, 100, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 217
//Bullet (OokWeapon.OokBullet.Bullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import flash.display.*;
import OokWeapon.OokGun.*;
import OokEnum.*;
public class Bullet extends MovieClip {
private var :Number;
private var :Number;
private var :Number;
private var owner:OokBody;
private var :Number;
private var :Number;
private var :Number;
private var :Number;
private var :Number;
private var :Number;
public function Bullet(_arg1:Gun, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:OokBody, _arg6:Number=0){
this.scaleX = _arg1.scaleX;
this.scaleY = _arg1.scaleY;
this. = _arg1.rotation;
this. = _arg2;
this. = _arg3;
this. = _arg4;
this. = _arg5.getTeam();
this.owner = _arg5;
rotation = this.;
var _local7:Number = ((rotation * Math.PI) / 180);
var _local8:Number = _arg1. ();
if (_arg5.getFacing() == GameEnum.RIGHT){
_local8 = -(_local8);
};
this.x = ((_arg5.x + _arg5.getCurrentWeaponForBullet().x) + (Math.cos((_local7 + _local8)) * _arg1.
()));
this.y = ((_arg5.y + _arg5.getCurrentWeaponForBullet().y) + (Math.sin((_local7 + _local8)) * _arg1.
()));
this. = this.x;
this. = this.y;
= (Math.cos((_local7 + _arg6)) * _arg3);
= (Math.sin((_local7 + _arg6)) * _arg3);
}
public function update():void{
x = (x + );
y = (y + );
}
public function
():Number{
return ();
}
public function getTeam():Number{
return (this.);
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function ():Number{
return ();
}
public function getPointOfContactX():Number{
if ((((this.rotation < -90)) || ((this.rotation > 90)))){
return ((this.x - this.width));
};
return ((this.x + this.width));
}
public function getPointOfContactY():Number{
if (this.rotation >= 0){
return ((this.y + (this.height / 2)));
};
return ((this.y - (this.height / 2)));
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function getPenetrationPower():Number{
return ();
}
public function isStillEffective():Boolean{
var _local1:Number = ( - x);
var _local2:Number = ( - y);
var _local3:Number = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
if (_local3 < this.){
return (true);
};
return (false);
}
public function getOwner():OokBody{
return (this.owner);
}
}
}//package OokWeapon.OokBullet
Section 218
//FlameBullet (OokWeapon.OokBullet.FlameBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class FlameBullet extends Bullet {
public function FlameBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 800, 14, 10, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 219
//GhostRifleBullet (OokWeapon.OokBullet.GhostRifleBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class GhostRifleBullet extends Bullet {
public function GhostRifleBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 2000, 70, 120, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 220
//GrenadeBullet (OokWeapon.OokBullet.GrenadeBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class GrenadeBullet extends Bullet {
public function GrenadeBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 700, 20, 60, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 221
//MaxnumBullet (OokWeapon.OokBullet.MaxnumBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class MaxnumBullet extends Bullet {
public function MaxnumBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 1500, 50, 400, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 222
//PistolBullet (OokWeapon.OokBullet.PistolBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class PistolBullet extends Bullet {
public function PistolBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 1200, 40, 50, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 223
//RocketBullet (OokWeapon.OokBullet.RocketBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class RocketBullet extends Bullet {
public function RocketBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 2000, 5, 200, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 224
//ShotGunBullet (OokWeapon.OokBullet.ShotGunBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class ShotGunBullet extends Bullet {
public function ShotGunBullet(_arg1:Gun, _arg2:OokBody, _arg3:Number){
super(_arg1, 1200, 30, 50, _arg2, _arg3);
}
}
}//package OokWeapon.OokBullet
Section 225
//SniperRifleBullet (OokWeapon.OokBullet.SniperRifleBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class SniperRifleBullet extends Bullet {
public function SniperRifleBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 800, 50, 120, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 226
//SubMachineBullet (OokWeapon.OokBullet.SubMachineBullet)
package OokWeapon.OokBullet {
import OokBody.OokBodyType.*;
import OokWeapon.OokGun.*;
public class SubMachineBullet extends Bullet {
public function SubMachineBullet(_arg1:Gun, _arg2:OokBody){
super(_arg1, 1200, 40, 40, _arg2);
}
}
}//package OokWeapon.OokBullet
Section 227
//AssultRifle (OokWeapon.OokGun.AssultRifle)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class AssultRifle extends Gun {
private var :OokBody;
public function AssultRifle(_arg1:Object, _arg2:OokBody){
super(GameEnum.ASSULT_RIFLE, GameEnum.MAG_SIZE_ASSULT_RIFLE, GameEnum.START_UP_ASSULT_RIFLE_AMMO, GameEnum.FIRE_MODE_FULL_AUTO, GameEnum.FIRING_RATE_ASSULT_RIFLE, _arg1, GameEnum.MAGNIFY_IPSV, 280, UIAssultRifleBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_ASSULT_RIFLE, 0.033);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
controlPanel.SFXController.playSFX(SoundID.S_ASSULT_RIFLE_SHOT, 1, 0);
super.createBullet(new AssultRifleBullet(this, ));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 228
//FlameThrower (OokWeapon.OokGun.FlameThrower)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class FlameThrower extends Gun {
private var :OokBody;
public function FlameThrower(_arg1:Object, _arg2:OokBody){
super(GameEnum.FLAME_THROWER, GameEnum.MAG_SIZE_FLAME_THROWER, GameEnum.START_UP_FLAME_THROWER_AMMO, GameEnum.FIRE_MODE_FULL_AUTO, GameEnum.FIRING_RATE_FLAME_THROWER, _arg1, GameEnum.MAGNIFY_NONE, 220, UIFlameBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_FLAME_THROWER, 0.12);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
super.createBullet(new FlameBullet(this, ));
this.gotoAndStop("Blast");
} else {
if (this..getCurrentWeaponForBullet().getFiring()){
} else {
this.gotoAndStop("Normal");
};
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 229
//GhostSniperRifle (OokWeapon.OokGun.GhostSniperRifle)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class GhostSniperRifle extends Gun {
private var :OokBody;
public function GhostSniperRifle(_arg1:Object, _arg2:OokBody){
super(GameEnum.RIFLE_BULLPUP, GameEnum.MAG_SIZE_GHOST_RIFLE, GameEnum.START_UP_GHOST_RIFLE_AMMO, GameEnum.FIRE_MODE_FULL_AUTO, GameEnum.FIRING_RATE_GHOST_RIFLE, _arg1, GameEnum.MAGNIFY_RIFLE_SCOPE, 305, UIRifleBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_GHOST_RIFLE, 0.07);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
controlPanel.SFXController.playSFX(SoundID.S_GHOST_RIFLE_SHOT, 1, 0);
super.createBullet(new GhostRifleBullet(this, ));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 230
//GrenadeLauncher (OokWeapon.OokGun.GrenadeLauncher)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class GrenadeLauncher extends Gun {
private var :OokBody;
public function GrenadeLauncher(_arg1:Object, _arg2:OokBody){
super(GameEnum.GRENADE_LAUNCHER, GameEnum.MAG_SIZE_GRENADE_LAUNCHER, GameEnum.START_UP_GRENADE_LAUNCHER_AMMO, GameEnum.FIRE_MODE_SINGLE_SHOT, GameEnum.FIRING_RATE_GRENADE_LAUNCHER, _arg1, GameEnum.MAGNIFY_NONE, 265, UIGrenadeBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_GRENADE_LAUNCHER, 0);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
super.createBullet(new GrenadeBullet(this, ));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 231
//Gun (OokWeapon.OokGun.Gun)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.*;
import OokUI.*;
import OokWeapon.OokBullet.*;
import OokEnum.*;
import flash.utils.*;
public class Gun extends OokWeapon {
private var :Number;
private var :Number;
private var :Number;
private var
:Number;
private var :Number;
private var :OokBody;
private var
:Number;
private var
:Number;
private var
:Boolean;
protected var controlPanel:Object;
private var
:Boolean;
private var
:Boolean;// = false
private var
:Number;
private var
:Boolean;
private var
:UISprite;
private var
:Number;
private var
:Boolean;
private var :Number;
private var :Number;
private var :Number;
private var :Number;
private var :Boolean;
public function Gun(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Object, _arg7:Number, _arg8:Number, _arg9:UISprite, _arg10:Number, _arg11:Number, _arg12:Number, _arg13:Number){
super(_arg1, _arg10, _arg11);
this. = _arg13;
this. = _arg3;
this.
= _arg2;
this.
= _arg4;
this.(_arg5);
this.controlPanel = _arg6;
this.
= true;
this. = getTimer();
this. = 0;
this. = _arg7;
this.
= _arg8;
this.
= _arg9;
this. (_arg12);
this. = (getTimer() + this. );
this.
();
this.
= this. ;
this.
= this.;
}
override public function setAmmoQuantity(_arg1:Number):void{
if (this. <= 0){
this. = _arg1;
this.reload();
} else {
this. = _arg1;
this.
= this.;
};
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function setFiring(_arg1:Boolean):void{
this.
= _arg1;
}
private function
():void{
var _local1:Number;
if (((this.
()) || ((this. == this.
)))){
return;
};
if (this. > 0){
this. = (getTimer() + this. );
_local1 = (this.
- this. );
if ( <= _local1){
_local1 = ;
};
this. = (this. - _local1);
this. = (this. + _local1);
this.
= true;
} else {
return;
};
}
public function (_arg1:Number):void{
this. = _arg1;
}
public function ():Number{
return (this. );
}
override public function getAmmoInMagazineQuantityForUI():Number{
return (this.
);
}
public function reload():void{
this.
();
}
public function createBullet(_arg1:Bullet):void{
controlPanel["bulletController"].addBullet(_arg1);
}
public function
():Boolean{
return (this.
);
}
public function
():Number{
return (this.
);
}
override public function getBulletSymbol():UISprite{
return (this.
);
}
public function
(_arg1:Number):void{
this.
= _arg1;
}
public function
():Number{
return (
);
}
public function updateReload():void{
var _local1:Number;
if (this.
){
_local1 = getTimer();
if (_local1 > this. ){
controlPanel.SFXController.playSFX(SoundID.S_PISTOL_RELOAD_IN, 1, 0);
this.
= false;
this.
= this. ;
this.
= this.;
};
};
}
public function fire():Boolean{
if (((this.
) || ((this. <= 0)))){
return (false);
};
if (this.
== GameEnum.FIRE_MODE_SINGLE_SHOT){
this.setFiring(false);
};
var _local1:Number = getTimer();
if (this. < _local1){
this. = (this. - 1);
this.
= this. ;
this. = (_local1 + this.());
if (this. == 0){
this.
();
};
return (true);
};
return (false);
}
public function getMagnifyPower():Number{
return (this.);
}
public function ():Number{
return (this. );
}
public function ():Number{
return ();
}
override public function getAmmoQuantityForUI():Number{
return (this.
);
}
override public function getAmmoQuantity():Number{
return ();
}
override public function getFiring():Boolean{
return (this.
);
}
public function (_arg1:Number):void{
this. = (1000 / _arg1);
}
}
}//package OokWeapon.OokGun
Section 232
//Maxnum (OokWeapon.OokGun.Maxnum)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class Maxnum extends Gun {
private var :OokBody;
public function Maxnum(_arg1:Object, _arg2:OokBody){
super(GameEnum.MAXNUM, GameEnum.MAG_SIZE_MAXNUM, GameEnum.START_UP_MAXNUM_AMMO, GameEnum.FIRE_MODE_SINGLE_SHOT, GameEnum.FIRING_RATE_MAXNUM, _arg1, GameEnum.MAGNIFY_IPSV, 200, UIMaxnumBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_MAXNUM, 0.12);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
controlPanel.SFXController.playSFX(SoundID.S_MAXNUM_SHOT, 1, 0);
super.createBullet(new MaxnumBullet(this, ));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 233
//Nothing (OokWeapon.OokGun.Nothing)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class Nothing extends Gun {
private var :OokBody;
public function Nothing(_arg1:Object, _arg2:OokBody){
super(GameEnum.NOTHING, GameEnum.MAG_SIZE_NOTHING, GameEnum.START_UP_NOTHING_AMMO, GameEnum.FIRE_MODE_FULL_AUTO, GameEnum.FIRING_RATE_NOTHING, _arg1, GameEnum.MAGNIFY_IPSV, 280, UIRifleBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_NOTHING, 0.033);
this. = _arg2;
();
}
private function ():void{
this.alpha = 0;
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 234
//Pistol (OokWeapon.OokGun.Pistol)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class Pistol extends Gun {
private var :OokBody;
public function Pistol(_arg1:Object, _arg2:OokBody){
super(GameEnum.PISTOL, GameEnum.MAG_SIZE_PISTOL, GameEnum.START_UP_PISTOL_AMMO, GameEnum.FIRE_MODE_SINGLE_SHOT, GameEnum.FIRING_RATE_PISTOL, _arg1, GameEnum.MAGNIFY_NONE, 170, UIPistolBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_MAXNUM, 0.15);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
controlPanel.SFXController.playSFX(SoundID.S_PISTOL_SHOT, 1, 0);
super.createBullet(new PistolBullet(this, ));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 235
//RocketLauncher (OokWeapon.OokGun.RocketLauncher)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class RocketLauncher extends Gun {
private var :OokBody;
public function RocketLauncher(_arg1:Object, _arg2:OokBody){
super(GameEnum.ROCKET_LAUNCHER, GameEnum.MAG_SIZE_ROCKET_LAUNCHER, GameEnum.START_UP_ROCKET_LAUNCHER_AMMO, GameEnum.FIRE_MODE_SINGLE_SHOT, GameEnum.FIRING_RATE_ROCKET_LAUNCHER, _arg1, GameEnum.MAGNIFY_NONE, 170, UIRocketBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_ROCKET_LAUNCHER, 0.13);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
super.createBullet(new RocketBullet(this, ));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 236
//ShotGun (OokWeapon.OokGun.ShotGun)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class ShotGun extends Gun {
private var :OokBody;
public function ShotGun(_arg1:Object, _arg2:OokBody){
super(GameEnum.SHOT_GUN, GameEnum.MAG_SIZE_SHOT_GUN, GameEnum.START_UP_SHOT_GUN_AMMO, GameEnum.FIRE_MODE_SINGLE_SHOT, GameEnum.FIRING_RATE_SHOT_GUN, _arg1, GameEnum.MAGNIFY_NONE, 335, UIShotGunShell.getInstance(), 0, 0, GameEnum.RELOAD_TIME_SHOT_GUN, 0.1);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
controlPanel.SFXController.playSFX(SoundID.S_SHOT_GUN_SHOT, 1, 0);
super.createBullet(new ShotGunBullet(this, , 0));
super.createBullet(new ShotGunBullet(this, , 0.05));
super.createBullet(new ShotGunBullet(this, , 0.1));
super.createBullet(new ShotGunBullet(this, , 0.15));
super.createBullet(new ShotGunBullet(this, , 0.2));
super.createBullet(new ShotGunBullet(this, , -0.05));
super.createBullet(new ShotGunBullet(this, , -0.1));
super.createBullet(new ShotGunBullet(this, , -0.15));
super.createBullet(new ShotGunBullet(this, , -0.2));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 237
//SniperRifle (OokWeapon.OokGun.SniperRifle)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class SniperRifle extends Gun {
private var :OokBody;
public function SniperRifle(_arg1:Object, _arg2:OokBody){
super(GameEnum.SNIPER_RIFLE, GameEnum.MAG_SIZE_SNIPER_RIFLE, GameEnum.START_UP_SNIPER_RIFLE_AMMO, GameEnum.FIRE_MODE_SINGLE_SHOT, GameEnum.FIRING_RATE_SNIPER_RIFLE, _arg1, GameEnum.MAGNIFY_SNIPER_SCOPE, 400, UISniperBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_SNIPER_RIFLE, 0.07);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
controlPanel.SFXController.playSFX(SoundID.S_SNIPER_RIFLE_SHOT, 1, 0);
super.createBullet(new SniperRifleBullet(this, ));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 238
//SubMachine (OokWeapon.OokGun.SubMachine)
package OokWeapon.OokGun {
import OokBody.OokBodyType.*;
import OokWeapon.OokBullet.*;
import OokUI.UIBulletIcon.*;
import OokEnum.*;
public class SubMachine extends Gun {
private var :OokBody;
public function SubMachine(_arg1:Object, _arg2:OokBody){
super(GameEnum.SUB_MACHINE, GameEnum.MAG_SIZE_SUB_MACHINE, GameEnum.START_UP_SUB_MACHINE_AMMO, GameEnum.FIRE_MODE_FULL_AUTO, GameEnum.FIRING_RATE_SUB_MACHINE, _arg1, GameEnum.MAGNIFY_NONE, 180, UISubMachineBullet.getInstance(), 0, 0, GameEnum.RELOAD_TIME_SUB_MACHINE, 0.14);
this. = _arg2;
();
}
private function ():void{
}
public function update():void{
super.updateReload();
if (super.getFiring()){
this.fire();
} else {
this.gotoAndStop("Normal");
};
}
override public function fire():Boolean{
if (super.fire()){
controlPanel.SFXController.playSFX(SoundID.S_SUB_MACHINE_SHOT, 1, 0);
super.createBullet(new SubMachineBullet(this, ));
this.gotoAndStop("Blast");
} else {
this.gotoAndStop("Normal");
};
return (true);
}
}
}//package OokWeapon.OokGun
Section 239
//OokWeapon (OokWeapon.OokWeapon)
package OokWeapon {
import flash.display.*;
import OokUI.*;
public class OokWeapon extends MovieClip {
private var :Number;
private var :Number;
private var :Number;
public function OokWeapon(_arg1:Number, _arg2:Number, _arg3:Number){
this.(_arg1);
this. = _arg2;
this. = _arg3;
if (this. != 0){
throw (new Error("-- Ook's Custom Error-- << Adjusting weapon Ax value will cause bugs. >> "));
};
if (this. != 0){
throw (new Error("-- Ook's Custom Error-- << Adjusting weapon Ay value will cause bugs. >> "));
};
}
public function getFiring():Boolean{
return (false);
}
public function setAmmoQuantity(_arg1:Number):void{
}
public function
():Number{
return ();
}
public function getAmmoQuantityForUI():Number{
return (-99);
}
public function getAmmoQuantity():Number{
return (-99);
}
public function getBulletSymbol():UISprite{
return (null);
}
public function getInverseAx():Number{
return (-(this.));
}
public function getAdjustY():Number{
return (this. );
}
public function getAmmoInMagazineQuantityForUI():Number{
return (-99);
}
private function (_arg1:Number):void{
this. = _arg1;
}
public function getInverseAy():Number{
return (-(this. ));
}
public function getAdjustX():Number{
return (this.);
}
}
}//package OokWeapon
Section 240
//OokVision (OokVision.OokVision)
package OokVision {
import OokBody.OokBodyType.*;
import flash.display.*;
import OokEnum.*;
public class OokVision extends Sprite {
private var :OokBody;
private var :Number;
private var :Number;
public function OokVision(){
if (!GameEnum.DEBUG_MODE){
this.alpha = 0;
};
}
public function getVirtualX():Number{
return (this.);
}
public function getVirtualY():Number{
return (this.);
}
public function setVirtualX(_arg1:Number):void{
this. = _arg1;
}
public function setVirtualY(_arg1:Number):void{
this. = _arg1;
}
public function (_arg1:OokVision):void{
this. = _arg1.getVirtualX();
this. = _arg1.getVirtualY();
}
public function (_arg1:OokBody):void{
this. = _arg1;
this. = _arg1.x;
this. = _arg1.y;
}
}
}//package OokVision
Section 241
//OokVision001 (OokVision.OokVision001)
package OokVision {
public class OokVision001 extends OokVision {
public function OokVision001(){
();
}
private function ():void{
}
}
}//package OokVision
Section 242
//Ook (Ook)
package {
import OokGameState.*;
import flash.events.*;
import flash.display.*;
import OokObject.*;
import OokEnum.*;
public class Ook extends OokBaseObject {
private var :OokGameStateFSM;
public function Ook(){
super(OokIDEnum.OOK_MAIN);
this.();
}
private function ():void{
OokObjectManager.registerObject(this);
}
override public function startGame():void{
stage.showDefaultContextMenu = false;
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
stage.addEventListener(Event.ENTER_FRAME, );
= new OokGameStateFSM(this);
.changeGameState(new OokMangaDeluxeScreen(this));
}
public function (_arg1:Event):void{
.update();
}
override public function getGameStateFSM():OokGameStateFSM{
return (this.);
}
override public function keyDownHandler(_arg1:KeyboardEvent):void{
.keyDownHandler(_arg1);
}
override public function mouseUpHandler(_arg1:MouseEvent):void{
.mouseUpHandler(_arg1);
}
override public function mouseDownHandler(_arg1:MouseEvent):void{
.mouseDownHandler(_arg1);
}
override public function getStage():Stage{
return (stage);
}
override public function keyUpHandler(_arg1:KeyboardEvent):void{
.keyUpHandler(_arg1);
}
}
}//package