code
stringlengths
57
237k
package alternativa.tanks.model.garage.resistance { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.commons.types.ItemGarageProperty; public class ModuleResistancesAdapt implements ModuleResistances { private var object:IGameObject; private var impl:ModuleResistances; public function ModuleResistancesAdapt(param1:IGameObject, param2:ModuleResistances) { super(); this.object = param1; this.impl = param2; } public function getResistances() : Vector.<ItemGarageProperty> { var result:Vector.<ItemGarageProperty> = null; try { Model.object = this.object; result = this.impl.getResistances(); } finally { Model.popObject(); } return result; } } }
package projects.tanks.client.entrance.model.entrance.registration { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.CollectionCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class RegistrationModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:RegistrationModelServer; private var client:IRegistrationModelBase = IRegistrationModelBase(this); private var modelId:Long = Long.getLong(576129845,453074872); private var _anchorRegistrationId:Long = Long.getLong(1757127483,1517315861); private var _enteredUidIsBusyId:Long = Long.getLong(290381668,-2011787495); private var _enteredUidIsBusy_advisedUidsCodec:ICodec; private var _enteredUidIsFreeId:Long = Long.getLong(290381668,-2011671668); private var _enteredUidIsIncorrectId:Long = Long.getLong(1011786258,-588410501); private var _passwordIsIncorrectId:Long = Long.getLong(177292069,531145411); private var _registrationFailedId:Long = Long.getLong(663922876,-71252787); public function RegistrationModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new RegistrationModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(RegistrationModelCC,false))); this._enteredUidIsBusy_advisedUidsCodec = this._protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(String,false),false,1)); } protected function getInitParam() : RegistrationModelCC { return RegistrationModelCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._anchorRegistrationId: this.client.anchorRegistration(); break; case this._enteredUidIsBusyId: this.client.enteredUidIsBusy(this._enteredUidIsBusy_advisedUidsCodec.decode(param2) as Vector.<String>); break; case this._enteredUidIsFreeId: this.client.enteredUidIsFree(); break; case this._enteredUidIsIncorrectId: this.client.enteredUidIsIncorrect(); break; case this._passwordIsIncorrectId: this.client.passwordIsIncorrect(); break; case this._registrationFailedId: this.client.registrationFailed(); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.init { import alternativa.osgi.OSGi; import alternativa.osgi.service.launcherparams.ILauncherParams; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.controller.commands.AccountLoginCommand; import alternativa.tanks.controller.commands.CheckCallsignCommand; import alternativa.tanks.controller.commands.CheckEmailCommand; import alternativa.tanks.controller.commands.CheckInviteCodeCommand; import alternativa.tanks.controller.commands.ChooseInitialStateCommand; import alternativa.tanks.controller.commands.FightWithoutRegistrationCommand; import alternativa.tanks.controller.commands.GetNewCaptchaCommand; import alternativa.tanks.controller.commands.LoginCommand; import alternativa.tanks.controller.commands.ParseUrlParamsCommand; import alternativa.tanks.controller.commands.RegisterUserCommand; import alternativa.tanks.controller.commands.SendChangeUidAndPasswordCommand; import alternativa.tanks.controller.commands.SendChangeUidCommand; import alternativa.tanks.controller.commands.SendNewPasswordAndEmailToChangeCommand; import alternativa.tanks.controller.commands.SendRestoreEmailMessageCommand; import alternativa.tanks.controller.commands.captcha.CheckCaptchaAnswerCommand; import alternativa.tanks.controller.commands.captcha.CheckLoginFormCaptchaCommand; import alternativa.tanks.controller.commands.captcha.CheckRegistrationCaptchaCommand; import alternativa.tanks.controller.commands.google.GoogleLoginCommand; import alternativa.tanks.controller.commands.goto_.GoToExternalLoginCommand; import alternativa.tanks.controller.commands.goto_.GoToExternalRegistrationCommand; import alternativa.tanks.controller.commands.goto_.GoToInviteCommand; import alternativa.tanks.controller.commands.goto_.GoToLoginCommand; import alternativa.tanks.controller.commands.goto_.GoToPartnerLoginCommand; import alternativa.tanks.controller.commands.goto_.GoToPartnerRegistrationCommand; import alternativa.tanks.controller.commands.goto_.GoToRegistrationCommand; import alternativa.tanks.controller.commands.goto_.GoToRestorePasswordCommand; import alternativa.tanks.controller.commands.goto_.GoToStandaloneCaptcha; import alternativa.tanks.controller.commands.partners.BindAccountToPartnerCommand; import alternativa.tanks.controller.commands.partners.CheckCaptchaPartnetsLoginFormCommand; import alternativa.tanks.controller.commands.partners.FinishPartnerRegisterCommand; import alternativa.tanks.controller.commands.partners.LoginViaPartnerCommand; import alternativa.tanks.controller.commands.socialnetwork.CheckExternalLoginFormCaptchaCommand; import alternativa.tanks.controller.commands.socialnetwork.ExternalLoginCommand; import alternativa.tanks.controller.commands.socialnetwork.FinishExternalRegisterUserCommand; import alternativa.tanks.controller.commands.socialnetwork.StartExternalLoginUserCommand; import alternativa.tanks.controller.commands.socialnetwork.StartExternalRegisterUserCommand; import alternativa.tanks.controller.events.AccountLoginEvent; import alternativa.tanks.controller.events.CheckCallsignEvent; import alternativa.tanks.controller.events.CheckCaptchaAnswerEvent; import alternativa.tanks.controller.events.CheckEmailEvent; import alternativa.tanks.controller.events.ChooseInitialStateEvent; import alternativa.tanks.controller.events.FightWithoutRegistrationEvent; import alternativa.tanks.controller.events.GetNewCaptchaEvent; import alternativa.tanks.controller.events.InviteCodeEnteredEvent; import alternativa.tanks.controller.events.LoginEvent; import alternativa.tanks.controller.events.LoginViaPartnerEvent; import alternativa.tanks.controller.events.NavigationEvent; import alternativa.tanks.controller.events.ParseUrlParamsEvent; import alternativa.tanks.controller.events.PartnersEvent; import alternativa.tanks.controller.events.RegisterEvent; import alternativa.tanks.controller.events.SendNewPasswordAndEmailToChangeEvent; import alternativa.tanks.controller.events.google.GoogleLoginEvent; import alternativa.tanks.controller.events.partners.FinishPartnerRegisterEvent; import alternativa.tanks.controller.events.partners.PartnerLoginEvent; import alternativa.tanks.controller.events.socialnetwork.ExternalLoginEvent; import alternativa.tanks.controller.events.socialnetwork.FinishExternalRegisterEvent; import alternativa.tanks.controller.events.socialnetwork.NavigationExternalEvent; import alternativa.tanks.controller.events.socialnetwork.StartExternalEntranceEvent; import alternativa.tanks.model.EntranceServerParamsModel; import alternativa.tanks.model.EntranceUrlParamsModel; import alternativa.tanks.model.RegistrationBackgroundModel; import alternativa.tanks.service.AccountService; import alternativa.tanks.service.ICaptchaService; import alternativa.tanks.service.IEntranceClientFacade; import alternativa.tanks.service.IEntranceServerFacade; import alternativa.tanks.service.impl.AccountServiceImpl; import alternativa.tanks.service.impl.CaptchaService; import alternativa.tanks.service.impl.EntranceClientFacade; import alternativa.tanks.service.impl.EntranceServerFacade; import alternativa.tanks.tracker.ITrackerService; import alternativa.tanks.view.CaptchaSectionMediator; import alternativa.tanks.view.ChangeEmailAndPasswordFormMediator; import alternativa.tanks.view.ChangeUidFormMediator; import alternativa.tanks.view.ChangeUidInputFieldMediator; import alternativa.tanks.view.EntranceViewMediator; import alternativa.tanks.view.ExternalRegistrationFormMediator; import alternativa.tanks.view.InviteFormMediator; import alternativa.tanks.view.LinkExternalLoginFormMediator; import alternativa.tanks.view.LinkPartnerLoginFormMediator; import alternativa.tanks.view.LoginFormMediator; import alternativa.tanks.view.PartnersRegistrationFormMediator; import alternativa.tanks.view.PasswordRestoreFormMediator; import alternativa.tanks.view.RegistrationCommonElementsSectionMediator; import alternativa.tanks.view.RegistrationFormMediator; import alternativa.tanks.view.StandAloneCaptchaForm; import alternativa.tanks.view.StandAloneCaptchaMediator; import alternativa.tanks.view.ViewTextMediator; import alternativa.tanks.view.events.SendChangeUidAndPasswordEvent; import alternativa.tanks.view.events.SendChangeUidEvent; import alternativa.tanks.view.events.SendRestoreEmailMessageEvent; import alternativa.tanks.view.forms.ChangeEmailAndPasswordForm; import alternativa.tanks.view.forms.ChangeUidForm; import alternativa.tanks.view.forms.ExternalRegistrationForm; import alternativa.tanks.view.forms.InviteForm; import alternativa.tanks.view.forms.LinkExternalLoginForm; import alternativa.tanks.view.forms.LinkPartnerLoginForm; import alternativa.tanks.view.forms.LoginForm; import alternativa.tanks.view.forms.PartnersRegistrationForm; import alternativa.tanks.view.forms.PasswordRestoreForm; import alternativa.tanks.view.forms.RegistrationForm; import alternativa.tanks.view.forms.ViewText; import alternativa.tanks.view.forms.commons.ChangeUidInputField; import alternativa.tanks.view.forms.commons.RegistrationCommonElementsSection; import alternativa.tanks.view.layers.EntranceView; import alternativa.tanks.view.layers.EntranceViewEvent; import flash.display.DisplayObjectContainer; import flash.events.Event; import org.robotlegs.mvcs.Context; import platform.client.fp10.core.service.address.AddressService; import platform.clients.fp10.libraries.alternativapartners.service.IPartnerService; import projects.tanks.clients.flash.commons.models.captcha.CaptchaSection; import projects.tanks.clients.fp10.libraries.tanksservices.service.storage.IStorageService; import projects.tanks.clients.fp10.libraries.tanksservices.utils.removeDisplayObject; public class EntranceContext extends Context { protected var _entranceRootView:EntranceView; public function EntranceContext(param1:DisplayObjectContainer) { super(param1); } override public function startup() : void { injector.mapSingleton(RegistrationBackgroundModel); injector.mapSingleton(EntranceUrlParamsModel); injector.mapSingleton(EntranceServerParamsModel); injector.mapValue(ILocaleService,OSGi.getInstance().getService(ILocaleService) as ILocaleService); injector.mapValue(IStorageService,OSGi.getInstance().getService(IStorageService) as IStorageService); injector.mapValue(ILauncherParams,OSGi.getInstance().getService(ILauncherParams) as ILauncherParams); injector.mapValue(AddressService,OSGi.getInstance().getService(AddressService) as AddressService); injector.mapValue(ITrackerService,OSGi.getInstance().getService(ITrackerService) as ITrackerService); injector.mapSingletonOf(IEntranceServerFacade,EntranceServerFacade); injector.mapSingletonOf(IEntranceClientFacade,EntranceClientFacade); injector.mapSingletonOf(AccountService,AccountServiceImpl); injector.mapSingletonOf(ICaptchaService,CaptchaService); mediatorMap.mapView(EntranceView,EntranceViewMediator); mediatorMap.mapView(LoginForm,LoginFormMediator); mediatorMap.mapView(ExternalRegistrationForm,ExternalRegistrationFormMediator); mediatorMap.mapView(LinkExternalLoginForm,LinkExternalLoginFormMediator); mediatorMap.mapView(RegistrationForm,RegistrationFormMediator); mediatorMap.mapView(RegistrationCommonElementsSection,RegistrationCommonElementsSectionMediator); mediatorMap.mapView(InviteForm,InviteFormMediator); mediatorMap.mapView(PasswordRestoreForm,PasswordRestoreFormMediator); mediatorMap.mapView(ChangeEmailAndPasswordForm,ChangeEmailAndPasswordFormMediator); mediatorMap.mapView(StandAloneCaptchaForm,StandAloneCaptchaMediator); mediatorMap.mapView(CaptchaSection,CaptchaSectionMediator); mediatorMap.mapView(ChangeUidForm,ChangeUidFormMediator); mediatorMap.mapView(ChangeUidInputField,ChangeUidInputFieldMediator); mediatorMap.mapView(ViewText,ViewTextMediator); commandMap.mapEvent(CheckCallsignEvent.CHECK_CALLSIGN,CheckCallsignCommand,CheckCallsignEvent); commandMap.mapEvent(CheckEmailEvent.CHECK_EMAIL,CheckEmailCommand,CheckEmailEvent); commandMap.mapEvent(InviteCodeEnteredEvent.INVITE_ENTERED,CheckInviteCodeCommand,InviteCodeEnteredEvent); commandMap.mapEvent(ChooseInitialStateEvent.CHOOSE_INITIAL_STATE,ChooseInitialStateCommand,ChooseInitialStateEvent); commandMap.mapEvent(SendRestoreEmailMessageEvent.SEND,SendRestoreEmailMessageCommand,SendRestoreEmailMessageEvent); commandMap.mapEvent(SendNewPasswordAndEmailToChangeEvent.SEND,SendNewPasswordAndEmailToChangeCommand,SendNewPasswordAndEmailToChangeEvent); commandMap.mapEvent(LoginEvent.CHECK_CAPTCHA_AND_LOGIN,CheckLoginFormCaptchaCommand,LoginEvent); commandMap.mapEvent(LoginEvent.LOGIN_AFTER_CAPTCHA_CHECKED,LoginCommand,LoginEvent); commandMap.mapEvent(AccountLoginEvent.EVENT_TYPE,AccountLoginCommand,AccountLoginEvent); commandMap.mapEvent(ExternalLoginEvent.CHECK_CAPTCHA_AND_LOGIN,CheckExternalLoginFormCaptchaCommand,ExternalLoginEvent); commandMap.mapEvent(SendChangeUidAndPasswordEvent.EVENT_TYPE,SendChangeUidAndPasswordCommand,SendChangeUidAndPasswordEvent); commandMap.mapEvent(SendChangeUidEvent.EVENT_TYPE,SendChangeUidCommand,SendChangeUidEvent); commandMap.mapEvent(ExternalLoginEvent.LOGIN_AFTER_CAPTCHA_CHECKED,ExternalLoginCommand,ExternalLoginEvent); commandMap.mapEvent(FightWithoutRegistrationEvent.FIGHT_WITHOUT_REGISTRATION,FightWithoutRegistrationCommand,FightWithoutRegistrationEvent); commandMap.mapEvent(ParseUrlParamsEvent.PARSE_URL_PARAMS_EVENT,ParseUrlParamsCommand,ParseUrlParamsEvent); commandMap.mapEvent(RegisterEvent.REGISTER_AFTER_CAPTCHA_CHECKED,RegisterUserCommand,RegisterEvent); commandMap.mapEvent(StartExternalEntranceEvent.START_REGISTRATION,StartExternalRegisterUserCommand,StartExternalEntranceEvent); commandMap.mapEvent(StartExternalEntranceEvent.START_LOGIN,StartExternalLoginUserCommand,StartExternalEntranceEvent); commandMap.mapEvent(FinishExternalRegisterEvent.FINISH_REGISTRATION,FinishExternalRegisterUserCommand,FinishExternalRegisterEvent); commandMap.mapEvent(NavigationEvent.GO_TO_REGISTRATION_FORM,GoToRegistrationCommand,NavigationEvent); commandMap.mapEvent(NavigationEvent.GO_TO_LOGIN_FORM,GoToLoginCommand,NavigationEvent); commandMap.mapEvent(NavigationEvent.GO_TO_RESTORE_PASSWORD_FORM,GoToRestorePasswordCommand,NavigationEvent); commandMap.mapEvent(NavigationEvent.GO_TO_INVITE_FORM,GoToInviteCommand,NavigationEvent); commandMap.mapEvent(NavigationEvent.GO_TO_STAND_ALONE_CAPTCHA,GoToStandaloneCaptcha,NavigationEvent); commandMap.mapEvent(NavigationExternalEvent.GO_TO_EXTERNAL_REGISTRATION_FORM,GoToExternalRegistrationCommand,NavigationExternalEvent); commandMap.mapEvent(NavigationExternalEvent.GO_TO_EXTERNAL_LOGIN_FORM,GoToExternalLoginCommand,NavigationExternalEvent); commandMap.mapEvent(CheckCaptchaAnswerEvent.EVENT_TYPE,CheckCaptchaAnswerCommand,CheckCaptchaAnswerEvent); commandMap.mapEvent(GetNewCaptchaEvent.GET_CAPTCHA,GetNewCaptchaCommand,GetNewCaptchaEvent); commandMap.mapEvent(RegisterEvent.CHECK_CAPTCHA_AND_REGISTER,CheckRegistrationCaptchaCommand,RegisterEvent); commandMap.mapEvent(GoogleLoginEvent.EVENT_TYPE,GoogleLoginCommand,GoogleLoginEvent); this.mapPartners(); super.startup(); UserModelActivator.registerClientFacade(injector.getInstance(IEntranceClientFacade)); UserModelActivator.registerServerFacade(injector.getInstance(IEntranceServerFacade)); eventDispatcher.addEventListener(EntranceViewEvent.SHOW,this.showView); eventDispatcher.addEventListener(EntranceViewEvent.HIDE,this.hideView); } private function showView(param1:Event) : void { this._entranceRootView = new EntranceView(); contextView.addChild(this._entranceRootView); } private function hideView(param1:Event) : void { removeDisplayObject(this._entranceRootView); this._entranceRootView = null; } private function mapPartners() : void { injector.mapValue(IPartnerService,OSGi.getInstance().getService(IPartnerService)); mediatorMap.mapView(PartnersRegistrationForm,PartnersRegistrationFormMediator); mediatorMap.mapView(LinkPartnerLoginForm,LinkPartnerLoginFormMediator); commandMap.mapEvent(LoginViaPartnerEvent.EVENT_TYPE,LoginViaPartnerCommand,LoginViaPartnerEvent); commandMap.mapEvent(PartnersEvent.START_LOGIN,GoToPartnerLoginCommand,PartnersEvent); commandMap.mapEvent(PartnersEvent.START_REGISTRATION,GoToPartnerRegistrationCommand,PartnersEvent); commandMap.mapEvent(FinishPartnerRegisterEvent.FINISH_REGISTRATION,FinishPartnerRegisterCommand,FinishPartnerRegisterEvent); commandMap.mapEvent(PartnerLoginEvent.CHECK_CAPTCHA_AND_LOGIN,CheckCaptchaPartnetsLoginFormCommand,PartnerLoginEvent); commandMap.mapEvent(PartnerLoginEvent.LOGIN_AFTER_CAPTCHA_CHECKED,BindAccountToPartnerCommand,PartnerLoginEvent); } } }
package alternativa.tanks.model.promo { import alternativa.tanks.gui.shop.payment.promo.PromoCodeActivateForm; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ShopPromoCodeAdapt implements ShopPromoCode { private var object:IGameObject; private var impl:ShopPromoCode; public function ShopPromoCodeAdapt(param1:IGameObject, param2:ShopPromoCode) { super(); this.object = param1; this.impl = param2; } public function getForm() : PromoCodeActivateForm { var result:PromoCodeActivateForm = null; try { Model.object = this.object; result = this.impl.getForm(); } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.servermodels { [ModelInterface] public interface ILeavableEntranceState { function leave() : void; } }
package platform.client.models.commons.description { public interface IDescriptionModelBase { } }
package alternativa.tanks.model.challenge { import mx.core.BitmapAsset; [ExcludeClass] public class ChallengesIcons_firstPlaceBitmap extends BitmapAsset { public function ChallengesIcons_firstPlaceBitmap() { super(); } } }
package projects.tanks.client.tanksservices.model.proabonementnotifier { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; public class ProBattleNotifierModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function ProBattleNotifierModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package alternativa.tanks.models.sfx.shoot.hwthunder { import alternativa.console.ConsoleVarFloat; import alternativa.engine3d.core.Object3D; import alternativa.init.Main; import alternativa.math.Matrix4; import alternativa.math.Vector3; import alternativa.model.IModel; import alternativa.object.ClientObject; import alternativa.tanks.engine3d.MaterialType; import alternativa.tanks.services.materialregistry.IMaterialRegistry; import alternativa.tanks.services.objectpool.IObjectPoolService; import alternativa.tanks.sfx.AnimatedSpriteEffect; import alternativa.tanks.sfx.EffectsPair; import alternativa.tanks.sfx.Sound3D; import alternativa.tanks.sfx.Sound3DEffect; import alternativa.tanks.sfx.SoundOptions; import com.alternativaplatform.projects.tanks.client.warfare.models.sfx.shoot.thunder.IThunderShootSFXModelBase; import com.alternativaplatform.projects.tanks.client.warfare.models.sfx.shoot.thunder.ThunderShootSFXModelBase; import flash.display.BitmapData; import scpacker.resource.ResourceType; import scpacker.resource.ResourceUtil; public class HWThunderSFXModel extends ThunderShootSFXModelBase implements IThunderShootSFXModelBase, IHWThunderSFXModel { private static const MIPMAP_RESOLUTION:Number = 2; private static var materialRegistry:IMaterialRegistry; private static var objectPoolService:IObjectPoolService; private static var turretMatrix:Matrix4 = new Matrix4(); private static var muzzlePosition:Vector3 = new Vector3(); private static var explosionSize:ConsoleVarFloat = new ConsoleVarFloat("thunder_explosion_size",750,1,2000); public function HWThunderSFXModel() { super(); _interfaces.push(IModel,IHWThunderSFXModel); materialRegistry = IMaterialRegistry(Main.osgi.getService(IMaterialRegistry)); objectPoolService = IObjectPoolService(Main.osgi.getService(IObjectPoolService)); } public function initObject(clientObject:ClientObject, explosionResourceId:String, explosionSoundResourceId:String, shotResourceId:String, shotSoundResourceId:String) : void { var data:HWThunderSFXData = new HWThunderSFXData(); if(ResourceUtil.getResource(ResourceType.IMAGE,shotResourceId) == null) { return; } data.shotMaterial = materialRegistry.textureMaterialRegistry.getMaterial(MaterialType.EFFECT,ResourceUtil.getResource(ResourceType.IMAGE,shotResourceId).bitmapData,MIPMAP_RESOLUTION,false); var explosionTexture:BitmapData = ResourceUtil.getResource(ResourceType.IMAGE,explosionResourceId).bitmapData; data.explosionMaterials = materialRegistry.materialSequenceRegistry.getSequence(MaterialType.EFFECT,explosionTexture,explosionTexture.height,3).materials; data.shotSound = ResourceUtil.getResource(ResourceType.SOUND,shotSoundResourceId).sound; data.explosionSound = ResourceUtil.getResource(ResourceType.SOUND,explosionSoundResourceId).sound; clientObject.putParams(HWThunderSFXModel,data); } public function createShotEffects(clientObject:ClientObject, muzzleLocalPos:Vector3, turret:Object3D) : EffectsPair { var data:HWThunderSFXData = this.getSfxData(clientObject); var graphicEffect:HWThunderShotEffect = HWThunderShotEffect(objectPoolService.objectPool.getObject(HWThunderShotEffect)); graphicEffect.init(turret,muzzleLocalPos,data.shotMaterial); var sound:Sound3D = Sound3D.create(data.shotSound,SoundOptions.nearRadius,SoundOptions.farRadius,SoundOptions.farDelimiter,0.7); turretMatrix.setMatrix(turret.x,turret.y,turret.z,turret.rotationX,turret.rotationY,turret.rotationZ); turretMatrix.transformVector(muzzleLocalPos,muzzlePosition); var soundEffect:Sound3DEffect = Sound3DEffect.create(objectPoolService.objectPool,null,muzzlePosition,sound); return new EffectsPair(graphicEffect,soundEffect); } public function createExplosionEffects(clientObject:ClientObject, position:Vector3) : EffectsPair { var data:HWThunderSFXData = this.getSfxData(clientObject); var graphicEffect:AnimatedSpriteEffect = AnimatedSpriteEffect(objectPoolService.objectPool.getObject(AnimatedSpriteEffect)); graphicEffect = graphicEffect == null ? new AnimatedSpriteEffect(objectPoolService.objectPool) : graphicEffect; graphicEffect.init(explosionSize.value,explosionSize.value,data.explosionMaterials,position,Math.random() * 2 * Math.PI,150,29,false); var sound:Sound3D = Sound3D.create(data.explosionSound,SoundOptions.nearRadius,SoundOptions.farRadius,SoundOptions.farDelimiter,0.7); var soundEffect:Sound3DEffect = Sound3DEffect.create(objectPoolService.objectPool,null,position,sound); return new EffectsPair(graphicEffect,soundEffect); } private function getSfxData(clientObject:ClientObject) : HWThunderSFXData { return HWThunderSFXData(clientObject.getParams(HWThunderSFXModel)); } } }
package forms.buttons { import controls.DefaultButton; import controls.Label; import flash.display.Bitmap; public class NewsButton extends DefaultButton { [Embed(source="1124.png")] private static const image:Class; private var img:Bitmap; public function NewsButton(name:String) { var label:Label = null; this.img = new Bitmap(new image().bitmapData); super(); this.img.y = 6; this.img.x = 6; addChild(this.img); label = new Label(); label.mouseEnabled = false; label.text = name; label.x = this.img.x + this.img.width + 11; label.y = this.height / 2 - this.img.height / 2; this.addChild(label); } } }
package alternativa.osgi.service.loader { import alternativa.init.OSGi; import alternativa.osgi.service.console.IConsoleService; import flash.utils.Dictionary; public class LoadingProgress { private var listeners:Vector.<ILoadingProgressListener>; private var progressData:Dictionary; public function LoadingProgress() { super(); this.listeners = new Vector.<ILoadingProgressListener>(); this.progressData = new Dictionary(); } public function addEventListener(listener:ILoadingProgressListener) : void { this.listeners.push(listener); } public function removeEventListener(listener:ILoadingProgressListener) : void { this.listeners.splice(this.listeners.indexOf(listener),1); } public function startProgress(processId:Object) : void { for(var i:int = 0; i < this.listeners.length; i++) { ILoadingProgressListener(this.listeners[i]).processStarted(processId); } } public function stopProgress(processId:Object) : void { for(var i:int = 0; i < this.listeners.length; i++) { ILoadingProgressListener(this.listeners[i]).processStoped(processId); } } public function setStatus(processId:Object, value:String) : void { (OSGi.osgi.getService(IConsoleService) as IConsoleService).writeToConsoleChannel("LOADING PROGRESS","setStatus: %1 (processId: %2)",value,processId); if(this.progressData[processId] == null) { this.progressData[processId] = new LoadingProgressData(value,0); } else { LoadingProgressData(this.progressData[processId]).status = value; } for(var i:int = 0; i < this.listeners.length; i++) { ILoadingProgressListener(this.listeners[i]).changeStatus(processId,value); } } public function setProgress(processId:Object, value:Number) : void { (OSGi.osgi.getService(IConsoleService) as IConsoleService).writeToConsoleChannel("LOADING PROGRESS","setProgress: %1 (processId: %2)",value,processId); if(value < 0) { value = 0; } if(value > 1) { value = 1; } if(this.progressData[processId] == null) { if(value != 1) { this.progressData[processId] = new LoadingProgressData("",value); } } else if(value != 1) { LoadingProgressData(this.progressData[processId]).progress = value; } else { this.progressData[processId] = null; } for(var i:int = 0; i < this.listeners.length; i++) { ILoadingProgressListener(this.listeners[i]).changeProgress(processId,value); } } public function getStatus(processId:Object) : String { return this.progressData[processId] != null ? LoadingProgressData(this.progressData[processId]).status : ""; } public function getProgress(processId:Object) : Number { return Number(this.progressData[processId] != null ? Number(Number(LoadingProgressData(this.progressData[processId]).progress)) : Number(Number(0))); } } }
package alternativa.tanks.sfx { import alternativa.engine3d.core.Object3D; import alternativa.math.Vector3; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.utils.objectpool.ObjectPool; import alternativa.tanks.utils.objectpool.PooledObject; public class MovingObject3DPositionProvider extends PooledObject implements Object3DPositionProvider { private var initialPosition:Vector3; private var velocity:Vector3; private var acceleration:Number; public function MovingObject3DPositionProvider(param1:ObjectPool) { this.initialPosition = new Vector3(); this.velocity = new Vector3(); super(param1); } public function initPosition(param1:Object3D) : void { param1.x = this.initialPosition.x; param1.y = this.initialPosition.y; param1.z = this.initialPosition.z; } public function init(param1:Vector3, param2:Vector3, param3:Number) : void { this.initialPosition.copyFrom(param1); this.velocity.copyFrom(param2); this.acceleration = param3; } public function updateObjectPosition(param1:Object3D, param2:GameCamera, param3:int) : void { var _loc4_:Number = NaN; _loc4_ = 0.001 * param3; param1.x += this.velocity.x * _loc4_; param1.y += this.velocity.y * _loc4_; param1.z += this.velocity.z * _loc4_; var _loc5_:Number = this.velocity.vLength(); _loc5_ += this.acceleration * _loc4_; if(_loc5_ <= 0) { this.velocity.reset(); } else { this.velocity.vNormalize(); this.velocity.scale(_loc5_); } } public function destroy() : void { } } }
package alternativa.tanks.utils { import flash.utils.ByteArray; public class EncryptedNumberImpl implements EncryptedNumber { private static var byteArray:ByteArray = new ByteArray(); private var mask:int; private var v1:int; private var v2:int; public function EncryptedNumberImpl(param1:Number = 0) { super(); this.setNumber(param1); } public function setNumber(param1:Number) : void { this.mask = Math.random() * 4294967295; byteArray.position = 0; byteArray.writeDouble(param1); byteArray.position = 0; this.v1 = ShiftUtils.rotateLeft(byteArray.readInt() ^ this.mask,5); this.v2 = ShiftUtils.rotateLeft(byteArray.readInt() ^ this.mask,5); } public function getNumber() : Number { byteArray.position = 0; byteArray.writeInt(ShiftUtils.rotateRight(this.v1,5) ^ this.mask); byteArray.writeInt(ShiftUtils.rotateRight(this.v2,5) ^ this.mask); byteArray.position = 0; return byteArray.readDouble(); } } }
package forms.ranks { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapSmallRank13.png")] public class DefaultRanksBitmaps_bitmapSmallRank13 extends BitmapAsset { public function DefaultRanksBitmaps_bitmapSmallRank13() { super(); } } }
package alternativa.tanks.models.battlefield.shadows { import alternativa.tanks.models.battlefield.BattleView3D; public class BattleShadow { private var view:BattleView3D; public function BattleShadow(view:BattleView3D) { super(); this.view = view; } public function on() : void { this.view.camera.softTransparency = true; this.view.camera.softTransparencyStrength = 1; } public function off() : void { this.view.camera.useShadowMap = false; this.view.camera.useLight = false; } } }
package alternativa.tanks.models.sfx.shoot.snowman { import alternativa.object.ClientObject; public interface ISnowmanSFX { function getSnowmanSFXData(param1:ClientObject) : SnowmanSFXData; } }
package projects.tanks.clients.fp10.Prelauncher.controls.selector { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/projects.tanks.clients.fp10.Prelauncher.controls.selector.LocalesList_flagsPng.png")] public class LocalesList_flagsPng extends BitmapAsset { public function LocalesList_flagsPng() { super(); } } }
package alternativa.protocol.impl { import alternativa.protocol.OptionalMap; import flash.utils.ByteArray; import flash.utils.IDataInput; public class OptionalMapCodecHelper { private static const INPLACE_MASK_FLAG:int = 128; private static const MASK_LENGTH_2_BYTES_FLAG:int = 64; private static const INPLACE_MASK_1_BYTES:int = 32; private static const INPLACE_MASK_3_BYTES:int = 96; private static const INPLACE_MASK_2_BYTES:int = 64; private static const MASK_LENGTH_1_BYTE:int = 128; private static const MASK_LEGTH_3_BYTE:int = 12582912; public function OptionalMapCodecHelper() { super(); } public static function encodeNullMap(param1:OptionalMap, param2:ByteArray) : void { var local5:int = 0; var local6:int = 0; var local7:int = 0; var local8:int = 0; var local9:int = 0; var local3:int = param1.getSize(); var local4:ByteArray = param1.getMap(); if(local3 <= 5) { param2.writeByte(int((local4[0] & 0xFF) >>> 3)); } else if(local3 <= 13) { param2.writeByte(int(((local4[0] & 0xFF) >>> 3) + INPLACE_MASK_1_BYTES)); param2.writeByte(((local4[1] & 0xFF) >>> 3) + (local4[0] << 5)); } else if(local3 <= 21) { param2.writeByte(int(((local4[0] & 0xFF) >>> 3) + INPLACE_MASK_2_BYTES)); param2.writeByte(int(((local4[1] & 0xFF) >>> 3) + (local4[0] << 5))); param2.writeByte(int(((local4[2] & 0xFF) >>> 3) + (local4[1] << 5))); } else if(local3 <= 29) { param2.writeByte(int(((local4[0] & 0xFF) >>> 3) + INPLACE_MASK_3_BYTES)); param2.writeByte(int(((local4[1] & 0xFF) >>> 3) + (local4[0] << 5))); param2.writeByte(int(((local4[2] & 0xFF) >>> 3) + (local4[1] << 5))); param2.writeByte(int(((local4[3] & 0xFF) >>> 3) + (local4[2] << 5))); } else if(local3 <= 504) { local5 = (local3 >>> 3) + ((local3 & 7) == 0 ? 0 : 1); local6 = int((local5 & 0xFF) + MASK_LENGTH_1_BYTE); param2.writeByte(local6); param2.writeBytes(local4,0,local5); } else { if(local3 > 33554432) { throw new Error("NullMap overflow"); } local5 = (local3 >>> 3) + ((local3 & 7) == 0 ? 0 : 1); local7 = local5 + MASK_LEGTH_3_BYTE; local6 = int((local7 & 0xFF0000) >>> 16); local8 = int((local7 & 0xFF00) >>> 8); local9 = int(local7 & 0xFF); param2.writeByte(local6); param2.writeByte(local8); param2.writeByte(local9); param2.writeBytes(local4,0,local5); } } public static function decodeNullMap(param1:IDataInput, param2:OptionalMap) : void { var local4:int = 0; var local7:int = 0; var local8:Boolean = false; var local9:int = 0; var local10:int = 0; var local11:int = 0; var local12:int = 0; var local3:ByteArray = new ByteArray(); var local5:int = int(param1.readByte()); var local6:Boolean = (local5 & INPLACE_MASK_FLAG) != 0; if(local6) { local7 = local5 & 0x3F; local8 = (local5 & MASK_LENGTH_2_BYTES_FLAG) != 0; if(local8) { local10 = int(param1.readByte()); local11 = int(param1.readByte()); local4 = (local7 << 16) + ((local10 & 0xFF) << 8) + (local11 & 0xFF); } else { local4 = local7; } param1.readBytes(local3,0,local4); local9 = local4 << 3; param2.init(local9,local3); return; } local7 = int(local5 << 3); local4 = int((local5 & 0x60) >> 5); switch(local4) { case 0: local3.writeByte(local7); param2.init(5,local3); return; case 1: local10 = int(param1.readByte()); local3.writeByte(int(local7 + ((local10 & 0xFF) >>> 5))); local3.writeByte(int(local10 << 3)); param2.init(13,local3); return; case 2: local10 = int(param1.readByte()); local11 = int(param1.readByte()); local3.writeByte(int(local7 + ((local10 & 0xFF) >>> 5))); local3.writeByte(int((local10 << 3) + ((local11 & 0xFF) >>> 5))); local3.writeByte(int(local11 << 3)); param2.init(21,local3); return; case 3: local10 = int(param1.readByte()); local11 = int(param1.readByte()); local12 = int(param1.readByte()); local3.writeByte(int(local7 + ((local10 & 0xFF) >>> 5))); local3.writeByte(int((local10 << 3) + ((local11 & 0xFF) >>> 5))); local3.writeByte(int((local11 << 3) + ((local12 & 0xFF) >>> 5))); local3.writeByte(int(local12 << 3)); param2.init(29,local3); return; default: throw new Error("Invalid OptionalMap"); } } } }
package controls.buttons.h71px { import controls.buttons.FixedHeightButtonSkin; import controls.buttons.FixedHeightRectangleSkin; public class GreyHugeButtonSkin extends FixedHeightButtonSkin { private static const leftUpClass:Class = GreyHugeButtonSkin_leftUpClass; private static const middleUpClass:Class = GreyHugeButtonSkin_middleUpClass; private static const rightUpClass:Class = GreyHugeButtonSkin_rightUpClass; private static const leftOverClass:Class = GreyHugeButtonSkin_leftOverClass; private static const middleOverClass:Class = GreyHugeButtonSkin_middleOverClass; private static const rightOverClass:Class = GreyHugeButtonSkin_rightOverClass; private static const leftDownClass:Class = GreyHugeButtonSkin_leftDownClass; private static const middleDownClass:Class = GreyHugeButtonSkin_middleDownClass; private static const rightDownClass:Class = GreyHugeButtonSkin_rightDownClass; private static const leftOffClass:Class = GreyHugeButtonSkin_leftOffClass; private static const middleOffClass:Class = GreyHugeButtonSkin_middleOffClass; private static const rightOffClass:Class = GreyHugeButtonSkin_rightOffClass; public function GreyHugeButtonSkin() { super(createStateSkin(leftUpClass,middleUpClass,rightUpClass),createStateSkin(leftOverClass,middleOverClass,rightOverClass),createStateSkin(leftDownClass,middleDownClass,rightDownClass),createStateSkin(leftOffClass,middleOffClass,rightOffClass)); } private static function createStateSkin(param1:Class, param2:Class, param3:Class) : FixedHeightRectangleSkin { return new FixedHeightRectangleSkin(param1,param2,param3); } } }
package scpacker.networking { import scpacker.networking.commands.Command; public interface INetworkListener { function onData(param1:Command) : void; } }
package projects.tanks.client.battlefield.models.bonus.bonus.common { public interface IBonusCommonModelBase { } }
package alternativa.tanks.materials { import alternativa.engine3d.materials.TextureMaterial; import flash.display.BitmapData; import flash.display.BlendMode; import flash.display.Shape; public class PaintMaterial extends TextureMaterial { public var scaleX:Number = 1; public var scaleY:Number = 1; public function PaintMaterial(param1:BitmapData, param2:BitmapData, param3:BitmapData, param4:int = 0) { var local5:BitmapData = new BitmapData(param2.width,param2.height); var local6:Shape = new Shape(); local6.graphics.beginBitmapFill(param1); local6.graphics.drawRect(0,0,param2.width,param2.height); local6.graphics.endFill(); local5.draw(local6); local5.draw(param2,null,null,BlendMode.HARDLIGHT); local5.draw(param3); super(local5,true,true,param4); } } }
package alternativa.tanks.models.battlefield.effects.graffiti { import mx.core.BitmapAsset; [ExcludeClass] public class TexturesManager_graffiti_music extends BitmapAsset { public function TexturesManager_graffiti_music() { super(); } } }
package alternativa.tanks.model.promo { import alternativa.tanks.gui.ThanksForPurchaseWindow; import alternativa.tanks.gui.shop.payment.promo.PromoCodeActivateForm; import alternativa.tanks.gui.shop.payment.promo.SendPromoCodeEvent; import alternativa.tanks.gui.shop.shopitems.item.base.ShopButton; import alternativa.tanks.gui.shop.shopitems.item.promo.ShopPromoCodeButton; import alternativa.tanks.model.donationalert.ThanksForDonationFormService; import alternativa.tanks.model.payment.shop.ShopItemView; import platform.client.fp10.core.model.ObjectUnloadListener; import projects.tanks.client.panel.model.donationalert.types.GoodInfoData; import projects.tanks.client.panel.model.shop.promo.IShopPromoCodeModelBase; import projects.tanks.client.panel.model.shop.promo.ShopPromoCodeModelBase; [ModelInfo] public class ShopPromoCodeModel extends ShopPromoCodeModelBase implements IShopPromoCodeModelBase, ObjectUnloadListener, ShopPromoCode, ShopItemView { [Inject] public static var thanksForDonationFormService:ThanksForDonationFormService; private var form:PromoCodeActivateForm; public function ShopPromoCodeModel() { super(); } public function getButtonView() : ShopButton { return new ShopPromoCodeButton(object); } public function codeActivated(param1:Vector.<GoodInfoData>) : void { var local2:ThanksForPurchaseWindow = null; this.form.codeActivatedSuccessful(); if(param1.length > 0) { local2 = thanksForDonationFormService.getThanksForPurchaseForm(param1,false); local2.addInDialogLayer(); } } public function codeIsInvalid() : void { this.form.activateFailed(); } public function codeActivationBlocked() : void { this.form.activateFailed(); } public function getForm() : PromoCodeActivateForm { if(!this.form) { this.createForm(); } return this.form; } private function createForm() : void { this.form = new PromoCodeActivateForm(); this.form.addEventListener(SendPromoCodeEvent.SEND_PROMO_CODE,getFunctionWrapper(this.promoCodeActivationTry)); } private function promoCodeActivationTry(param1:SendPromoCodeEvent) : void { server.activatePromoCode(param1.getPromoCode()); } public function objectUnloaded() : void { if(Boolean(this.form)) { this.form.removeEventListener(SendPromoCodeEvent.SEND_PROMO_CODE,getFunctionWrapper(this.promoCodeActivationTry)); } this.form = null; } } }
package alternativa.tanks.battle.events { import alternativa.types.Long; public class EffectStoppedEvent { public var userId:Long; public var effectId:int; public var activeAfterDeath:Boolean; public function EffectStoppedEvent(param1:Long, param2:int, param3:Boolean = false) { super(); this.userId = param1; this.effectId = param2; this.activeAfterDeath = param3; } } }
package alternativa.tanks.gui.tankpreview { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.containers.KDContainer; import alternativa.engine3d.core.Camera3D; import alternativa.engine3d.core.Face; import alternativa.engine3d.core.MipMapping; import alternativa.engine3d.core.Object3D; import alternativa.engine3d.core.Object3DContainer; import alternativa.engine3d.core.Vertex; import alternativa.engine3d.core.View; import alternativa.engine3d.core.Wrapper; import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.BSP; import alternativa.engine3d.objects.Decal; import alternativa.engine3d.objects.Mesh; import alternativa.engine3d.objects.SkyBox; import alternativa.tanks.service.battery.BatteriesService; import alternativa.tanks.service.garage.GarageService; import controls.TankWindowInner; import flash.display.BitmapData; import flash.display.BlendMode; import flash.display.Shape; import flash.events.Event; import flash.events.TimerEvent; import flash.filters.BitmapFilterQuality; import flash.filters.BlurFilter; import flash.geom.Matrix; import flash.geom.Point; import flash.geom.Vector3D; import flash.utils.Timer; import forms.TankWindowWithHeader; import platform.client.fp10.core.resource.types.MultiframeTextureResource; import projects.tanks.clients.flash.commons.models.gpu.GPUCapabilities; import projects.tanks.clients.flash.resources.drone.Drone3D; import projects.tanks.clients.flash.resources.resource.Tanks3DSResource; import projects.tanks.clients.flash.resources.tanks.Tank3D; import projects.tanks.clients.fp10.libraries.TanksLocale; import projects.tanks.clients.fp10.libraries.tanksservices.service.layout.ILobbyLayoutService; public class TankPreviewWindow extends TankWindowWithHeader { [Inject] public static var lobbyLayoutService:ILobbyLayoutService; [Inject] public static var garageService:GarageService; [Inject] public static var batteryService:BatteriesService; private static const ENTER_FRAME_PRIORITY:Number = -1; private static const INITIAL_CAMERA_DIRECTION:Number = -150; private static const WINDOW_MARGIN:int = 11; private static const SHADOW_ALPHA:Number = 0.7; private static const SHADOW_BLUR:Number = 13; private static const SHADOW_RESOLUTION:Number = 2.5; private static const SHADOW_DIRECTION:Vector3D = new Vector3D(0,0,-1); protected var innerBevel:TankWindowInner; protected var backgroundEraser:Shape; protected var rootContainer:Object3DContainer; protected var hangarContainer:Object3DContainer; protected var cameraContainer:Object3DContainer; protected var camera:Camera3D; protected var stateMachine:TankPreviewStateMachine; protected var tank:Tank3D; protected var drone:Drone3D; private var loadedPartsCounter:int = 0; protected var backgroundEraserTimer:Timer; protected var shadow:Mesh; private var shadowMaterial:TextureMaterial; private var cams:Array; private var tower:Object3D; private var tree1:Object3D; private var tree2:Object3D; private var tree3:Object3D; private var bg2:Object3D; private var tree4:Object3D; private var tree5:Object3D; private var bg:Object3D; private var window1:Object3D; private var window2:Object3D; private var window3:Object3D; private var walls:Array; private var floor:Object3D; private var ventilator1:Object3D; private var ventilator2:Object3D; private var ventfix:Object3D; private var firepanel:Object3D; private var electropanel:Object3D; private var hullMesh:Mesh; private var girders:Object3D; private var balkl:Object3D; private var balk2:Object3D; private var lamps:Array; private var tops:Object3D; private var pandus1:Object3D; private var pandus2:Object3D; private var others:Array; private var ladder1_part1:Mesh; private var ladder1_part2:Mesh; private var ladder2_part1:Mesh; private var ladder2_part2:Mesh; private var garageBoxResource:Tanks3DSResource; private var skyBox:SkyBox; protected var kdTree:KDContainer; public function TankPreviewWindow() { super(); } public function init(param1:Tanks3DSResource, param2:SkyBox) : void { this.garageBoxResource = param1; this.skyBox = param2; setHeaderId(TanksLocale.TEXT_HEADER_YOUR_TANK); this.init3D(); this.createWindowInnerBevel(); this.addGarageObjectsToScene(param1); this.createScene(); this.resize(400,300); addEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); } protected function init3D() : void { this.rootContainer = new Object3DContainer(); this.cams = new Array(); this.walls = new Array(); this.lamps = new Array(); this.others = new Array(); this.rootContainer.addChild(this.skyBox); this.camera = new Camera3D(); this.camera.view = new View(100,100,GPUCapabilities.constrained); this.camera.view.hideLogo(); addChild(this.camera.view); this.cameraContainer = new Object3DContainer(); this.rootContainer.addChild(this.cameraContainer); this.hangarContainer = new Object3DContainer(); this.rootContainer.addChild(this.hangarContainer); this.cameraContainer.addChild(this.camera); this.cameraContainer.rotationX = garageService.getCameraPitch() * Math.PI / 180; this.camera.y = garageService.getCameraAltitude(); this.camera.z = garageService.getCameraDistance(); this.camera.fov = garageService.getCameraFieldOfView(); this.camera.x = -20; this.cameraContainer.rotationZ = INITIAL_CAMERA_DIRECTION * Math.PI / 180; if(GPUCapabilities.gpuEnabled) { this.backgroundEraser = new Shape(); this.backgroundEraser.blendMode = BlendMode.ERASE; } } private function createWindowInnerBevel() : void { this.innerBevel = new TankWindowInner(0,0,TankWindowInner.TRANSPARENT); addChild(this.innerBevel); this.innerBevel.mouseEnabled = true; } private function createTank() : void { this.tank = new Tank3D(); this.tank.z = 120; this.tank.y = -30; this.tank.x = -5; } protected function createDrone(param1:Vector3D) : void { var basePosition:Vector3D = param1; this.drone = new Drone3D(this.tank,this.camera,basePosition,function():* { return batteryService.hasBatteries(); }); } private function classifyObject(param1:Mesh, param2:int) : void { var local3:TextureMaterial = null; if(param1.alternativa3d::faceList.material is TextureMaterial) { local3 = TextureMaterial(param1.alternativa3d::faceList.material); local3.texture = this.garageBoxResource.getTextureForObject(param2); param1.setMaterialToAllFaces(local3); } else { param1.setMaterialToAllFaces(param1.alternativa3d::faceList.material); } if(param1.name.indexOf("cam") >= 0) { this.cams.push(param1); } else if(param1.name == "Tower") { this.tower = param1; } else if(param1.name == "tree1") { this.tree1 = param1; } else if(param1.name == "tree2") { this.tree2 = param1; } else if(param1.name == "tree3") { this.tree3 = param1; } else if(param1.name == "bg2") { this.bg2 = param1; } else if(param1.name == "tree4") { this.tree4 = param1; } else if(param1.name == "tree5") { this.tree5 = param1; } else if(param1.name == "bg") { this.bg = param1; } else if(param1.name == "wall_10") { this.window1 = param1; } else if(param1.name == "wall_12") { this.window2 = param1; } else if(param1.name == "wall_13") { this.window3 = param1; } else if(param1.name.indexOf("wall") >= 0) { this.walls.push(param1); } else if(param1.name == "Object06") { this.floor = param1; } else if(param1.name == "vent_1") { this.ventilator1 = param1; } else if(param1.name == "vent_2") { this.ventilator2 = param1; } else if(param1.name == "Object39") { this.ventfix = param1; } else if(param1.name == "Object15") { this.firepanel = param1; } else if(param1.name == "Object20") { this.electropanel = param1; } else if(param1.name == "girders") { this.girders = param1; } else if(param1.name == "Object27") { this.balkl = param1; } else if(param1.name == "Object08") { this.balk2 = param1; } else if(param1.name.indexOf("lamp") >= 0) { this.lamps.push(param1); } else if(param1.name == "Object133") { this.tops = param1; } else if(param1.name == "Object23") { this.ladder1_part1 = param1; } else if(param1.name == "Object02") { this.ladder1_part2 = param1; } else if(param1.name == "Object24") { this.ladder2_part1 = param1; } else if(param1.name == "Object96") { this.ladder2_part2 = param1; } else if(param1.name == "pandus_1") { this.pandus1 = param1; } else if(param1.name == "pandus_2") { this.pandus2 = param1; } else if(param1.name == "Object92") { this.others.push(param1); } else { this.others.push(param1); } } protected function addGarageObjectsToScene(param1:Tanks3DSResource) : void { var local2:int = 0; var local3:Mesh = null; local2 = 0; while(local2 < param1.objects.length) { local3 = param1.objects[local2] as Mesh; if(local3 != null) { if(local3.name != "stuff15") { this.classifyObject(local3,local2); } } local2++; } this.others.push(this.ladder1_part1); this.others.push(this.ladder1_part2); this.others.push(this.ladder2_part1); this.others.push(this.ladder2_part2); this.tower = this.toBSP(this.tower); this.bg = this.toBSP(this.bg); local2 = 0; while(local2 < this.walls.length) { this.walls[local2] = this.toBSP(this.walls[local2]); local2++; } this.firepanel = this.toBSP(this.firepanel); this.electropanel = this.toBSP(this.electropanel); this.girders = this.toBSP(this.girders); this.balkl = this.toBSP(this.balkl); local2 = 0; while(local2 < this.lamps.length) { this.lamps[local2] = this.toBSP(this.lamps[local2]); local2++; } this.tops = this.toBSP(this.tops); this.pandus1 = this.toBSP(this.pandus1); this.pandus2 = this.toBSP(this.pandus2); local2 = 0; while(local2 < this.others.length) { this.others[local2] = this.toBSP(this.others[local2]); local2++; } this.ventilator1.y += 10; this.ventilator2.y += 10; } private function toBSP(param1:Object3D) : BSP { var local2:BSP = new BSP(); local2.createTree(param1 as Mesh,false); local2.name = param1.name; local2.matrix = param1.matrix; local2.useLight = param1.useLight; local2.useShadowMap = param1.useShadowMap; local2.shadowMapAlphaThreshold = param1.shadowMapAlphaThreshold; local2.boundMinX = param1.boundMinX; local2.boundMinY = param1.boundMinY; local2.boundMinZ = param1.boundMinZ; local2.boundMaxX = param1.boundMaxX; local2.boundMaxY = param1.boundMaxY; local2.boundMaxZ = param1.boundMaxZ; return local2; } private function addChild1(param1:Object3D) : void { if(param1 != null) { this.hangarContainer.addChild(param1); } } protected function createScene() : void { var local1:Object3D = null; var local2:Vector.<Object3D> = null; var local3:Object3D = null; this.addChild1(this.tower); this.addChild1(this.tree1); this.addChild1(this.tree2); this.addChild1(this.tree3); this.addChild1(this.bg2); this.addChild1(this.tree4); this.addChild1(this.tree5); this.addChild1(this.bg); this.addChild1(this.window1); this.addChild1(this.window2); this.addChild1(this.window3); for each(local3 in this.walls) { this.addChild1(local3); } this.addChild1(this.floor); this.addChild1(this.ventilator1); this.addChild1(this.ventilator2); this.addChild1(this.ventfix); this.addChild1(this.firepanel); this.addChild1(this.electropanel); this.addChild1(this.girders); this.addChild1(this.balkl); this.addChild1(this.balk2); for each(local3 in this.lamps) { this.addChild1(local3); } this.addChild1(this.tops); this.kdTree = new KDContainer(); this.kdTree.batched = false; this.kdTree.threshold = 5; this.addChild1(this.kdTree); local2 = new Vector.<Object3D>(); for each(local1 in this.others) { local2.push(local1); } local2.push(this.pandus1); local2.push(this.pandus2); this.kdTree.createTree(local2); this.createTank(); this.createDrone(new Vector3D(100,-200,300)); this.kdTree.addChild(this.tank); this.kdTree.addChild(this.drone); } private function attach(param1:Mesh, param2:Mesh) : void { var local3:Vector.<Face> = param1.faces; local3[local3.length - 1].alternativa3d::next = param2.alternativa3d::faceList; param2.alternativa3d::faceList = null; var local4:Vector.<Vertex> = param1.vertices; param1.vertices[local4.length - 1].alternativa3d::next = param2.vertexList; param2.vertexList = null; } private function onAddedToStage(param1:Event) : void { removeEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); addEventListener(Event.ENTER_FRAME,this.onEnterFrame,false,ENTER_FRAME_PRIORITY); this.initStateMachine(); if(GPUCapabilities.gpuEnabled) { this.backgroundEraserTimer = new Timer(1000,1); this.backgroundEraserTimer.addEventListener(TimerEvent.TIMER_COMPLETE,this.onBackgroundEraserTimerComplete); this.backgroundEraserTimer.start(); } } private function onBackgroundEraserTimerComplete(param1:TimerEvent) : void { addChild(this.backgroundEraser); this.backgroundEraserTimer.removeEventListener(TimerEvent.TIMER_COMPLETE,this.onBackgroundEraserTimerComplete); this.backgroundEraserTimer = null; } private function onEnterFrame(param1:Event) : void { this.stateMachine.updateCurrentState(); this.drone.render(); this.camera.render(); } private function initStateMachine() : void { this.stateMachine = new TankPreviewStateMachine(); var local1:TankPreviewContext = new TankPreviewContext(); var local2:ManualRotationState = new ManualRotationState(this.stateMachine,stage,local1,this.camera,this.cameraContainer); var local3:RotationDecelerationState = new RotationDecelerationState(this.stateMachine,this.innerBevel,local1,this.cameraContainer); var local4:IdleState = new IdleState(this.stateMachine,this.innerBevel); var local5:AutoRotationState = new AutoRotationState(this.stateMachine,this.innerBevel,this.cameraContainer); this.stateMachine.addTransition(TankPreviewEvent.MOUSE_DOWN,local3,local2); this.stateMachine.addTransition(TankPreviewEvent.MOUSE_DOWN,local4,local2); this.stateMachine.addTransition(TankPreviewEvent.MOUSE_DOWN,local5,local2); this.stateMachine.addTransition(TankPreviewEvent.STOP_MANUAL_ROTATION,local2,local3); this.stateMachine.addTransition(TankPreviewEvent.ROTATION_STOPPED,local3,local4); this.stateMachine.addTransition(TankPreviewEvent.IDLE_STATE_TIMEOUT,local4,local5); this.stateMachine.setCurrentState(local4); } public function destroy() : void { var local1:BitmapData = null; removeEventListener(Event.ENTER_FRAME,this.onEnterFrame); if(this.backgroundEraserTimer != null) { this.backgroundEraserTimer.stop(); this.backgroundEraserTimer.removeEventListener(TimerEvent.TIMER_COMPLETE,this.onBackgroundEraserTimerComplete); this.backgroundEraserTimer = null; } if(this.shadowMaterial != null) { local1 = this.shadowMaterial.texture; this.shadowMaterial.dispose(); local1.dispose(); } this.hullMesh = null; this.innerBevel = null; this.rootContainer = null; this.cameraContainer = null; this.camera.view.clear(); this.camera = null; this.tank.destroy(); this.drone.destroy(); this.tank = null; this.drone = null; this.shadow = null; if(this.kdTree != null) { this.kdTree.parent.removeChild(this.kdTree); this.kdTree.destroyTree(); } } public function setHull(param1:Tanks3DSResource) : void { this.hullMesh = Mesh(param1.objects[0]); this.tank.setHull(param1); this.onTankPartLoaded(); this.drone.onHullChanged(); } public function setTurret(param1:Tanks3DSResource) : void { this.tank.setTurret(param1); this.onTankPartLoaded(); } public function setColorMap(param1:BitmapData) : void { this.tank.setColorMap(param1); this.drone.setColorMap(param1); this.onTankPartLoaded(); } public function setTextureAnimation(param1:MultiframeTextureResource) : void { this.tank.setTextureAnimation(param1); this.drone.setTextureAnimation(param1); this.onTankPartLoaded(); } public function setDrone(param1:Tanks3DSResource) : void { this.drone.set3DResource(param1); } private function onTankPartLoaded() : void { if(this.loadedPartsCounter < 3) { ++this.loadedPartsCounter; } if(this.loadedPartsCounter == 3) { if(this.shadow != null && Boolean(this.tank.contains(this.shadow))) { this.tank.removeChild(this.shadow); } this.shadow = this.createShadow(this.hullMesh,SHADOW_DIRECTION,SHADOW_RESOLUTION,SHADOW_BLUR,SHADOW_ALPHA); this.tank.addChildAt(this.shadow,0); if(!GPUCapabilities.gpuEnabled) { this.camera.render(); } } } public function resize(param1:Number, param2:Number) : void { this.width = param1; this.height = param2; this.adjustInnerBevel(param1,param2); this.adjustView3D(param1,param2); this.adjustBackgroundEraser(); if(!GPUCapabilities.gpuEnabled) { this.camera.render(); } } private function adjustInnerBevel(param1:Number, param2:Number) : void { this.innerBevel.width = param1 - WINDOW_MARGIN * 2; this.innerBevel.height = param2 - WINDOW_MARGIN * 2; this.innerBevel.x = WINDOW_MARGIN; this.innerBevel.y = WINDOW_MARGIN; } private function adjustView3D(param1:Number, param2:Number) : void { this.camera.view.width = param1 - WINDOW_MARGIN * 2 - 2; this.camera.view.height = param2 - WINDOW_MARGIN * 2 - 2; this.camera.view.x = WINDOW_MARGIN; this.camera.view.y = WINDOW_MARGIN; } private function adjustBackgroundEraser() : void { if(GPUCapabilities.gpuEnabled) { this.backgroundEraser.x = this.camera.view.x; this.backgroundEraser.y = this.camera.view.y; this.backgroundEraser.graphics.clear(); this.backgroundEraser.graphics.beginFill(16711680); this.backgroundEraser.graphics.drawRect(0,0,this.camera.view.width,this.camera.view.height); this.backgroundEraser.graphics.endFill(); } } private function createShadow(param1:Mesh, param2:Vector3D, param3:Number, param4:int, param5:Number, param6:uint = 0) : Mesh { var local20:Wrapper = null; var local21:Vertex = null; var local22:Number = NaN; var local23:Number = NaN; var local24:Number = NaN; var local25:BitmapData = null; var local26:Decal = null; param2 = param2.clone(); param2.normalize(); var local7:Number = 1e+22; var local8:Number = 1e+22; var local9:Number = -1e+22; var local10:Number = -1e+22; var local11:Shape = new Shape(); var local12:Face = param1.alternativa3d::faceList; while(local12 != null) { local20 = local12.alternativa3d::wrapper; while(local20 != null) { local21 = local20.alternativa3d::vertex; local22 = -local21.z / param2.z; local23 = local21.x + param2.x * local22; local24 = local21.y + param2.y * local22; if(local23 < local7) { local7 = local23; } if(local23 > local9) { local9 = local23; } if(local24 < local8) { local8 = local24; } if(local24 > local10) { local10 = local24; } if(local20 == local12.alternativa3d::wrapper) { local11.graphics.beginFill(param6); local11.graphics.moveTo(local23,local24); } else { local11.graphics.lineTo(local23,local24); } local20 = local20.alternativa3d::next; } local12 = local12.alternativa3d::next; } local7 = (Math.floor(local7 / param3) - param4) * param3; local8 = (Math.floor(local8 / param3) - param4) * param3; local9 = (Math.ceil(local9 / param3) + param4) * param3; local10 = (Math.ceil(local10 / param3) + param4) * param3; var local13:BitmapData = new BitmapData(Math.round((local9 - local7) / param3),Math.round((local10 - local8) / param3),true,0); local13.draw(local11,new Matrix(1 / param3,0,0,-1 / param3,-local7 / param3,local10 / param3)); local13.applyFilter(local13,local13.rect,new Point(),new BlurFilter(param4,param4,BitmapFilterQuality.MEDIUM)); var local14:TextureMaterial = new TextureMaterial(local13,false,true,MipMapping.PER_PIXEL,param3); var local15:Mesh = new Mesh(); var local16:Vertex = local15.addVertex(local7,local10,0,0,0); var local17:Vertex = local15.addVertex(local7,local8,0,0,1); var local18:Vertex = local15.addVertex(local9,local8,0,1,1); var local19:Vertex = local15.addVertex(local9,local10,0,1,0); local15.addQuadFace(local16,local17,local18,local19,local14); local15.calculateFacesNormals(); local15.calculateBounds(); local15.alpha = param5; if(this.shadowMaterial != null) { local25 = this.shadowMaterial.texture; this.shadowMaterial.dispose(); local25.dispose(); } this.shadowMaterial = local14; if(GPUCapabilities.gpuEnabled) { local26 = new Decal(); local26.createGeometry(local15,true); local26.x = local15.x; local26.y = local15.y; local26.z = local15.z; local26.alpha = local15.alpha; return local26; } return local15; } } }
package alternativa.tanks.services.colortransform.impl { import alternativa.tanks.services.colortransform.ColorTransformService; import alternativa.tanks.services.colortransform.ColorTransformer; import flash.geom.ColorTransform; public class HardwareColorTransformService implements ColorTransformService { private var heatColorAdjust:ColorTransform; private var frostColorAdjust:ColorTransform; public function HardwareColorTransformService() { super(); } public function setColorTransform(param1:ColorTransform) : void { } public function getColorTransform() : ColorTransform { return null; } public function addColorTransformer(param1:ColorTransformer) : void { } public function setColorAdjust(param1:ColorTransform, param2:ColorTransform, param3:ColorTransform, param4:ColorTransform) : void { this.heatColorAdjust = param3; this.frostColorAdjust = param4; } public function getHeatColorAdjust() : ColorTransform { return this.heatColorAdjust; } public function getFrostColorAdjust() : ColorTransform { return this.frostColorAdjust; } } }
package projects.tanks.client.entrance.model.entrance.notificationtoken { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.EnumCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.network.command.SpaceCommand; import platform.client.fp10.core.type.IGameObject; import platform.client.fp10.core.type.ISpace; import projects.tanks.client.entrance.model.users.pushnotification.NotificationClientPlatform; public class NotificationTokenModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _storeTokenId:Long = Long.getLong(1958642565,1876489475); private var _storeToken_platformCodec:ICodec; private var _storeToken_tokenCodec:ICodec; private var model:IModel; public function NotificationTokenModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); this._storeToken_platformCodec = this.protocol.getCodec(new EnumCodecInfo(NotificationClientPlatform,false)); this._storeToken_tokenCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); } public function storeToken(param1:NotificationClientPlatform, param2:String) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._storeToken_platformCodec.encode(this.protocolBuffer,param1); this._storeToken_tokenCodec.encode(this.protocolBuffer,param2); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local3:SpaceCommand = new SpaceCommand(Model.object.id,this._storeTokenId,this.protocolBuffer); var local4:IGameObject = Model.object; var local5:ISpace = local4.space; local5.commandSender.sendCommand(local3); this.protocolBuffer.optionalMap.clear(); } } }
package alternativa.tanks.models.battle.gui.gui.statistics.messages { import alternativa.osgi.service.display.IDisplay; import alternativa.tanks.models.battle.gui.statistics.ShortUserInfo; import flash.display.Sprite; import flash.events.Event; import projects.tanks.client.battlefield.types.DamageType; public class BattleMessages extends Sprite { [Inject] public static var display:IDisplay; private var output:BattleMessagesOutput = new BattleMessagesOutput(); public function BattleMessages() { super(); addChild(this.output); this.output.tabEnabled = false; this.output.tabChildren = false; addEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); addEventListener(Event.REMOVED_FROM_STAGE,this.onRemovedFromStage); } private function onAddedToStage(param1:Event) : void { stage.addEventListener(Event.RESIZE,this.onStageResize); } private function onRemovedFromStage(param1:Event) : void { stage.removeEventListener(Event.RESIZE,this.onStageResize); } public function onStageResize(param1:Event) : void { this.alignMessages(); } private function alignMessages() : void { this.output.x = display.stage.stageWidth; this.output.y = 50; } public function addTwoUsersActionMessage(param1:ShortUserInfo, param2:UserAction, param3:ShortUserInfo) : void { this.output.addLine(ActionOutputLine.userAction(param1,param2,param3)); this.alignMessages(); } public function addUserActionMessage(param1:ShortUserInfo, param2:UserAction) : void { this.output.addLine(ActionOutputLine.userAction(param1,param2,null)); this.alignMessages(); } public function addSimpleActionMessage(param1:UserAction) : void { this.output.addLine(ActionOutputLine.simple(param1)); this.alignMessages(); } public function addUserTextActionMessage(param1:ShortUserInfo, param2:String) : void { this.output.addLine(new OldActionOutputLine(param1,param2)); this.alignMessages(); } public function addPointActionMessage(param1:String, param2:UserAction) : void { this.output.addLine(ActionOutputLine.pointAction(param1,param2)); this.alignMessages(); } public function addKillMessage(param1:ShortUserInfo, param2:ShortUserInfo, param3:DamageType) : void { this.output.addLine(new KillMessageOutputLine(param1,param2,param3)); this.alignMessages(); } } }
package alternativa.tanks.model.garage { import platform.client.fp10.core.type.IGameObject; [ModelInterface] public interface Garage { function haveAbilityToMount(param1:IGameObject) : Boolean; } }
package alternativa.tanks.models.battle.statistics.fps { import alternativa.tanks.battle.BattleService; import alternativa.tanks.camera.GameCamera; public class CameraStatisticFeature { [Inject] public static var battleService:BattleService; private var fieldName:String; private var bit:int; public function CameraStatisticFeature(param1:String, param2:int) { super(); this.fieldName = param1; this.bit = param2; } public function isTesting() : Boolean { var local1:Number = this.getStrength(); return 0 < local1 && local1 < 1; } public function getMask() : int { return this.getStrength() == 1 ? this.bit : 0; } private function getStrength() : Number { var local1:GameCamera = battleService.getBattleScene3D().getCamera(); return local1[this.fieldName]; } } }
package _codec.projects.tanks.client.panel.model.shop.androidspecialoffer.banner { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.shop.androidspecialoffer.banner.AndroidBannerModelCC; public class VectorCodecAndroidBannerModelCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecAndroidBannerModelCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(AndroidBannerModelCC,false)); if(this.optionalElement) { this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } public function decode(param1:ProtocolBuffer) : Object { var local2:int = LengthCodecHelper.decodeLength(param1); var local3:Vector.<AndroidBannerModelCC> = new Vector.<AndroidBannerModelCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = AndroidBannerModelCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:AndroidBannerModelCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<AndroidBannerModelCC> = Vector.<AndroidBannerModelCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.view { import alternativa.tanks.controller.events.CallsignCheckResultEvent; import alternativa.tanks.controller.events.CheckCallsignEvent; import alternativa.tanks.view.forms.commons.ChangeUidInputField; import org.robotlegs.core.IInjector; import org.robotlegs.mvcs.Mediator; public class ChangeUidInputFieldMediator extends Mediator { [Inject] public var view:ChangeUidInputField; [Inject] public var injector:IInjector; public function ChangeUidInputFieldMediator() { super(); } override public function onRegister() : void { this.injector.injectInto(this.view); addViewListener(CheckCallsignEvent.CHECK_CALLSIGN,dispatch,CheckCallsignEvent); addContextListener(CallsignCheckResultEvent.CALLSIGN_IS_BUSY,this.onCallsignBusy); addContextListener(CallsignCheckResultEvent.CALLSIGN_IS_FREE,this.onCallsignFree); addContextListener(CallsignCheckResultEvent.CALLSIGN_IS_INCORRECT,this.onCallsignIncorrect); } private function onCallsignFree(param1:CallsignCheckResultEvent) : void { this.view.alertAboutFreeUid(); } private function onCallsignBusy(param1:CallsignCheckResultEvent) : void { this.view.alertAboutBusyUid(param1.freeUids); } private function onCallsignIncorrect(param1:CallsignCheckResultEvent) : void { this.view.alertAboutIncorrectUid(); } } }
package alternativa.tanks.model.payment { import alternativa.tanks.gui.shop.windows.ShopWindowParams; import alternativa.tanks.loader.ILoaderWindowService; import alternativa.tanks.model.payment.modes.PayMode; import alternativa.tanks.model.payment.paymentstate.PaymentWindowService; import alternativa.tanks.model.payment.shop.category.ShopCategory; import alternativa.tanks.model.payment.shop.item.ShopItem; import alternativa.tanks.model.payment.shop.shopabonement.ShopAbonements; import alternativa.tanks.service.achievement.IAchievementService; import alternativa.tanks.service.payment.IPaymentService; import alternativa.tanks.tracker.ITrackerService; import flash.geom.Point; import platform.client.fp10.core.model.IObjectLoadListener; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.panel.model.payment.IPaymentModelBase; import projects.tanks.client.panel.model.payment.PaymentCC; import projects.tanks.client.panel.model.payment.PaymentModelBase; import projects.tanks.clients.flash.commons.models.detach.Detach; import projects.tanks.clients.flash.commons.services.payment.PaymentDisplayService; import projects.tanks.clients.flash.commons.services.payment.event.PaymentDisplayServiceUnloadEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.blur.IBlurService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.paymentactions.UserPaymentActionsService; [ModelInfo] public class PaymentModel extends PaymentModelBase implements IPaymentModelBase, IObjectLoadListener { [Inject] public static var paymentService:IPaymentService; [Inject] public static var achievementService:IAchievementService; [Inject] public static var trackerService:ITrackerService; [Inject] public static var loaderWindowService:ILoaderWindowService; [Inject] public static var paymentDisplayService:PaymentDisplayService; [Inject] public static var userPaymentActionService:UserPaymentActionsService; [Inject] public static var blurService:IBlurService; [Inject] public static var paymentWindow:PaymentWindowService; public function PaymentModel() { super(); } public function objectLoaded() : void { var local1:PaymentCC = getInitParam(); paymentService.initManualDescription(local1.manualDescription); paymentDisplayService.addEventListener(PaymentDisplayServiceUnloadEvent.UNLOAD_PAYMENT,getFunctionWrapper(this.unloadPayment)); } private function unloadPayment(param1:PaymentDisplayServiceUnloadEvent) : void { Detach(object.adapt(Detach)).detach(); } public function objectLoadedPost() : void { paymentDisplayService.handlePaymentLoadingComplete(); this.sortPaymentData(); var local1:ShopWindowParams = this.preparePaymentParams(); paymentWindow.buildWindow(local1); paymentWindow.show(); } private function preparePaymentParams() : ShopWindowParams { var local1:PaymentCC = getInitParam(); var local2:ShopWindowParams = new ShopWindowParams(); local2.paymentObject = object; local2.shopCategories = local1.shopCategories; local2.shopItems = local1.shopItems; local2.paymentModes = local1.payModes; local2.categoriesWithBonus = ShopAbonements(object.adapt(ShopAbonements)).getCategoriesWithBonus(); local2.currentShopCategoryType = getInitParam().currentCategoryType; return local2; } private function sortPaymentData() : void { getInitParam().shopCategories.sort(function(param1:IGameObject, param2:IGameObject):int { return ShopCategory(param1.adapt(ShopCategory)).getOrderIndex() - ShopCategory(param2.adapt(ShopCategory)).getOrderIndex(); }); getInitParam().shopItems.sort(function(param1:IGameObject, param2:IGameObject):Number { return ShopItem(param1.adapt(ShopItem)).getPrice() - ShopItem(param2.adapt(ShopItem)).getPrice(); }); getInitParam().payModes.sort(function(param1:IGameObject, param2:IGameObject):int { return PayMode(param1.adapt(PayMode)).getOrderIndex() - PayMode(param2.adapt(PayMode)).getOrderIndex(); }); } public function objectUnloaded() : void { paymentWindow.destroy(); paymentDisplayService.removeEventListener(PaymentDisplayServiceUnloadEvent.UNLOAD_PAYMENT,getFunctionWrapper(this.unloadPayment)); paymentDisplayService.handlePaymentUnloadingComplete(); } public function objectUnloadedPost() : void { achievementService.setPaymentResumeButtonTargetPoint(new Point(-1,-1)); } } }
package projects.tanks.client.battlefield.models.battle.jgr.killstreak { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; public class KillStreakModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function KillStreakModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package controls.buttons.h30px { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.buttons.h30px.GreenMediumButtonSkin_leftUpClass.png")] public class GreenMediumButtonSkin_leftUpClass extends BitmapAsset { public function GreenMediumButtonSkin_leftUpClass() { super(); } } }
package alternativa.math { import alternativa.engine3d.core.Object3D; import flash.geom.Matrix3D; import flash.utils.getQualifiedClassName; public class Matrix4 { public static const IDENTITY:Matrix4 = new Matrix4(); public var m00:Number; public var m01:Number; public var m02:Number; public var m03:Number; public var m10:Number; public var m11:Number; public var m12:Number; public var m13:Number; public var m20:Number; public var m21:Number; public var m22:Number; public var m23:Number; public function Matrix4(param1:Number = 1, param2:Number = 0, param3:Number = 0, param4:Number = 0, param5:Number = 0, param6:Number = 1, param7:Number = 0, param8:Number = 0, param9:Number = 0, param10:Number = 0, param11:Number = 1, param12:Number = 0) { super(); this.init(param1,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12); } public function init(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number, param9:Number, param10:Number, param11:Number, param12:Number) : void { this.m00 = param1; this.m01 = param2; this.m02 = param3; this.m03 = param4; this.m10 = param5; this.m11 = param6; this.m12 = param7; this.m13 = param8; this.m20 = param9; this.m21 = param10; this.m22 = param11; this.m23 = param12; } public function toIdentity() : Matrix4 { this.m00 = this.m11 = this.m22 = 1; this.m01 = this.m02 = this.m10 = this.m12 = this.m20 = this.m21 = this.m03 = this.m13 = this.m23 = 0; return this; } public function invert() : Matrix4 { var local1:Number = this.m00; var local2:Number = this.m01; var local3:Number = this.m02; var local4:Number = this.m03; var local5:Number = this.m10; var local6:Number = this.m11; var local7:Number = this.m12; var local8:Number = this.m13; var local9:Number = this.m20; var local10:Number = this.m21; var local11:Number = this.m22; var local12:Number = this.m23; var local13:Number = -local3 * local6 * local9 + local2 * local7 * local9 + local3 * local5 * local10 - local1 * local7 * local10 - local2 * local5 * local11 + local1 * local6 * local11; this.m00 = (-local7 * local10 + local6 * local11) / local13; this.m01 = (local3 * local10 - local2 * local11) / local13; this.m02 = (-local3 * local6 + local2 * local7) / local13; this.m03 = (local4 * local7 * local10 - local3 * local8 * local10 - local4 * local6 * local11 + local2 * local8 * local11 + local3 * local6 * local12 - local2 * local7 * local12) / local13; this.m10 = (local7 * local9 - local5 * local11) / local13; this.m11 = (-local3 * local9 + local1 * local11) / local13; this.m12 = (local3 * local5 - local1 * local7) / local13; this.m13 = (local3 * local8 * local9 - local4 * local7 * local9 + local4 * local5 * local11 - local1 * local8 * local11 - local3 * local5 * local12 + local1 * local7 * local12) / local13; this.m20 = (-local6 * local9 + local5 * local10) / local13; this.m21 = (local2 * local9 - local1 * local10) / local13; this.m22 = (-local2 * local5 + local1 * local6) / local13; this.m23 = (local4 * local6 * local9 - local2 * local8 * local9 - local4 * local5 * local10 + local1 * local8 * local10 + local2 * local5 * local12 - local1 * local6 * local12) / local13; return this; } public function append(param1:Matrix4) : Matrix4 { var local2:Number = this.m00; var local3:Number = this.m01; var local4:Number = this.m02; var local5:Number = this.m03; var local6:Number = this.m10; var local7:Number = this.m11; var local8:Number = this.m12; var local9:Number = this.m13; var local10:Number = this.m20; var local11:Number = this.m21; var local12:Number = this.m22; var local13:Number = this.m23; this.m00 = param1.m00 * local2 + param1.m01 * local6 + param1.m02 * local10; this.m01 = param1.m00 * local3 + param1.m01 * local7 + param1.m02 * local11; this.m02 = param1.m00 * local4 + param1.m01 * local8 + param1.m02 * local12; this.m03 = param1.m00 * local5 + param1.m01 * local9 + param1.m02 * local13 + param1.m03; this.m10 = param1.m10 * local2 + param1.m11 * local6 + param1.m12 * local10; this.m11 = param1.m10 * local3 + param1.m11 * local7 + param1.m12 * local11; this.m12 = param1.m10 * local4 + param1.m11 * local8 + param1.m12 * local12; this.m13 = param1.m10 * local5 + param1.m11 * local9 + param1.m12 * local13 + param1.m13; this.m20 = param1.m20 * local2 + param1.m21 * local6 + param1.m22 * local10; this.m21 = param1.m20 * local3 + param1.m21 * local7 + param1.m22 * local11; this.m22 = param1.m20 * local4 + param1.m21 * local8 + param1.m22 * local12; this.m23 = param1.m20 * local5 + param1.m21 * local9 + param1.m22 * local13 + param1.m23; return this; } public function prepend(param1:Matrix4) : Matrix4 { var local2:Number = this.m00; var local3:Number = this.m01; var local4:Number = this.m02; var local5:Number = this.m03; var local6:Number = this.m10; var local7:Number = this.m11; var local8:Number = this.m12; var local9:Number = this.m13; var local10:Number = this.m20; var local11:Number = this.m21; var local12:Number = this.m22; var local13:Number = this.m23; this.m00 = local2 * param1.m00 + local3 * param1.m10 + local4 * param1.m20; this.m01 = local2 * param1.m01 + local3 * param1.m11 + local4 * param1.m21; this.m02 = local2 * param1.m02 + local3 * param1.m12 + local4 * param1.m22; this.m03 = local2 * param1.m03 + local3 * param1.m13 + local4 * param1.m23 + local5; this.m10 = local6 * param1.m00 + local7 * param1.m10 + local8 * param1.m20; this.m11 = local6 * param1.m01 + local7 * param1.m11 + local8 * param1.m21; this.m12 = local6 * param1.m02 + local7 * param1.m12 + local8 * param1.m22; this.m13 = local6 * param1.m03 + local7 * param1.m13 + local8 * param1.m23 + local9; this.m20 = local10 * param1.m00 + local11 * param1.m10 + local12 * param1.m20; this.m21 = local10 * param1.m01 + local11 * param1.m11 + local12 * param1.m21; this.m22 = local10 * param1.m02 + local11 * param1.m12 + local12 * param1.m22; this.m23 = local10 * param1.m03 + local11 * param1.m13 + local12 * param1.m23 + local13; return this; } public function add(param1:Matrix4) : Matrix4 { this.m00 += param1.m00; this.m01 += param1.m01; this.m02 += param1.m02; this.m03 += param1.m03; this.m10 += param1.m10; this.m11 += param1.m11; this.m12 += param1.m12; this.m13 += param1.m13; this.m20 += param1.m20; this.m21 += param1.m21; this.m22 += param1.m22; this.m23 += param1.m23; return this; } public function subtract(param1:Matrix4) : Matrix4 { this.m00 -= param1.m00; this.m01 -= param1.m01; this.m02 -= param1.m02; this.m03 -= param1.m03; this.m10 -= param1.m10; this.m11 -= param1.m11; this.m12 -= param1.m12; this.m13 -= param1.m13; this.m20 -= param1.m20; this.m21 -= param1.m21; this.m22 -= param1.m22; this.m23 -= param1.m23; return this; } public function transformVector(param1:Vector3, param2:Vector3) : void { param2.x = this.m00 * param1.x + this.m01 * param1.y + this.m02 * param1.z + this.m03; param2.y = this.m10 * param1.x + this.m11 * param1.y + this.m12 * param1.z + this.m13; param2.z = this.m20 * param1.x + this.m21 * param1.y + this.m22 * param1.z + this.m23; } public function transformVectorXYZ(param1:Number, param2:Number, param3:Number, param4:Vector3) : void { param4.x = this.m00 * param1 + this.m01 * param2 + this.m02 * param3 + this.m03; param4.y = this.m10 * param1 + this.m11 * param2 + this.m12 * param3 + this.m13; param4.z = this.m20 * param1 + this.m21 * param2 + this.m22 * param3 + this.m23; } public function transformVectorInverse(param1:Vector3, param2:Vector3) : void { var local4:Number = NaN; var local5:Number = NaN; var local3:Number = param1.x - this.m03; local4 = param1.y - this.m13; local5 = param1.z - this.m23; param2.x = this.m00 * local3 + this.m10 * local4 + this.m20 * local5; param2.y = this.m01 * local3 + this.m11 * local4 + this.m21 * local5; param2.z = this.m02 * local3 + this.m12 * local4 + this.m22 * local5; } public function transformVectors(param1:Vector.<Vector3>, param2:Vector.<Vector3>) : void { var local4:Vector3 = null; var local5:Vector3 = null; var local3:int = int(param1.length); var local6:int = 0; while(local6 < local3) { local4 = param1[local6]; local5 = param2[local6]; local5.x = this.m00 * local4.x + this.m01 * local4.y + this.m02 * local4.z + this.m03; local5.y = this.m10 * local4.x + this.m11 * local4.y + this.m12 * local4.z + this.m13; local5.z = this.m20 * local4.x + this.m21 * local4.y + this.m22 * local4.z + this.m23; local6++; } } public function transformVectorsN(param1:Vector.<Vector3>, param2:Vector.<Vector3>, param3:int) : void { var local4:Vector3 = null; var local5:Vector3 = null; var local6:int = 0; while(local6 < param3) { local4 = param1[local6]; local5 = param2[local6]; local5.x = this.m00 * local4.x + this.m01 * local4.y + this.m02 * local4.z + this.m03; local5.y = this.m10 * local4.x + this.m11 * local4.y + this.m12 * local4.z + this.m13; local5.z = this.m20 * local4.x + this.m21 * local4.y + this.m22 * local4.z + this.m23; local6++; } } public function transformVectorsInverse(param1:Vector.<Vector3>, param2:Vector.<Vector3>) : void { var local4:Vector3 = null; var local5:Vector3 = null; var local7:Number = NaN; var local8:Number = NaN; var local9:Number = NaN; var local3:int = int(param1.length); var local6:int = 0; while(local6 < local3) { local4 = param1[local6]; local5 = param2[local6]; local7 = local4.x - this.m03; local8 = local4.y - this.m13; local9 = local4.z - this.m23; local5.x = this.m00 * local7 + this.m10 * local8 + this.m20 * local9; local5.y = this.m01 * local7 + this.m11 * local8 + this.m21 * local9; local5.z = this.m02 * local7 + this.m12 * local8 + this.m22 * local9; local6++; } } public function transformVectorsInverseN(param1:Vector.<Vector3>, param2:Vector.<Vector3>, param3:int) : void { var local4:Vector3 = null; var local5:Vector3 = null; var local7:Number = NaN; var local8:Number = NaN; var local9:Number = NaN; var local6:int = 0; while(local6 < param3) { local4 = param1[local6]; local5 = param2[local6]; local7 = local4.x - this.m03; local8 = local4.y - this.m13; local9 = local4.z - this.m23; local5.x = this.m00 * local7 + this.m10 * local8 + this.m20 * local9; local5.y = this.m01 * local7 + this.m11 * local8 + this.m21 * local9; local5.z = this.m02 * local7 + this.m12 * local8 + this.m22 * local9; local6++; } } public function getRight(param1:Vector3) : void { this.getAxis(0,param1); } public function getForward(param1:Vector3) : void { this.getAxis(1,param1); } public function getUp(param1:Vector3) : void { this.getAxis(2,param1); } public function getAxis(param1:int, param2:Vector3) : void { switch(param1) { case 0: param2.x = this.m00; param2.y = this.m10; param2.z = this.m20; return; case 1: param2.x = this.m01; param2.y = this.m11; param2.z = this.m21; return; case 2: param2.x = this.m02; param2.y = this.m12; param2.z = this.m22; return; case 3: param2.x = this.m03; param2.y = this.m13; param2.z = this.m23; return; default: return; } } public function deltaTransformVector(param1:Vector3, param2:Vector3) : void { param2.x = this.m00 * param1.x + this.m01 * param1.y + this.m02 * param1.z; param2.y = this.m10 * param1.x + this.m11 * param1.y + this.m12 * param1.z; param2.z = this.m20 * param1.x + this.m21 * param1.y + this.m22 * param1.z; } public function deltaTransformVectorInverse(param1:Vector3, param2:Vector3) : void { param2.x = this.m00 * param1.x + this.m10 * param1.y + this.m20 * param1.z; param2.y = this.m01 * param1.x + this.m11 * param1.y + this.m21 * param1.z; param2.z = this.m02 * param1.x + this.m12 * param1.y + this.m22 * param1.z; } public function copy(param1:Matrix4) : Matrix4 { this.m00 = param1.m00; this.m01 = param1.m01; this.m02 = param1.m02; this.m03 = param1.m03; this.m10 = param1.m10; this.m11 = param1.m11; this.m12 = param1.m12; this.m13 = param1.m13; this.m20 = param1.m20; this.m21 = param1.m21; this.m22 = param1.m22; this.m23 = param1.m23; return this; } public function setFromMatrix3(param1:Matrix3, param2:Vector3) : Matrix4 { this.m00 = param1.m00; this.m01 = param1.m01; this.m02 = param1.m02; this.m03 = param2.x; this.m10 = param1.m10; this.m11 = param1.m11; this.m12 = param1.m12; this.m13 = param2.y; this.m20 = param1.m20; this.m21 = param1.m21; this.m22 = param1.m22; this.m23 = param2.z; return this; } public function setOrientationFromMatrix3(param1:Matrix3) : Matrix4 { this.m00 = param1.m00; this.m01 = param1.m01; this.m02 = param1.m02; this.m10 = param1.m10; this.m11 = param1.m11; this.m12 = param1.m12; this.m20 = param1.m20; this.m21 = param1.m21; this.m22 = param1.m22; return this; } public function setRotationMatrix(param1:Number, param2:Number, param3:Number) : Matrix4 { var local4:Number = Math.cos(param1); var local5:Number = Math.sin(param1); var local6:Number = Math.cos(param2); var local7:Number = Math.sin(param2); var local8:Number = Math.cos(param3); var local9:Number = Math.sin(param3); var local10:Number = local8 * local7; var local11:Number = local9 * local7; this.m00 = local8 * local6; this.m01 = local10 * local5 - local9 * local4; this.m02 = local10 * local4 + local9 * local5; this.m10 = local9 * local6; this.m11 = local11 * local5 + local8 * local4; this.m12 = local11 * local4 - local8 * local5; this.m20 = -local7; this.m21 = local6 * local5; this.m22 = local6 * local4; return this; } public function setMatrixForObject3D(param1:Object3D) : void { this.setMatrix(param1.x,param1.y,param1.z,param1.rotationX,param1.rotationY,param1.rotationZ); } public function setMatrix(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number) : Matrix4 { var local7:Number = Math.cos(param4); var local8:Number = Math.sin(param4); var local9:Number = Math.cos(param5); var local10:Number = Math.sin(param5); var local11:Number = Math.cos(param6); var local12:Number = Math.sin(param6); var local13:Number = local11 * local10; var local14:Number = local12 * local10; this.m00 = local11 * local9; this.m01 = local13 * local8 - local12 * local7; this.m02 = local13 * local7 + local12 * local8; this.m03 = param1; this.m10 = local12 * local9; this.m11 = local14 * local8 + local11 * local7; this.m12 = local14 * local7 - local11 * local8; this.m13 = param2; this.m20 = -local10; this.m21 = local9 * local8; this.m22 = local9 * local7; this.m23 = param3; return this; } public function getEulerAngles(param1:Vector3) : void { if(-1 < this.m20 && this.m20 < 1) { param1.x = Math.atan2(this.m21,this.m22); param1.y = -Math.asin(this.m20); param1.z = Math.atan2(this.m10,this.m00); } else { param1.x = 0; param1.y = this.m20 <= -1 ? Math.PI : -Math.PI; param1.y *= 0.5; param1.z = Math.atan2(-this.m01,this.m11); } } public function setPosition(param1:Vector3) : void { this.m03 = param1.x; this.m13 = param1.y; this.m23 = param1.z; } public function getPosition(param1:Vector3) : void { param1.x = this.m03; param1.y = this.m13; param1.z = this.m23; } public function clone() : Matrix4 { return new Matrix4(this.m00,this.m01,this.m02,this.m03,this.m10,this.m11,this.m12,this.m13,this.m20,this.m21,this.m22,this.m23); } public function toString() : String { return getQualifiedClassName(this) + " (" + this.m00.toFixed(3) + " " + this.m01.toFixed(3) + " " + this.m02.toFixed(3) + " " + this.m03.toFixed(3) + "] [" + this.m10.toFixed(3) + " " + this.m11.toFixed(3) + " " + this.m12.toFixed(3) + " " + this.m13.toFixed(3) + "] [" + this.m20.toFixed(3) + " " + this.m21.toFixed(3) + " " + this.m22.toFixed(3) + " " + this.m23.toFixed(3) + ")"; } public function fromAxisAngle(param1:Vector3, param2:Number) : void { var local3:Number = Math.cos(param2); var local4:Number = Math.sin(param2); var local5:Number = 1 - local3; var local6:Number = param1.x; var local7:Number = param1.y; var local8:Number = param1.z; this.m00 = local5 * local6 * local6 + local3; this.m01 = local5 * local6 * local7 - local8 * local4; this.m02 = local5 * local6 * local8 + local7 * local4; this.m10 = local5 * local6 * local7 + local8 * local4; this.m11 = local5 * local7 * local7 + local3; this.m12 = local5 * local7 * local8 - local6 * local4; this.m20 = local5 * local6 * local8 - local7 * local4; this.m21 = local5 * local7 * local8 + local6 * local4; this.m22 = local5 * local8 * local8 + local3; } public function setFromMatrix3D(param1:Matrix3D) : void { var local2:Vector.<Number> = param1.rawData; this.init(local2[0],local2[4],local2[8],local2[12],local2[1],local2[5],local2[9],local2[13],local2[2],local2[6],local2[10],local2[14]); } } }
package projects.tanks.client.panel.model.shop.enable.paymode { public interface IRestrictionByPayModeModelBase { } }
package projects.tanks.client.garage.prototypes.item.renameitem { public interface IRenameModelBase { function renameFail() : void; function renameSuccessfull(param1:String, param2:String) : void; } }
package alternativa.tanks.models.weapon.ricochet { import alternativa.tanks.battle.BattleService; import alternativa.tanks.models.weapon.WeaponObject; import alternativa.tanks.models.weapon.splash.Splash; import alternativa.tanks.models.weapon.weakening.DistanceWeakening; import projects.tanks.client.battlefield.models.tankparts.weapon.ricochet.RicochetCC; public class RicochetAmmunition { [Inject] public static var battleService:BattleService; private var impactForce:Number; private var sfxData:RicochetSFXData; private var weakening:DistanceWeakening; private var callback:RicochetWeaponCallback; private var splash:Splash; private var initData:RicochetCC; public function RicochetAmmunition(param1:WeaponObject, param2:RicochetCC, param3:RicochetSFXData, param4:RicochetWeaponCallback = null) { super(); this.initData = param2; this.impactForce = param1.commonData().getImpactForce(); this.sfxData = param3; this.weakening = param1.distanceWeakening(); this.splash = Splash(param1.getObject().adapt(Splash)); this.callback = param4; } public function getShot() : RicochetShot { var local1:RicochetShot = RicochetShot(battleService.getObjectPool().getObject(RicochetShot)); local1.init(this.impactForce,this.initData,this.sfxData,this.weakening,this.callback,this.splash); return local1; } } }
package projects.tanks.client.partners.impl.miniplay { public interface IMiniplayPaymentModelBase { function receivePaymentData(param1:int, param2:String, param3:String, param4:String) : void; } }
package projects.tanks.client.panel.model.shop.quantityrestriction { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; public class QuantityRestrictionModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:QuantityRestrictionModelServer; private var client:IQuantityRestrictionModelBase = IQuantityRestrictionModelBase(this); private var modelId:Long = Long.getLong(1770193848,-618385804); private var _reservationAbortId:Long = Long.getLong(883847139,2092193755); public function QuantityRestrictionModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new QuantityRestrictionModelServer(IModel(this)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._reservationAbortId: this.client.reservationAbort(); } } override public function get id() : Long { return this.modelId; } } }
package projects.tanks.client.panel.model.shop.androidspecialoffer.offers { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; public class AndroidSpecialOfferModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function AndroidSpecialOfferModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package alternativa.tanks.models.battlefield.effects.levelup.rangs { import mx.core.BitmapAsset; [ExcludeClass] public class BigRangIcon_rang_15 extends BitmapAsset { public function BigRangIcon_rang_15() { super(); } } }
package projects.tanks.clients.tankslauncershared.dishonestprogressbar { import mx.core.BitmapAsset; [Embed(source="/_assets/projects.tanks.clients.tankslauncershared.dishonestprogressbar.LoadingLabel_loadingLabelEnClass.png")] public class LoadingLabel_loadingLabelEnClass extends BitmapAsset { public function LoadingLabel_loadingLabelEnClass() { super(); } } }
package alternativa.tanks.gui.socialnetwork.vk { import alternativa.tanks.gui.socialnetwork.AbstractSNGroupEnteringWindow; import flash.display.Bitmap; import flash.display.BitmapData; import projects.tanks.clients.fp10.libraries.TanksLocale; public class VkGroupReminderWindow extends AbstractSNGroupEnteringWindow { public static const SN_GROUP_URL:String = "https://vk.com/tankionline"; private static var VkGroupEnteringReminderBitmapDataClass:Class = VkGroupReminderWindow_VkGroupEnteringReminderBitmapDataClass; private static var VkGroupEnteringReminderBitmapData:BitmapData = Bitmap(new VkGroupEnteringReminderBitmapDataClass()).bitmapData; public function VkGroupReminderWindow() { super(VkGroupEnteringReminderBitmapData,SN_GROUP_URL,localeService.getText(TanksLocale.TEXT_VK_ENTER_GROUP_REMINDER)); } } }
package alternativa.tanks.models.battle.battlefield.keyboard { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.keyboard.DeviceIcons_compacttanksIconClass.png")] public class DeviceIcons_compacttanksIconClass extends BitmapAsset { public function DeviceIcons_compacttanksIconClass() { super(); } } }
package _codec.projects.tanks.client.battlefield.models.bonus.bonus.common { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import platform.client.fp10.core.resource.types.SoundResource; import platform.client.fp10.core.resource.types.TextureResource; import projects.tanks.client.battlefield.models.bonus.bonus.common.BonusCommonCC; import projects.tanks.clients.flash.resources.resource.Tanks3DSResource; public class CodecBonusCommonCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_boxResource:ICodec; private var codec_cordResource:ICodec; private var codec_parachuteInnerResource:ICodec; private var codec_parachuteResource:ICodec; private var codec_pickupSoundResource:ICodec; public function CodecBonusCommonCC() { super(); } public function init(param1:IProtocol) : void { this.codec_boxResource = param1.getCodec(new TypeCodecInfo(Tanks3DSResource,false)); this.codec_cordResource = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_parachuteInnerResource = param1.getCodec(new TypeCodecInfo(Tanks3DSResource,false)); this.codec_parachuteResource = param1.getCodec(new TypeCodecInfo(Tanks3DSResource,false)); this.codec_pickupSoundResource = param1.getCodec(new TypeCodecInfo(SoundResource,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:BonusCommonCC = new BonusCommonCC(); local2.boxResource = this.codec_boxResource.decode(param1) as Tanks3DSResource; local2.cordResource = this.codec_cordResource.decode(param1) as TextureResource; local2.parachuteInnerResource = this.codec_parachuteInnerResource.decode(param1) as Tanks3DSResource; local2.parachuteResource = this.codec_parachuteResource.decode(param1) as Tanks3DSResource; local2.pickupSoundResource = this.codec_pickupSoundResource.decode(param1) as SoundResource; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:BonusCommonCC = BonusCommonCC(param2); this.codec_boxResource.encode(param1,local3.boxResource); this.codec_cordResource.encode(param1,local3.cordResource); this.codec_parachuteInnerResource.encode(param1,local3.parachuteInnerResource); this.codec_parachuteResource.encode(param1,local3.parachuteResource); this.codec_pickupSoundResource.encode(param1,local3.pickupSoundResource); } } }
package alternativa.tanks.models.battlefield.effects.levelup.rangs { import mx.core.BitmapAsset; [ExcludeClass] public class BigRangIcon_rang_8 extends BitmapAsset { public function BigRangIcon_rang_8() { super(); } } }
package projects.tanks.client.partners.impl.china.partner7k7k { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; public class Partner7k7kModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:Partner7k7kModelServer; private var client:IPartner7k7kModelBase = IPartner7k7kModelBase(this); private var modelId:Long = Long.getLong(1834043231,-1989349461); public function Partner7k7kModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new Partner7k7kModelServer(IModel(this)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package projects.tanks.client.panel.model.payment { public interface IPaymentModelBase { } }
package projects.tanks.clients.flash.commons.services.payment.event { import flash.events.Event; import projects.tanks.client.commons.types.ShopCategoryEnum; public class PaymentLoadWithCategoryEvent extends Event { public static const LOAD_PAYMENT:String = "PAYMENT_SERVICE_LOAD_WITH_CATEGORY"; private var _shopCategoryType:ShopCategoryEnum; public function PaymentLoadWithCategoryEvent(param1:ShopCategoryEnum) { super(LOAD_PAYMENT); this._shopCategoryType = param1; } public function get shopCategoryType() : ShopCategoryEnum { return this._shopCategoryType; } } }
package alternativa.tanks.model.challenge { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.locale.constants.TextConst; import assets.icons.GarageItemBackground; import controls.DefaultButton; import controls.Label; import controls.TankWindowInner; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; import forms.TankWindowWithHeader; public class ChallengeCongratulationWindow extends Sprite { [Embed(source="774.png")] private static const congratsBitmap:Class; [Embed(source="1104.png")] private static const healthBitmap:Class; [Embed(source="889.png")] private static const armorBitmap:Class; [Embed(source="867.png")] private static const damageBitmap:Class; [Embed(source="997.png")] private static const n2oBitmap:Class; [Embed(source="996.png")] private static const mineBitmap:Class; [Embed(source="826.png")] private static const cryBitmap:Class; [Embed(source="951.png")] private static const flowBitmap:Class; [Embed(source="938.png")] private static const impulseBitmap:Class; [Embed(source="1035.png")] private static const white_khokhlomaBitmap:Class; [Embed(source="961.png")] private static const floraBitmap:Class; [Embed(source="1048.png")] private static const foresterBitmap:Class; [Embed(source="1111.png")] private static const lavaBitmap:Class; [Embed(source="978.png")] private static const leadBitmap:Class; [Embed(source="1159.png")] private static const marineBitmap:Class; [Embed(source="843.png")] private static const marshBitmap:Class; [Embed(source="1105.png")] private static const metallicBitmap:Class; [Embed(source="1172.png")] private static const safariBitmap:Class; [Embed(source="1187.png")] private static const stormBitmap:Class; [Embed(source="927.png")] private static const maryBitmap:Class; private var bitmap:Bitmap; private var window:TankWindowWithHeader; private var innerWindow:TankWindowInner; private var congratsText:Label; public var closeBtn:DefaultButton; public var windowWidth; public var windowHeight; public function ChallengeCongratulationWindow(prizes:Array) { this.bitmap = new Bitmap(new congratsBitmap().bitmapData); this.window = TankWindowWithHeader.createWindow(ILocaleService(Main.osgi.getService(ILocaleService)).getText(TextConst.CONGRATS_WINDOW_TEXT)); this.innerWindow = new TankWindowInner(0,0,TankWindowInner.GREEN); this.congratsText = new Label(); this.closeBtn = new DefaultButton(); super(); this.window.width = 460; this.windowWidth = 460; this.window.height = 405; this.windowHeight = 405; addChild(this.window); this.innerWindow.width = this.window.width - 30; this.innerWindow.height = this.window.height - 65; this.innerWindow.x = 15; this.innerWindow.y = 15; addChild(this.innerWindow); this.bitmap.x = this.innerWindow.width / 2 - this.bitmap.width / 2; this.bitmap.y = 5; this.innerWindow.addChild(this.bitmap); this.congratsText.color = 5898034; this.congratsText.text = ILocaleService(Main.osgi.getService(ILocaleService)).getText(TextConst.CONGRATS_WINDOW_CONGRATS_TEXT); this.congratsText.x = 5; this.congratsText.y = this.bitmap.height + 10; this.innerWindow.addChild(this.congratsText); this.closeBtn.x = this.window.width - this.closeBtn.width - 15; this.closeBtn.y = this.window.height - this.closeBtn.height - 15; this.closeBtn.label = ILocaleService(Main.osgi.getService(ILocaleService)).getText(TextConst.FREE_BONUSES_WINDOW_BUTTON_CLOSE_TEXT); addChild(this.closeBtn); this.setPrizes(prizes); } private function setPrizes(prizes:Array) : void { var prize:ChallengePrizeInfo = null; var panel:GarageItemBackground = null; var previewBd:BitmapData = null; var preview:Bitmap = null; var numLabel:Label = null; var i:int = 0; for each(prize in prizes) { panel = new GarageItemBackground(GarageItemBackground.ENGINE_NORMAL); panel.x = prizes.length < 2 ? Number(this.innerWindow.width / 2 - panel.width / 2) : Number(i + 10); panel.y = this.congratsText.y + this.congratsText.height + 10; this.innerWindow.addChild(panel); previewBd = this.getBitmap(prize.nameId); preview = new Bitmap(previewBd); preview.x = panel.width / 2 - preview.width / 2; preview.y = panel.height / 2 - preview.height / 2; panel.addChild(preview); numLabel = new Label(); panel.addChild(numLabel); numLabel.size = 16; numLabel.color = 5898034; numLabel.text = "×" + prize.count; numLabel.x = panel.width - numLabel.width - 15; numLabel.y = panel.height - numLabel.height - 10; i += panel.width + 10; } } private function getBitmap(id:String) : BitmapData { switch(id) { case "health_m0": return new healthBitmap().bitmapData; case "armor_m0": return new armorBitmap().bitmapData; case "double_damage_m0": return new damageBitmap().bitmapData; case "n2o_m0": return new n2oBitmap().bitmapData; case "mine_m0": return new mineBitmap().bitmapData; case "crystalls_m0": return new cryBitmap().bitmapData; case "flow_m0": return new flowBitmap().bitmapData; case "storm_m0": return new stormBitmap().bitmapData; case "mary_m0": return new maryBitmap().bitmapData; case "safari_m0": return new safariBitmap().bitmapData; case "lead_m0": return new leadBitmap().bitmapData; case "lava_m0": return new lavaBitmap().bitmapData; case "metallic_m0": return new metallicBitmap().bitmapData; case "forester_m0": return new foresterBitmap().bitmapData; case "marsh_m0": return new marshBitmap().bitmapData; case "marine_m0": return new marineBitmap().bitmapData; case "flora_m0": return new floraBitmap().bitmapData; case "impulse_m0": return new impulseBitmap().bitmapData; case "white_khokhloma_m0": return new white_khokhlomaBitmap().bitmapData; default: return new cryBitmap().bitmapData; } } } }
package projects.tanks.client.battlefield.models.user.tank.commands { public class TurretStateCommand { private var _controlInput:Number; private var _controlType:TurretControlType; private var _direction:Number; private var _rotationSpeedNumber:int; public function TurretStateCommand(param1:Number = 0, param2:TurretControlType = null, param3:Number = 0, param4:int = 0) { super(); this._controlInput = param1; this._controlType = param2; this._direction = param3; this._rotationSpeedNumber = param4; } public function get controlInput() : Number { return this._controlInput; } public function set controlInput(param1:Number) : void { this._controlInput = param1; } public function get controlType() : TurretControlType { return this._controlType; } public function set controlType(param1:TurretControlType) : void { this._controlType = param1; } public function get direction() : Number { return this._direction; } public function set direction(param1:Number) : void { this._direction = param1; } public function get rotationSpeedNumber() : int { return this._rotationSpeedNumber; } public function set rotationSpeedNumber(param1:int) : void { this._rotationSpeedNumber = param1; } public function toString() : String { var local1:String = "TurretStateCommand ["; local1 += "controlInput = " + this.controlInput + " "; local1 += "controlType = " + this.controlType + " "; local1 += "direction = " + this.direction + " "; local1 += "rotationSpeedNumber = " + this.rotationSpeedNumber + " "; return local1 + "]"; } } }
package alternativa.tanks.models.weapon.artillery { import alternativa.tanks.models.weapon.artillery.sfx.ArtilleryEffects; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ArtilleryEffectsProviderAdapt implements ArtilleryEffectsProvider { private var object:IGameObject; private var impl:ArtilleryEffectsProvider; public function ArtilleryEffectsProviderAdapt(param1:IGameObject, param2:ArtilleryEffectsProvider) { super(); this.object = param1; this.impl = param2; } public function getArtilleryEffects() : ArtilleryEffects { var result:ArtilleryEffects = null; try { Model.object = this.object; result = this.impl.getArtilleryEffects(); } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.view.forms { import alternativa.tanks.loader.ILoaderWindowService; import alternativa.tanks.loader.IModalLoaderService; import alternativa.tanks.view.events.InviteFormOkButtonEvent; import controls.TankWindow; import controls.base.DefaultButtonBase; import controls.base.LabelBase; import controls.base.TankInputBase; import flash.display.Sprite; import flash.events.Event; import flash.events.KeyboardEvent; import flash.events.MouseEvent; import flash.geom.Point; import flash.ui.Keyboard; public class InviteForm extends Sprite { [Inject] public static var loaderWindowService:ILoaderWindowService; [Inject] public static var modalLoaderService:IModalLoaderService; private const windowMargin:int = 11; private const buttonSize:Point = new Point(104,33); private const inputWidth:int = 300; private var window:TankWindow; private var label:LabelBase; private var input:TankInputBase; private var okButton:DefaultButtonBase; public function InviteForm() { super(); addEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); } private function onAddedToStage(param1:Event) : void { var event:Event = param1; this.window = new TankWindow(); addChild(this.window); this.window.width = this.inputWidth + this.windowMargin * 2; this.label = new LabelBase(); addChild(this.label); this.label.bold = true; this.label.text = "Please, enter your invite code and keep it:"; this.label.x = Math.round((this.window.width - this.label.textWidth) * 0.5) - 7; this.label.y = this.windowMargin; this.input = new TankInputBase(); addChild(this.input); this.input.width = this.inputWidth; this.input.x = Math.round((this.window.width - this.input.width) * 0.5) + 5; this.input.y = this.label.y + this.label.textHeight + 5; this.okButton = new DefaultButtonBase(); addChild(this.okButton); this.okButton.label = "Ok"; this.okButton.x = Math.round((this.window.width - this.buttonSize.x) * 0.5); this.okButton.y = this.input.y + this.input.height + 5; this.okButton.addEventListener(MouseEvent.CLICK,function(param1:MouseEvent):void { dispatchEvent(new InviteFormOkButtonEvent()); }); this.input.addEventListener(KeyboardEvent.KEY_DOWN,function(param1:KeyboardEvent):void { if(param1.keyCode == Keyboard.ENTER) { dispatchEvent(new InviteFormOkButtonEvent()); } }); this.window.height = this.okButton.y + this.buttonSize.y + this.windowMargin; this.alignInviteWindow(); stage.addEventListener(Event.RESIZE,this.alignInviteWindow); addEventListener(Event.REMOVED_FROM_STAGE,function(param1:Event):void { stage.removeEventListener(Event.RESIZE,alignInviteWindow); }); loaderWindowService.hide(); modalLoaderService.hideForcibly(); } public function get code() : String { return this.input.textField.text; } public function set code(param1:String) : void { this.input.textField.text = param1; } public function showInviteError() : void { this.label.text = "Invite code is not valid"; this.label.color = 6684672; this.label.thickness = 100; this.label.sharpness = -100; this.label.x = Math.round((this.window.width - this.label.textWidth) * 0.5) - 7; } private function alignInviteWindow(param1:Event = null) : void { x = Math.round((stage.stageWidth - width) * 0.5); y = Math.round((stage.stageHeight - height) * 0.5); } } }
package projects.tanks.client.battlefield.models.ultimate.effects.mammoth { import alternativa.types.Long; public interface IMammothUltimateModelBase { function activateField() : void; function damageByField(param1:Long) : void; function deactivateField() : void; } }
package projects.tanks.clients.tankslauncershared.dishonestprogressbar { import mx.core.BitmapAsset; [Embed(source="/_assets/projects.tanks.clients.tankslauncershared.dishonestprogressbar.LoadingLabel_loadingLabelCnClass.png")] public class LoadingLabel_loadingLabelCnClass extends BitmapAsset { public function LoadingLabel_loadingLabelCnClass() { super(); } } }
package alternativa.tanks.battle.objects.tank.controllers { import alternativa.osgi.service.display.IDisplay; import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.LogicUnit; import alternativa.tanks.battle.objects.tank.WeaponMount; import alternativa.tanks.battle.objects.tank.WeaponPlatform; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.models.weapon.shaft.ShaftAimingStateListener; import alternativa.tanks.models.weapon.shaft.ShaftAimingType; import alternativa.tanks.models.weapon.shaft.ShaftWeapon; import alternativa.tanks.service.settings.ISettingsService; import alternativa.tanks.service.settings.keybinding.GameActionEnum; import alternativa.tanks.services.battleinput.BattleInputService; import alternativa.tanks.services.battleinput.GameActionListener; import alternativa.tanks.services.battleinput.MouseLockListener; import alternativa.tanks.services.battleinput.MouseMovementListener; import flash.display.Stage; import flash.utils.Dictionary; import projects.tanks.client.battlefield.models.user.tank.commands.TurretControlType; public class LocalShaftController implements ShaftAimingStateListener, GameActionListener, MouseLockListener, MouseMovementListener, LogicUnit { [Inject] public static var battleService:BattleService; [Inject] public static var battleInputService:BattleInputService; [Inject] public static var display:IDisplay; [Inject] public static var settings:ISettingsService; private static const actionsMap:TurretActions = createActionsMap(); private var weaponPlatform:WeaponPlatform; private var weapon:ShaftWeapon; private var weaponMount:WeaponMount; private var localTurretController:LocalTurretController; private var isMouseLocked:Boolean = false; private var isActive:Boolean = false; private var left:Boolean = false; private var right:Boolean = false; private var up:Boolean = false; private var down:Boolean = false; private var mouseMovementX:Number = 0; private var mouseMovementY:Number = 0; private var isInitialKeyboardActionsSetup:Boolean = false; private var initialKeyboardActions:Dictionary = new Dictionary(); private var lockedDirection:Number = 0; private var isLookAround:Boolean = false; public function LocalShaftController(param1:WeaponPlatform, param2:ShaftWeapon, param3:LocalTurretController) { super(); this.weaponPlatform = param1; this.weapon = param2; this.weaponMount = param1.getWeaponMount(); this.localTurretController = param3; } private static function createActionsMap() : TurretActions { var local1:TurretActions = new TurretActions(); local1.setMapping(GameActionEnum.ROTATE_TURRET_LEFT,TurretActions.LEFT); local1.setMapping(GameActionEnum.ROTATE_TURRET_RIGHT,TurretActions.RIGHT); local1.setMapping(GameActionEnum.CENTER_TURRET,TurretActions.CENTER); local1.setMapping(GameActionEnum.CHASSIS_LEFT_MOVEMENT,TurretActions.LEFT); local1.setMapping(GameActionEnum.CHASSIS_RIGHT_MOVEMENT,TurretActions.RIGHT); local1.setMapping(GameActionEnum.CHASSIS_FORWARD_MOVEMENT,TurretActions.UP); local1.setMapping(GameActionEnum.CHASSIS_BACKWARD_MOVEMENT,TurretActions.DOWN); return local1; } public function destroy() : void { this.removeAllListeners(); } private function removeAllListeners() : void { battleService.getBattleRunner().removeInputProcessor(this); battleInputService.removeGameActionListener(this); battleInputService.removeMouseLockListener(this); battleInputService.removeMouseMoveListener(this); } public function onAimingStart() : void { if(!this.isActive) { this.isActive = true; this.localTurretController.disable(); this.left = false; this.right = false; this.up = false; this.down = false; this.isMouseLocked = false; this.isLookAround = false; this.mouseMovementX = 0; this.mouseMovementY = 0; battleService.getBattleRunner().addInputProcessor(this); battleInputService.addMouseLockListener(this); this.isInitialKeyboardActionsSetup = this.isMouseLocked; this.initialKeyboardActions = new Dictionary(); battleInputService.addGameActionListener(this); this.isInitialKeyboardActionsSetup = false; } } public function onAimingStop() : void { if(this.isActive) { this.isActive = false; this.removeAllListeners(); if(this.weaponMount.getTurretRealControlType() == TurretControlType.ROTATION_DIRECTION) { this.weaponMount.setTurretControlState(TurretControlType.ROTATION_DIRECTION,0,0); } this.localTurretController.enable(); } } public function onAimedShot() : void { this.removeAllListeners(); } public function onGameAction(param1:GameActionEnum, param2:Boolean) : void { if(param1 == GameActionEnum.LOOK_AROUND) { this.handleLookaround(param2); return; } var local3:* = actionsMap.getTurretAction(param1); if(local3 != null) { if(this.isInitialKeyboardActionsSetup) { this.initialKeyboardActions[param1] = true; } else if(this.initialKeyboardActions[param1] != null) { delete this.initialKeyboardActions[param1]; } else { switch(local3) { case TurretActions.LEFT: this.rotateLeft(param2); break; case TurretActions.RIGHT: this.rotateRight(param2); break; case TurretActions.CENTER: this.center(param2); break; case TurretActions.UP: this.rotateUp(param2); break; case TurretActions.DOWN: this.rotateDown(param2); } } } } private function handleLookaround(param1:Boolean) : void { this.isLookAround = param1; this.weapon.pauseElevation(param1); if(param1) { this.lockedDirection = this.weaponMount.getTurretPhysicsDirection(); } } private function rotateLeft(param1:Boolean) : void { this.left = param1; this.setDirectionalTurretRotation(); } private function rotateRight(param1:Boolean) : void { this.right = param1; this.setDirectionalTurretRotation(); } private function setDirectionalTurretRotation() : void { this.setDirectionalAmingType(); var local1:int = int(this.left) - int(this.right); this.weaponMount.setTurretControlState(TurretControlType.ROTATION_DIRECTION,local1,Turret.TURN_SPEED_COUNT); } private function center(param1:Boolean) : void { if(param1 && !(this.left || this.right)) { this.setDirectionalAmingType(); this.weaponMount.setTurretControlState(TurretControlType.TARGET_ANGLE_LOCAL,0,Turret.TURN_SPEED_COUNT); } } private function rotateUp(param1:Boolean) : void { this.up = param1; this.setDirectionalElevation(); } private function rotateDown(param1:Boolean) : void { this.down = param1; this.setDirectionalElevation(); } private function setDirectionalElevation() : void { this.setDirectionalAmingType(); this.weapon.setElevationDirecton(int(this.up) - int(this.down)); } private function setDirectionalAmingType() : void { this.isLookAround = false; battleInputService.releaseMouse(); this.weapon.setAimingType(ShaftAimingType.DIRECTIONAL); } public function onMouseLock(param1:Boolean) : void { if(this.isMouseLocked != param1) { this.isMouseLocked = param1; if(param1) { battleInputService.addMouseMoveListener(this); this.weapon.setAimingType(ShaftAimingType.MOUSE); } else { this.mouseMovementX = 0; this.mouseMovementY = 0; battleInputService.removeMouseMoveListener(this); } } } public function onMouseRelativeMovement(param1:Number, param2:Number) : void { this.mouseMovementX += param1; this.mouseMovementY += param2 * (!!settings.mouseYInverseShaftAim ? -1 : 1); } public function runLogic(param1:int, param2:int) : void { var local3:Number = NaN; if(this.isMouseLocked) { this.weapon.changeTargetElevation(-this.mouseMovementY * this.getCameraVerticalFov() / display.stage.stageHeight); this.weapon.changeTargetDirection(-this.mouseMovementX * this.getCameraHorizontalFov() / display.stage.stageWidth); local3 = this.isLookAround ? this.lockedDirection : this.weapon.getTargetDirection(); this.weaponMount.setTurretControlState(TurretControlType.TARGET_ANGLE_LOCAL,local3,Turret.TURN_SPEED_COUNT); this.mouseMovementX = 0; this.mouseMovementY = 0; } } private function getCameraVerticalFov() : Number { return 2 * Math.atan(display.stage.stageHeight / (2 * this.getCameraFocalLen())); } private function getCameraHorizontalFov() : Number { return 2 * Math.atan(display.stage.stageWidth / (2 * this.getCameraFocalLen())); } private function getCameraFocalLen() : Number { var local1:Stage = display.stage; var local2:GameCamera = battleService.getBattleScene3D().getCamera(); return Math.sqrt(local1.stageWidth * local1.stageWidth + local1.stageHeight * local1.stageHeight) / (2 * Math.tan(local2.fov * 0.5)); } } }
package projects.tanks.client.battlefield.models.tankparts.weapon.gauss.sfx { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; public class GaussSFXModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function GaussSFXModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package alternativa.tanks.controller.events { import flash.events.Event; public class NavigationEvent extends Event { public static const GO_TO_REGISTRATION_FORM:String = "NavigationEvent.GO_TO_REGISTRATION"; public static const GO_TO_LOGIN_FORM:String = "NavigationEvent.GO_TO_LOGIN_FORM"; public static const GO_TO_RESTORE_PASSWORD_FORM:String = "NavigationEvent.GO_TO_RESTORE_PASSWORD_FORM"; public static const GO_TO_INVITE_FORM:String = "NavigationEvent.GO_TO_INVITE_FORM"; public static const GO_TO_STAND_ALONE_CAPTCHA:String = "NavigationEvent.GO_TO_STAND_ALONE_CAPTCHA"; public static const GO_TO_CHANGE_EMAIL_AND_PASSWORD_FORM:String = "NavigationEvent.GO_TO_CHANGE_EMAIL_AND_PASSWORD_FORM"; public function NavigationEvent(param1:String) { super(param1); } override public function clone() : Event { return new NavigationEvent(type); } } }
package controls.rangicons { import mx.core.BitmapAsset; [ExcludeClass] public class RangIcon_p17 extends BitmapAsset { public function RangIcon_p17() { super(); } } }
package alternativa.tanks.models.weapon.turret { import alternativa.tanks.battle.objects.tank.controllers.LocalTurretController; import alternativa.tanks.battle.objects.tank.controllers.Turret; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IRotatingTurretModelAdapt implements IRotatingTurretModel { private var object:IGameObject; private var impl:IRotatingTurretModel; public function IRotatingTurretModelAdapt(param1:IGameObject, param2:IRotatingTurretModel) { super(); this.object = param1; this.impl = param2; } public function getLocalTurretController() : LocalTurretController { var result:LocalTurretController = null; try { Model.object = this.object; result = this.impl.getLocalTurretController(); } finally { Model.popObject(); } return result; } public function getTurret() : Turret { var result:Turret = null; try { Model.object = this.object; result = this.impl.getTurret(); } finally { Model.popObject(); } return result; } } }
package alternativa.proplib.objects { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.core.Face; import alternativa.engine3d.core.Object3D; import alternativa.engine3d.loaders.Parser3DS; import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.Mesh; import alternativa.engine3d.objects.Occluder; import alternativa.proplib.utils.ByteArrayMap; import alternativa.proplib.utils.TextureByteDataMap; import alternativa.utils.textureutils.TextureByteData; import flash.utils.ByteArray; public class PropMesh extends PropObject { public static const DEFAULT_TEXTURE:String = "$$$_DEFAULT_TEXTURE_$$$"; public static var threshold:Number = 0.01; public static var occluderDistanceThreshold:Number = 0.01; public static var occluderAngleThreshold:Number = 0.01; public static var occluderConvexThreshold:Number = 0.01; public static var occluderUvThreshold:int = 1; public static var meshDistanceThreshold:Number = 0.001; public static var meshUvThreshold:Number = 0.001; public static var meshAngleThreshold:Number = 0.001; public static var meshConvexThreshold:Number = 0.01; public var textures:TextureByteDataMap; public var occluders:Vector.<Occluder>; public function PropMesh(modelData:ByteArray, objectName:String, textureFiles:Object, files:ByteArrayMap, imageMap:TextureByteDataMap) { super(PropObjectType.MESH); this.parseModel(modelData,objectName,textureFiles,files,imageMap); } private function parseModel(modelData:ByteArray, objectName:String, textureFiles:Object, files:ByteArrayMap, imageMap:TextureByteDataMap) : void { var textureName:String = null; var textureFileName:String = null; var textureByteData:TextureByteData = null; var mesh:Mesh = this.processObjects(modelData,objectName); this.initMesh(mesh); this.object = mesh; var defaultTextureFileName:String = this.getTextureFileName(mesh); if(defaultTextureFileName == null && textureFiles == null) { throw new Error("PropMesh: no textures found"); } if(textureFiles == null) { textureFiles = {}; } if(defaultTextureFileName != null) { textureFiles[PropMesh.DEFAULT_TEXTURE] = defaultTextureFileName; } this.textures = new TextureByteDataMap(); for(textureName in textureFiles) { textureFileName = textureFiles[textureName]; if(imageMap == null) { textureByteData = new TextureByteData(files.getValue(textureFileName),null); } else { textureByteData = imageMap.getValue(textureFileName); } this.textures.putValue(textureName,textureByteData); } } private function processObjects(modelData:ByteArray, objectName:String) : Mesh { var currObject:Object3D = null; var currObjectName:String = null; modelData.position = 0; var parser:Parser3DS = new Parser3DS(); parser.parse(modelData); var objects:Vector.<Object3D> = parser.objects; var numObjects:int = int(objects.length); var mesh:Mesh = null; for(var i:int = 0; i < numObjects; i++) { currObject = objects[i]; currObjectName = currObject.name.toLowerCase(); if(currObjectName.indexOf("occl") == 0) { this.addOccluder(Mesh(currObject)); } else if(objectName == currObjectName) { mesh = Mesh(currObject); } } return mesh != null ? mesh : Mesh(objects[0]); } private function getTextureFileName(mesh:Mesh) : String { var material:TextureMaterial = null; var face:Face = mesh.alternativa3d::faceList; while(face != null) { material = face.material as TextureMaterial; if(material != null) { return material.diffuseMapURL.toLowerCase(); } face = face.alternativa3d::next; } return null; } private function addOccluder(mesh:Mesh) : void { mesh.weldVertices(occluderDistanceThreshold,occluderUvThreshold); mesh.weldFaces(occluderAngleThreshold,occluderUvThreshold,occluderConvexThreshold); var occluder:Occluder = new Occluder(); occluder.createForm(mesh,true); occluder.x = mesh.x; occluder.y = mesh.y; occluder.z = mesh.z; occluder.rotationX = mesh.rotationX; occluder.rotationY = mesh.rotationY; occluder.rotationZ = mesh.rotationZ; if(this.occluders == null) { this.occluders = new Vector.<Occluder>(); } this.occluders.push(occluder); } private function initMesh(mesh:Mesh) : void { mesh.weldVertices(meshDistanceThreshold,meshUvThreshold); mesh.weldFaces(meshAngleThreshold,meshUvThreshold,meshConvexThreshold); mesh.threshold = threshold; } override public function traceProp() : void { var textureName:String = null; var textureData:TextureByteData = null; super.traceProp(); for(textureName in this.textures) { textureData = this.textures[textureName]; trace("\t" + textureName,textureData.diffuseData.bytesAvailable,textureData.opacityData); } } } }
package projects.tanks.clients.fp10.models.tankspartnersmodel.china.china3rdplatform { import flash.utils.Dictionary; import platform.client.core.general.socialnetwork.types.LoginParameters; import platform.client.fp10.core.service.address.AddressService; import platform.clients.fp10.libraries.alternativapartners.type.IParametersListener; import platform.clients.fp10.libraries.alternativapartners.type.IPartner; import projects.tanks.client.partners.impl.china.china3rdplatform.auth.China3rdPlatformLoginModelBase; import projects.tanks.client.partners.impl.china.china3rdplatform.auth.IChina3rdPlatformLoginModelBase; [ModelInfo] public class China3rdPlatformLoginModel extends China3rdPlatformLoginModelBase implements IChina3rdPlatformLoginModelBase, IPartner { [Inject] public static var addressService:AddressService; private var hasRating:Boolean; public function China3rdPlatformLoginModel() { super(); } public function getLoginParameters(param1:IParametersListener) : void { var local2:Dictionary = this.getParams("timestamp","server","sub_partner_id","user_id","cm","sign"); var local3:String = local2["server"]; this.hasRating = local3 == null || local3 == "" || local3.charAt(0) == "c"; param1.onSetParameters(new LoginParameters(local2)); } public function hasPaymentAction() : Boolean { return false; } public function paymentAction() : void { } public function getFailRedirectUrl() : String { return "http://3dtank.com"; } public function isExternalLoginAllowed() : Boolean { return false; } public function hasRatings() : Boolean { return this.hasRating; } private function getParams(... rest) : Dictionary { var local3:String = null; var local2:Dictionary = new Dictionary(); for each(local3 in rest) { local2[local3] = addressService.getQueryParameter(local3); } return local2; } } }
package projects.tanks.client.entrance.model.entrance.objectdetach { public interface IEntranceObjectDetachModelBase { function objectDetach() : void; } }
package alternativa.tanks.services.spectatorservice { public class SpectatorServiceImpl implements SpectatorService { private var userTitlesVisible:Boolean; public function SpectatorServiceImpl() { super(); } public function getUserTitlesVisible() : Boolean { return this.userTitlesVisible; } public function setUserTitlesVisible(param1:Boolean) : void { this.userTitlesVisible = param1; } } }
package alternativa.tanks.models.battle.battlefield.keyboard { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.keyboard.DeviceIcons_adaptiverechargerailgunIconClass.png")] public class DeviceIcons_adaptiverechargerailgunIconClass extends BitmapAsset { public function DeviceIcons_adaptiverechargerailgunIconClass() { super(); } } }
package alternativa.init { import alternativa.osgi.OSGi; import alternativa.osgi.bundle.IBundleActivator; import alternativa.tanks.bg.BackgroundService; import alternativa.tanks.bg.IBackgroundService; import alternativa.tanks.loader.ILoaderWindowService; import alternativa.tanks.loader.IModalLoaderService; import alternativa.tanks.loader.LoaderWindow; import alternativa.tanks.loader.ModalLoader; import alternativa.tanks.newbieservice.NewbieUserService; import alternativa.tanks.newbieservice.NewbieUserServiceImpl; import alternativa.tanks.tracker.ITrackerService; import alternativa.tanks.tracker.TrackerService; import alternativa.tanks.ymservice.YandexMetricaService; import alternativa.tanks.ymservice.YandexMetricaServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.address.TanksAddressService; import projects.tanks.clients.fp10.libraries.tanksservices.service.address.TanksAddressServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.BattleInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.blockuser.BlockUserService; import projects.tanks.clients.fp10.libraries.tanksservices.service.blockuser.IBlockUserService; import projects.tanks.clients.fp10.libraries.tanksservices.service.blur.BlurService; import projects.tanks.clients.fp10.libraries.tanksservices.service.blur.IBlurService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.DialogsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.IDialogsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher.DialogWindowsDispatcherService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher.IDialogWindowsDispatcherService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.FriendActionService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.FriendInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.IFriendActionService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.IFriendInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.battleinvite.BattleInviteService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.battleinvite.IBattleInviteService; import projects.tanks.clients.fp10.libraries.tanksservices.service.group.GroupInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.group.IGroupInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.groupinvite.GroupInviteService; import projects.tanks.clients.fp10.libraries.tanksservices.service.groupinvite.GroupInviteServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.HelpService; import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.IHelpService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.battlelist.UserBattleSelectActionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.battlelist.UserBattleSelectActionsServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.garage.UserGarageActionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.garage.UserGarageActionsServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.paymentactions.UserPaymentActionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.paymentactions.UserPaymentActionsServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.matchmakinggroup.MatchmakingGroupService; import projects.tanks.clients.fp10.libraries.tanksservices.service.matchmakinggroup.MatchmakingGroupServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.battle.BattleNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.battle.IBattleNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.online.IOnlineNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.online.OnlineNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.BattleUserPremiumService; import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.BattleUserPremiumServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.PremiumService; import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.PremiumServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.probattle.IUserProBattleService; import projects.tanks.clients.fp10.libraries.tanksservices.service.probattle.UserProBattleService; import projects.tanks.clients.fp10.libraries.tanksservices.service.rank.RankService; import projects.tanks.clients.fp10.libraries.tanksservices.service.rank.RankServiceImpl; import projects.tanks.clients.fp10.libraries.tanksservices.service.storage.IStorageService; import projects.tanks.clients.fp10.libraries.tanksservices.service.storage.StorageService; import projects.tanks.clients.fp10.libraries.tanksservices.service.user.IUserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.user.UserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties.IUserPropertiesService; import projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties.UserPropertiesService; import projects.tanks.clients.fp10.libraries.tanksservices.utils.BattleFormatUtil; public class TanksServicesActivator implements IBundleActivator { public static var osgi:OSGi; public function TanksServicesActivator() { super(); } public function start(param1:OSGi) : void { TanksServicesActivator.osgi = param1; var local2:IBackgroundService = new BackgroundService(); param1.registerService(IStorageService,new StorageService(param1.createSharedObject("name"),param1.createSharedObject("accounts"))); param1.registerService(IBackgroundService,local2); param1.registerService(IHelpService,new HelpService()); param1.registerService(IBlurService,new BlurService()); param1.registerService(ITrackerService,new TrackerService()); param1.registerService(ILoaderWindowService,new LoaderWindow()); param1.registerService(IModalLoaderService,new ModalLoader()); param1.registerService(IUserInfoService,new UserInfoService()); param1.registerService(IFriendInfoService,new FriendInfoService()); param1.registerService(IFriendActionService,new FriendActionService()); param1.registerService(IUserPropertiesService,new UserPropertiesService()); param1.registerService(IDialogWindowsDispatcherService,new DialogWindowsDispatcherService()); param1.registerService(IOnlineNotifierService,new OnlineNotifierService()); param1.registerService(IBattleNotifierService,new BattleNotifierService()); param1.registerService(IBattleInviteService,new BattleInviteService()); param1.registerService(IBlockUserService,new BlockUserService()); param1.registerService(TanksAddressService,new TanksAddressServiceImpl()); param1.registerService(IBattleInfoService,new BattleInfoService()); param1.registerService(IDialogsService,new DialogsService()); param1.registerService(IUserProBattleService,new UserProBattleService()); param1.registerService(BattleFormatUtil,new BattleFormatUtil()); param1.registerService(PremiumService,new PremiumServiceImpl()); param1.registerService(BattleUserPremiumService,new BattleUserPremiumServiceImpl()); param1.registerService(RankService,new RankServiceImpl()); param1.registerService(MatchmakingGroupService,new MatchmakingGroupServiceImpl()); param1.registerService(UserPaymentActionsService,new UserPaymentActionsServiceImpl()); param1.registerService(UserGarageActionsService,new UserGarageActionsServiceImpl()); param1.registerService(UserBattleSelectActionsService,new UserBattleSelectActionsServiceImpl()); param1.registerService(YandexMetricaService,new YandexMetricaServiceImpl()); param1.registerService(NewbieUserService,new NewbieUserServiceImpl()); param1.registerService(GroupInviteService,new GroupInviteServiceImpl()); param1.registerService(IGroupInfoService,new GroupInfoService()); local2.showBg(); } public function stop(param1:OSGi) : void { } } }
package alternativa.tanks.models.battle.facilities { [ModelInterface] public interface FacilitySphericalZone { function getRadius() : Number; function getCenterOffsetZ() : Number; } }
package alternativa.tanks.model.payment.shop { import alternativa.tanks.gui.shop.shopitems.item.details.ShopItemDetails; [ModelInterface] public interface ShopItemDetailsView { function getDetailsView() : ShopItemDetails; function isDetailedViewRequired() : Boolean; } }
package alternativa.tanks.sfx.christmas { import mx.core.BitmapAsset; [ExcludeClass] public class ChristmasTreeToyEffect_BlueTexture extends BitmapAsset { public function ChristmasTreeToyEffect_BlueTexture() { super(); } } }
package alternativa.tanks.service.money { public interface IMoneyListener { function crystalsChanged(param1:int) : void; } }
package projects.tanks.client.garage.skins { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.network.command.SpaceCommand; import platform.client.fp10.core.type.IGameObject; import platform.client.fp10.core.type.ISpace; public class MountSkinItemModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _mountSkinId:Long = Long.getLong(1313185646,-234635884); private var _mountSkin_skinCodec:ICodec; private var model:IModel; public function MountSkinItemModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); this._mountSkin_skinCodec = this.protocol.getCodec(new TypeCodecInfo(IGameObject,false)); } public function mountSkin(param1:IGameObject) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._mountSkin_skinCodec.encode(this.protocolBuffer,param1); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local2:SpaceCommand = new SpaceCommand(Model.object.id,this._mountSkinId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } } }
package projects.tanks.client.battleselect.model.battle.team { import alternativa.types.Long; import projects.tanks.client.battleselect.model.battle.entrance.user.BattleInfoUser; import projects.tanks.client.battleservice.model.battle.team.BattleTeam; public interface ITeamBattleInfoModelBase { function addUser(param1:BattleInfoUser, param2:BattleTeam) : void; function removeUser(param1:Long) : void; function swapTeams() : void; function updateTeamScore(param1:BattleTeam, param2:int) : void; function updateUserScore(param1:Long, param2:int) : void; } }
package alternativa.tanks.sfx { import alternativa.engine3d.core.Vertex; import alternativa.engine3d.objects.Mesh; public class SimplePlane extends Mesh { protected var a:Vertex; protected var b:Vertex; protected var c:Vertex; protected var d:Vertex; private var originX:Number; private var originY:Number; public function SimplePlane(param1:Number, param2:Number, param3:Number, param4:Number) { super(); this.originX = param3; this.originY = param4; boundMinX = -param3 * param1; boundMaxX = boundMinX + param1; boundMinY = -param4 * param2; boundMaxY = boundMinY + param2; boundMinZ = 0; boundMaxZ = 0; var _loc5_:Vector.<Number> = Vector.<Number>([boundMinX,boundMinY,0,boundMaxX,boundMinY,0,boundMaxX,boundMaxY,0,boundMinX,boundMaxY,0]); var _loc6_:Vector.<Number> = Vector.<Number>([0,1,1,1,1,0,0,0]); var _loc7_:Vector.<int> = Vector.<int>([4,0,1,2,3]); addVerticesAndFaces(_loc5_,_loc6_,_loc7_,true); calculateFacesNormals(); this.writeVertices(); } private function writeVertices() : void { var _loc1_:Vector.<Vertex> = this.vertices; this.a = _loc1_[0]; this.b = _loc1_[1]; this.c = _loc1_[2]; this.d = _loc1_[3]; } public function setUVs(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number) : void { this.a.u = param1; this.a.v = param2; this.b.u = param3; this.b.v = param4; this.c.u = param5; this.c.v = param6; this.d.u = param7; this.d.v = param8; } public function set width(param1:Number) : void { boundMinX = this.a.x = this.d.x = -this.originX * param1; boundMaxX = this.b.x = this.c.x = boundMinX + param1; } public function get length() : Number { return boundMaxY - boundMinY; } public function set length(param1:Number) : void { boundMinY = this.a.y = this.b.y = -this.originY * param1; boundMaxY = this.d.y = this.c.y = boundMinY + param1; } public function resize(param1:Number, param2:Number) : void { this.width = param1; this.length = param2; } } }
package alternativa.tanks.gui.friends.list.renderer.background { import controls.cellrenderer.CellNormal; public class FriendCellNormal extends CellNormal { public function FriendCellNormal() { super(); } } }
package projects.tanks.client.battlefield.models.ultimate.effects.hunter { public class TankStunCC { private var _stunned:Boolean; public function TankStunCC(param1:Boolean = false) { super(); this._stunned = param1; } public function get stunned() : Boolean { return this._stunned; } public function set stunned(param1:Boolean) : void { this._stunned = param1; } public function toString() : String { var local1:String = "TankStunCC ["; local1 += "stunned = " + this.stunned + " "; return local1 + "]"; } } }
package _codec.projects.tanks.client.battlefield.models.battle.battlefield.billboard.billboardimage { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.battlefield.models.battle.battlefield.billboard.billboardimage.BillboardImageCC; public class VectorCodecBillboardImageCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecBillboardImageCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(BillboardImageCC,false)); if(this.optionalElement) { this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } public function decode(param1:ProtocolBuffer) : Object { var local2:int = int(LengthCodecHelper.decodeLength(param1)); var local3:Vector.<BillboardImageCC> = new Vector.<BillboardImageCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = BillboardImageCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:BillboardImageCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<BillboardImageCC> = Vector.<BillboardImageCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.model.garage { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class GaragePurchaseConfirmationAdapt implements GaragePurchaseConfirmation { private var object:IGameObject; private var impl:GaragePurchaseConfirmation; public function GaragePurchaseConfirmationAdapt(param1:IGameObject, param2:GaragePurchaseConfirmation) { super(); this.object = param1; this.impl = param2; } public function showConfirmationAlert(param1:int) : void { var cost:int = param1; try { Model.object = this.object; this.impl.showConfirmationAlert(cost); } finally { Model.popObject(); } } } }
package alternativa.tanks.models.weapon.terminator { import alternativa.math.Vector3; import alternativa.physics.Body; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class TerminatorAdapt implements Terminator { private var object:IGameObject; private var impl:Terminator; public function TerminatorAdapt(param1:IGameObject, param2:Terminator) { super(); this.object = param1; this.impl = param2; } public function primaryCharge(param1:int, param2:int) : void { var time:int = param1; var barrelIndex:int = param2; try { Model.object = this.object; this.impl.primaryCharge(time,barrelIndex); } finally { Model.popObject(); } } public function primaryShot(param1:int, param2:Vector3, param3:Vector.<Body>, param4:Vector.<Vector3>, param5:int) : void { var time:int = param1; var staticHitPoint:Vector3 = param2; var targets:Vector.<Body> = param3; var targetHitPoints:Vector.<Vector3> = param4; var barrelIndex:int = param5; try { Model.object = this.object; this.impl.primaryShot(time,staticHitPoint,targets,targetHitPoints,barrelIndex); } finally { Model.popObject(); } } public function primaryDummyShot(param1:int, param2:int) : void { var time:int = param1; var barrelIndex:int = param2; try { Model.object = this.object; this.impl.primaryDummyShot(time,barrelIndex); } finally { Model.popObject(); } } public function secondaryOpen(param1:int) : void { var time:int = param1; try { Model.object = this.object; this.impl.secondaryOpen(time); } finally { Model.popObject(); } } public function secondaryHide(param1:int) : void { var time:int = param1; try { Model.object = this.object; this.impl.secondaryHide(time); } finally { Model.popObject(); } } } }
package alternativa.tanks.models.battle.battlefield.keyboard { import alternativa.osgi.service.display.IDisplay; import alternativa.tanks.battle.events.BattleEventDispatcher; import alternativa.tanks.battle.events.BattleEventListener; import alternativa.tanks.battle.events.TankLoadedEvent; import alternativa.tanks.display.usertitle.UserTitle; import alternativa.tanks.model.garage.resistance.ResistancesIcons; import alternativa.tanks.models.tank.LocalTankInfoService; import alternativa.tanks.models.tank.device.TankDevice; import alternativa.tanks.models.tank.resistance.TankResistances; import alternativa.tanks.service.settings.keybinding.GameActionEnum; import alternativa.tanks.services.battlegui.BattleGUIService; import alternativa.tanks.services.battlegui.BattleGUIServiceEvent; import alternativa.tanks.services.battleinput.BattleInputService; import alternativa.tanks.services.battleinput.GameActionListener; import alternativa.utils.removeDisplayObject; import base.DiscreteSprite; import flash.display.Bitmap; import flash.display.BitmapData; import flash.events.Event; import platform.client.fp10.core.type.AutoClosable; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.battlefield.models.user.resistance.TankResistance; public class AdditionUserTitleSwitcher implements BattleEventListener, GameActionListener, AutoClosable { [Inject] public static var battleInputService:BattleInputService; [Inject] public static var display:IDisplay; [Inject] public static var battleEventDispatcher:BattleEventDispatcher; [Inject] public static var battleGuiService:BattleGUIService; [Inject] public static var localTankService:LocalTankInfoService; private static const RESISTANCE_ICON_SIZE:int = 34; private var ownResistances:Bitmap; private var ownDevice:Bitmap; public function AdditionUserTitleSwitcher() { super(); battleEventDispatcher.addBattleEventListener(TankLoadedEvent,this); battleInputService.addGameActionListener(this); } public function onGameAction(param1:GameActionEnum, param2:Boolean) : void { if(param1 == GameActionEnum.SHOW_TANK_PARAMETERS) { UserTitle.showAddition = param2; if(this.ownResistances != null) { this.ownResistances.visible = param2; } if(this.ownDevice != null) { this.ownDevice.visible = param2; } } } private function onResize(param1:Event = null) : void { if(this.ownResistances != null) { this.ownResistances.x = display.stage.stageWidth - this.ownResistances.width >> 1; this.ownResistances.y = display.stage.stageHeight - 103; } if(this.ownDevice != null) { this.ownDevice.x = display.stage.stageWidth - this.ownDevice.width >> 1; this.ownDevice.y = display.stage.stageHeight - (this.ownResistances == null ? 123 : 163); } } public function handleBattleEvent(param1:Object) : void { var local2:TankLoadedEvent = TankLoadedEvent(param1); if(local2.isLocal) { this.clearOwnResistances(); this.clearOwnDevice(); display.stage.addEventListener(Event.RESIZE,this.onResize,false,-1); battleGuiService.addEventListener(BattleGUIServiceEvent.ON_CHANGE_POSITION_DEFAULT_LAYOUT,this.onResize); this.createOwnResistances(); this.createOwnDevice(); } } private function createOwnResistances() : void { var local1:DiscreteSprite = null; var local6:TankResistance = null; var local7:Bitmap = null; var local8:Bitmap = null; var local9:BitmapData = null; local1 = new DiscreteSprite(); local1.visible = false; battleGuiService.getGuiContainer().addChild(local1); var local2:IGameObject = localTankService.getLocalTankObject(); var local3:TankResistances = TankResistances(local2.adapt(TankResistances)); var local4:Vector.<TankResistance> = local3.getResistances(); var local5:int = 0; while(local5 < local4.length) { local6 = local4[local5]; local7 = new ResistancesIcons.resistanceIconClass(); local7.x = RESISTANCE_ICON_SIZE * local5; local1.addChild(local7); local8 = new Bitmap(ResistancesIcons.getBitmapDataByName(local6.resistanceProperty.name)); local8.x = (local7.width - local8.width >> 1) + local7.x; local8.y = (local7.height - local8.height >> 1) + local7.y; local1.addChild(local8); local5++; } if(local1.width != 0) { local9 = new BitmapData(local4.length * RESISTANCE_ICON_SIZE,RESISTANCE_ICON_SIZE,true,0); local9.draw(local1); this.ownResistances = new Bitmap(local9); battleGuiService.getGuiContainer().addChild(this.ownResistances); this.ownResistances.visible = UserTitle.showAddition; this.onResize(); } } private function createOwnDevice() : void { var local1:IGameObject = localTankService.getLocalTankObject(); var local2:TankDevice = TankDevice(local1.adapt(TankDevice)); var local3:BitmapData = DeviceIcons.getByDeviceId(local2.getDevice()); if(local3 == null) { return; } var local4:DiscreteSprite = new DiscreteSprite(); local4.visible = false; battleGuiService.getGuiContainer().addChild(local4); var local5:Bitmap = new Bitmap(DeviceIcons.backgroundIcon); var local6:Bitmap = new Bitmap(local3); local6.x = (local5.width - local6.width >> 1) + local5.x; local6.y = (local5.height - local6.height >> 1) + local5.y; local4.addChild(local5); local4.addChild(local6); var local7:BitmapData = new BitmapData(local4.width,local4.height,true,0); local7.draw(local4); this.ownDevice = new Bitmap(local7); battleGuiService.getGuiContainer().addChild(this.ownDevice); this.ownDevice.visible = UserTitle.showAddition; this.onResize(); } [Obfuscation(rename="false")] public function close() : void { battleEventDispatcher.removeBattleEventListener(TankLoadedEvent,this); battleInputService.removeGameActionListener(this); this.clearOwnResistances(); this.clearOwnDevice(); } private function clearOwnResistances() : void { if(this.ownResistances != null) { display.stage.removeEventListener(Event.RESIZE,this.onResize); battleGuiService.removeEventListener(BattleGUIServiceEvent.ON_CHANGE_POSITION_DEFAULT_LAYOUT,this.onResize); removeDisplayObject(this.ownResistances); this.ownResistances.bitmapData.dispose(); this.ownResistances = null; } } private function clearOwnDevice() : void { if(this.ownDevice != null) { display.stage.removeEventListener(Event.RESIZE,this.onResize); battleGuiService.removeEventListener(BattleGUIServiceEvent.ON_CHANGE_POSITION_DEFAULT_LAYOUT,this.onResize); removeDisplayObject(this.ownDevice); this.ownDevice.bitmapData.dispose(); this.ownDevice = null; } } } }
package projects.tanks.clients.fp10.models.tankspanelmodelflash { import alternativa.osgi.OSGi; import alternativa.osgi.bundle.IBundleActivator; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.osgi.service.display.IDisplay; import alternativa.osgi.service.launcherparams.ILauncherParams; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.calculators.ExchangeCalculator; import alternativa.tanks.font.services.TanksFontsFormatService; import alternativa.tanks.gui.AntiAddictionWindow; import alternativa.tanks.gui.AvailableItemsAlert; import alternativa.tanks.gui.CongratulationsWindowConfiscate; import alternativa.tanks.gui.CongratulationsWindowPresent; import alternativa.tanks.gui.CongratulationsWindowWithBanner; import alternativa.tanks.gui.EmailBlock; import alternativa.tanks.gui.EmailReminderWindow; import alternativa.tanks.gui.EntranceAlertWindow; import alternativa.tanks.gui.RankUpSupplyBonusAlert; import alternativa.tanks.gui.RepatriateBonusWindow; import alternativa.tanks.gui.RulesUpdateAlert; import alternativa.tanks.gui.ThanksForPurchaseWindow; import alternativa.tanks.gui.alerts.ItemsAlert; import alternativa.tanks.gui.alerts.RankUpBonusAlert; import alternativa.tanks.gui.battle.BattleFinishNotification; import alternativa.tanks.gui.buycrystals.BuyCrystalsAlert; import alternativa.tanks.gui.crystalbutton.CrystalButton; import alternativa.tanks.gui.effects.BlinkEffect; import alternativa.tanks.gui.effects.FlashEffect; import alternativa.tanks.gui.effects.GlowEffect; import alternativa.tanks.gui.error.ErrorForm; import alternativa.tanks.gui.error.ErrorNotification; import alternativa.tanks.gui.friends.AddRequestView; import alternativa.tanks.gui.friends.FriendsWindow; import alternativa.tanks.gui.friends.battleLink.BattleLink; import alternativa.tanks.gui.friends.battleinvite.BattleInviteNotification; import alternativa.tanks.gui.friends.button.friends.NewRequestIndicator; import alternativa.tanks.gui.friends.button.friends.RequestCountIndicator; import alternativa.tanks.gui.friends.list.AcceptedList; import alternativa.tanks.gui.friends.list.ClanMembersList; import alternativa.tanks.gui.friends.list.FriendsList; import alternativa.tanks.gui.friends.list.IncomingList; import alternativa.tanks.gui.friends.list.dataprovider.FriendsDataProvider; import alternativa.tanks.gui.friends.list.refferals.ReferralForm; import alternativa.tanks.gui.friends.list.refferals.ReferralStatHeader; import alternativa.tanks.gui.friends.list.refferals.referalbuttons.LinkReferralButton; import alternativa.tanks.gui.friends.list.refferals.referalbuttons.OkReferralButton; import alternativa.tanks.gui.friends.list.refferals.referalbuttons.VkReferralButton; import alternativa.tanks.gui.friends.list.renderer.ClanMembersListRenderer; import alternativa.tanks.gui.friends.list.renderer.FriendsAcceptedListRenderer; import alternativa.tanks.gui.friends.list.renderer.FriendsIncomingListRenderer; import alternativa.tanks.gui.friends.list.renderer.HeaderAcceptedList; import alternativa.tanks.gui.itemslist.PartsListRenderer; import alternativa.tanks.gui.newbiesabonement.NewbiesAbonementInfoWindow; import alternativa.tanks.gui.panel.ButtonBar; import alternativa.tanks.gui.panel.MainPanel; import alternativa.tanks.gui.panel.PlayerInfo; import alternativa.tanks.gui.panel.StarsCashLabel; import alternativa.tanks.gui.panel.buttons.ClanButton; import alternativa.tanks.gui.panel.buttons.QuestsButton; import alternativa.tanks.gui.payment.controls.BonusLabel; import alternativa.tanks.gui.payment.controls.PremiumLabel; import alternativa.tanks.gui.payment.controls.exchange.ExchangeGroup; import alternativa.tanks.gui.payment.forms.PayModeForm; import alternativa.tanks.gui.payment.forms.gate2shop.Gate2ShopForm; import alternativa.tanks.gui.payment.forms.leogaming.LeogamingCodeConfirmForm; import alternativa.tanks.gui.payment.forms.leogaming.LeogamingMobileForm; import alternativa.tanks.gui.payment.forms.leogaming.LeogamingPhoneForm; import alternativa.tanks.gui.payment.forms.mobile.PhoneNumberInput; import alternativa.tanks.gui.payment.forms.platbox.PlatBoxForm; import alternativa.tanks.gui.payment.forms.platbox.PlatboxPhoneNumberForm; import alternativa.tanks.gui.payment.forms.qiwi.QiwiPhoneNumberForm; import alternativa.tanks.gui.personaldiscount.PersonalDiscountAlert; import alternativa.tanks.gui.premiumaccount.PremiumAccountWelcomeAlert; import alternativa.tanks.gui.presents.NewPresentsAlert; import alternativa.tanks.gui.selectcountry.SelectCountryAlert; import alternativa.tanks.gui.settings.SettingsTabButtonList; import alternativa.tanks.gui.settings.SettingsWindow; import alternativa.tanks.gui.settings.tabs.SettingsTabView; import alternativa.tanks.gui.settings.tabs.SoundSettingsTab; import alternativa.tanks.gui.settings.tabs.account.AccountSettingsTab; import alternativa.tanks.gui.settings.tabs.control.ControlSettingsTab; import alternativa.tanks.gui.settings.tabs.control.KeyBinding; import alternativa.tanks.gui.settings.tabs.control.KeyBindingsPanel; import alternativa.tanks.gui.settings.tabs.game.GameSettingsTab; import alternativa.tanks.gui.shop.components.notification.ShopNotificationIndicator; import alternativa.tanks.gui.shop.components.window.ShopWindowCountrySelector; import alternativa.tanks.gui.shop.components.window.ShopWindowNavigationBar; import alternativa.tanks.gui.shop.forms.ApproveOneTimePurchaseForm; import alternativa.tanks.gui.shop.forms.SMSForm; import alternativa.tanks.gui.shop.forms.WaitUrlForm; import alternativa.tanks.gui.shop.payment.PayModeChooseView; import alternativa.tanks.gui.shop.payment.PaymentFormOneTimePurchaseView; import alternativa.tanks.gui.shop.payment.PaymentFormView; import alternativa.tanks.gui.shop.payment.promo.PromoCodeActivateForm; import alternativa.tanks.gui.shop.shopitems.GoodsChooseView; import alternativa.tanks.gui.shop.shopitems.item.OtherShopItemButton; import alternativa.tanks.gui.shop.shopitems.item.base.ShopItemButton; import alternativa.tanks.gui.shop.shopitems.item.cashpackage.CashPackageButton; import alternativa.tanks.gui.shop.shopitems.item.kits.description.KitPackageDescriptionView; import alternativa.tanks.gui.shop.shopitems.item.licenseclan.LicenseClanButton; import alternativa.tanks.gui.shop.windows.ShopWindow; import alternativa.tanks.gui.shop.windows.bugreport.PaymentBugReportBlock; import alternativa.tanks.gui.socialnetwork.AbstractSNGroupEnteringWindow; import alternativa.tanks.help.DateTimeHelper; import alternativa.tanks.loader.ILoaderWindowService; import alternativa.tanks.loader.IModalLoaderService; import alternativa.tanks.model.abonements.UserAbonementsModel; import alternativa.tanks.model.achievement.AchievementModel; import alternativa.tanks.model.androidapprating.AndroidAppRatingModel; import alternativa.tanks.model.antiaddiction.AntiAddictionAlertModel; import alternativa.tanks.model.antiaddiction.IAntiAddictionAlert; import alternativa.tanks.model.antiaddiction.IAntiAddictionAlertAdapt; import alternativa.tanks.model.antiaddiction.IAntiAddictionAlertEvents; import alternativa.tanks.model.bonus.showing.image.BonusImageShowingModel; import alternativa.tanks.model.bonus.showing.info.BonusInfo; import alternativa.tanks.model.bonus.showing.info.BonusInfoAdapt; import alternativa.tanks.model.bonus.showing.info.BonusInfoEvents; import alternativa.tanks.model.bonus.showing.info.BonusInfoModel; import alternativa.tanks.model.bonus.showing.items.BonusItem; import alternativa.tanks.model.bonus.showing.items.BonusItemAdapt; import alternativa.tanks.model.bonus.showing.items.BonusItemEvents; import alternativa.tanks.model.bonus.showing.items.BonusItemModel; import alternativa.tanks.model.bonus.showing.items.BonusItemsShowingModel; import alternativa.tanks.model.challenge.ChallengeShopItemsModel; import alternativa.tanks.model.challenge.battlepass.BattlePassPackageModel; import alternativa.tanks.model.challenge.battlepass.notifier.BattlePassPurchaseNotifierModel; import alternativa.tanks.model.challenge.battlepass.notifier.BattlePassPurchaseService; import alternativa.tanks.model.coin.CoinInfoModel; import alternativa.tanks.model.coin.CoinInfoService; import alternativa.tanks.model.donation.DonationProfileModel; import alternativa.tanks.model.donationalert.DonationAlertModel; import alternativa.tanks.model.donationalert.ThanksForDonationFormService; import alternativa.tanks.model.donationalert.ThanksForDonationFormServiceAdapt; import alternativa.tanks.model.donationalert.ThanksForDonationFormServiceEvents; import alternativa.tanks.model.emailreminder.EmailReminderModel; import alternativa.tanks.model.emailreminder.EmailReminderService; import alternativa.tanks.model.emailreminder.EmailReminderServiceAdapt; import alternativa.tanks.model.emailreminder.EmailReminderServiceEvents; import alternativa.tanks.model.entrancealert.EntranceAlertModel; import alternativa.tanks.model.friends.battleinvite.BattleInviteModel; import alternativa.tanks.model.friends.loader.FriendsLoaderModel; import alternativa.tanks.model.garage.availableitems.AvailableItemsModel; import alternativa.tanks.model.garage.availableupgrades.AvailableUpgradesModel; import alternativa.tanks.model.garage.rankupsupplybonus.RankUpSupplyBonusModel; import alternativa.tanks.model.garage.resistance.ModuleResistances; import alternativa.tanks.model.garage.resistance.ModuleResistancesAdapt; import alternativa.tanks.model.garage.resistance.ModuleResistancesEvents; import alternativa.tanks.model.garage.resistance.ResistancesListModel; import alternativa.tanks.model.garage.upgradingitems.UpgradingItemsModel; import alternativa.tanks.model.kitoffer.KitOfferDialog; import alternativa.tanks.model.kitoffer.KitOfferModel; import alternativa.tanks.model.mobilequest.MobileQuestModel; import alternativa.tanks.model.mobilequest.MobileQuestProfileModel; import alternativa.tanks.model.newbiesabonement.NewbiesAbonementShowInfoModel; import alternativa.tanks.model.panel.PanelModel; import alternativa.tanks.model.panel.payment.PaymentButtonModel; import alternativa.tanks.model.panel.payment.load.PaymentLoaderModel; import alternativa.tanks.model.payment.CrystalsPaymentModel; import alternativa.tanks.model.payment.PaymentModel; import alternativa.tanks.model.payment.androidspecialoffer.AndroidBannerModel; import alternativa.tanks.model.payment.androidspecialoffer.AndroidPurchaseOfUpgradesModel; import alternativa.tanks.model.payment.androidspecialoffer.AndroidPurchaseOfUpgradesUserModel; import alternativa.tanks.model.payment.androidspecialoffer.AndroidSpecialOfferModel; import alternativa.tanks.model.payment.androidspecialoffer.MediumTimeOfferModel; import alternativa.tanks.model.payment.androidspecialoffer.ShopItemLoaderForAndroidModel; import alternativa.tanks.model.payment.category.PayFullDescription; import alternativa.tanks.model.payment.category.PayFullDescriptionAdapt; import alternativa.tanks.model.payment.category.PayFullDescriptionEvents; import alternativa.tanks.model.payment.category.PayModeView; import alternativa.tanks.model.payment.category.PayModeViewAdapt; import alternativa.tanks.model.payment.category.PayModeViewEvents; import alternativa.tanks.model.payment.modes.CrystalsOnlyPaymentMode; import alternativa.tanks.model.payment.modes.CrystalsOnlyPaymentModeAdapt; import alternativa.tanks.model.payment.modes.CrystalsOnlyPaymentModeEvents; import alternativa.tanks.model.payment.modes.PayMode; import alternativa.tanks.model.payment.modes.PayModeAdapt; import alternativa.tanks.model.payment.modes.PayModeDescription; import alternativa.tanks.model.payment.modes.PayModeDescriptionAdapt; import alternativa.tanks.model.payment.modes.PayModeDescriptionEvents; import alternativa.tanks.model.payment.modes.PayModeEvents; import alternativa.tanks.model.payment.modes.PayModeManualDescription; import alternativa.tanks.model.payment.modes.PayModeManualDescriptionAdapt; import alternativa.tanks.model.payment.modes.PayModeManualDescriptionEvents; import alternativa.tanks.model.payment.modes.PayUrl; import alternativa.tanks.model.payment.modes.PayUrlAdapt; import alternativa.tanks.model.payment.modes.PayUrlEvents; import alternativa.tanks.model.payment.modes.PaymentModeModel; import alternativa.tanks.model.payment.modes.alipay.AlipayPaymentModel; import alternativa.tanks.model.payment.modes.asyncurl.AsyncUrlPayMode; import alternativa.tanks.model.payment.modes.asyncurl.AsyncUrlPayModeAdapt; import alternativa.tanks.model.payment.modes.asyncurl.AsyncUrlPayModeEvents; import alternativa.tanks.model.payment.modes.asyncurl.AsyncUrlPayModel; import alternativa.tanks.model.payment.modes.braintree.BraintreePayment; import alternativa.tanks.model.payment.modes.braintree.BraintreePaymentAdapt; import alternativa.tanks.model.payment.modes.braintree.BraintreePaymentEvents; import alternativa.tanks.model.payment.modes.braintree.BraintreePaymentModel; import alternativa.tanks.model.payment.modes.description.PayModeBottomDescription; import alternativa.tanks.model.payment.modes.description.PayModeBottomDescriptionAdapt; import alternativa.tanks.model.payment.modes.description.PayModeBottomDescriptionEvents; import alternativa.tanks.model.payment.modes.description.PayModeBottomDescriptionInternal; import alternativa.tanks.model.payment.modes.description.PayModeBottomDescriptionInternalAdapt; import alternativa.tanks.model.payment.modes.description.PayModeBottomDescriptionInternalEvents; import alternativa.tanks.model.payment.modes.description.PayModeBottomDescriptionModel; import alternativa.tanks.model.payment.modes.errors.ErrorDescription; import alternativa.tanks.model.payment.modes.errors.ErrorDescriptionAdapt; import alternativa.tanks.model.payment.modes.errors.ErrorDescriptionEvents; import alternativa.tanks.model.payment.modes.errors.ErrorsDescriptionModel; import alternativa.tanks.model.payment.modes.gate2shop.Gate2ShopPayment; import alternativa.tanks.model.payment.modes.gate2shop.Gate2ShopPaymentAdapt; import alternativa.tanks.model.payment.modes.gate2shop.Gate2ShopPaymentEvents; import alternativa.tanks.model.payment.modes.gate2shop.Gate2ShopPaymentModel; import alternativa.tanks.model.payment.modes.leogaming.LeogamingPaymentMobileModel; import alternativa.tanks.model.payment.modes.leogaming.LeogamingPaymentMode; import alternativa.tanks.model.payment.modes.leogaming.LeogamingPaymentModeAdapt; import alternativa.tanks.model.payment.modes.leogaming.LeogamingPaymentModeEvents; import alternativa.tanks.model.payment.modes.onlyurl.OnlyUrlPayMode; import alternativa.tanks.model.payment.modes.onlyurl.OnlyUrlPayModeAdapt; import alternativa.tanks.model.payment.modes.onlyurl.OnlyUrlPayModeEvents; import alternativa.tanks.model.payment.modes.onlyurl.OnlyUrlPaymentModel; import alternativa.tanks.model.payment.modes.paygarden.PayGardenPayment; import alternativa.tanks.model.payment.modes.paygarden.PayGardenPaymentAdapt; import alternativa.tanks.model.payment.modes.paygarden.PayGardenPaymentEvents; import alternativa.tanks.model.payment.modes.paygarden.PayGardenPaymentModel; import alternativa.tanks.model.payment.modes.paypal.PayPalPayment; import alternativa.tanks.model.payment.modes.paypal.PayPalPaymentAdapt; import alternativa.tanks.model.payment.modes.paypal.PayPalPaymentEvents; import alternativa.tanks.model.payment.modes.paypal.PayPalPaymentModel; import alternativa.tanks.model.payment.modes.platbox.PlatBoxPaymentModel; import alternativa.tanks.model.payment.modes.pricerange.PriceRange; import alternativa.tanks.model.payment.modes.pricerange.PriceRangeAdapt; import alternativa.tanks.model.payment.modes.pricerange.PriceRangeEvents; import alternativa.tanks.model.payment.modes.pricerange.PriceRangeModel; import alternativa.tanks.model.payment.modes.qiwi.QiwiPayment; import alternativa.tanks.model.payment.modes.qiwi.QiwiPaymentAdapt; import alternativa.tanks.model.payment.modes.qiwi.QiwiPaymentEvents; import alternativa.tanks.model.payment.modes.qiwi.QiwiPaymentModel; import alternativa.tanks.model.payment.modes.sms.SMSPayMode; import alternativa.tanks.model.payment.modes.sms.SMSPayModeAdapt; import alternativa.tanks.model.payment.modes.sms.SMSPayModeEvents; import alternativa.tanks.model.payment.modes.sms.SMSPayModeModel; import alternativa.tanks.model.payment.modes.terminal.TerminalPayMode; import alternativa.tanks.model.payment.modes.terminal.TerminalPayModeAdapt; import alternativa.tanks.model.payment.modes.terminal.TerminalPayModeEvents; import alternativa.tanks.model.payment.modes.terminal.TerminalPaymentModel; import alternativa.tanks.model.payment.modes.yandex.GoToUrlPaymentModel; import alternativa.tanks.model.payment.paymentstate.PaymentWindowService; import alternativa.tanks.model.payment.paymentstate.PaymentWindowServiceImpl; import alternativa.tanks.model.payment.saveprocessed.ProcessedPaymentService; import alternativa.tanks.model.payment.saveprocessed.ProcessedPaymentServiceImp; import alternativa.tanks.model.payment.shop.ShopItemDetailsView; import alternativa.tanks.model.payment.shop.ShopItemDetailsViewAdapt; import alternativa.tanks.model.payment.shop.ShopItemDetailsViewEvents; import alternativa.tanks.model.payment.shop.ShopItemView; import alternativa.tanks.model.payment.shop.ShopItemViewAdapt; import alternativa.tanks.model.payment.shop.ShopItemViewEvents; import alternativa.tanks.model.payment.shop.cashpackage.CashPackage; import alternativa.tanks.model.payment.shop.cashpackage.CashPackageAdapt; import alternativa.tanks.model.payment.shop.cashpackage.CashPackageEvents; import alternativa.tanks.model.payment.shop.category.ShopCategory; import alternativa.tanks.model.payment.shop.category.ShopCategoryAdapt; import alternativa.tanks.model.payment.shop.category.ShopCategoryEvents; import alternativa.tanks.model.payment.shop.category.ShopCategoryModel; import alternativa.tanks.model.payment.shop.coin.CoinPackageModel; import alternativa.tanks.model.payment.shop.crystal.CrystalPackage; import alternativa.tanks.model.payment.shop.crystal.CrystalPackageAdapt; import alternativa.tanks.model.payment.shop.crystal.CrystalPackageEvents; import alternativa.tanks.model.payment.shop.crystal.CrystalPackageModel; import alternativa.tanks.model.payment.shop.description.ShopItemAdditionalDescription; import alternativa.tanks.model.payment.shop.description.ShopItemAdditionalDescriptionAdapt; import alternativa.tanks.model.payment.shop.description.ShopItemAdditionalDescriptionEvents; import alternativa.tanks.model.payment.shop.description.ShopItemAdditionalDescriptionModel; import alternativa.tanks.model.payment.shop.discount.ShopDiscount; import alternativa.tanks.model.payment.shop.discount.ShopDiscountAdapt; import alternativa.tanks.model.payment.shop.discount.ShopDiscountEvents; import alternativa.tanks.model.payment.shop.discount.ShopDiscountModel; import alternativa.tanks.model.payment.shop.emailrequired.EmailRequiredModel; import alternativa.tanks.model.payment.shop.emailrequired.ShopItemEmailRequired; import alternativa.tanks.model.payment.shop.emailrequired.ShopItemEmailRequiredAdapt; import alternativa.tanks.model.payment.shop.emailrequired.ShopItemEmailRequiredEvents; import alternativa.tanks.model.payment.shop.featuring.ShopItemFeaturing; import alternativa.tanks.model.payment.shop.featuring.ShopItemFeaturingAdapt; import alternativa.tanks.model.payment.shop.featuring.ShopItemFeaturingEvents; import alternativa.tanks.model.payment.shop.featuring.ShopItemFeaturingModel; import alternativa.tanks.model.payment.shop.goldbox.GoldBoxPackage; import alternativa.tanks.model.payment.shop.goldbox.GoldBoxPackageAdapt; import alternativa.tanks.model.payment.shop.goldbox.GoldBoxPackageEvents; import alternativa.tanks.model.payment.shop.goldbox.GoldBoxPackageModel; import alternativa.tanks.model.payment.shop.indemnity.Indemnity; import alternativa.tanks.model.payment.shop.indemnity.IndemnityAdapt; import alternativa.tanks.model.payment.shop.indemnity.IndemnityEvents; import alternativa.tanks.model.payment.shop.indemnity.IndemnityModel; import alternativa.tanks.model.payment.shop.item.ShopItem; import alternativa.tanks.model.payment.shop.item.ShopItemAdapt; import alternativa.tanks.model.payment.shop.item.ShopItemEvents; import alternativa.tanks.model.payment.shop.item.ShopItemModel; import alternativa.tanks.model.payment.shop.itemcategory.ShopItemCategory; import alternativa.tanks.model.payment.shop.itemcategory.ShopItemCategoryAdapt; import alternativa.tanks.model.payment.shop.itemcategory.ShopItemCategoryEvents; import alternativa.tanks.model.payment.shop.itemcategory.ShopItemCategoryModel; import alternativa.tanks.model.payment.shop.kit.KitPackage; import alternativa.tanks.model.payment.shop.kit.KitPackageAdapt; import alternativa.tanks.model.payment.shop.kit.KitPackageEvents; import alternativa.tanks.model.payment.shop.kit.KitPackageModel; import alternativa.tanks.model.payment.shop.kit.view.KitPackageViewModel; import alternativa.tanks.model.payment.shop.kitviewresource.KitViewButtonWithPriceModel; import alternativa.tanks.model.payment.shop.kitviewresource.KitViewResource; import alternativa.tanks.model.payment.shop.kitviewresource.KitViewResourceAdapt; import alternativa.tanks.model.payment.shop.kitviewresource.KitViewResourceEvents; import alternativa.tanks.model.payment.shop.kitviewresource.KitViewResourceModel; import alternativa.tanks.model.payment.shop.kitviewresource.localized.KitViewResourceLocalizedModel; import alternativa.tanks.model.payment.shop.licenseclan.LicenseClanShopItemModel; import alternativa.tanks.model.payment.shop.lootbox.LootBoxPackage; import alternativa.tanks.model.payment.shop.lootbox.LootBoxPackageAdapt; import alternativa.tanks.model.payment.shop.lootbox.LootBoxPackageEvents; import alternativa.tanks.model.payment.shop.lootbox.LootBoxPackageModel; import alternativa.tanks.model.payment.shop.lootboxandpaint.LootboxAndPaintModel; import alternativa.tanks.model.payment.shop.notification.ShopNotifierModel; import alternativa.tanks.model.payment.shop.notification.service.ShopNotifierService; import alternativa.tanks.model.payment.shop.onetimepurchase.EventOneTimePurchaseModel; import alternativa.tanks.model.payment.shop.onetimepurchase.ShopItemOneTimePurchase; import alternativa.tanks.model.payment.shop.onetimepurchase.ShopItemOneTimePurchaseAdapt; import alternativa.tanks.model.payment.shop.onetimepurchase.ShopItemOneTimePurchaseEvents; import alternativa.tanks.model.payment.shop.onetimepurchase.ShopItemOneTimePurchaseModel; import alternativa.tanks.model.payment.shop.paint.PaintPackage; import alternativa.tanks.model.payment.shop.paint.PaintPackageAdapt; import alternativa.tanks.model.payment.shop.paint.PaintPackageEvents; import alternativa.tanks.model.payment.shop.paint.PaintPackageModel; import alternativa.tanks.model.payment.shop.premium.PremiumPackage; import alternativa.tanks.model.payment.shop.premium.PremiumPackageAdapt; import alternativa.tanks.model.payment.shop.premium.PremiumPackageEvents; import alternativa.tanks.model.payment.shop.premium.PremiumPackageModel; import alternativa.tanks.model.payment.shop.quantityrestriction.QuantityRestriction; import alternativa.tanks.model.payment.shop.quantityrestriction.QuantityRestrictionAdapt; import alternativa.tanks.model.payment.shop.quantityrestriction.QuantityRestrictionEvents; import alternativa.tanks.model.payment.shop.quantityrestriction.QuantityRestrictionModel; import alternativa.tanks.model.payment.shop.renameshopitem.RenameShopItemModel; import alternativa.tanks.model.payment.shop.serverlayoutkit.KitBundleViewModel; import alternativa.tanks.model.payment.shop.shopabonement.ActiveShopAbonementsModel; import alternativa.tanks.model.payment.shop.shopabonement.ShopAbonements; import alternativa.tanks.model.payment.shop.shopabonement.ShopAbonementsAdapt; import alternativa.tanks.model.payment.shop.shopabonement.ShopAbonementsEvents; import alternativa.tanks.model.payment.shop.specialkit.RestrictionByPayModeModel; import alternativa.tanks.model.payment.shop.specialkit.SinglePayMode; import alternativa.tanks.model.payment.shop.specialkit.SinglePayModeAdapt; import alternativa.tanks.model.payment.shop.specialkit.SinglePayModeEvents; import alternativa.tanks.model.payment.shop.specialkit.SpecialKitPackage; import alternativa.tanks.model.payment.shop.specialkit.SpecialKitPackageAdapt; import alternativa.tanks.model.payment.shop.specialkit.SpecialKitPackageEvents; import alternativa.tanks.model.payment.shop.specialkit.SpecialKitPackageModel; import alternativa.tanks.model.payment.shop.specialkit.view.NewbieKitViewModel; import alternativa.tanks.model.payment.shop.specialkit.view.PayPalKitView; import alternativa.tanks.model.payment.shop.specialkit.view.PayPalKitViewAdapt; import alternativa.tanks.model.payment.shop.specialkit.view.PayPalKitViewEvents; import alternativa.tanks.model.payment.shop.specialkit.view.PayPalKitViewModel; import alternativa.tanks.model.payment.shop.specialkit.view.SingleItemKitViewModel; import alternativa.tanks.model.personaldiscount.PersonalDiscountModel; import alternativa.tanks.model.premiumaccount.alert.PremiumAccountAlertModel; import alternativa.tanks.model.premiumaccount.notification.PremiumCompleteNotification; import alternativa.tanks.model.presents.NewPresentsShowingModel; import alternativa.tanks.model.presents.PresentSettingsModel; import alternativa.tanks.model.profile.AndroidRenameModel; import alternativa.tanks.model.promo.ShopPromoCode; import alternativa.tanks.model.promo.ShopPromoCodeAdapt; import alternativa.tanks.model.promo.ShopPromoCodeEvents; import alternativa.tanks.model.promo.ShopPromoCodeModel; import alternativa.tanks.model.push.FirebasePushNotificationPanelUserProfileModel; import alternativa.tanks.model.quest.challenge.ChallengesViewService; import alternativa.tanks.model.quest.challenge.gui.ChallengesProgressView; import alternativa.tanks.model.quest.challenge.gui.ChallengesTab; import alternativa.tanks.model.quest.challenge.gui.ChallengesView; import alternativa.tanks.model.quest.challenge.gui.TierNumberView; import alternativa.tanks.model.quest.challenge.gui.TierRenderer; import alternativa.tanks.model.quest.challenge.rewarding.ChallengesRewardingModel; import alternativa.tanks.model.quest.challenge.rewarding.ChallengesRewardingUserModel; import alternativa.tanks.model.quest.challenge.stars.StarsInfoModel; import alternativa.tanks.model.quest.challenge.stars.StarsInfoService; import alternativa.tanks.model.quest.common.MissionsWindowsService; import alternativa.tanks.model.quest.common.gui.CommonQuestTab; import alternativa.tanks.model.quest.common.gui.window.QuestItemViewInfoPanel; import alternativa.tanks.model.quest.common.gui.window.QuestWindow; import alternativa.tanks.model.quest.common.gui.window.buttons.DailyQuestChangeButton; import alternativa.tanks.model.quest.common.gui.window.buttons.DailyQuestDisabledPrizeButton; import alternativa.tanks.model.quest.common.gui.window.buttons.QuestGetPrizeButton; import alternativa.tanks.model.quest.common.gui.window.navigatepanel.QuestTabButton; import alternativa.tanks.model.quest.common.gui.window.navigatepanel.QuestTabButtonsList; import alternativa.tanks.model.quest.common.notification.QuestNotifierModel; import alternativa.tanks.model.quest.common.notification.QuestNotifierService; import alternativa.tanks.model.quest.daily.DailyQuestShowingModel; import alternativa.tanks.model.quest.daily.DailyQuestsService; import alternativa.tanks.model.quest.daily.gui.DailyQuestItemView; import alternativa.tanks.model.quest.daily.gui.DailyQuestTab; import alternativa.tanks.model.quest.weekly.WeeklyQuestShowingModel; import alternativa.tanks.model.quest.weekly.WeeklyQuestsService; import alternativa.tanks.model.quest.weekly.gui.WeeklyQuestTab; import alternativa.tanks.model.rankupbonus.RankUpBonusAlertModel; import alternativa.tanks.model.referrals.ReferralsModel; import alternativa.tanks.model.referrals.notifier.NewReferralsNotifierModel; import alternativa.tanks.model.rulesupdate.RulesUpdateShowingModel; import alternativa.tanks.model.settings.SettingsModel; import alternativa.tanks.model.socialnetwork.SocialNetworkPanelModel; import alternativa.tanks.model.socialnetwork.notification.SNGroupReminderModel; import alternativa.tanks.model.tutorialhints.TutorialHintsModel; import alternativa.tanks.model.usercountry.UserCountryModel; import alternativa.tanks.model.useremailandpassword.IUserEmailAndPassword; import alternativa.tanks.model.useremailandpassword.IUserEmailAndPasswordAdapt; import alternativa.tanks.model.useremailandpassword.IUserEmailAndPasswordEvents; import alternativa.tanks.model.useremailandpassword.PasswordService; import alternativa.tanks.model.useremailandpassword.PasswordServiceAdapt; import alternativa.tanks.model.useremailandpassword.PasswordServiceEvents; import alternativa.tanks.model.useremailandpassword.UserEmailAndPasswordModel; import alternativa.tanks.model.userproperties.IUserProperties; import alternativa.tanks.model.userproperties.IUserPropertiesAdapt; import alternativa.tanks.model.userproperties.IUserPropertiesEvents; import alternativa.tanks.model.userproperties.UserPropertiesModel; import alternativa.tanks.model.userscounter.UsersCounterModel; import alternativa.tanks.model.videoadvertisement.VideoAdsBattleResultModel; import alternativa.tanks.model.videoadvertisement.VideoAdsModel; import alternativa.tanks.newbieservice.NewbieUserService; import alternativa.tanks.service.achievement.AchievementService; import alternativa.tanks.service.achievement.IAchievementService; import alternativa.tanks.service.battlelinkactivator.BattleLinkActivatorService; import alternativa.tanks.service.clan.ClanFriendsService; import alternativa.tanks.service.clan.ClanPanelNotificationService; import alternativa.tanks.service.country.CountryService; import alternativa.tanks.service.fps.FPSService; import alternativa.tanks.service.fps.FPSServiceImpl; import alternativa.tanks.service.logging.UserChangeGameScreenServiceImpl; import alternativa.tanks.service.money.IMoneyService; import alternativa.tanks.service.money.MoneyService; import alternativa.tanks.service.notificationcategories.INotificationGarageCategoriesService; import alternativa.tanks.service.notificationcategories.NotificationGarageCategoriesService; import alternativa.tanks.service.panel.IPanelView; import alternativa.tanks.service.panel.PanelView; import alternativa.tanks.service.payment.IPaymentPackagesService; import alternativa.tanks.service.payment.IPaymentService; import alternativa.tanks.service.payment.PaymentService; import alternativa.tanks.service.payment.display.PaymentDisplayServiceImpl; import alternativa.tanks.service.paymentcomplete.PaymentCompleteService; import alternativa.tanks.service.referrals.ReferralsService; import alternativa.tanks.service.referrals.buttonhelper.ReferralsButtonHelperService; import alternativa.tanks.service.referrals.buttonhelper.ReferralsButtonHelperServiceImpl; import alternativa.tanks.service.referrals.notification.NewReferralsNotifierService; import alternativa.tanks.service.settings.ISettingsService; import alternativa.tanks.service.settings.SettingsService; import alternativa.tanks.service.settings.keybinding.KeyCodesConverter; import alternativa.tanks.service.settings.keybinding.KeysBindingService; import alternativa.tanks.service.socialnetwork.ISocialNetworkPanelService; import alternativa.tanks.service.socialnetwork.vk.SNFriendsService; import alternativa.tanks.service.socialnetwork.vk.SNFriendsServiceImpl; import alternativa.tanks.service.upgradingitems.UpgradingItemsService; import alternativa.tanks.service.upgradingitems.UpgradingItemsServiceImpl; import alternativa.tanks.tracker.ITrackerService; import alternativa.tanks.ymservice.YandexMetricaService; import platform.client.fp10.core.registry.ModelRegistry; import platform.client.fp10.core.service.address.AddressService; import platform.clients.fp10.libraries.alternativapartners.service.IPartnerService; import projects.tanks.clients.flash.commons.models.challenge.ChallengeInfoService; import projects.tanks.clients.flash.commons.models.challenge.shopitems.ChallengeShopItems; import projects.tanks.clients.flash.commons.services.notification.INotificationService; import projects.tanks.clients.flash.commons.services.notification.sound.INotificationSoundService; import projects.tanks.clients.flash.commons.services.payment.PaymentDisplayService; import projects.tanks.clients.flash.commons.services.timeunit.ITimeUnitService; import projects.tanks.clients.flash.commons.services.validate.IValidateService; import projects.tanks.clients.fp10.libraries.tanksservices.model.uidcheck.UidCheckService; import projects.tanks.clients.fp10.libraries.tanksservices.service.alertservices.IAlertService; import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.activator.IBattleLinkActivatorService; import projects.tanks.clients.fp10.libraries.tanksservices.service.blur.IBlurService; import projects.tanks.clients.fp10.libraries.tanksservices.service.clan.ClanUserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.IDialogsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher.IDialogWindowsDispatcherService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.IFriendActionService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.IFriendInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.battleinvite.IBattleInviteService; import projects.tanks.clients.fp10.libraries.tanksservices.service.fullscreen.FullscreenService; import projects.tanks.clients.fp10.libraries.tanksservices.service.fullscreen.FullscreenStateService; import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.IHelpService; import projects.tanks.clients.fp10.libraries.tanksservices.service.layout.ILobbyLayoutService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.gamescreen.UserChangeGameScreenService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.paymentactions.UserPaymentActionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.battle.IBattleNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.online.IOnlineNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.PremiumService; import projects.tanks.clients.fp10.libraries.tanksservices.service.rank.RankService; import projects.tanks.clients.fp10.libraries.tanksservices.service.reconnect.ReconnectService; import projects.tanks.clients.fp10.libraries.tanksservices.service.servername.ServerNumberToLocaleServerService; import projects.tanks.clients.fp10.libraries.tanksservices.service.storage.IStorageService; import projects.tanks.clients.fp10.libraries.tanksservices.service.user.IUserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties.IUserPropertiesService; import services.buttonbar.IButtonBarService; import services.contextmenu.IContextMenuService; public class Activator implements IBundleActivator { public static var osgi:OSGi; public function Activator() { super(); } public function start(param1:OSGi) : void { var modelRegister:ModelRegistry; var modelRegisterAdapt:ModelRegistry; var _osgi:OSGi = param1; osgi = _osgi; osgi.injectService(IPaymentPackagesService,function(param1:Object):void { ExchangeCalculator.paymentPackagesService = IPaymentPackagesService(param1); },function():IPaymentPackagesService { return ExchangeCalculator.paymentPackagesService; }); osgi.injectService(IPaymentService,function(param1:Object):void { ExchangeCalculator.paymentService = IPaymentService(param1); },function():IPaymentService { return ExchangeCalculator.paymentService; }); osgi.injectService(ILocaleService,function(param1:Object):void { AntiAddictionWindow.localeService = ILocaleService(param1); },function():ILocaleService { return AntiAddictionWindow.localeService; }); osgi.injectService(PremiumService,function(param1:Object):void { AvailableItemsAlert.premiumService = PremiumService(param1); },function():PremiumService { return AvailableItemsAlert.premiumService; }); osgi.injectService(ILocaleService,function(param1:Object):void { CongratulationsWindowConfiscate.localeService = ILocaleService(param1); },function():ILocaleService { return CongratulationsWindowConfiscate.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { CongratulationsWindowPresent.localeService = ILocaleService(param1); },function():ILocaleService { return CongratulationsWindowPresent.localeService; }); osgi.injectService(NewbieUserService,function(param1:Object):void { CongratulationsWindowPresent.newbieUserService = NewbieUserService(param1); },function():NewbieUserService { return CongratulationsWindowPresent.newbieUserService; }); osgi.injectService(YandexMetricaService,function(param1:Object):void { CongratulationsWindowPresent.ymService = YandexMetricaService(param1); },function():YandexMetricaService { return CongratulationsWindowPresent.ymService; }); osgi.injectService(ILocaleService,function(param1:Object):void { CongratulationsWindowWithBanner.localeService = ILocaleService(param1); },function():ILocaleService { return CongratulationsWindowWithBanner.localeService; }); osgi.injectService(IDisplay,function(param1:Object):void { EmailBlock.displayService = IDisplay(param1); },function():IDisplay { return EmailBlock.displayService; }); osgi.injectService(ILocaleService,function(param1:Object):void { EmailBlock.localeService = ILocaleService(param1); },function():ILocaleService { return EmailBlock.localeService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { EmailBlock.userPropertyService = IUserPropertiesService(param1); },function():IUserPropertiesService { return EmailBlock.userPropertyService; }); osgi.injectService(IValidateService,function(param1:Object):void { EmailBlock.validateService = IValidateService(param1); },function():IValidateService { return EmailBlock.validateService; }); osgi.injectService(ILocaleService,function(param1:Object):void { EmailReminderWindow.localeService = ILocaleService(param1); },function():ILocaleService { return EmailReminderWindow.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { EntranceAlertWindow.localeService = ILocaleService(param1); },function():ILocaleService { return EntranceAlertWindow.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { RankUpSupplyBonusAlert.localeService = ILocaleService(param1); },function():ILocaleService { return RankUpSupplyBonusAlert.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { RepatriateBonusWindow.localeService = ILocaleService(param1); },function():ILocaleService { return RepatriateBonusWindow.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { RulesUpdateAlert.localeService = ILocaleService(param1); },function():ILocaleService { return RulesUpdateAlert.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ThanksForPurchaseWindow.localeService = ILocaleService(param1); },function():ILocaleService { return ThanksForPurchaseWindow.localeService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { ThanksForPurchaseWindow.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return ThanksForPurchaseWindow.paymentDisplayService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ItemsAlert.localeService = ILocaleService(param1); },function():ILocaleService { return ItemsAlert.localeService; }); osgi.injectService(IModalLoaderService,function(param1:Object):void { ItemsAlert.modalLoaderService = IModalLoaderService(param1); },function():IModalLoaderService { return ItemsAlert.modalLoaderService; }); osgi.injectService(ILocaleService,function(param1:Object):void { RankUpBonusAlert.localeService = ILocaleService(param1); },function():ILocaleService { return RankUpBonusAlert.localeService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { RankUpBonusAlert.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return RankUpBonusAlert.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleFinishNotification.localeService = ILocaleService(param1); },function():ILocaleService { return BattleFinishNotification.localeService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { BuyCrystalsAlert.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return BuyCrystalsAlert.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BuyCrystalsAlert.localeService = ILocaleService(param1); },function():ILocaleService { return BuyCrystalsAlert.localeService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { BuyCrystalsAlert.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return BuyCrystalsAlert.paymentDisplayService; }); osgi.injectService(IMoneyService,function(param1:Object):void { CrystalButton.moneyService = IMoneyService(param1); },function():IMoneyService { return CrystalButton.moneyService; }); osgi.injectService(FPSService,function(param1:Object):void { BlinkEffect.fpsService = FPSService(param1); },function():FPSService { return BlinkEffect.fpsService; }); osgi.injectService(FPSService,function(param1:Object):void { FlashEffect.fpsService = FPSService(param1); },function():FPSService { return FlashEffect.fpsService; }); osgi.injectService(FPSService,function(param1:Object):void { GlowEffect.fpsService = FPSService(param1); },function():FPSService { return GlowEffect.fpsService; }); osgi.injectService(AddressService,function(param1:Object):void { ErrorForm.addressService = AddressService(param1); },function():AddressService { return ErrorForm.addressService; }); osgi.injectService(AddressService,function(param1:Object):void { ErrorNotification.addressService = AddressService(param1); },function():AddressService { return ErrorNotification.addressService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ErrorNotification.localeService = ILocaleService(param1); },function():ILocaleService { return ErrorNotification.localeService; }); osgi.injectService(IAlertService,function(param1:Object):void { AddRequestView.alertService = IAlertService(param1); },function():IAlertService { return AddRequestView.alertService; }); osgi.injectService(IBlurService,function(param1:Object):void { AddRequestView.blurService = IBlurService(param1); },function():IBlurService { return AddRequestView.blurService; }); osgi.injectService(IFriendActionService,function(param1:Object):void { AddRequestView.friendsActionService = IFriendActionService(param1); },function():IFriendActionService { return AddRequestView.friendsActionService; }); osgi.injectService(ILocaleService,function(param1:Object):void { AddRequestView.localeService = ILocaleService(param1); },function():ILocaleService { return AddRequestView.localeService; }); osgi.injectService(UidCheckService,function(param1:Object):void { AddRequestView.uidCheckService = UidCheckService(param1); },function():UidCheckService { return AddRequestView.uidCheckService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { AddRequestView.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return AddRequestView.userPropertiesService; }); osgi.injectService(IAlertService,function(param1:Object):void { FriendsWindow.alertService = IAlertService(param1); },function():IAlertService { return FriendsWindow.alertService; }); osgi.injectService(IBattleLinkActivatorService,function(param1:Object):void { FriendsWindow.battleLinkActivatorService = IBattleLinkActivatorService(param1); },function():IBattleLinkActivatorService { return FriendsWindow.battleLinkActivatorService; }); osgi.injectService(IBlurService,function(param1:Object):void { FriendsWindow.blurService = IBlurService(param1); },function():IBlurService { return FriendsWindow.blurService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { FriendsWindow.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return FriendsWindow.clanUserInfoService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { FriendsWindow.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return FriendsWindow.friendInfoService; }); osgi.injectService(IFriendActionService,function(param1:Object):void { FriendsWindow.friendsActionService = IFriendActionService(param1); },function():IFriendActionService { return FriendsWindow.friendsActionService; }); osgi.injectService(ILocaleService,function(param1:Object):void { FriendsWindow.localeService = ILocaleService(param1); },function():ILocaleService { return FriendsWindow.localeService; }); osgi.injectService(NewReferralsNotifierService,function(param1:Object):void { FriendsWindow.newReferralsNotifierService = NewReferralsNotifierService(param1); },function():NewReferralsNotifierService { return FriendsWindow.newReferralsNotifierService; }); osgi.injectService(IPartnerService,function(param1:Object):void { FriendsWindow.partnerService = IPartnerService(param1); },function():IPartnerService { return FriendsWindow.partnerService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { FriendsWindow.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return FriendsWindow.userChangeGameScreenService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { FriendsWindow.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return FriendsWindow.userInfoService; }); osgi.injectService(AddressService,function(param1:Object):void { BattleLink.addressService = AddressService(param1); },function():AddressService { return BattleLink.addressService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { BattleLink.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return BattleLink.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleLink.localeService = ILocaleService(param1); },function():ILocaleService { return BattleLink.localeService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { BattleLink.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return BattleLink.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { BattleLink.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return BattleLink.userPropertiesService; }); osgi.injectService(IAlertService,function(param1:Object):void { BattleInviteNotification.battleAlertService = IAlertService(param1); },function():IAlertService { return BattleInviteNotification.battleAlertService; }); osgi.injectService(IBattleInviteService,function(param1:Object):void { BattleInviteNotification.battleInviteService = IBattleInviteService(param1); },function():IBattleInviteService { return BattleInviteNotification.battleInviteService; }); osgi.injectService(IDialogWindowsDispatcherService,function(param1:Object):void { BattleInviteNotification.dialogWindowsDispatcherService = IDialogWindowsDispatcherService(param1); },function():IDialogWindowsDispatcherService { return BattleInviteNotification.dialogWindowsDispatcherService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleInviteNotification.localeService = ILocaleService(param1); },function():ILocaleService { return BattleInviteNotification.localeService; }); osgi.injectService(IStorageService,function(param1:Object):void { BattleInviteNotification.storageService = IStorageService(param1); },function():IStorageService { return BattleInviteNotification.storageService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { NewRequestIndicator.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return NewRequestIndicator.friendInfoService; }); osgi.injectService(NewReferralsNotifierService,function(param1:Object):void { NewRequestIndicator.newReferralsNotifierService = NewReferralsNotifierService(param1); },function():NewReferralsNotifierService { return NewRequestIndicator.newReferralsNotifierService; }); osgi.injectService(IDisplay,function(param1:Object):void { RequestCountIndicator.display = IDisplay(param1); },function():IDisplay { return RequestCountIndicator.display; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { RequestCountIndicator.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return RequestCountIndicator.friendInfoService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { AcceptedList.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return AcceptedList.battleInfoService; }); osgi.injectService(IBattleInviteService,function(param1:Object):void { AcceptedList.battleInviteService = IBattleInviteService(param1); },function():IBattleInviteService { return AcceptedList.battleInviteService; }); osgi.injectService(IBattleNotifierService,function(param1:Object):void { AcceptedList.battleNotifierService = IBattleNotifierService(param1); },function():IBattleNotifierService { return AcceptedList.battleNotifierService; }); osgi.injectService(IContextMenuService,function(param1:Object):void { AcceptedList.contextMenuService = IContextMenuService(param1); },function():IContextMenuService { return AcceptedList.contextMenuService; }); osgi.injectService(IOnlineNotifierService,function(param1:Object):void { AcceptedList.onlineNotifierService = IOnlineNotifierService(param1); },function():IOnlineNotifierService { return AcceptedList.onlineNotifierService; }); osgi.injectService(SNFriendsService,function(param1:Object):void { AcceptedList.snFriendsService = SNFriendsService(param1); },function():SNFriendsService { return AcceptedList.snFriendsService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { ClanMembersList.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return ClanMembersList.battleInfoService; }); osgi.injectService(IBattleInviteService,function(param1:Object):void { ClanMembersList.battleInviteService = IBattleInviteService(param1); },function():IBattleInviteService { return ClanMembersList.battleInviteService; }); osgi.injectService(IBattleNotifierService,function(param1:Object):void { ClanMembersList.battleNotifierService = IBattleNotifierService(param1); },function():IBattleNotifierService { return ClanMembersList.battleNotifierService; }); osgi.injectService(ClanFriendsService,function(param1:Object):void { ClanMembersList.clanFriendsService = ClanFriendsService(param1); },function():ClanFriendsService { return ClanMembersList.clanFriendsService; }); osgi.injectService(IContextMenuService,function(param1:Object):void { ClanMembersList.contextMenuService = IContextMenuService(param1); },function():IContextMenuService { return ClanMembersList.contextMenuService; }); osgi.injectService(IOnlineNotifierService,function(param1:Object):void { ClanMembersList.onlineNotifierService = IOnlineNotifierService(param1); },function():IOnlineNotifierService { return ClanMembersList.onlineNotifierService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { ClanMembersList.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return ClanMembersList.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { ClanMembersList.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return ClanMembersList.userPropertiesService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { FriendsList.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return FriendsList.friendInfoService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { FriendsList.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return FriendsList.userInfoService; }); osgi.injectService(IContextMenuService,function(param1:Object):void { IncomingList.contextMenuService = IContextMenuService(param1); },function():IContextMenuService { return IncomingList.contextMenuService; }); osgi.injectService(IFriendActionService,function(param1:Object):void { IncomingList.friendActionService = IFriendActionService(param1); },function():IFriendActionService { return IncomingList.friendActionService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { IncomingList.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return IncomingList.friendInfoService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { FriendsDataProvider.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return FriendsDataProvider.battleInfoService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { FriendsDataProvider.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return FriendsDataProvider.friendInfoService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { FriendsDataProvider.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return FriendsDataProvider.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { FriendsDataProvider.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return FriendsDataProvider.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ReferralForm.localeService = ILocaleService(param1); },function():ILocaleService { return ReferralForm.localeService; }); osgi.injectService(NewReferralsNotifierService,function(param1:Object):void { ReferralForm.newReferralsNotifierService = NewReferralsNotifierService(param1); },function():NewReferralsNotifierService { return ReferralForm.newReferralsNotifierService; }); osgi.injectService(IPartnerService,function(param1:Object):void { ReferralForm.partnerService = IPartnerService(param1); },function():IPartnerService { return ReferralForm.partnerService; }); osgi.injectService(ReferralsService,function(param1:Object):void { ReferralForm.referralService = ReferralsService(param1); },function():ReferralsService { return ReferralForm.referralService; }); osgi.injectService(ReferralsButtonHelperService,function(param1:Object):void { ReferralForm.referralsButtonHelperService = ReferralsButtonHelperService(param1); },function():ReferralsButtonHelperService { return ReferralForm.referralsButtonHelperService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ReferralStatHeader.localeService = ILocaleService(param1); },function():ILocaleService { return ReferralStatHeader.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { LinkReferralButton.localeService = ILocaleService(param1); },function():ILocaleService { return LinkReferralButton.localeService; }); osgi.injectService(ReferralsService,function(param1:Object):void { LinkReferralButton.referralService = ReferralsService(param1); },function():ReferralsService { return LinkReferralButton.referralService; }); osgi.injectService(ILocaleService,function(param1:Object):void { OkReferralButton.localeService = ILocaleService(param1); },function():ILocaleService { return OkReferralButton.localeService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { OkReferralButton.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return OkReferralButton.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { VkReferralButton.localeService = ILocaleService(param1); },function():ILocaleService { return VkReferralButton.localeService; }); osgi.injectService(ReferralsService,function(param1:Object):void { VkReferralButton.referralService = ReferralsService(param1); },function():ReferralsService { return VkReferralButton.referralService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { VkReferralButton.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return VkReferralButton.userPropertiesService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { ClanMembersListRenderer.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return ClanMembersListRenderer.battleInfoService; }); osgi.injectService(IBattleLinkActivatorService,function(param1:Object):void { ClanMembersListRenderer.battleLinkActivatorService = IBattleLinkActivatorService(param1); },function():IBattleLinkActivatorService { return ClanMembersListRenderer.battleLinkActivatorService; }); osgi.injectService(IContextMenuService,function(param1:Object):void { ClanMembersListRenderer.contextMenuService = IContextMenuService(param1); },function():IContextMenuService { return ClanMembersListRenderer.contextMenuService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ClanMembersListRenderer.localeService = ILocaleService(param1); },function():ILocaleService { return ClanMembersListRenderer.localeService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { FriendsAcceptedListRenderer.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return FriendsAcceptedListRenderer.battleInfoService; }); osgi.injectService(IBattleLinkActivatorService,function(param1:Object):void { FriendsAcceptedListRenderer.battleLinkActivatorService = IBattleLinkActivatorService(param1); },function():IBattleLinkActivatorService { return FriendsAcceptedListRenderer.battleLinkActivatorService; }); osgi.injectService(IContextMenuService,function(param1:Object):void { FriendsAcceptedListRenderer.contextMenuService = IContextMenuService(param1); },function():IContextMenuService { return FriendsAcceptedListRenderer.contextMenuService; }); osgi.injectService(ILocaleService,function(param1:Object):void { FriendsAcceptedListRenderer.localeService = ILocaleService(param1); },function():ILocaleService { return FriendsAcceptedListRenderer.localeService; }); osgi.injectService(IContextMenuService,function(param1:Object):void { FriendsIncomingListRenderer.contextMenuService = IContextMenuService(param1); },function():IContextMenuService { return FriendsIncomingListRenderer.contextMenuService; }); osgi.injectService(ILocaleService,function(param1:Object):void { FriendsIncomingListRenderer.localeService = ILocaleService(param1); },function():ILocaleService { return FriendsIncomingListRenderer.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { HeaderAcceptedList.localeService = ILocaleService(param1); },function():ILocaleService { return HeaderAcceptedList.localeService; }); osgi.injectService(IPartnerService,function(param1:Object):void { HeaderAcceptedList.partnersService = IPartnerService(param1); },function():IPartnerService { return HeaderAcceptedList.partnersService; }); osgi.injectService(IClientLog,function(param1:Object):void { PartsListRenderer.clientLog = IClientLog(param1); },function():IClientLog { return PartsListRenderer.clientLog; }); osgi.injectService(ILocaleService,function(param1:Object):void { NewbiesAbonementInfoWindow.localeService = ILocaleService(param1); },function():ILocaleService { return NewbiesAbonementInfoWindow.localeService; }); osgi.injectService(NewbieUserService,function(param1:Object):void { NewbiesAbonementInfoWindow.newbieUserService = NewbieUserService(param1); },function():NewbieUserService { return NewbiesAbonementInfoWindow.newbieUserService; }); osgi.injectService(IButtonBarService,function(param1:Object):void { ButtonBar.buttonBarService = IButtonBarService(param1); },function():IButtonBarService { return ButtonBar.buttonBarService; }); osgi.injectService(ClanPanelNotificationService,function(param1:Object):void { ButtonBar.clanPanelNotificationService = ClanPanelNotificationService(param1); },function():ClanPanelNotificationService { return ButtonBar.clanPanelNotificationService; }); osgi.injectService(FullscreenService,function(param1:Object):void { ButtonBar.fullscreenService = FullscreenService(param1); },function():FullscreenService { return ButtonBar.fullscreenService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ButtonBar.localeService = ILocaleService(param1); },function():ILocaleService { return ButtonBar.localeService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { ButtonBar.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return ButtonBar.userPropertiesService; }); osgi.injectService(BattlePassPurchaseService,function(param1:Object):void { MainPanel.battlePassPurchaseService = BattlePassPurchaseService(param1); },function():BattlePassPurchaseService { return MainPanel.battlePassPurchaseService; }); osgi.injectService(ChallengeInfoService,function(param1:Object):void { MainPanel.challengeInfoService = ChallengeInfoService(param1); },function():ChallengeInfoService { return MainPanel.challengeInfoService; }); osgi.injectService(ClanPanelNotificationService,function(param1:Object):void { MainPanel.clanPanelNotification = ClanPanelNotificationService(param1); },function():ClanPanelNotificationService { return MainPanel.clanPanelNotification; }); osgi.injectService(IDisplay,function(param1:Object):void { MainPanel.display = IDisplay(param1); },function():IDisplay { return MainPanel.display; }); osgi.injectService(MissionsWindowsService,function(param1:Object):void { MainPanel.missionsWindowsService = MissionsWindowsService(param1); },function():MissionsWindowsService { return MainPanel.missionsWindowsService; }); osgi.injectService(IPartnerService,function(param1:Object):void { MainPanel.partnerService = IPartnerService(param1); },function():IPartnerService { return MainPanel.partnerService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { MainPanel.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return MainPanel.paymentDisplayService; }); osgi.injectService(PremiumService,function(param1:Object):void { MainPanel.premiumService = PremiumService(param1); },function():PremiumService { return MainPanel.premiumService; }); osgi.injectService(ReconnectService,function(param1:Object):void { MainPanel.reconnectService = ReconnectService(param1); },function():ReconnectService { return MainPanel.reconnectService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { MainPanel.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return MainPanel.userChangeGameScreenService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { MainPanel.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return MainPanel.userPropertiesService; }); osgi.injectService(RankService,function(param1:Object):void { PlayerInfo.rankService = RankService(param1); },function():RankService { return PlayerInfo.rankService; }); osgi.injectService(StarsInfoService,function(param1:Object):void { StarsCashLabel.starsInfoService = StarsInfoService(param1); },function():StarsInfoService { return StarsCashLabel.starsInfoService; }); osgi.injectService(ClanPanelNotificationService,function(param1:Object):void { ClanButton.clanPanelNotificationService = ClanPanelNotificationService(param1); },function():ClanPanelNotificationService { return ClanButton.clanPanelNotificationService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { ClanButton.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return ClanButton.clanUserInfoService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { ClanButton.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return ClanButton.lobbyLayoutService; }); osgi.injectService(QuestNotifierService,function(param1:Object):void { QuestsButton.questNotifierService = QuestNotifierService(param1); },function():QuestNotifierService { return QuestsButton.questNotifierService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BonusLabel.localeService = ILocaleService(param1); },function():ILocaleService { return BonusLabel.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PremiumLabel.localeService = ILocaleService(param1); },function():ILocaleService { return PremiumLabel.localeService; }); osgi.injectService(IAchievementService,function(param1:Object):void { ExchangeGroup.achievementService = IAchievementService(param1); },function():IAchievementService { return ExchangeGroup.achievementService; }); osgi.injectService(IHelpService,function(param1:Object):void { ExchangeGroup.helperService = IHelpService(param1); },function():IHelpService { return ExchangeGroup.helperService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ExchangeGroup.localeService = ILocaleService(param1); },function():ILocaleService { return ExchangeGroup.localeService; }); osgi.injectService(IPaymentService,function(param1:Object):void { ExchangeGroup.paymentService = IPaymentService(param1); },function():IPaymentService { return ExchangeGroup.paymentService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { PayModeForm.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return PayModeForm.paymentWindowService; }); osgi.injectService(UserPaymentActionsService,function(param1:Object):void { PayModeForm.userPaymentActionsService = UserPaymentActionsService(param1); },function():UserPaymentActionsService { return PayModeForm.userPaymentActionsService; }); osgi.injectService(ILocaleService,function(param1:Object):void { Gate2ShopForm.localeService = ILocaleService(param1); },function():ILocaleService { return Gate2ShopForm.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { LeogamingCodeConfirmForm.localeService = ILocaleService(param1); },function():ILocaleService { return LeogamingCodeConfirmForm.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { LeogamingMobileForm.localeService = ILocaleService(param1); },function():ILocaleService { return LeogamingMobileForm.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { LeogamingPhoneForm.localeService = ILocaleService(param1); },function():ILocaleService { return LeogamingPhoneForm.localeService; }); osgi.injectService(IDisplay,function(param1:Object):void { PhoneNumberInput.displayService = IDisplay(param1); },function():IDisplay { return PhoneNumberInput.displayService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PlatBoxForm.localeService = ILocaleService(param1); },function():ILocaleService { return PlatBoxForm.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PlatboxPhoneNumberForm.localeService = ILocaleService(param1); },function():ILocaleService { return PlatboxPhoneNumberForm.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { QiwiPhoneNumberForm.localeService = ILocaleService(param1); },function():ILocaleService { return QiwiPhoneNumberForm.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PersonalDiscountAlert.localeService = ILocaleService(param1); },function():ILocaleService { return PersonalDiscountAlert.localeService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { PersonalDiscountAlert.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return PersonalDiscountAlert.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PremiumAccountWelcomeAlert.localeService = ILocaleService(param1); },function():ILocaleService { return PremiumAccountWelcomeAlert.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { NewPresentsAlert.localeService = ILocaleService(param1); },function():ILocaleService { return NewPresentsAlert.localeService; }); osgi.injectService(IModalLoaderService,function(param1:Object):void { NewPresentsAlert.modalLoaderService = IModalLoaderService(param1); },function():IModalLoaderService { return NewPresentsAlert.modalLoaderService; }); osgi.injectService(CountryService,function(param1:Object):void { SelectCountryAlert.countryService = CountryService(param1); },function():CountryService { return SelectCountryAlert.countryService; }); osgi.injectService(IDialogsService,function(param1:Object):void { SelectCountryAlert.dialogService = IDialogsService(param1); },function():IDialogsService { return SelectCountryAlert.dialogService; }); osgi.injectService(ILocaleService,function(param1:Object):void { SelectCountryAlert.localeService = ILocaleService(param1); },function():ILocaleService { return SelectCountryAlert.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { SettingsTabButtonList.localeService = ILocaleService(param1); },function():ILocaleService { return SettingsTabButtonList.localeService; }); osgi.injectService(IHelpService,function(param1:Object):void { SettingsWindow.helperService = IHelpService(param1); },function():IHelpService { return SettingsWindow.helperService; }); osgi.injectService(ILocaleService,function(param1:Object):void { SettingsWindow.localeService = ILocaleService(param1); },function():ILocaleService { return SettingsWindow.localeService; }); osgi.injectService(IPartnerService,function(param1:Object):void { SettingsWindow.partnersService = IPartnerService(param1); },function():IPartnerService { return SettingsWindow.partnersService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { SettingsWindow.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return SettingsWindow.userChangeGameScreenService; }); osgi.injectService(ILocaleService,function(param1:Object):void { SettingsTabView.localeService = ILocaleService(param1); },function():ILocaleService { return SettingsTabView.localeService; }); osgi.injectService(ISettingsService,function(param1:Object):void { SettingsTabView.settingsService = ISettingsService(param1); },function():ISettingsService { return SettingsTabView.settingsService; }); osgi.injectService(IDisplay,function(param1:Object):void { SoundSettingsTab.display = IDisplay(param1); },function():IDisplay { return SoundSettingsTab.display; }); osgi.injectService(IDisplay,function(param1:Object):void { AccountSettingsTab.display = IDisplay(param1); },function():IDisplay { return AccountSettingsTab.display; }); osgi.injectService(IHelpService,function(param1:Object):void { AccountSettingsTab.helperService = IHelpService(param1); },function():IHelpService { return AccountSettingsTab.helperService; }); osgi.injectService(IPartnerService,function(param1:Object):void { AccountSettingsTab.partnersService = IPartnerService(param1); },function():IPartnerService { return AccountSettingsTab.partnersService; }); osgi.injectService(ISocialNetworkPanelService,function(param1:Object):void { AccountSettingsTab.socialNetworkService = ISocialNetworkPanelService(param1); },function():ISocialNetworkPanelService { return AccountSettingsTab.socialNetworkService; }); osgi.injectService(IValidateService,function(param1:Object):void { AccountSettingsTab.validateService = IValidateService(param1); },function():IValidateService { return AccountSettingsTab.validateService; }); osgi.injectService(IDisplay,function(param1:Object):void { ControlSettingsTab.display = IDisplay(param1); },function():IDisplay { return ControlSettingsTab.display; }); osgi.injectService(FullscreenService,function(param1:Object):void { ControlSettingsTab.fullScreenService = FullscreenService(param1); },function():FullscreenService { return ControlSettingsTab.fullScreenService; }); osgi.injectService(KeysBindingService,function(param1:Object):void { KeyBinding.keysBindingService = KeysBindingService(param1); },function():KeysBindingService { return KeyBinding.keysBindingService; }); osgi.injectService(KeysBindingService,function(param1:Object):void { KeyBindingsPanel.keysBindingService = KeysBindingService(param1); },function():KeysBindingService { return KeyBindingsPanel.keysBindingService; }); osgi.injectService(ILocaleService,function(param1:Object):void { KeyBindingsPanel.localeService = ILocaleService(param1); },function():ILocaleService { return KeyBindingsPanel.localeService; }); osgi.injectService(IBattleInviteService,function(param1:Object):void { GameSettingsTab.battleInviteService = IBattleInviteService(param1); },function():IBattleInviteService { return GameSettingsTab.battleInviteService; }); osgi.injectService(ShopNotifierService,function(param1:Object):void { ShopNotificationIndicator.shopNotifierService = ShopNotifierService(param1); },function():ShopNotifierService { return ShopNotificationIndicator.shopNotifierService; }); osgi.injectService(CountryService,function(param1:Object):void { ShopWindowCountrySelector.countryService = CountryService(param1); },function():CountryService { return ShopWindowCountrySelector.countryService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ShopWindowCountrySelector.localeService = ILocaleService(param1); },function():ILocaleService { return ShopWindowCountrySelector.localeService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { ShopWindowCountrySelector.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return ShopWindowCountrySelector.paymentDisplayService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ShopWindowNavigationBar.localeService = ILocaleService(param1); },function():ILocaleService { return ShopWindowNavigationBar.localeService; }); osgi.injectService(IPaymentService,function(param1:Object):void { ShopWindowNavigationBar.paymentService = IPaymentService(param1); },function():IPaymentService { return ShopWindowNavigationBar.paymentService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { ShopWindowNavigationBar.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return ShopWindowNavigationBar.paymentWindowService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ApproveOneTimePurchaseForm.localeService = ILocaleService(param1); },function():ILocaleService { return ApproveOneTimePurchaseForm.localeService; }); osgi.injectService(CountryService,function(param1:Object):void { SMSForm.countryService = CountryService(param1); },function():CountryService { return SMSForm.countryService; }); osgi.injectService(ILocaleService,function(param1:Object):void { SMSForm.localeService = ILocaleService(param1); },function():ILocaleService { return SMSForm.localeService; }); osgi.injectService(IPaymentService,function(param1:Object):void { SMSForm.paymentService = IPaymentService(param1); },function():IPaymentService { return SMSForm.paymentService; }); osgi.injectService(IStorageService,function(param1:Object):void { SMSForm.storageService = IStorageService(param1); },function():IStorageService { return SMSForm.storageService; }); osgi.injectService(ILocaleService,function(param1:Object):void { WaitUrlForm.localeService = ILocaleService(param1); },function():ILocaleService { return WaitUrlForm.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PayModeChooseView.localeService = ILocaleService(param1); },function():ILocaleService { return PayModeChooseView.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PaymentFormOneTimePurchaseView.localeService = ILocaleService(param1); },function():ILocaleService { return PaymentFormOneTimePurchaseView.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PaymentFormView.localeService = ILocaleService(param1); },function():ILocaleService { return PaymentFormView.localeService; }); osgi.injectService(IDisplay,function(param1:Object):void { PromoCodeActivateForm.display = IDisplay(param1); },function():IDisplay { return PromoCodeActivateForm.display; }); osgi.injectService(ILocaleService,function(param1:Object):void { PromoCodeActivateForm.localeService = ILocaleService(param1); },function():ILocaleService { return PromoCodeActivateForm.localeService; }); osgi.injectService(IValidateService,function(param1:Object):void { PromoCodeActivateForm.validateService = IValidateService(param1); },function():IValidateService { return PromoCodeActivateForm.validateService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { GoodsChooseView.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return GoodsChooseView.paymentWindowService; }); osgi.injectService(ILocaleService,function(param1:Object):void { OtherShopItemButton.localeService = ILocaleService(param1); },function():ILocaleService { return OtherShopItemButton.localeService; }); osgi.injectService(TanksFontsFormatService,function(param1:Object):void { ShopItemButton.fontService = TanksFontsFormatService(param1); },function():TanksFontsFormatService { return ShopItemButton.fontService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ShopItemButton.localeService = ILocaleService(param1); },function():ILocaleService { return ShopItemButton.localeService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { ShopItemButton.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return ShopItemButton.paymentWindowService; }); osgi.injectService(ITimeUnitService,function(param1:Object):void { ShopItemButton.timeUnitService = ITimeUnitService(param1); },function():ITimeUnitService { return ShopItemButton.timeUnitService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { CashPackageButton.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return CashPackageButton.paymentWindowService; }); osgi.injectService(ILocaleService,function(param1:Object):void { KitPackageDescriptionView.localeService = ILocaleService(param1); },function():ILocaleService { return KitPackageDescriptionView.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { LicenseClanButton.localeService = ILocaleService(param1); },function():ILocaleService { return LicenseClanButton.localeService; }); osgi.injectService(IBlurService,function(param1:Object):void { ShopWindow.blurService = IBlurService(param1); },function():IBlurService { return ShopWindow.blurService; }); osgi.injectService(IClientLog,function(param1:Object):void { ShopWindow.clientLog = IClientLog(param1); },function():IClientLog { return ShopWindow.clientLog; }); osgi.injectService(CoinInfoService,function(param1:Object):void { ShopWindow.coinInfoService = CoinInfoService(param1); },function():CoinInfoService { return ShopWindow.coinInfoService; }); osgi.injectService(IDialogsService,function(param1:Object):void { ShopWindow.dialogsService = IDialogsService(param1); },function():IDialogsService { return ShopWindow.dialogsService; }); osgi.injectService(IDisplay,function(param1:Object):void { ShopWindow.display = IDisplay(param1); },function():IDisplay { return ShopWindow.display; }); osgi.injectService(ILocaleService,function(param1:Object):void { ShopWindow.localeService = ILocaleService(param1); },function():ILocaleService { return ShopWindow.localeService; }); osgi.injectService(IPartnerService,function(param1:Object):void { ShopWindow.partnerService = IPartnerService(param1); },function():IPartnerService { return ShopWindow.partnerService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { ShopWindow.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return ShopWindow.paymentDisplayService; }); osgi.injectService(ISettingsService,function(param1:Object):void { ShopWindow.settingsService = ISettingsService(param1); },function():ISettingsService { return ShopWindow.settingsService; }); osgi.injectService(ShopNotifierService,function(param1:Object):void { ShopWindow.shopNotifierService = ShopNotifierService(param1); },function():ShopNotifierService { return ShopWindow.shopNotifierService; }); osgi.injectService(IStorageService,function(param1:Object):void { ShopWindow.storageService = IStorageService(param1); },function():IStorageService { return ShopWindow.storageService; }); osgi.injectService(ITrackerService,function(param1:Object):void { ShopWindow.trackerService = ITrackerService(param1); },function():ITrackerService { return ShopWindow.trackerService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { ShopWindow.userPropertyService = IUserPropertiesService(param1); },function():IUserPropertiesService { return ShopWindow.userPropertyService; }); osgi.injectService(EmailReminderService,function(param1:Object):void { PaymentBugReportBlock.emailReminderService = EmailReminderService(param1); },function():EmailReminderService { return PaymentBugReportBlock.emailReminderService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PaymentBugReportBlock.localeService = ILocaleService(param1); },function():ILocaleService { return PaymentBugReportBlock.localeService; }); osgi.injectService(ProcessedPaymentService,function(param1:Object):void { PaymentBugReportBlock.processedPaymentService = ProcessedPaymentService(param1); },function():ProcessedPaymentService { return PaymentBugReportBlock.processedPaymentService; }); osgi.injectService(ISettingsService,function(param1:Object):void { PaymentBugReportBlock.settingsService = ISettingsService(param1); },function():ISettingsService { return PaymentBugReportBlock.settingsService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { PaymentBugReportBlock.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return PaymentBugReportBlock.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { AbstractSNGroupEnteringWindow.localeService = ILocaleService(param1); },function():ILocaleService { return AbstractSNGroupEnteringWindow.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { DateTimeHelper.localeService = ILocaleService(param1); },function():ILocaleService { return DateTimeHelper.localeService; }); osgi.injectService(IAchievementService,function(param1:Object):void { AchievementModel.achievementService = IAchievementService(param1); },function():IAchievementService { return AchievementModel.achievementService; }); osgi.injectService(IPanelView,function(param1:Object):void { AntiAddictionAlertModel.panelView = IPanelView(param1); },function():IPanelView { return AntiAddictionAlertModel.panelView; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { BonusImageShowingModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return BonusImageShowingModel.lobbyLayoutService; }); osgi.injectService(ChallengeShopItems,function(param1:Object):void { ChallengeShopItemsModel.challengeShopItems = ChallengeShopItems(param1); },function():ChallengeShopItems { return ChallengeShopItemsModel.challengeShopItems; }); osgi.injectService(BattlePassPurchaseService,function(param1:Object):void { BattlePassPurchaseNotifierModel.battlePassPurchaseService = BattlePassPurchaseService(param1); },function():BattlePassPurchaseService { return BattlePassPurchaseNotifierModel.battlePassPurchaseService; }); osgi.injectService(CoinInfoService,function(param1:Object):void { CoinInfoModel.coinInfoService = CoinInfoService(param1); },function():CoinInfoService { return CoinInfoModel.coinInfoService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { DonationAlertModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return DonationAlertModel.lobbyLayoutService; }); osgi.injectService(PaymentCompleteService,function(param1:Object):void { DonationAlertModel.paymentCompleteService = PaymentCompleteService(param1); },function():PaymentCompleteService { return DonationAlertModel.paymentCompleteService; }); osgi.injectService(ISettingsService,function(param1:Object):void { DonationAlertModel.settingsService = ISettingsService(param1); },function():ISettingsService { return DonationAlertModel.settingsService; }); osgi.injectService(IPanelView,function(param1:Object):void { EmailReminderModel.panelView = IPanelView(param1); },function():IPanelView { return EmailReminderModel.panelView; }); osgi.injectService(ISettingsService,function(param1:Object):void { EmailReminderModel.settingsService = ISettingsService(param1); },function():ISettingsService { return EmailReminderModel.settingsService; }); osgi.injectService(IAlertService,function(param1:Object):void { BattleInviteModel.alertService = IAlertService(param1); },function():IAlertService { return BattleInviteModel.alertService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { BattleInviteModel.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return BattleInviteModel.battleInfoService; }); osgi.injectService(IBattleInviteService,function(param1:Object):void { BattleInviteModel.battleInviteService = IBattleInviteService(param1); },function():IBattleInviteService { return BattleInviteModel.battleInviteService; }); osgi.injectService(IBattleLinkActivatorService,function(param1:Object):void { BattleInviteModel.battleLinkActivatorService = IBattleLinkActivatorService(param1); },function():IBattleLinkActivatorService { return BattleInviteModel.battleLinkActivatorService; }); osgi.injectService(IBlurService,function(param1:Object):void { BattleInviteModel.blurService = IBlurService(param1); },function():IBlurService { return BattleInviteModel.blurService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { BattleInviteModel.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return BattleInviteModel.friendInfoService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { BattleInviteModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return BattleInviteModel.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleInviteModel.localeService = ILocaleService(param1); },function():ILocaleService { return BattleInviteModel.localeService; }); osgi.injectService(IModalLoaderService,function(param1:Object):void { BattleInviteModel.modalLoaderService = IModalLoaderService(param1); },function():IModalLoaderService { return BattleInviteModel.modalLoaderService; }); osgi.injectService(INotificationService,function(param1:Object):void { BattleInviteModel.notificationService = INotificationService(param1); },function():INotificationService { return BattleInviteModel.notificationService; }); osgi.injectService(INotificationSoundService,function(param1:Object):void { BattleInviteModel.notificationSoundService = INotificationSoundService(param1); },function():INotificationSoundService { return BattleInviteModel.notificationSoundService; }); osgi.injectService(ReconnectService,function(param1:Object):void { BattleInviteModel.reconnectService = ReconnectService(param1); },function():ReconnectService { return BattleInviteModel.reconnectService; }); osgi.injectService(ServerNumberToLocaleServerService,function(param1:Object):void { BattleInviteModel.serverNameService = ServerNumberToLocaleServerService(param1); },function():ServerNumberToLocaleServerService { return BattleInviteModel.serverNameService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { BattleInviteModel.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return BattleInviteModel.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { BattleInviteModel.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return BattleInviteModel.userPropertiesService; }); osgi.injectService(IButtonBarService,function(param1:Object):void { FriendsLoaderModel.buttonBarService = IButtonBarService(param1); },function():IButtonBarService { return FriendsLoaderModel.buttonBarService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { FriendsLoaderModel.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return FriendsLoaderModel.clanUserInfoService; }); osgi.injectService(IDisplay,function(param1:Object):void { FriendsLoaderModel.display = IDisplay(param1); },function():IDisplay { return FriendsLoaderModel.display; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { FriendsLoaderModel.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return FriendsLoaderModel.friendInfoService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { AvailableItemsModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return AvailableItemsModel.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { AvailableItemsModel.localeService = ILocaleService(param1); },function():ILocaleService { return AvailableItemsModel.localeService; }); osgi.injectService(IModalLoaderService,function(param1:Object):void { AvailableItemsModel.modalLoaderService = IModalLoaderService(param1); },function():IModalLoaderService { return AvailableItemsModel.modalLoaderService; }); osgi.injectService(INotificationGarageCategoriesService,function(param1:Object):void { AvailableItemsModel.notificationGarageCategoriesService = INotificationGarageCategoriesService(param1); },function():INotificationGarageCategoriesService { return AvailableItemsModel.notificationGarageCategoriesService; }); osgi.injectService(UpgradingItemsService,function(param1:Object):void { UpgradingItemsModel.upgradingItemsService = UpgradingItemsService(param1); },function():UpgradingItemsService { return UpgradingItemsModel.upgradingItemsService; }); osgi.injectService(ILoaderWindowService,function(param1:Object):void { KitOfferDialog.loaderWindowService = ILoaderWindowService(param1); },function():ILoaderWindowService { return KitOfferDialog.loaderWindowService; }); osgi.injectService(ILocaleService,function(param1:Object):void { KitOfferDialog.localeService = ILocaleService(param1); },function():ILocaleService { return KitOfferDialog.localeService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { KitOfferDialog.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return KitOfferDialog.paymentDisplayService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { KitOfferModel.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return KitOfferModel.paymentDisplayService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { NewbiesAbonementShowInfoModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return NewbiesAbonementShowInfoModel.lobbyLayoutService; }); osgi.injectService(IAchievementService,function(param1:Object):void { PanelModel.achievementService = IAchievementService(param1); },function():IAchievementService { return PanelModel.achievementService; }); osgi.injectService(IAlertService,function(param1:Object):void { PanelModel.alertService = IAlertService(param1); },function():IAlertService { return PanelModel.alertService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { PanelModel.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return PanelModel.battleInfoService; }); osgi.injectService(ClanPanelNotificationService,function(param1:Object):void { PanelModel.clanPanelNotificationService = ClanPanelNotificationService(param1); },function():ClanPanelNotificationService { return PanelModel.clanPanelNotificationService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { PanelModel.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return PanelModel.clanUserInfoService; }); osgi.injectService(IDialogWindowsDispatcherService,function(param1:Object):void { PanelModel.dialogWindowsDispatcherService = IDialogWindowsDispatcherService(param1); },function():IDialogWindowsDispatcherService { return PanelModel.dialogWindowsDispatcherService; }); osgi.injectService(IDisplay,function(param1:Object):void { PanelModel.display = IDisplay(param1); },function():IDisplay { return PanelModel.display; }); osgi.injectService(FullscreenService,function(param1:Object):void { PanelModel.fullscreenService = FullscreenService(param1); },function():FullscreenService { return PanelModel.fullscreenService; }); osgi.injectService(FullscreenStateService,function(param1:Object):void { PanelModel.fullscreenStateService = FullscreenStateService(param1); },function():FullscreenStateService { return PanelModel.fullscreenStateService; }); osgi.injectService(IHelpService,function(param1:Object):void { PanelModel.helpService = IHelpService(param1); },function():IHelpService { return PanelModel.helpService; }); osgi.injectService(KeysBindingService,function(param1:Object):void { PanelModel.keysBindingService = KeysBindingService(param1); },function():KeysBindingService { return PanelModel.keysBindingService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { PanelModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return PanelModel.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PanelModel.localeService = ILocaleService(param1); },function():ILocaleService { return PanelModel.localeService; }); osgi.injectService(IPanelView,function(param1:Object):void { PanelModel.panelView = IPanelView(param1); },function():IPanelView { return PanelModel.panelView; }); osgi.injectService(IPartnerService,function(param1:Object):void { PanelModel.partnerService = IPartnerService(param1); },function():IPartnerService { return PanelModel.partnerService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { PanelModel.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return PanelModel.paymentDisplayService; }); osgi.injectService(IPaymentService,function(param1:Object):void { PanelModel.paymentService = IPaymentService(param1); },function():IPaymentService { return PanelModel.paymentService; }); osgi.injectService(ITrackerService,function(param1:Object):void { PanelModel.trackerService = ITrackerService(param1); },function():ITrackerService { return PanelModel.trackerService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { PanelModel.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return PanelModel.userChangeGameScreenService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { PanelModel.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return PanelModel.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { PanelModel.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return PanelModel.userPropertiesService; }); osgi.injectService(ILauncherParams,function(param1:Object):void { PaymentButtonModel.launchParams = ILauncherParams(param1); },function():ILauncherParams { return PaymentButtonModel.launchParams; }); osgi.injectService(IPanelView,function(param1:Object):void { PaymentButtonModel.panelView = IPanelView(param1); },function():IPanelView { return PaymentButtonModel.panelView; }); osgi.injectService(IPaymentService,function(param1:Object):void { PaymentButtonModel.paymentService = IPaymentService(param1); },function():IPaymentService { return PaymentButtonModel.paymentService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { PaymentLoaderModel.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return PaymentLoaderModel.paymentDisplayService; }); osgi.injectService(IPaymentPackagesService,function(param1:Object):void { CrystalsPaymentModel.paymentPackagesService = IPaymentPackagesService(param1); },function():IPaymentPackagesService { return CrystalsPaymentModel.paymentPackagesService; }); osgi.injectService(IPaymentService,function(param1:Object):void { CrystalsPaymentModel.paymentService = IPaymentService(param1); },function():IPaymentService { return CrystalsPaymentModel.paymentService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { CrystalsPaymentModel.paymentWindow = PaymentWindowService(param1); },function():PaymentWindowService { return CrystalsPaymentModel.paymentWindow; }); osgi.injectService(IAchievementService,function(param1:Object):void { PaymentModel.achievementService = IAchievementService(param1); },function():IAchievementService { return PaymentModel.achievementService; }); osgi.injectService(IBlurService,function(param1:Object):void { PaymentModel.blurService = IBlurService(param1); },function():IBlurService { return PaymentModel.blurService; }); osgi.injectService(ILoaderWindowService,function(param1:Object):void { PaymentModel.loaderWindowService = ILoaderWindowService(param1); },function():ILoaderWindowService { return PaymentModel.loaderWindowService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { PaymentModel.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return PaymentModel.paymentDisplayService; }); osgi.injectService(IPaymentService,function(param1:Object):void { PaymentModel.paymentService = IPaymentService(param1); },function():IPaymentService { return PaymentModel.paymentService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { PaymentModel.paymentWindow = PaymentWindowService(param1); },function():PaymentWindowService { return PaymentModel.paymentWindow; }); osgi.injectService(ITrackerService,function(param1:Object):void { PaymentModel.trackerService = ITrackerService(param1); },function():ITrackerService { return PaymentModel.trackerService; }); osgi.injectService(UserPaymentActionsService,function(param1:Object):void { PaymentModel.userPaymentActionService = UserPaymentActionsService(param1); },function():UserPaymentActionsService { return PaymentModel.userPaymentActionService; }); osgi.injectService(IPartnerService,function(param1:Object):void { PaymentModeModel.partnersService = IPartnerService(param1); },function():IPartnerService { return PaymentModeModel.partnersService; }); osgi.injectService(IPaymentService,function(param1:Object):void { PaymentModeModel.paymentService = IPaymentService(param1); },function():IPaymentService { return PaymentModeModel.paymentService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { PaymentModeModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return PaymentModeModel.paymentWindowService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { AlipayPaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return AlipayPaymentModel.paymentWindowService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { AsyncUrlPayModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return AsyncUrlPayModel.paymentWindowService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { BraintreePaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return BraintreePaymentModel.paymentWindowService; }); osgi.injectService(IClientLog,function(param1:Object):void { PayModeBottomDescriptionModel.clientLog = IClientLog(param1); },function():IClientLog { return PayModeBottomDescriptionModel.clientLog; }); osgi.injectService(IAlertService,function(param1:Object):void { ErrorsDescriptionModel.alertService = IAlertService(param1); },function():IAlertService { return ErrorsDescriptionModel.alertService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { Gate2ShopPaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return Gate2ShopPaymentModel.paymentWindowService; }); osgi.injectService(PaymentCompleteService,function(param1:Object):void { LeogamingPaymentMobileModel.paymentCompleteService = PaymentCompleteService(param1); },function():PaymentCompleteService { return LeogamingPaymentMobileModel.paymentCompleteService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { LeogamingPaymentMobileModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return LeogamingPaymentMobileModel.paymentWindowService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { OnlyUrlPaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return OnlyUrlPaymentModel.paymentWindowService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { PayGardenPaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return PayGardenPaymentModel.paymentWindowService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { PayPalPaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return PayPalPaymentModel.paymentWindowService; }); osgi.injectService(PaymentCompleteService,function(param1:Object):void { PlatBoxPaymentModel.paymentCompleteService = PaymentCompleteService(param1); },function():PaymentCompleteService { return PlatBoxPaymentModel.paymentCompleteService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { PlatBoxPaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return PlatBoxPaymentModel.paymentWindowService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { QiwiPaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return QiwiPaymentModel.paymentWindowService; }); osgi.injectService(IStorageService,function(param1:Object):void { SMSPayModeModel.storageService = IStorageService(param1); },function():IStorageService { return SMSPayModeModel.storageService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { GoToUrlPaymentModel.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return GoToUrlPaymentModel.paymentWindowService; }); osgi.injectService(EmailReminderService,function(param1:Object):void { PaymentWindowServiceImpl.emailReminderService = EmailReminderService(param1); },function():EmailReminderService { return PaymentWindowServiceImpl.emailReminderService; }); osgi.injectService(FullscreenService,function(param1:Object):void { PaymentWindowServiceImpl.fullscreenService = FullscreenService(param1); },function():FullscreenService { return PaymentWindowServiceImpl.fullscreenService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PaymentWindowServiceImpl.localeService = ILocaleService(param1); },function():ILocaleService { return PaymentWindowServiceImpl.localeService; }); osgi.injectService(IPartnerService,function(param1:Object):void { PaymentWindowServiceImpl.partnerService = IPartnerService(param1); },function():IPartnerService { return PaymentWindowServiceImpl.partnerService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { PaymentWindowServiceImpl.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return PaymentWindowServiceImpl.paymentDisplayService; }); osgi.injectService(ISettingsService,function(param1:Object):void { PaymentWindowServiceImpl.settingsService = ISettingsService(param1); },function():ISettingsService { return PaymentWindowServiceImpl.settingsService; }); osgi.injectService(UserPaymentActionsService,function(param1:Object):void { PaymentWindowServiceImpl.userPaymentActionsService = UserPaymentActionsService(param1); },function():UserPaymentActionsService { return PaymentWindowServiceImpl.userPaymentActionsService; }); osgi.injectService(PaymentWindowService,function(param1:Object):void { ProcessedPaymentServiceImp.paymentWindowService = PaymentWindowService(param1); },function():PaymentWindowService { return ProcessedPaymentServiceImp.paymentWindowService; }); osgi.injectService(IStorageService,function(param1:Object):void { ProcessedPaymentServiceImp.storageService = IStorageService(param1); },function():IStorageService { return ProcessedPaymentServiceImp.storageService; }); osgi.injectService(ShopNotifierService,function(param1:Object):void { ShopNotifierModel.shopNotifierService = ShopNotifierService(param1); },function():ShopNotifierService { return ShopNotifierModel.shopNotifierService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { QuantityRestrictionModel.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return QuantityRestrictionModel.paymentDisplayService; }); osgi.injectService(ILocaleService,function(param1:Object):void { RenameShopItemModel.localeService = ILocaleService(param1); },function():ILocaleService { return RenameShopItemModel.localeService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { PersonalDiscountModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return PersonalDiscountModel.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PersonalDiscountModel.localeService = ILocaleService(param1); },function():ILocaleService { return PersonalDiscountModel.localeService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { PersonalDiscountModel.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return PersonalDiscountModel.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PremiumAccountAlertModel.localeService = ILocaleService(param1); },function():ILocaleService { return PremiumAccountAlertModel.localeService; }); osgi.injectService(INotificationService,function(param1:Object):void { PremiumAccountAlertModel.notificationService = INotificationService(param1); },function():INotificationService { return PremiumAccountAlertModel.notificationService; }); osgi.injectService(PremiumService,function(param1:Object):void { PremiumAccountAlertModel.premiumService = PremiumService(param1); },function():PremiumService { return PremiumAccountAlertModel.premiumService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PremiumCompleteNotification.localeService = ILocaleService(param1); },function():ILocaleService { return PremiumCompleteNotification.localeService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { PremiumCompleteNotification.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return PremiumCompleteNotification.paymentDisplayService; }); osgi.injectService(INotificationGarageCategoriesService,function(param1:Object):void { NewPresentsShowingModel.notificationGarageCategoriesService = INotificationGarageCategoriesService(param1); },function():INotificationGarageCategoriesService { return NewPresentsShowingModel.notificationGarageCategoriesService; }); osgi.injectService(ISettingsService,function(param1:Object):void { PresentSettingsModel.settingsService = ISettingsService(param1); },function():ISettingsService { return PresentSettingsModel.settingsService; }); osgi.injectService(ThanksForDonationFormService,function(param1:Object):void { ShopPromoCodeModel.thanksForDonationFormService = ThanksForDonationFormService(param1); },function():ThanksForDonationFormService { return ShopPromoCodeModel.thanksForDonationFormService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ChallengesProgressView.localeService = ILocaleService(param1); },function():ILocaleService { return ChallengesProgressView.localeService; }); osgi.injectService(MissionsWindowsService,function(param1:Object):void { ChallengesTab.missionsWindowService = MissionsWindowsService(param1); },function():MissionsWindowsService { return ChallengesTab.missionsWindowService; }); osgi.injectService(BattlePassPurchaseService,function(param1:Object):void { ChallengesView.battlePassPurchaseService = BattlePassPurchaseService(param1); },function():BattlePassPurchaseService { return ChallengesView.battlePassPurchaseService; }); osgi.injectService(ChallengeInfoService,function(param1:Object):void { ChallengesView.challengeInfoService = ChallengeInfoService(param1); },function():ChallengeInfoService { return ChallengesView.challengeInfoService; }); osgi.injectService(ChallengeShopItems,function(param1:Object):void { ChallengesView.challengeShopItems = ChallengeShopItems(param1); },function():ChallengeShopItems { return ChallengesView.challengeShopItems; }); osgi.injectService(ILocaleService,function(param1:Object):void { ChallengesView.localeService = ILocaleService(param1); },function():ILocaleService { return ChallengesView.localeService; }); osgi.injectService(MissionsWindowsService,function(param1:Object):void { ChallengesView.missionsWindowService = MissionsWindowsService(param1); },function():MissionsWindowsService { return ChallengesView.missionsWindowService; }); osgi.injectService(IPartnerService,function(param1:Object):void { ChallengesView.partnerService = IPartnerService(param1); },function():IPartnerService { return ChallengesView.partnerService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { ChallengesView.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return ChallengesView.paymentDisplayService; }); osgi.injectService(StarsInfoService,function(param1:Object):void { ChallengesView.starsInfoService = StarsInfoService(param1); },function():StarsInfoService { return ChallengesView.starsInfoService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { ChallengesView.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return ChallengesView.userInfoService; }); osgi.injectService(ILocaleService,function(param1:Object):void { TierNumberView.localeService = ILocaleService(param1); },function():ILocaleService { return TierNumberView.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { TierRenderer.localeService = ILocaleService(param1); },function():ILocaleService { return TierRenderer.localeService; }); osgi.injectService(BattlePassPurchaseService,function(param1:Object):void { ChallengesRewardingModel.battlePassPurchaseService = BattlePassPurchaseService(param1); },function():BattlePassPurchaseService { return ChallengesRewardingModel.battlePassPurchaseService; }); osgi.injectService(ChallengesViewService,function(param1:Object):void { ChallengesRewardingModel.challengeService = ChallengesViewService(param1); },function():ChallengesViewService { return ChallengesRewardingModel.challengeService; }); osgi.injectService(MissionsWindowsService,function(param1:Object):void { ChallengesRewardingModel.missionsWindowService = MissionsWindowsService(param1); },function():MissionsWindowsService { return ChallengesRewardingModel.missionsWindowService; }); osgi.injectService(StarsInfoService,function(param1:Object):void { ChallengesRewardingModel.starsInfoService = StarsInfoService(param1); },function():StarsInfoService { return ChallengesRewardingModel.starsInfoService; }); osgi.injectService(ChallengesViewService,function(param1:Object):void { ChallengesRewardingUserModel.challengeViewService = ChallengesViewService(param1); },function():ChallengesViewService { return ChallengesRewardingUserModel.challengeViewService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ChallengesRewardingUserModel.localeService = ILocaleService(param1); },function():ILocaleService { return ChallengesRewardingUserModel.localeService; }); osgi.injectService(INotificationService,function(param1:Object):void { ChallengesRewardingUserModel.notificationService = INotificationService(param1); },function():INotificationService { return ChallengesRewardingUserModel.notificationService; }); osgi.injectService(IPanelView,function(param1:Object):void { StarsInfoModel.panelView = IPanelView(param1); },function():IPanelView { return StarsInfoModel.panelView; }); osgi.injectService(StarsInfoService,function(param1:Object):void { StarsInfoModel.starsInfoService = StarsInfoService(param1); },function():StarsInfoService { return StarsInfoModel.starsInfoService; }); osgi.injectService(ILocaleService,function(param1:Object):void { CommonQuestTab.localeService = ILocaleService(param1); },function():ILocaleService { return CommonQuestTab.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { QuestItemViewInfoPanel.localeService = ILocaleService(param1); },function():ILocaleService { return QuestItemViewInfoPanel.localeService; }); osgi.injectService(IButtonBarService,function(param1:Object):void { QuestWindow.buttonBarService = IButtonBarService(param1); },function():IButtonBarService { return QuestWindow.buttonBarService; }); osgi.injectService(ILocaleService,function(param1:Object):void { QuestWindow.localeService = ILocaleService(param1); },function():ILocaleService { return QuestWindow.localeService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { QuestWindow.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return QuestWindow.userChangeGameScreenService; }); osgi.injectService(ILocaleService,function(param1:Object):void { DailyQuestChangeButton.localeService = ILocaleService(param1); },function():ILocaleService { return DailyQuestChangeButton.localeService; }); osgi.injectService(IMoneyService,function(param1:Object):void { DailyQuestChangeButton.moneyService = IMoneyService(param1); },function():IMoneyService { return DailyQuestChangeButton.moneyService; }); osgi.injectService(ILocaleService,function(param1:Object):void { DailyQuestDisabledPrizeButton.localeService = ILocaleService(param1); },function():ILocaleService { return DailyQuestDisabledPrizeButton.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { QuestGetPrizeButton.localeService = ILocaleService(param1); },function():ILocaleService { return QuestGetPrizeButton.localeService; }); osgi.injectService(QuestNotifierService,function(param1:Object):void { QuestTabButton.questNotifierService = QuestNotifierService(param1); },function():QuestNotifierService { return QuestTabButton.questNotifierService; }); osgi.injectService(ILocaleService,function(param1:Object):void { QuestTabButtonsList.localeService = ILocaleService(param1); },function():ILocaleService { return QuestTabButtonsList.localeService; }); osgi.injectService(ChallengeInfoService,function(param1:Object):void { QuestTabButtonsList.starsEventService = ChallengeInfoService(param1); },function():ChallengeInfoService { return QuestTabButtonsList.starsEventService; }); osgi.injectService(QuestNotifierService,function(param1:Object):void { QuestNotifierModel.questNotifierService = QuestNotifierService(param1); },function():QuestNotifierService { return QuestNotifierModel.questNotifierService; }); osgi.injectService(DailyQuestsService,function(param1:Object):void { DailyQuestShowingModel.dailyQuestService = DailyQuestsService(param1); },function():DailyQuestsService { return DailyQuestShowingModel.dailyQuestService; }); osgi.injectService(MissionsWindowsService,function(param1:Object):void { DailyQuestShowingModel.missionsWindowsService = MissionsWindowsService(param1); },function():MissionsWindowsService { return DailyQuestShowingModel.missionsWindowsService; }); osgi.injectService(IMoneyService,function(param1:Object):void { DailyQuestShowingModel.moneyService = IMoneyService(param1); },function():IMoneyService { return DailyQuestShowingModel.moneyService; }); osgi.injectService(IMoneyService,function(param1:Object):void { DailyQuestItemView.moneyService = IMoneyService(param1); },function():IMoneyService { return DailyQuestItemView.moneyService; }); osgi.injectService(IMoneyService,function(param1:Object):void { DailyQuestTab.moneyService = IMoneyService(param1); },function():IMoneyService { return DailyQuestTab.moneyService; }); osgi.injectService(QuestNotifierService,function(param1:Object):void { DailyQuestTab.questNotifierService = QuestNotifierService(param1); },function():QuestNotifierService { return DailyQuestTab.questNotifierService; }); osgi.injectService(MissionsWindowsService,function(param1:Object):void { WeeklyQuestShowingModel.missionsWindowsService = MissionsWindowsService(param1); },function():MissionsWindowsService { return WeeklyQuestShowingModel.missionsWindowsService; }); osgi.injectService(WeeklyQuestsService,function(param1:Object):void { WeeklyQuestShowingModel.weeklyQuestsService = WeeklyQuestsService(param1); },function():WeeklyQuestsService { return WeeklyQuestShowingModel.weeklyQuestsService; }); osgi.injectService(QuestNotifierService,function(param1:Object):void { WeeklyQuestTab.questNotifierService = QuestNotifierService(param1); },function():QuestNotifierService { return WeeklyQuestTab.questNotifierService; }); osgi.injectService(ReferralsService,function(param1:Object):void { ReferralsModel.referralService = ReferralsService(param1); },function():ReferralsService { return ReferralsModel.referralService; }); osgi.injectService(NewReferralsNotifierService,function(param1:Object):void { NewReferralsNotifierModel.newReferralsNotifierService = NewReferralsNotifierService(param1); },function():NewReferralsNotifierService { return NewReferralsNotifierModel.newReferralsNotifierService; }); osgi.injectService(IDialogsService,function(param1:Object):void { RulesUpdateShowingModel.dialogService = IDialogsService(param1); },function():IDialogsService { return RulesUpdateShowingModel.dialogService; }); osgi.injectService(IAlertService,function(param1:Object):void { SettingsModel.alertService = IAlertService(param1); },function():IAlertService { return SettingsModel.alertService; }); osgi.injectService(IBattleInviteService,function(param1:Object):void { SettingsModel.battleInviteService = IBattleInviteService(param1); },function():IBattleInviteService { return SettingsModel.battleInviteService; }); osgi.injectService(FullscreenService,function(param1:Object):void { SettingsModel.fullscreenService = FullscreenService(param1); },function():FullscreenService { return SettingsModel.fullscreenService; }); osgi.injectService(ILocaleService,function(param1:Object):void { SettingsModel.localeService = ILocaleService(param1); },function():ILocaleService { return SettingsModel.localeService; }); osgi.injectService(IPanelView,function(param1:Object):void { SettingsModel.panelView = IPanelView(param1); },function():IPanelView { return SettingsModel.panelView; }); osgi.injectService(PasswordService,function(param1:Object):void { SettingsModel.passwordService = PasswordService(param1); },function():PasswordService { return SettingsModel.passwordService; }); osgi.injectService(ISettingsService,function(param1:Object):void { SettingsModel.settingsService = ISettingsService(param1); },function():ISettingsService { return SettingsModel.settingsService; }); osgi.injectService(IAlertService,function(param1:Object):void { SocialNetworkPanelModel.alertService = IAlertService(param1); },function():IAlertService { return SocialNetworkPanelModel.alertService; }); osgi.injectService(ILocaleService,function(param1:Object):void { SocialNetworkPanelModel.localeService = ILocaleService(param1); },function():ILocaleService { return SocialNetworkPanelModel.localeService; }); osgi.injectService(ISocialNetworkPanelService,function(param1:Object):void { SocialNetworkPanelModel.socialNetworkService = ISocialNetworkPanelService(param1); },function():ISocialNetworkPanelService { return SocialNetworkPanelModel.socialNetworkService; }); osgi.injectService(CountryService,function(param1:Object):void { UserCountryModel.countryService = CountryService(param1); },function():CountryService { return UserCountryModel.countryService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { UserCountryModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return UserCountryModel.lobbyLayoutService; }); osgi.injectService(PaymentDisplayService,function(param1:Object):void { UserCountryModel.paymentDisplayService = PaymentDisplayService(param1); },function():PaymentDisplayService { return UserCountryModel.paymentDisplayService; }); osgi.injectService(IPaymentService,function(param1:Object):void { UserCountryModel.paymentService = IPaymentService(param1); },function():IPaymentService { return UserCountryModel.paymentService; }); osgi.injectService(UserPaymentActionsService,function(param1:Object):void { UserCountryModel.userPaymentActionService = UserPaymentActionsService(param1); },function():UserPaymentActionsService { return UserCountryModel.userPaymentActionService; }); osgi.injectService(IAlertService,function(param1:Object):void { UserEmailAndPasswordModel.alertService = IAlertService(param1); },function():IAlertService { return UserEmailAndPasswordModel.alertService; }); osgi.injectService(IPanelView,function(param1:Object):void { UserEmailAndPasswordModel.panelView = IPanelView(param1); },function():IPanelView { return UserEmailAndPasswordModel.panelView; }); osgi.injectService(ISettingsService,function(param1:Object):void { UserEmailAndPasswordModel.settingService = ISettingsService(param1); },function():ISettingsService { return UserEmailAndPasswordModel.settingService; }); osgi.injectService(ISocialNetworkPanelService,function(param1:Object):void { UserEmailAndPasswordModel.socialNetworkPanelService = ISocialNetworkPanelService(param1); },function():ISocialNetworkPanelService { return UserEmailAndPasswordModel.socialNetworkPanelService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { UserPropertiesModel.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return UserPropertiesModel.clanUserInfoService; }); osgi.injectService(IDisplay,function(param1:Object):void { UserPropertiesModel.display = IDisplay(param1); },function():IDisplay { return UserPropertiesModel.display; }); osgi.injectService(IHelpService,function(param1:Object):void { UserPropertiesModel.helpService = IHelpService(param1); },function():IHelpService { return UserPropertiesModel.helpService; }); osgi.injectService(IMoneyService,function(param1:Object):void { UserPropertiesModel.moneyService = IMoneyService(param1); },function():IMoneyService { return UserPropertiesModel.moneyService; }); osgi.injectService(IPanelView,function(param1:Object):void { UserPropertiesModel.panelView = IPanelView(param1); },function():IPanelView { return UserPropertiesModel.panelView; }); osgi.injectService(StarsInfoService,function(param1:Object):void { UserPropertiesModel.starsInfoService = StarsInfoService(param1); },function():StarsInfoService { return UserPropertiesModel.starsInfoService; }); osgi.injectService(ITrackerService,function(param1:Object):void { UserPropertiesModel.trackerService = ITrackerService(param1); },function():ITrackerService { return UserPropertiesModel.trackerService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { UserPropertiesModel.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return UserPropertiesModel.userPropertiesService; }); osgi.injectService(IStorageService,function(param1:Object):void { UsersCounterModel.storageService = IStorageService(param1); },function():IStorageService { return UsersCounterModel.storageService; }); osgi.injectService(ClanPanelNotificationService,function(param1:Object):void { AchievementService.clanPanelNotification = ClanPanelNotificationService(param1); },function():ClanPanelNotificationService { return AchievementService.clanPanelNotification; }); osgi.injectService(IDisplay,function(param1:Object):void { AchievementService.display = IDisplay(param1); },function():IDisplay { return AchievementService.display; }); osgi.injectService(IHelpService,function(param1:Object):void { AchievementService.helpService = IHelpService(param1); },function():IHelpService { return AchievementService.helpService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { AchievementService.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return AchievementService.lobbyLayoutService; }); osgi.injectService(IPartnerService,function(param1:Object):void { AchievementService.partnersService = IPartnerService(param1); },function():IPartnerService { return AchievementService.partnersService; }); osgi.injectService(IAlertService,function(param1:Object):void { BattleLinkActivatorService.alertService = IAlertService(param1); },function():IAlertService { return BattleLinkActivatorService.alertService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { BattleLinkActivatorService.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return BattleLinkActivatorService.battleInfoService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { BattleLinkActivatorService.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return BattleLinkActivatorService.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleLinkActivatorService.localeService = ILocaleService(param1); },function():ILocaleService { return BattleLinkActivatorService.localeService; }); osgi.injectService(IStorageService,function(param1:Object):void { BattleLinkActivatorService.storageService = IStorageService(param1); },function():IStorageService { return BattleLinkActivatorService.storageService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { BattleLinkActivatorService.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return BattleLinkActivatorService.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { BattleLinkActivatorService.userPropertyService = IUserPropertiesService(param1); },function():IUserPropertiesService { return BattleLinkActivatorService.userPropertyService; }); osgi.injectService(IDisplay,function(param1:Object):void { FPSServiceImpl.dispay = IDisplay(param1); },function():IDisplay { return FPSServiceImpl.dispay; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { UserChangeGameScreenServiceImpl.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return UserChangeGameScreenServiceImpl.lobbyLayoutService; }); osgi.injectService(IAlertService,function(param1:Object):void { MoneyService.alertService = IAlertService(param1); },function():IAlertService { return MoneyService.alertService; }); osgi.injectService(ILocaleService,function(param1:Object):void { MoneyService.localeService = ILocaleService(param1); },function():ILocaleService { return MoneyService.localeService; }); osgi.injectService(IPanelView,function(param1:Object):void { MoneyService.panelView = IPanelView(param1); },function():IPanelView { return MoneyService.panelView; }); osgi.injectService(IPaymentService,function(param1:Object):void { MoneyService.paymentService = IPaymentService(param1); },function():IPaymentService { return MoneyService.paymentService; }); osgi.injectService(IStorageService,function(param1:Object):void { NotificationGarageCategoriesService.storageService = IStorageService(param1); },function():IStorageService { return NotificationGarageCategoriesService.storageService; }); osgi.injectService(IAlertService,function(param1:Object):void { PanelView.alertService = IAlertService(param1); },function():IAlertService { return PanelView.alertService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { PanelView.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return PanelView.userChangeGameScreenService; }); osgi.injectService(IPartnerService,function(param1:Object):void { PaymentService.partnerService = IPartnerService(param1); },function():IPartnerService { return PaymentService.partnerService; }); osgi.injectService(IAchievementService,function(param1:Object):void { PaymentDisplayServiceImpl.achievementService = IAchievementService(param1); },function():IAchievementService { return PaymentDisplayServiceImpl.achievementService; }); osgi.injectService(IBlurService,function(param1:Object):void { PaymentDisplayServiceImpl.blurService = IBlurService(param1); },function():IBlurService { return PaymentDisplayServiceImpl.blurService; }); osgi.injectService(CountryService,function(param1:Object):void { PaymentDisplayServiceImpl.countryService = CountryService(param1); },function():CountryService { return PaymentDisplayServiceImpl.countryService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { PaymentDisplayServiceImpl.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return PaymentDisplayServiceImpl.lobbyLayoutService; }); osgi.injectService(IModalLoaderService,function(param1:Object):void { PaymentDisplayServiceImpl.modalLoaderService = IModalLoaderService(param1); },function():IModalLoaderService { return PaymentDisplayServiceImpl.modalLoaderService; }); osgi.injectService(IPartnerService,function(param1:Object):void { PaymentDisplayServiceImpl.partnerService = IPartnerService(param1); },function():IPartnerService { return PaymentDisplayServiceImpl.partnerService; }); osgi.injectService(IPaymentService,function(param1:Object):void { PaymentDisplayServiceImpl.paymentService = IPaymentService(param1); },function():IPaymentService { return PaymentDisplayServiceImpl.paymentService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { PaymentDisplayServiceImpl.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return PaymentDisplayServiceImpl.userChangeGameScreenService; }); osgi.injectService(UserPaymentActionsService,function(param1:Object):void { PaymentDisplayServiceImpl.userPaymentActionsService = UserPaymentActionsService(param1); },function():UserPaymentActionsService { return PaymentDisplayServiceImpl.userPaymentActionsService; }); osgi.injectService(IPartnerService,function(param1:Object):void { ReferralsButtonHelperServiceImpl.partnerService = IPartnerService(param1); },function():IPartnerService { return ReferralsButtonHelperServiceImpl.partnerService; }); osgi.injectService(IBattleInviteService,function(param1:Object):void { SettingsService.battleInviteService = IBattleInviteService(param1); },function():IBattleInviteService { return SettingsService.battleInviteService; }); osgi.injectService(IStorageService,function(param1:Object):void { SettingsService.storageService = IStorageService(param1); },function():IStorageService { return SettingsService.storageService; }); osgi.injectService(ILocaleService,function(param1:Object):void { KeyCodesConverter.localeService = ILocaleService(param1); },function():ILocaleService { return KeyCodesConverter.localeService; }); osgi.injectService(IPartnerService,function(param1:Object):void { SNFriendsServiceImpl.partnerService = IPartnerService(param1); },function():IPartnerService { return SNFriendsServiceImpl.partnerService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { UpgradingItemsServiceImpl.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return UpgradingItemsServiceImpl.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { UpgradingItemsServiceImpl.localeService = ILocaleService(param1); },function():ILocaleService { return UpgradingItemsServiceImpl.localeService; }); modelRegister = osgi.getService(ModelRegistry) as ModelRegistry; modelRegister.add(new UserAbonementsModel()); modelRegister.add(new AchievementModel()); modelRegister.add(new AndroidAppRatingModel()); modelRegister.add(new AntiAddictionAlertModel()); modelRegisterAdapt = osgi.getService(ModelRegistry) as ModelRegistry; modelRegisterAdapt.registerAdapt(IAntiAddictionAlert,IAntiAddictionAlertAdapt); modelRegisterAdapt.registerEvents(IAntiAddictionAlert,IAntiAddictionAlertEvents); modelRegister.add(new BonusImageShowingModel()); modelRegisterAdapt.registerAdapt(BonusInfo,BonusInfoAdapt); modelRegisterAdapt.registerEvents(BonusInfo,BonusInfoEvents); modelRegister.add(new BonusInfoModel()); modelRegisterAdapt.registerAdapt(BonusItem,BonusItemAdapt); modelRegisterAdapt.registerEvents(BonusItem,BonusItemEvents); modelRegister.add(new BonusItemModel()); modelRegister.add(new BonusItemsShowingModel()); modelRegister.add(new ChallengeShopItemsModel()); modelRegister.add(new BattlePassPackageModel()); modelRegister.add(new BattlePassPurchaseNotifierModel()); modelRegister.add(new CoinInfoModel()); modelRegister.add(new DonationProfileModel()); modelRegister.add(new DonationAlertModel()); modelRegisterAdapt.registerAdapt(ThanksForDonationFormService,ThanksForDonationFormServiceAdapt); modelRegisterAdapt.registerEvents(ThanksForDonationFormService,ThanksForDonationFormServiceEvents); modelRegister.add(new EmailReminderModel()); modelRegisterAdapt.registerAdapt(EmailReminderService,EmailReminderServiceAdapt); modelRegisterAdapt.registerEvents(EmailReminderService,EmailReminderServiceEvents); modelRegister.add(new EntranceAlertModel()); modelRegister.add(new BattleInviteModel()); modelRegister.add(new FriendsLoaderModel()); modelRegister.add(new AvailableItemsModel()); modelRegister.add(new AvailableUpgradesModel()); modelRegister.add(new RankUpSupplyBonusModel()); modelRegisterAdapt.registerAdapt(ModuleResistances,ModuleResistancesAdapt); modelRegisterAdapt.registerEvents(ModuleResistances,ModuleResistancesEvents); modelRegister.add(new ResistancesListModel()); modelRegister.add(new UpgradingItemsModel()); modelRegister.add(new KitOfferModel()); modelRegister.add(new MobileQuestModel()); modelRegister.add(new MobileQuestProfileModel()); modelRegister.add(new NewbiesAbonementShowInfoModel()); modelRegister.add(new PanelModel()); modelRegister.add(new PaymentButtonModel()); modelRegister.add(new PaymentLoaderModel()); modelRegister.add(new CrystalsPaymentModel()); modelRegister.add(new PaymentModel()); modelRegister.add(new AndroidBannerModel()); modelRegister.add(new AndroidPurchaseOfUpgradesModel()); modelRegister.add(new AndroidPurchaseOfUpgradesUserModel()); modelRegister.add(new AndroidSpecialOfferModel()); modelRegister.add(new MediumTimeOfferModel()); modelRegister.add(new ShopItemLoaderForAndroidModel()); modelRegisterAdapt.registerAdapt(PayFullDescription,PayFullDescriptionAdapt); modelRegisterAdapt.registerEvents(PayFullDescription,PayFullDescriptionEvents); modelRegisterAdapt.registerAdapt(PayModeView,PayModeViewAdapt); modelRegisterAdapt.registerEvents(PayModeView,PayModeViewEvents); modelRegisterAdapt.registerAdapt(CrystalsOnlyPaymentMode,CrystalsOnlyPaymentModeAdapt); modelRegisterAdapt.registerEvents(CrystalsOnlyPaymentMode,CrystalsOnlyPaymentModeEvents); modelRegisterAdapt.registerAdapt(PayMode,PayModeAdapt); modelRegisterAdapt.registerEvents(PayMode,PayModeEvents); modelRegisterAdapt.registerAdapt(PayModeDescription,PayModeDescriptionAdapt); modelRegisterAdapt.registerEvents(PayModeDescription,PayModeDescriptionEvents); modelRegisterAdapt.registerAdapt(PayModeManualDescription,PayModeManualDescriptionAdapt); modelRegisterAdapt.registerEvents(PayModeManualDescription,PayModeManualDescriptionEvents); modelRegisterAdapt.registerAdapt(PayUrl,PayUrlAdapt); modelRegisterAdapt.registerEvents(PayUrl,PayUrlEvents); modelRegister.add(new PaymentModeModel()); modelRegister.add(new AlipayPaymentModel()); modelRegisterAdapt.registerAdapt(AsyncUrlPayMode,AsyncUrlPayModeAdapt); modelRegisterAdapt.registerEvents(AsyncUrlPayMode,AsyncUrlPayModeEvents); modelRegister.add(new AsyncUrlPayModel()); modelRegisterAdapt.registerAdapt(BraintreePayment,BraintreePaymentAdapt); modelRegisterAdapt.registerEvents(BraintreePayment,BraintreePaymentEvents); modelRegister.add(new BraintreePaymentModel()); modelRegisterAdapt.registerAdapt(PayModeBottomDescription,PayModeBottomDescriptionAdapt); modelRegisterAdapt.registerEvents(PayModeBottomDescription,PayModeBottomDescriptionEvents); modelRegisterAdapt.registerAdapt(PayModeBottomDescriptionInternal,PayModeBottomDescriptionInternalAdapt); modelRegisterAdapt.registerEvents(PayModeBottomDescriptionInternal,PayModeBottomDescriptionInternalEvents); modelRegister.add(new PayModeBottomDescriptionModel()); modelRegisterAdapt.registerAdapt(ErrorDescription,ErrorDescriptionAdapt); modelRegisterAdapt.registerEvents(ErrorDescription,ErrorDescriptionEvents); modelRegister.add(new ErrorsDescriptionModel()); modelRegisterAdapt.registerAdapt(Gate2ShopPayment,Gate2ShopPaymentAdapt); modelRegisterAdapt.registerEvents(Gate2ShopPayment,Gate2ShopPaymentEvents); modelRegister.add(new Gate2ShopPaymentModel()); modelRegister.add(new LeogamingPaymentMobileModel()); modelRegisterAdapt.registerAdapt(LeogamingPaymentMode,LeogamingPaymentModeAdapt); modelRegisterAdapt.registerEvents(LeogamingPaymentMode,LeogamingPaymentModeEvents); modelRegisterAdapt.registerAdapt(OnlyUrlPayMode,OnlyUrlPayModeAdapt); modelRegisterAdapt.registerEvents(OnlyUrlPayMode,OnlyUrlPayModeEvents); modelRegister.add(new OnlyUrlPaymentModel()); modelRegisterAdapt.registerAdapt(PayGardenPayment,PayGardenPaymentAdapt); modelRegisterAdapt.registerEvents(PayGardenPayment,PayGardenPaymentEvents); modelRegister.add(new PayGardenPaymentModel()); modelRegisterAdapt.registerAdapt(PayPalPayment,PayPalPaymentAdapt); modelRegisterAdapt.registerEvents(PayPalPayment,PayPalPaymentEvents); modelRegister.add(new PayPalPaymentModel()); modelRegister.add(new PlatBoxPaymentModel()); modelRegisterAdapt.registerAdapt(PriceRange,PriceRangeAdapt); modelRegisterAdapt.registerEvents(PriceRange,PriceRangeEvents); modelRegister.add(new PriceRangeModel()); modelRegisterAdapt.registerAdapt(QiwiPayment,QiwiPaymentAdapt); modelRegisterAdapt.registerEvents(QiwiPayment,QiwiPaymentEvents); modelRegister.add(new QiwiPaymentModel()); modelRegisterAdapt.registerAdapt(SMSPayMode,SMSPayModeAdapt); modelRegisterAdapt.registerEvents(SMSPayMode,SMSPayModeEvents); modelRegister.add(new SMSPayModeModel()); modelRegisterAdapt.registerAdapt(TerminalPayMode,TerminalPayModeAdapt); modelRegisterAdapt.registerEvents(TerminalPayMode,TerminalPayModeEvents); modelRegister.add(new TerminalPaymentModel()); modelRegister.add(new GoToUrlPaymentModel()); modelRegisterAdapt.registerAdapt(ShopItemDetailsView,ShopItemDetailsViewAdapt); modelRegisterAdapt.registerEvents(ShopItemDetailsView,ShopItemDetailsViewEvents); modelRegisterAdapt.registerAdapt(ShopItemView,ShopItemViewAdapt); modelRegisterAdapt.registerEvents(ShopItemView,ShopItemViewEvents); modelRegisterAdapt.registerAdapt(CashPackage,CashPackageAdapt); modelRegisterAdapt.registerEvents(CashPackage,CashPackageEvents); modelRegisterAdapt.registerAdapt(ShopCategory,ShopCategoryAdapt); modelRegisterAdapt.registerEvents(ShopCategory,ShopCategoryEvents); modelRegister.add(new ShopCategoryModel()); modelRegister.add(new CoinPackageModel()); modelRegisterAdapt.registerAdapt(CrystalPackage,CrystalPackageAdapt); modelRegisterAdapt.registerEvents(CrystalPackage,CrystalPackageEvents); modelRegister.add(new CrystalPackageModel()); modelRegisterAdapt.registerAdapt(ShopItemAdditionalDescription,ShopItemAdditionalDescriptionAdapt); modelRegisterAdapt.registerEvents(ShopItemAdditionalDescription,ShopItemAdditionalDescriptionEvents); modelRegister.add(new ShopItemAdditionalDescriptionModel()); modelRegisterAdapt.registerAdapt(ShopDiscount,ShopDiscountAdapt); modelRegisterAdapt.registerEvents(ShopDiscount,ShopDiscountEvents); modelRegister.add(new ShopDiscountModel()); modelRegister.add(new EmailRequiredModel()); modelRegisterAdapt.registerAdapt(ShopItemEmailRequired,ShopItemEmailRequiredAdapt); modelRegisterAdapt.registerEvents(ShopItemEmailRequired,ShopItemEmailRequiredEvents); modelRegisterAdapt.registerAdapt(ShopItemFeaturing,ShopItemFeaturingAdapt); modelRegisterAdapt.registerEvents(ShopItemFeaturing,ShopItemFeaturingEvents); modelRegister.add(new ShopItemFeaturingModel()); modelRegisterAdapt.registerAdapt(GoldBoxPackage,GoldBoxPackageAdapt); modelRegisterAdapt.registerEvents(GoldBoxPackage,GoldBoxPackageEvents); modelRegister.add(new GoldBoxPackageModel()); modelRegisterAdapt.registerAdapt(Indemnity,IndemnityAdapt); modelRegisterAdapt.registerEvents(Indemnity,IndemnityEvents); modelRegister.add(new IndemnityModel()); modelRegisterAdapt.registerAdapt(ShopItem,ShopItemAdapt); modelRegisterAdapt.registerEvents(ShopItem,ShopItemEvents); modelRegister.add(new ShopItemModel()); modelRegisterAdapt.registerAdapt(ShopItemCategory,ShopItemCategoryAdapt); modelRegisterAdapt.registerEvents(ShopItemCategory,ShopItemCategoryEvents); modelRegister.add(new ShopItemCategoryModel()); modelRegisterAdapt.registerAdapt(KitPackage,KitPackageAdapt); modelRegisterAdapt.registerEvents(KitPackage,KitPackageEvents); modelRegister.add(new KitPackageModel()); modelRegister.add(new KitPackageViewModel()); modelRegister.add(new KitViewButtonWithPriceModel()); modelRegisterAdapt.registerAdapt(KitViewResource,KitViewResourceAdapt); modelRegisterAdapt.registerEvents(KitViewResource,KitViewResourceEvents); modelRegister.add(new KitViewResourceModel()); modelRegister.add(new KitViewResourceLocalizedModel()); modelRegister.add(new LicenseClanShopItemModel()); modelRegisterAdapt.registerAdapt(LootBoxPackage,LootBoxPackageAdapt); modelRegisterAdapt.registerEvents(LootBoxPackage,LootBoxPackageEvents); modelRegister.add(new LootBoxPackageModel()); modelRegister.add(new LootboxAndPaintModel()); modelRegister.add(new ShopNotifierModel()); modelRegister.add(new EventOneTimePurchaseModel()); modelRegisterAdapt.registerAdapt(ShopItemOneTimePurchase,ShopItemOneTimePurchaseAdapt); modelRegisterAdapt.registerEvents(ShopItemOneTimePurchase,ShopItemOneTimePurchaseEvents); modelRegister.add(new ShopItemOneTimePurchaseModel()); modelRegisterAdapt.registerAdapt(PaintPackage,PaintPackageAdapt); modelRegisterAdapt.registerEvents(PaintPackage,PaintPackageEvents); modelRegister.add(new PaintPackageModel()); modelRegisterAdapt.registerAdapt(PremiumPackage,PremiumPackageAdapt); modelRegisterAdapt.registerEvents(PremiumPackage,PremiumPackageEvents); modelRegister.add(new PremiumPackageModel()); modelRegisterAdapt.registerAdapt(QuantityRestriction,QuantityRestrictionAdapt); modelRegisterAdapt.registerEvents(QuantityRestriction,QuantityRestrictionEvents); modelRegister.add(new QuantityRestrictionModel()); modelRegister.add(new RenameShopItemModel()); modelRegister.add(new KitBundleViewModel()); modelRegister.add(new ActiveShopAbonementsModel()); modelRegisterAdapt.registerAdapt(ShopAbonements,ShopAbonementsAdapt); modelRegisterAdapt.registerEvents(ShopAbonements,ShopAbonementsEvents); modelRegister.add(new RestrictionByPayModeModel()); modelRegisterAdapt.registerAdapt(SinglePayMode,SinglePayModeAdapt); modelRegisterAdapt.registerEvents(SinglePayMode,SinglePayModeEvents); modelRegisterAdapt.registerAdapt(SpecialKitPackage,SpecialKitPackageAdapt); modelRegisterAdapt.registerEvents(SpecialKitPackage,SpecialKitPackageEvents); modelRegister.add(new SpecialKitPackageModel()); modelRegister.add(new NewbieKitViewModel()); modelRegisterAdapt.registerAdapt(PayPalKitView,PayPalKitViewAdapt); modelRegisterAdapt.registerEvents(PayPalKitView,PayPalKitViewEvents); modelRegister.add(new PayPalKitViewModel()); modelRegister.add(new SingleItemKitViewModel()); modelRegister.add(new PersonalDiscountModel()); modelRegister.add(new PremiumAccountAlertModel()); modelRegister.add(new NewPresentsShowingModel()); modelRegister.add(new PresentSettingsModel()); modelRegister.add(new AndroidRenameModel()); modelRegisterAdapt.registerAdapt(ShopPromoCode,ShopPromoCodeAdapt); modelRegisterAdapt.registerEvents(ShopPromoCode,ShopPromoCodeEvents); modelRegister.add(new ShopPromoCodeModel()); modelRegister.add(new FirebasePushNotificationPanelUserProfileModel()); modelRegister.add(new ChallengesRewardingModel()); modelRegister.add(new ChallengesRewardingUserModel()); modelRegister.add(new StarsInfoModel()); modelRegister.add(new QuestNotifierModel()); modelRegister.add(new DailyQuestShowingModel()); modelRegister.add(new WeeklyQuestShowingModel()); modelRegister.add(new RankUpBonusAlertModel()); modelRegister.add(new ReferralsModel()); modelRegister.add(new NewReferralsNotifierModel()); modelRegister.add(new RulesUpdateShowingModel()); modelRegister.add(new SettingsModel()); modelRegister.add(new SocialNetworkPanelModel()); modelRegister.add(new SNGroupReminderModel()); modelRegister.add(new TutorialHintsModel()); modelRegister.add(new UserCountryModel()); modelRegisterAdapt.registerAdapt(IUserEmailAndPassword,IUserEmailAndPasswordAdapt); modelRegisterAdapt.registerEvents(IUserEmailAndPassword,IUserEmailAndPasswordEvents); modelRegisterAdapt.registerAdapt(PasswordService,PasswordServiceAdapt); modelRegisterAdapt.registerEvents(PasswordService,PasswordServiceEvents); modelRegister.add(new UserEmailAndPasswordModel()); modelRegisterAdapt.registerAdapt(IUserProperties,IUserPropertiesAdapt); modelRegisterAdapt.registerEvents(IUserProperties,IUserPropertiesEvents); modelRegister.add(new UserPropertiesModel()); modelRegister.add(new UsersCounterModel()); modelRegister.add(new VideoAdsBattleResultModel()); modelRegister.add(new VideoAdsModel()); } public function stop(param1:OSGi) : void { } } }
package alternativa.tanks.gui.friends { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.friends.FriendsWindowStateBigButton_ButtonLeft.png")] public class FriendsWindowStateBigButton_ButtonLeft extends BitmapAsset { public function FriendsWindowStateBigButton_ButtonLeft() { super(); } } }
package alternativa.tanks.battle.scene3d { import alternativa.tanks.battle.*; public class RenderGroup { private var renderers:Vector.<Renderer> = new Vector.<Renderer>(); private var size:int; private var rendering:Boolean; private const deferredActions:Vector.<DeferredAction> = new Vector.<DeferredAction>(); public function RenderGroup() { super(); } public function addRenderer(param1:Renderer) : void { if(this.rendering) { this.deferredActions.push(new DeferredRendererAddition(this,param1)); } else if(this.renderers.indexOf(param1) < 0) { var local2:* = this.size++; this.renderers[local2] = param1; } } public function removeRenderer(param1:Renderer) : void { var local2:int = 0; if(this.rendering) { this.deferredActions.push(new DeferredRendererDeletion(this,param1)); } else { local2 = int(this.renderers.indexOf(param1)); if(local2 >= 0) { this.renderers[local2] = this.renderers[--this.size]; this.renderers[this.size] = null; } } } public function render(param1:int, param2:int) : void { var local4:Renderer = null; this.rendering = true; var local3:int = 0; while(local3 < this.size) { local4 = this.renderers[local3]; local4.render(param1,param2); local3++; } this.rendering = false; this.executeDeferredActions(); } private function executeDeferredActions() : void { var local1:DeferredAction = null; while(true) { local1 = this.deferredActions.pop(); if(local1 == null) { break; } local1.execute(); } } } }
package alternativa.tanks.models.battle.gui.gui.statistics.field.score.ctf { import alternativa.tanks.models.battle.gui.gui.statistics.field.score.ctf.flagindicator.FlagIndicator; import controls.Label; import controls.resultassets.WhiteFrame; import flash.display.Bitmap; import flash.display.GradientType; import flash.display.Graphics; import flash.display.SpreadMethod; import flash.display.Sprite; import flash.events.Event; import flash.geom.Matrix; import flash.text.TextFieldAutoSize; import flash.utils.getTimer; import projects.tanks.client.battleservice.model.battle.team.BattleTeam; public class ComplexTeamScoreIndicator extends Sprite { private static const FONT_COLOR_RED:uint = 16742221; private static const FONT_COLOR_BLUE:uint = 4760319; private static const BG_COLOR_RED:uint = 9249024; private static const BG_COLOR_BLUE:uint = 16256; private static const ICON_WIDTH:int = 30; private static const LABEL_Y:int = 6; private var border:WhiteFrame; private var blueIndicator:FlagIndicator; private var redIndicator:FlagIndicator; private var labelRed:Label; private var labelBlue:Label; private var time:int; private var redInterpolator:ColorInterpolator = new ColorInterpolator(FONT_COLOR_RED,16777215); private var blueInterpolator:ColorInterpolator = new ColorInterpolator(FONT_COLOR_BLUE,16777215); private var blinker:CTFScoreIndicatorBlinker = new CTFScoreIndicatorBlinker(0,1,Vector.<int>([200,600]),Vector.<Number>([10,1.1])); private var flashingScore:Boolean; public function ComplexTeamScoreIndicator(param1:Bitmap, param2:Bitmap, param3:Bitmap, param4:Bitmap, param5:Bitmap, param6:Bitmap, param7:Boolean = true) { super(); this.flashingScore = param7; this.border = new WhiteFrame(); addChild(this.border); this.labelRed = this.createLabel(FONT_COLOR_RED); this.labelBlue = this.createLabel(FONT_COLOR_BLUE); this.blueIndicator = new FlagIndicator(param1,param2,param3,this.blinker); this.blueIndicator.y = 5; addChild(this.blueIndicator); this.redIndicator = new FlagIndicator(param4,param5,param6,this.blinker); this.redIndicator.y = 5; addChild(this.redIndicator); this.update(); addEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); addEventListener(Event.REMOVED_FROM_STAGE,this.onRemovedFromStage); } private static function updateScoreColor(param1:Label, param2:ColorInterpolator, param3:Bitmap) : void { var local4:uint = 0; if(param3.visible) { local4 = param2.interpolate(param3.alpha); } else { local4 = param2.startColor; } if(local4 != param1.textColor) { param1.textColor = local4; } } public function setScore(param1:int, param2:int) : void { this.labelRed.text = param1.toString(); this.labelBlue.text = param2.toString(); this.redIndicator.setState(FlagIndicator.STATE_DEFAULT); this.blueIndicator.setState(FlagIndicator.STATE_DEFAULT); this.update(); } public function set redScore(param1:int) : void { if(int(this.labelRed.text) == param1) { return; } this.labelRed.text = param1.toString(); if(this.flashingScore) { this.blueIndicator.setState(FlagIndicator.STATE_FLASHING); } this.update(); } public function set blueScore(param1:int) : void { if(int(this.labelBlue.text) == param1) { return; } this.labelBlue.text = param1.toString(); if(this.flashingScore) { this.redIndicator.setState(FlagIndicator.STATE_FLASHING); } this.update(); } public function setBothIndicatorsState(param1:int, param2:int) : void { this.redIndicator.setState(param1); this.blueIndicator.setState(param2); } public function setIndicatorState(param1:BattleTeam, param2:int) : void { var local3:FlagIndicator = this.getFlagInficator(param1); local3.setState(param2); } public function setTeamScore(param1:BattleTeam, param2:int) : void { switch(param1) { case BattleTeam.BLUE: this.blueScore = param2; break; case BattleTeam.RED: this.redScore = param2; } } private function update() : void { var local3:int = 0; var local1:int = 5; var local2:int = this.labelRed.width > this.labelBlue.width ? int(this.labelRed.width) : int(this.labelBlue.width); this.redIndicator.x = local1 + local1; local3 = this.redIndicator.x + ICON_WIDTH + local1; this.labelRed.x = local3 + (local2 - this.labelRed.width >> 1); local3 += local2 + local1 + local1; this.labelBlue.x = local3 + (local2 - this.labelBlue.width >> 1); local3 += local2 + local1; this.blueIndicator.x = local3; local3 += ICON_WIDTH + local1 + local1; this.updateBgAndBorder(local3); } private function updateBgAndBorder(param1:int) : void { this.border.width = param1; var local2:String = GradientType.LINEAR; var local3:Array = [BG_COLOR_RED,BG_COLOR_BLUE]; var local4:Array = [1,1]; var local5:int = 8 / param1 * 255; var local6:Array = [127 - local5,127 + local5]; var local7:int = 2; var local8:Matrix = new Matrix(); local8.createGradientBox(param1 - 2 * local7,this.border.height - 2 * local7,0,0,0); var local9:String = SpreadMethod.PAD; var local10:Graphics = graphics; local10.clear(); local10.beginGradientFill(local2,local3,local4,local6,local8,local9); local10.drawRect(local7,local7,param1 - 2 * local7,this.border.height - 2 * local7); local10.endFill(); } private function createLabel(param1:uint) : Label { var local2:Label = new Label(); local2.color = param1; local2.size = 18; local2.bold = true; local2.autoSize = TextFieldAutoSize.CENTER; local2.y = LABEL_Y; local2.text = "0"; addChild(local2); return local2; } private function onAddedToStage(param1:Event) : void { this.update(); this.time = getTimer(); stage.addEventListener(Event.ENTER_FRAME,this.onEnterFrame); } private function onRemovedFromStage(param1:Event) : void { stage.removeEventListener(Event.ENTER_FRAME,this.onEnterFrame); } private function onEnterFrame(param1:Event) : void { var local2:int = getTimer(); var local3:int = local2 - this.time; this.time = local2; this.blinker.update(local2,local3); this.redIndicator.update(local2,local3); this.blueIndicator.update(local2,local3); updateScoreColor(this.labelRed,this.redInterpolator,this.blueIndicator.flashBitmap); updateScoreColor(this.labelBlue,this.blueInterpolator,this.redIndicator.flashBitmap); } private function getFlagInficator(param1:BattleTeam) : FlagIndicator { switch(param1) { case BattleTeam.BLUE: return this.blueIndicator; case BattleTeam.RED: return this.redIndicator; default: throw new ArgumentError("Unsupported team type"); } } } }
package projects.tanks.client.battlefield.gui.models.effectsvisualization { public interface IEffectsVisualizationModelBase { } }
package _codec.projects.tanks.client.panel.model.payment.modes.description { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.payment.modes.description.BottomDescriptionCC; public class VectorCodecBottomDescriptionCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecBottomDescriptionCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(BottomDescriptionCC,false)); if(this.optionalElement) { this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } public function decode(param1:ProtocolBuffer) : Object { var local2:int = LengthCodecHelper.decodeLength(param1); var local3:Vector.<BottomDescriptionCC> = new Vector.<BottomDescriptionCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = BottomDescriptionCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:BottomDescriptionCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<BottomDescriptionCC> = Vector.<BottomDescriptionCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.models.weapon.shaft.sfx { import alternativa.engine3d.materials.Material; import alternativa.math.Vector3; import alternativa.tanks.battle.scene3d.scene3dcontainer.Scene3DContainer; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.sfx.SFXUtils; import alternativa.tanks.utils.objectpool.Pool; import alternativa.tanks.utils.objectpool.PooledObject; public class TrailEffect1 extends PooledObject implements ShaftTrailEffect { public static const WIDTH:Number = 48; private var position:Vector3 = new Vector3(); private var direction:Vector3 = new Vector3(); private var alphaSpeed:Number; private var timeToLive:int; private var beam:Trail1; private var container:Scene3DContainer; public function TrailEffect1(param1:Pool) { super(param1); this.beam = new Trail1(); } public function init(param1:Vector3, param2:Vector3, param3:Number, param4:Number, param5:Material, param6:int) : void { this.position.copy(param1); this.direction.copy(param2); this.timeToLive = param6; this.alphaSpeed = 1 / param6; this.beam.init(WIDTH,param3,param4,param5); } public function play(param1:int, param2:GameCamera) : Boolean { if(this.timeToLive < 0) { return false; } this.timeToLive -= param1; this.beam.alpha -= this.alphaSpeed * param1; SFXUtils.alignObjectPlaneToView(this.beam,this.position,this.direction,param2.position); return true; } public function addedToScene(param1:Scene3DContainer) : void { this.container = param1; param1.addChild(this.beam); } public function destroy() : void { this.container.removeChild(this.beam); this.container = null; recycle(); } public function kill() : void { this.timeToLive = -1; } } }
package utils.tweener { import flash.display.Shape; import flash.events.Event; import flash.utils.Dictionary; import flash.utils.getTimer; import utils.tweener.core.PropTween; import utils.tweener.core.SimpleTimeline; import utils.tweener.core.TweenCore; public class TweenLite extends TweenCore { public static var plugins:Object = {}; public static var onPluginEvent:Function; public static var defaultEase:Function = TweenLite.easeOut; public static var overwriteManager:Object; public static var rootFrame:Number; public static var rootTimeline:SimpleTimeline; public static var rootFramesTimeline:SimpleTimeline; public static var masterList:Dictionary = new Dictionary(false); private static var _shape:Shape = new Shape(); protected static var _reservedProps:Object = { "ease":1, "delay":1, "overwrite":1, "onComplete":1, "onCompleteParams":1, "useFrames":1, "runBackwards":1, "startAt":1, "onUpdate":1, "onUpdateParams":1, "onStart":1, "onStartParams":1, "onInit":1, "onInitParams":1, "onReverseComplete":1, "onReverseCompleteParams":1, "onRepeat":1, "onRepeatParams":1, "proxiedEase":1, "easeParams":1, "yoyo":1, "onCompleteListener":1, "onUpdateListener":1, "onStartListener":1, "onReverseCompleteListener":1, "onRepeatListener":1, "orientToBezier":1, "timeScale":1, "immediateRender":1, "repeat":1, "repeatDelay":1, "timeline":1, "data":1, "paused":1, "reversed":1 }; public var target:Object; public var propTweenLookup:Object; public var ratio:Number = 0; public var cachedPT1:PropTween; protected var _ease:Function; protected var _overwrite:int; protected var _overwrittenProps:Object; protected var _hasPlugins:Boolean; protected var _notifyPluginsOfEnabled:Boolean; public function TweenLite(param1:Object, param2:Number, param3:Object) { var _loc4_:TweenLite = null; super(param2,param3); if(param1 == null) { throw new Error("Cannot tween a null object."); } this.target = param1; if(this.target is TweenCore && this.vars.timeScale) { this.cachedTimeScale = 1; } this.propTweenLookup = {}; this._ease = defaultEase; this._overwrite = Number(param3.overwrite) <= -1 || !overwriteManager.enabled && param3.overwrite > 1 ? int(int(int(overwriteManager.mode))) : int(int(int(int(param3.overwrite)))); var _loc5_:Array = masterList[param1]; if(!_loc5_) { masterList[param1] = [this]; } else if(this._overwrite == 1) { for each(_loc4_ in _loc5_) { if(!_loc4_.gc) { _loc4_.setEnabled(false,false); } } masterList[param1] = [this]; } else { _loc5_[_loc5_.length] = this; } if(this.active || this.vars.immediateRender) { this.renderTime(0,false,true); } } public static function initClass() : void { rootFrame = 0; rootTimeline = new SimpleTimeline(null); rootFramesTimeline = new SimpleTimeline(null); rootTimeline.cachedStartTime = getTimer() * 0.001; rootFramesTimeline.cachedStartTime = rootFrame; rootTimeline.autoRemoveChildren = true; rootFramesTimeline.autoRemoveChildren = true; _shape.addEventListener(Event.ENTER_FRAME,updateAll,false,0,true); if(overwriteManager == null) { overwriteManager = { "mode":1, "enabled":false }; } } public static function to(param1:Object, param2:Number, param3:Object) : TweenLite { return new TweenLite(param1,param2,param3); } public static function from(param1:Object, param2:Number, param3:Object) : TweenLite { if(param3.isGSVars) { param3 = param3.vars; } param3.runBackwards = true; if(!("immediateRender" in param3)) { param3.immediateRender = true; } return new TweenLite(param1,param2,param3); } protected static function updateAll(param1:Event = null) : void { var _loc2_:Dictionary = null; var _loc3_:* = null; var _loc4_:Array = null; var _loc5_:int = 0; rootTimeline.renderTime((getTimer() * 0.001 - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale,false,false); rootFrame += 1; rootFramesTimeline.renderTime((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale,false,false); if(!(rootFrame % 60)) { _loc2_ = masterList; for(_loc3_ in _loc2_) { _loc4_ = _loc2_[_loc3_]; _loc5_ = _loc4_.length; while(--_loc5_ > -1) { if(TweenLite(_loc4_[_loc5_]).gc) { _loc4_.splice(_loc5_,1); } } if(_loc4_.length == 0) { delete _loc2_[_loc3_]; } } } } public static function killTweensOf(param1:Object, param2:Boolean = false, param3:Object = null) : void { var _loc4_:Array = null; var _loc5_:int = 0; var _loc6_:TweenLite = null; if(param1 in masterList) { _loc4_ = masterList[param1]; _loc5_ = _loc4_.length; while(--_loc5_ > -1) { _loc6_ = _loc4_[_loc5_]; if(!_loc6_.gc) { if(param2) { _loc6_.complete(false,false); } if(param3 != null) { _loc6_.killVars(param3); } if(param3 == null || _loc6_.cachedPT1 == null && _loc6_.initted) { _loc6_.setEnabled(false,false); } } } if(param3 == null) { delete masterList[param1]; } } } protected static function easeOut(param1:Number, param2:Number, param3:Number, param4:Number) : Number { return 1 - (param1 = 1 - param1 / param4) * param1; } protected function init() : void { var _loc1_:* = null; var _loc2_:int = 0; var _loc3_:* = undefined; var _loc4_:Boolean = false; var _loc5_:Array = null; var _loc6_:PropTween = null; if(this.vars.onInit) { this.vars.onInit.apply(null,this.vars.onInitParams); } if(typeof this.vars.ease == "function") { this._ease = this.vars.ease; } if(this.vars.easeParams) { this.vars.proxiedEase = this._ease; this._ease = this.easeProxy; } this.cachedPT1 = null; this.propTweenLookup = {}; for(_loc1_ in this.vars) { if(!(_loc1_ in _reservedProps && !(_loc1_ == "timeScale" && this.target is TweenCore))) { if(_loc1_ in plugins && (_loc3_ = new (plugins[_loc1_] as Class)()).onInitTween(this.target,this.vars[_loc1_],this)) { this.cachedPT1 = new PropTween(_loc3_,"changeFactor",0,1,_loc3_.overwriteProps.length == 1 ? _loc3_.overwriteProps[0] : "_MULTIPLE_",true,this.cachedPT1); if(this.cachedPT1.name == "_MULTIPLE_") { _loc2_ = _loc3_.overwriteProps.length; while(--_loc2_ > -1) { this.propTweenLookup[_loc3_.overwriteProps[_loc2_]] = this.cachedPT1; } } else { this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1; } if(_loc3_.priority) { this.cachedPT1.priority = _loc3_.priority; _loc4_ = true; } if(_loc3_.onDisable || _loc3_.onEnable) { this._notifyPluginsOfEnabled = true; } this._hasPlugins = true; } else { this.cachedPT1 = new PropTween(this.target,_loc1_,Number(this.target[_loc1_]),typeof this.vars[_loc1_] == "number" ? Number(Number(Number(Number(this.vars[_loc1_]) - this.target[_loc1_]))) : Number(Number(Number(Number(this.vars[_loc1_])))),_loc1_,false,this.cachedPT1); this.propTweenLookup[_loc1_] = this.cachedPT1; } } } if(_loc4_) { onPluginEvent("onInitAllProps",this); } if(this.vars.runBackwards) { _loc6_ = this.cachedPT1; while(_loc6_) { _loc6_.start += _loc6_.change; _loc6_.change = -_loc6_.change; _loc6_ = _loc6_.nextNode; } } _hasUpdate = Boolean(this.vars.onUpdate != null); if(this._overwrittenProps) { this.killVars(this._overwrittenProps); if(this.cachedPT1 == null) { this.setEnabled(false,false); } } if(this._overwrite > 1 && this.cachedPT1 && (_loc5_ = masterList[this.target]) && _loc5_.length > 1) { if(overwriteManager.manageOverwrites(this,this.propTweenLookup,_loc5_,this._overwrite)) { this.init(); } } this.initted = true; } override public function renderTime(param1:Number, param2:Boolean = false, param3:Boolean = false) : void { var _loc4_:* = false; var _loc5_:Number = this.cachedTime; if(param1 >= this.cachedDuration) { this.cachedTotalTime = this.cachedTime = this.cachedDuration; this.ratio = 1; _loc4_ = !this.cachedReversed; if(this.cachedDuration == 0) { if((param1 == 0 || _rawPrevTime < 0) && _rawPrevTime != param1) { param3 = true; } _rawPrevTime = param1; } } else if(param1 <= 0) { this.cachedTotalTime = this.cachedTime = this.ratio = 0; if(param1 < 0) { this.active = false; if(this.cachedDuration == 0) { if(_rawPrevTime >= 0) { param3 = true; _loc4_ = _rawPrevTime > 0; } _rawPrevTime = param1; } } if(this.cachedReversed && _loc5_ != 0) { _loc4_ = true; } } else { this.cachedTotalTime = this.cachedTime = param1; this.ratio = this._ease(param1,0,1,this.cachedDuration); } if(this.cachedTime == _loc5_ && !param3) { return; } if(!this.initted) { this.init(); if(!_loc4_ && this.cachedTime) { this.ratio = this._ease(this.cachedTime,0,1,this.cachedDuration); } } if(!this.active && !this.cachedPaused) { this.active = true; } if(_loc5_ == 0 && this.vars.onStart && (this.cachedTime != 0 || this.cachedDuration == 0) && !param2) { this.vars.onStart.apply(null,this.vars.onStartParams); } var _loc6_:PropTween = this.cachedPT1; while(_loc6_) { _loc6_.target[_loc6_.property] = _loc6_.start + this.ratio * _loc6_.change; _loc6_ = _loc6_.nextNode; } if(_hasUpdate && !param2) { this.vars.onUpdate.apply(null,this.vars.onUpdateParams); } if(_loc4_ && !this.gc) { if(this._hasPlugins && this.cachedPT1) { onPluginEvent("onComplete",this); } complete(true,param2); } } public function killVars(param1:Object, param2:Boolean = true) : Boolean { var _loc3_:* = null; var _loc4_:PropTween = null; var _loc5_:Boolean = false; if(this._overwrittenProps == null) { this._overwrittenProps = {}; } for(_loc3_ in param1) { if(_loc3_ in this.propTweenLookup) { _loc4_ = this.propTweenLookup[_loc3_]; if(_loc4_.isPlugin && _loc4_.name == "_MULTIPLE_") { _loc4_.target.killProps(param1); if(_loc4_.target.overwriteProps.length == 0) { _loc4_.name = ""; } if(_loc3_ != _loc4_.target.propName || _loc4_.name == "") { delete this.propTweenLookup[_loc3_]; } } if(_loc4_.name != "_MULTIPLE_") { if(_loc4_.nextNode) { _loc4_.nextNode.prevNode = _loc4_.prevNode; } if(_loc4_.prevNode) { _loc4_.prevNode.nextNode = _loc4_.nextNode; } else if(this.cachedPT1 == _loc4_) { this.cachedPT1 = _loc4_.nextNode; } if(_loc4_.isPlugin && _loc4_.target.onDisable) { _loc4_.target.onDisable(); if(_loc4_.target.activeDisable) { _loc5_ = true; } } delete this.propTweenLookup[_loc3_]; } } if(param2 && param1 != this._overwrittenProps) { this._overwrittenProps[_loc3_] = 1; } } return _loc5_; } override public function invalidate() : void { if(this._notifyPluginsOfEnabled && this.cachedPT1) { onPluginEvent("onDisable",this); } this.cachedPT1 = null; this._overwrittenProps = null; _hasUpdate = this.initted = this.active = this._notifyPluginsOfEnabled = false; this.propTweenLookup = {}; } override public function setEnabled(param1:Boolean, param2:Boolean = false) : Boolean { var _loc3_:Array = null; if(param1) { _loc3_ = TweenLite.masterList[this.target]; if(!_loc3_) { TweenLite.masterList[this.target] = [this]; } else if(_loc3_.indexOf(this) == -1) { _loc3_[_loc3_.length] = this; } } super.setEnabled(param1,param2); if(this._notifyPluginsOfEnabled && this.cachedPT1) { return onPluginEvent(!!param1 ? "onEnable" : "onDisable",this); } return false; } protected function easeProxy(param1:Number, param2:Number, param3:Number, param4:Number) : Number { return this.vars.proxiedEase.apply(null,arguments.concat(this.vars.easeParams)); } } }
package alternativa.tanks.model.payment.shop.featuring { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ShopItemFeaturingAdapt implements ShopItemFeaturing { private var object:IGameObject; private var impl:ShopItemFeaturing; public function ShopItemFeaturingAdapt(param1:IGameObject, param2:ShopItemFeaturing) { super(); this.object = param1; this.impl = param2; } public function isLocatedInFeaturingCategory() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.isLocatedInFeaturingCategory()); } finally { Model.popObject(); } return result; } public function isHiddenInOriginalCategory() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.isHiddenInOriginalCategory()); } finally { Model.popObject(); } return result; } public function getPosition() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getPosition()); } finally { Model.popObject(); } return result; } } }
package controls.buttons { public class ButtonStates { public static var UP:ButtonStates = new ButtonStates(); public static var DOWN:ButtonStates = new ButtonStates(); public static var OVER:ButtonStates = new ButtonStates(); public static var DISABLED:ButtonStates = new ButtonStates(); public function ButtonStates() { super(); } } }
package alternativa.tanks.models.tank { import flash.utils.Dictionary; public class TankEventDispatcher implements ITankEventDispatcher { private var processingEvent:Boolean; private var eventListeners:Dictionary; private var addedListeners:Dictionary; private var removedListeners:Dictionary; public function TankEventDispatcher() { this.eventListeners = new Dictionary(); this.addedListeners = new Dictionary(); this.removedListeners = new Dictionary(); super(); } public function addTankEventListener(eventType:int, listener:ITankEventListener) : void { if(this.processingEvent) { this.removeListener(this.removedListeners,eventType,listener); this.addListener(this.addedListeners,eventType,listener); } else { this.addListener(this.eventListeners,eventType,listener); } } public function removeTankEventListener(eventType:int, listener:ITankEventListener) : void { if(this.processingEvent) { this.removeListener(this.addedListeners,eventType,listener); this.addListener(this.removedListeners,eventType,listener); } else { this.removeListener(this.eventListeners,eventType,listener); } } public function dispatchEvent(eventType:int, tankData:TankData) : void { var len:int = 0; var i:int = 0; this.processingEvent = true; var listeners:Vector.<ITankEventListener> = this.eventListeners[eventType]; if(listeners != null) { len = listeners.length; for(i = 0; i < len; i++) { ITankEventListener(listeners[i]).handleTankEvent(eventType,tankData); } } this.processingEvent = false; this.processDeferredActions(); } private function addListener(storage:Dictionary, eventType:int, listener:ITankEventListener) : void { var idx:int = 0; var listeners:Vector.<ITankEventListener> = storage[eventType]; if(listeners == null) { listeners = new Vector.<ITankEventListener>(); storage[eventType] = listeners; } else { idx = listeners.indexOf(listener); if(idx > -1) { return; } } listeners.push(listener); } private function removeListener(storage:Dictionary, eventType:int, listener:ITankEventListener) : void { var listeners:Vector.<ITankEventListener> = storage[eventType]; if(listeners == null) { return; } var idx:int = listeners.indexOf(listener); if(idx < 0) { return; } if(listeners.length == 1) { delete storage[eventType]; } else { listeners.splice(idx,1); } } private function processDeferredActions() : void { var key:* = undefined; var i:int = 0; var len:int = 0; var eventType:* = 0; var listeners:Vector.<ITankEventListener> = null; for(eventType in this.removedListeners) { listeners = this.removedListeners[key]; delete this.removedListeners[key]; len = listeners.length; for(i = 0; i < len; i++) { this.removeListener(this.eventListeners,eventType,listeners[i]); } } for(eventType in this.addedListeners) { listeners = this.addedListeners[key]; delete this.addedListeners[key]; len = listeners.length; for(i = 0; i < len; i++) { this.addListener(this.eventListeners,eventType,listeners[i]); } } } } }
package projects.tanks.client.battlefield.models.battle.pointbased.rugby { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; public class RugbyModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function RugbyModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package alternativa.tanks.models.weapon.artillery.rotation { import alternativa.tanks.battle.LogicUnit; import alternativa.tanks.battle.objects.tank.controllers.BarrelElevator; import alternativa.tanks.utils.MathUtils; import projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation.BarrelElevationCommand; public class BarrelStateUpdater implements LogicUnit { private static const MAX_DIRECTION_DELTA:Number = Math.PI / 6; private var barrelElevator:BarrelElevator; private var updateCallback:Function; private const lastSentState:BarrelElevationCommand = new BarrelElevationCommand(); public function BarrelStateUpdater(param1:BarrelElevator, param2:Function) { super(); this.barrelElevator = param1; this.updateCallback = param2; } public function reset() : void { this.lastSentState.control = this.barrelElevator.getRealControl(); this.lastSentState.elevation = this.barrelElevator.getBarrelPhysicsElevation(); } public function runLogic(param1:int, param2:int) : void { if(this.barrelElevator.getRealControl() != this.lastSentState.control || this.isBigElevationDifference()) { this.reset(); this.updateCallback(); } } private function isBigElevationDifference() : Boolean { var local1:Number = MathUtils.clampAngleDelta(this.barrelElevator.getBarrelPhysicsElevation(),this.lastSentState.elevation); return Math.abs(local1) > MAX_DIRECTION_DELTA; } } }
package projects.tanks.client.battlefield.models.tankparts.sfx.shoot.railgun { import platform.client.fp10.core.resource.types.MultiframeTextureResource; import platform.client.fp10.core.resource.types.SoundResource; import platform.client.fp10.core.resource.types.TextureResource; import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingSFXEntity; public class RailgunShootSFXCC { private var _chargingPart1:TextureResource; private var _chargingPart2:TextureResource; private var _chargingPart3:TextureResource; private var _hitMarkTexture:TextureResource; private var _lightingSFXEntity:LightingSFXEntity; private var _powTexture:MultiframeTextureResource; private var _ringsTexture:MultiframeTextureResource; private var _shotSound:SoundResource; private var _smokeImage:TextureResource; private var _sphereTexture:MultiframeTextureResource; private var _trailImage:TextureResource; public function RailgunShootSFXCC(param1:TextureResource = null, param2:TextureResource = null, param3:TextureResource = null, param4:TextureResource = null, param5:LightingSFXEntity = null, param6:MultiframeTextureResource = null, param7:MultiframeTextureResource = null, param8:SoundResource = null, param9:TextureResource = null, param10:MultiframeTextureResource = null, param11:TextureResource = null) { super(); this._chargingPart1 = param1; this._chargingPart2 = param2; this._chargingPart3 = param3; this._hitMarkTexture = param4; this._lightingSFXEntity = param5; this._powTexture = param6; this._ringsTexture = param7; this._shotSound = param8; this._smokeImage = param9; this._sphereTexture = param10; this._trailImage = param11; } public function get chargingPart1() : TextureResource { return this._chargingPart1; } public function set chargingPart1(param1:TextureResource) : void { this._chargingPart1 = param1; } public function get chargingPart2() : TextureResource { return this._chargingPart2; } public function set chargingPart2(param1:TextureResource) : void { this._chargingPart2 = param1; } public function get chargingPart3() : TextureResource { return this._chargingPart3; } public function set chargingPart3(param1:TextureResource) : void { this._chargingPart3 = param1; } public function get hitMarkTexture() : TextureResource { return this._hitMarkTexture; } public function set hitMarkTexture(param1:TextureResource) : void { this._hitMarkTexture = param1; } public function get lightingSFXEntity() : LightingSFXEntity { return this._lightingSFXEntity; } public function set lightingSFXEntity(param1:LightingSFXEntity) : void { this._lightingSFXEntity = param1; } public function get powTexture() : MultiframeTextureResource { return this._powTexture; } public function set powTexture(param1:MultiframeTextureResource) : void { this._powTexture = param1; } public function get ringsTexture() : MultiframeTextureResource { return this._ringsTexture; } public function set ringsTexture(param1:MultiframeTextureResource) : void { this._ringsTexture = param1; } public function get shotSound() : SoundResource { return this._shotSound; } public function set shotSound(param1:SoundResource) : void { this._shotSound = param1; } public function get smokeImage() : TextureResource { return this._smokeImage; } public function set smokeImage(param1:TextureResource) : void { this._smokeImage = param1; } public function get sphereTexture() : MultiframeTextureResource { return this._sphereTexture; } public function set sphereTexture(param1:MultiframeTextureResource) : void { this._sphereTexture = param1; } public function get trailImage() : TextureResource { return this._trailImage; } public function set trailImage(param1:TextureResource) : void { this._trailImage = param1; } public function toString() : String { var local1:String = "RailgunShootSFXCC ["; local1 += "chargingPart1 = " + this.chargingPart1 + " "; local1 += "chargingPart2 = " + this.chargingPart2 + " "; local1 += "chargingPart3 = " + this.chargingPart3 + " "; local1 += "hitMarkTexture = " + this.hitMarkTexture + " "; local1 += "lightingSFXEntity = " + this.lightingSFXEntity + " "; local1 += "powTexture = " + this.powTexture + " "; local1 += "ringsTexture = " + this.ringsTexture + " "; local1 += "shotSound = " + this.shotSound + " "; local1 += "smokeImage = " + this.smokeImage + " "; local1 += "sphereTexture = " + this.sphereTexture + " "; local1 += "trailImage = " + this.trailImage + " "; return local1 + "]"; } } }
package _codec.projects.tanks.client.panel.model.payment.modes.sms.types { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.payment.modes.sms.types.Country; public class CodecCountry implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_id:ICodec; private var codec_name:ICodec; public function CodecCountry() { super(); } public function init(param1:IProtocol) : void { this.codec_id = param1.getCodec(new TypeCodecInfo(String,false)); this.codec_name = param1.getCodec(new TypeCodecInfo(String,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:Country = new Country(); local2.id = this.codec_id.decode(param1) as String; local2.name = this.codec_name.decode(param1) as String; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Country = Country(param2); this.codec_id.encode(param1,local3.id); this.codec_name.encode(param1,local3.name); } } }
package utils { import flash.display.BitmapData; import flash.display.Graphics; import flash.geom.Matrix; public class Pen { private var _gTarget:Graphics; private var _bLineStyleSet:Boolean; public function Pen(param1:Graphics) { super(); this._gTarget = param1; } public function set target(param1:Graphics) : void { this._gTarget = param1; } public function get target() : Graphics { return this._gTarget; } public function lineStyle(param1:Number = 1, param2:Number = 0, param3:Number = 1, param4:Boolean = false, param5:String = "normal", param6:String = null, param7:String = null, param8:Number = 3) : void { this._gTarget.lineStyle(param1,param2,param3,param4,param5,param6,param7,param8); this._bLineStyleSet = true; } public function lineGradientStyle(param1:String, param2:Array, param3:Array, param4:Array, param5:Matrix = null, param6:String = "pad", param7:String = "rgb", param8:Number = 0) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.lineGradientStyle(param1,param2,param3,param4,param5,param6,param7,param8); } public function beginFill(param1:Number, param2:Number = 1) : void { this._gTarget.beginFill(param1,param2); } public function beginGradientFill(param1:String, param2:Array, param3:Array, param4:Array, param5:Matrix = null, param6:String = "pad", param7:String = "rgb", param8:Number = 0) : void { this._gTarget.beginGradientFill(param1,param2,param3,param4,param5,param6,param7,param8); } public function beginBitmapFill(param1:BitmapData, param2:Matrix = null, param3:Boolean = true, param4:Boolean = false) : void { this._gTarget.beginBitmapFill(param1,param2,param3,param4); } public function endFill() : void { this._gTarget.endFill(); } public function clear() : void { this._gTarget.clear(); this._bLineStyleSet = false; } public function moveTo(param1:Number, param2:Number) : void { this._gTarget.moveTo(param1,param2); } public function lineTo(param1:Number, param2:Number) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.lineTo(param1,param2); } public function curveTo(param1:Number, param2:Number, param3:Number, param4:Number) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.curveTo(param1,param2,param3,param4); } public function drawLine(param1:Number, param2:Number, param3:Number, param4:Number) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.moveTo(param1,param2); this._gTarget.lineTo(param3,param4); } public function drawCurve(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.moveTo(param1,param2); this._gTarget.curveTo(param3,param4,param5,param6); } public function drawRect(param1:Number, param2:Number, param3:Number, param4:Number) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.drawRect(param1,param2,param3,param4); } public function drawRoundRect(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.drawRoundRect(param1,param2,param3,param4,param5); } public function drawRoundRectComplex(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.drawRoundRectComplex(param1,param2,param3,param4,param5,param6,param7,param8); } public function drawCircle(param1:Number, param2:Number, param3:Number) : void { if(!this._bLineStyleSet) { this.lineStyle(); } this._gTarget.drawCircle(param1,param2,param3); } public function drawSlice(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number) : void { this.drawArc(param4,param5,param2,param1,param3,true); } public function drawArc(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number = 0, param6:Boolean = false) : void { var _loc10_:Number = NaN; var _loc11_:Number = NaN; var _loc12_:Number = NaN; var _loc13_:Number = NaN; if(param4 > 360) { param4 = 360; } param4 = Math.PI / 180 * param4; var _loc7_:Number = param4 / 8; var _loc8_:Number = param3 / Math.cos(_loc7_ / 2); param5 *= Math.PI / 180; var _loc9_:Number = param5; var _loc14_:Number = param1 + Math.cos(param5) * param3; var _loc15_:Number = param2 + Math.sin(param5) * param3; if(param6) { this.moveTo(param1,param2); this.lineTo(_loc14_,_loc15_); } else { this.moveTo(_loc14_,_loc15_); } var _loc16_:Number = 0; while(_loc16_ < 8) { _loc9_ += _loc7_; _loc10_ = param1 + Math.cos(_loc9_ - _loc7_ / 2) * _loc8_; _loc11_ = param2 + Math.sin(_loc9_ - _loc7_ / 2) * _loc8_; _loc12_ = param1 + Math.cos(_loc9_) * param3; _loc13_ = param2 + Math.sin(_loc9_) * param3; this.curveTo(_loc10_,_loc11_,_loc12_,_loc13_); _loc16_++; } if(param6) { this.lineTo(param1,param2); } } public function drawEllipse(param1:Number, param2:Number, param3:Number, param4:Number) : void { var _loc9_:Number = NaN; var _loc10_:Number = NaN; var _loc11_:Number = NaN; var _loc12_:Number = NaN; var _loc5_:Number = Math.PI / 4; var _loc6_:Number = 0; var _loc7_:Number = param3 / Math.cos(_loc5_ / 2); var _loc8_:Number = param4 / Math.cos(_loc5_ / 2); this.moveTo(param1 + param3,param2); var _loc13_:Number = 0; while(_loc13_ < 8) { _loc6_ += _loc5_; _loc9_ = param1 + Math.cos(_loc6_ - _loc5_ / 2) * _loc7_; _loc10_ = param2 + Math.sin(_loc6_ - _loc5_ / 2) * _loc8_; _loc11_ = param1 + Math.cos(_loc6_) * param3; _loc12_ = param2 + Math.sin(_loc6_) * param4; this.curveTo(_loc9_,_loc10_,_loc11_,_loc12_); _loc13_++; } } public function drawTriangle(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number = 0) : void { param6 = param6 * Math.PI / 180; param5 = param5 * Math.PI / 180; var _loc7_:Number = Math.cos(param5 - param6) * param3; var _loc8_:Number = Math.sin(param5 - param6) * param3; var _loc9_:Number = Math.cos(-param6) * param4; var _loc10_:Number = Math.sin(-param6) * param4; this.drawLine(-0 + param1,-0 + param2,_loc9_ - 0 + param1,_loc10_ - 0 + param2); this.lineTo(_loc7_ - 0 + param1,_loc8_ - 0 + param2); this.lineTo(-0 + param1,-0 + param2); } public function drawRegularPolygon(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number = 0) : void { param5 = param5 * Math.PI / 180; var _loc6_:Number = 2 * Math.PI / param3; var _loc7_:Number = param4 / 2 / Math.sin(_loc6_ / 2); var _loc8_:Number = Math.cos(param5) * _loc7_ + param1; var _loc9_:Number = Math.sin(param5) * _loc7_ + param2; this.moveTo(_loc8_,_loc9_); var _loc10_:Number = 1; while(_loc10_ <= param3) { _loc8_ = Math.cos(_loc6_ * _loc10_ + param5) * _loc7_ + param1; _loc9_ = Math.sin(_loc6_ * _loc10_ + param5) * _loc7_ + param2; this.lineTo(_loc8_,_loc9_); _loc10_++; } } public function drawStar(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number = 0) : void { if(param3 < 3) { return; } var _loc7_:Number = Math.PI * 2 / param3; param6 = Math.PI * (param6 - 90) / 180; var _loc8_:Number = param6; var _loc9_:Number = param1 + Math.cos(_loc8_ + _loc7_ / 2) * param4; var _loc10_:Number = param2 + Math.sin(_loc8_ + _loc7_ / 2) * param4; this.moveTo(_loc9_,_loc10_); _loc8_ += _loc7_; var _loc11_:Number = 0; while(_loc11_ < param3) { _loc9_ = param1 + Math.cos(_loc8_) * param5; _loc10_ = param2 + Math.sin(_loc8_) * param5; this.lineTo(_loc9_,_loc10_); _loc9_ = param1 + Math.cos(_loc8_ + _loc7_ / 2) * param4; _loc10_ = param2 + Math.sin(_loc8_ + _loc7_ / 2) * param4; this.lineTo(_loc9_,_loc10_); _loc8_ += _loc7_; _loc11_++; } } } }
package { import flash.display.Sprite; import flash.system.Security; [ExcludeClass] public class _4815a52172f7deb95cfa695947343310ebe083df2c993fffc3a85528f7493dea_flash_display_Sprite extends Sprite { public function _4815a52172f7deb95cfa695947343310ebe083df2c993fffc3a85528f7493dea_flash_display_Sprite() { super(); } public function allowDomainInRSL(... rest) : void { Security.allowDomain.apply(null,rest); } public function allowInsecureDomainInRSL(... rest) : void { Security.allowInsecureDomain.apply(null,rest); } } }
package projects.tanks.client.garage.models.item.container.resources { public interface IContainerResourceModelBase { } }