code
stringlengths
57
237k
package alternativa.tanks.models.weapon.gauss { import alternativa.engine3d.core.Object3D; import alternativa.math.Vector3; import alternativa.tanks.battle.objects.tank.tankskin.turret.TurretSkin; import projects.tanks.clients.flash.resources.resource.Tanks3DSResource; public class GaussTurretSkin extends TurretSkin { private const ANTENNA_MESH_INDEX:int = 1; public function GaussTurretSkin(param1:Tanks3DSResource) { super(param1); setPosition(rootObject,Vector3.ZERO); } public function getAntenna() : Object3D { return turretMeshes[this.ANTENNA_MESH_INDEX]; } } }
package projects.tanks.client.panel.model.referrals { public interface IReferralsModelBase { function updateData(param1:Vector.<ReferralIncomeData>) : void; } }
package projects.tanks.client.panel.model.garage.upgradingitems { 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 UpgradingItemsModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _itemUpgradedId:Long = Long.getLong(315970156,1555456153); private var _itemUpgraded_lightItemCodec:ICodec; private var _selectId:Long = Long.getLong(1964417151,-1180852710); private var _select_lightItemCodec:ICodec; private var model:IModel; public function UpgradingItemsModelServer(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._itemUpgraded_lightItemCodec = this.protocol.getCodec(new TypeCodecInfo(IGameObject,false)); this._select_lightItemCodec = this.protocol.getCodec(new TypeCodecInfo(IGameObject,false)); } public function itemUpgraded(param1:IGameObject) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._itemUpgraded_lightItemCodec.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._itemUpgradedId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } public function select(param1:IGameObject) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._select_lightItemCodec.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._selectId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } } }
package controls { import assets.icon.PaymentsIcon; import flash.display.BitmapData; public class PaymentButton extends BigButton { public static const SMS:String = "sms"; public static const QIWI:String = "mk"; public static const YANDEX:String = "yandex"; public static const VISA:String = "bank_card"; public static const WEBMONEY:String = "wm"; public static const EASYPAY:String = "easypay"; public static const RBK:String = "rbk"; public static const MONEYMAIL:String = "moneymail"; public static const WEBCREDITS:String = "webcreds"; public static const PAYPAL:String = "paypal"; public static const TERMINAL:String = "terminal"; public static const CHRONOPAY:String = "chronopay"; public static const LIQPAY:String = "liqpay"; public static const RIXTY:String = "rixty"; public static const PREPAID_EN:String = "prepaiden"; public static const PREPAID_RU:String = "prepaidru"; public static const WALLIE:String = "wallie"; public static const PAYSAFE:String = "paysafecard"; public static const CASHU:String = "cashu"; public static const types:Array = [SMS,QIWI,YANDEX,VISA,WEBMONEY,EASYPAY,RBK,MONEYMAIL,WEBCREDITS,PAYPAL,TERMINAL,CHRONOPAY,LIQPAY,RIXTY,PREPAID_EN,PREPAID_RU,WALLIE,PAYSAFE,CASHU]; protected var bmp:BitmapData; private var _type:String; public function PaymentButton() { super(); this.type = SMS; this.width = 155; } public function set type(value:String) : void { var numValue:int = types.indexOf(value); var payicon:PaymentsIcon = new PaymentsIcon(); this._type = value; payicon.gotoAndStop(numValue + 1); this.bmp = new BitmapData(payicon.width,payicon.height,true,0); this.bmp.draw(payicon); icon = this.bmp; } public function get type() : String { return this._type; } override public function set width(w:Number) : void { _width = int(w); stateDOWN.width = stateOFF.width = stateOVER.width = stateUP.width = _width; _info.width = _label.width = _width - 4; if(_icon != null) { _icon.x = int(_width / 2 - _icon.width / 2); _icon.y = int(25 - _icon.height / 2); } } } }
package alternativa.engine3d.loaders.collada { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.containers.BSPContainer; import alternativa.engine3d.containers.ConflictContainer; import alternativa.engine3d.containers.DistanceSortContainer; import alternativa.engine3d.containers.KDContainer; import alternativa.engine3d.containers.LODContainer; import alternativa.engine3d.core.Clipping; import alternativa.engine3d.core.Object3DContainer; import alternativa.engine3d.core.Sorting; import alternativa.engine3d.materials.Material; import alternativa.engine3d.objects.Mesh; import alternativa.engine3d.objects.Sprite3D; use namespace collada; use namespace alternativa3d; use namespace daeAlternativa3DLibrary; use namespace daeAlternativa3DMesh; public class DaeAlternativa3DObject extends DaeElement { public var isSplitter:Boolean = false; public var isBaseGeometry:Boolean = false; public function DaeAlternativa3DObject(param1:XML, param2:DaeDocument) { super(param1,param2); } override protected function parseImplementation() : Boolean { var local1:String = null; var local2:XML = null; var local3:XML = null; if(data.localName() == "mesh") { local2 = data.baseGeometry[0]; if(local2 != null) { local1 = local2.toString(); this.isBaseGeometry = local1 == "true" || parseInt(local1) != 0; } local3 = data.splitter[0]; if(local3 != null) { local1 = local3.toString(); this.isSplitter = local1 == "true" || parseInt(local1) != 0; } } return true; } public function parseContainer(param1:String) : Object3DContainer { var local2:Object3DContainer = null; var local3:XML = null; switch(data.localName()) { case "object3d": local2 = new Object3DContainer(); local2.name = param1; return this.setParams(local2); case "distanceSort": local2 = new DistanceSortContainer(); local2.name = param1; return this.setParams(local2); case "conflict": local2 = new ConflictContainer(); local2.name = param1; return this.setParams(local2); case "kdTree": local2 = new KDContainer(); local2.name = param1; return this.setParams(local2); case "bspTree": local2 = new BSPContainer(); local3 = data.clipping[0]; if(local3 != null) { (local2 as BSPContainer).clipping = this.getClippingValue(local3); } local2.name = param1; return this.setParams(local2); default: return null; } } private function getClippingValue(param1:XML) : int { switch(param1.toString()) { case "BOUND_CULLING": return Clipping.BOUND_CULLING; case "FACE_CULLING": return Clipping.FACE_CULLING; case "FACE_CLIPPING": return Clipping.FACE_CLIPPING; default: return Clipping.BOUND_CULLING; } } private function getSortingValue(param1:XML) : int { switch(param1.toString()) { case "STATIC_BSP": return 3; case "DYNAMIC_BSP": return Sorting.DYNAMIC_BSP; case "NONE": return Sorting.NONE; case "AVERAGE_Z": return Sorting.AVERAGE_Z; default: return Sorting.NONE; } } public function parseSprite3D(param1:String, param2:Material = null) : Sprite3D { var local3:Sprite3D = null; var local4:XML = null; var local5:XML = null; var local6:XML = null; if(data.localName() == "sprite") { local3 = new Sprite3D(100,100,param2); local3.name = param1; local4 = data.sorting[0]; local5 = data.clipping[0]; if(local4 != null) { local3.sorting = this.getSortingValue(local4); } if(local5 != null) { local3.clipping = this.getClippingValue(local5); } local6 = data.rotation[0]; if(local6 != null) { local3.rotation = parseInt(local6.toString()) * Math.PI / 180; } return this.setParams(local3); } return null; } public function applyA3DMeshProperties(param1:Mesh) : void { var local2:XML = null; var local3:XML = null; var local4:XML = null; var local5:Boolean = false; if(data.localName() == "mesh") { local2 = data.sorting[0]; local3 = data.clipping[0]; local4 = data.optimizeBSP[0]; if(local3 != null) { param1.clipping = this.getClippingValue(local3); } local5 = local4 != null ? local4.toString() != "false" : true; if(local2 != null) { param1.sorting = this.getSortingValue(local2); if(local5) { param1.alternativa3d::transformId = 1; } } this.setParams(param1); } } public function parseLOD(param1:String, param2:DaeNode) : LODContainer { var local3:LODContainer = null; var local4:XMLList = null; var local5:int = 0; var local6:int = 0; var local7:XML = null; var local8:DaeNode = null; var local9:DaeObject = null; if(data.localName() == "lod") { local3 = new LODContainer(); local3.name = param1; local4 = data.level; local5 = int(local4.length()); local6 = 0; while(local6 < local5) { local7 = local4[local6]; local8 = document.findNode(local7.@url[0]); if(local8.scene == null) { param2.nodes.push(local8); } local9 = null; if(local8 != null) { if(local8.rootJoint != null) { local8 = local8.rootJoint; local8.parse(); if(local8.skins != null) { local9 = local8.skins[0]; } } else { local8.parse(); if(local8.objects != null) { local9 = local8.objects[0]; } } } else { document.logger.logNotFoundError(local7.@url[0]); } if(local9 != null) { local9.lodDistance = parseNumber(local7.@distance[0]); } local6++; } return this.setParams(local3); } return null; } private function setParams(param1:*) : * { var param:XML = null; var name:String = null; var value:String = null; var num:Number = NaN; var object:* = param1; var params:XMLList = data.param; var i:int = 0; var count:int = int(params.length()); while(i < count) { param = params[i]; try { name = param.@name[0].toString(); value = param.text().toString(); if(value == "true") { object[name] = true; } else if(value == "false") { object[name] = false; } else if(value.charAt(0) == "\"" && value.charAt(value.length - 1) == "\"" || value.charAt(0) == "\'" && value.charAt(value.length - 1) == "\'") { object[name] = value; } else { if(value.indexOf(".") >= 0) { num = parseFloat(value); } else if(value.indexOf(",") >= 0) { value = value.replace(/,/,"."); num = parseFloat(value); } else { num = parseInt(value); } if(isNaN(num)) { object[name] = value; } else { object[name] = num; } } } catch(e:Error) { } i++; } return object; } } }
package alternativa.tanks.model.payment.shop.item { import platform.client.fp10.core.resource.types.ImageResource; [ModelInterface] public interface ShopItem { function getPrice() : Number; function getPriceWithDiscount() : Number; function getCurrencyName() : String; function getCurrencyRoundingPrecision() : int; function getPreview() : ImageResource; } }
package alternativa.tanks.models.tank.codec { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import flash.utils.IDataInput; import flash.utils.IDataOutput; import projects.tanks.client.battlefield.models.user.tank.commands.MoveCommand; import projects.tanks.client.battlefield.types.Vector3d; public class MoveCommandCodec implements ICodec { private static const ANGLE_FACTOR:Number = Math.PI / 4096; private static const ANGULAR_VELOCITY_FACTOR:Number = 0.005; private static const CONTROL_MASK:int = 31; private static const POSITION_COMPONENT_BITSIZE:int = 17; private static const ORIENTATION_COMPONENT_BITSIZE:int = 13; private static const LINEAR_VELOCITY_COMPONENT_BITSIZE:int = 13; private static const ANGULAR_VELOCITY_COMPONENT_BITSIZE:int = 13; private static const BIT_AREA_SIZE:int = 21; public function MoveCommandCodec() { super(); } [Obfuscation(rename="false")] public function init(param1:IProtocol) : void { } [Obfuscation(rename="false")] public function encode(param1:ProtocolBuffer, param2:Object) : void { var local3:MoveCommand = MoveCommand(param2); var local4:int = local3.control & CONTROL_MASK; var local5:int = (local3.turnSpeedNumber & 7) << 5; param1.writer.writeByte(local4 | local5); var local6:BitArea = new BitArea([],BIT_AREA_SIZE); this.writeVector3d(local6,local3.position,POSITION_COMPONENT_BITSIZE,1); this.writeVector3d(local6,local3.orientation,ORIENTATION_COMPONENT_BITSIZE,ANGLE_FACTOR); this.writeVector3d(local6,local3.linearVelocity,LINEAR_VELOCITY_COMPONENT_BITSIZE,1); this.writeVector3d(local6,local3.angularVelocity,ANGULAR_VELOCITY_COMPONENT_BITSIZE,ANGULAR_VELOCITY_FACTOR); this.writeArray(param1.writer,local6.getData(),BIT_AREA_SIZE); } private function writeArray(param1:IDataOutput, param2:Array, param3:int) : void { var local4:int = 0; while(local4 < param3) { param1.writeByte(param2[local4]); local4++; } } [Obfuscation(rename="false")] public function decode(param1:ProtocolBuffer) : Object { var local2:int = int(param1.reader.readByte()); var local3:int = local2 & CONTROL_MASK; var local4:int = local2 >> 5 & 7; var local5:BitArea = new BitArea(this.bytesToArray(param1.reader,BIT_AREA_SIZE),BIT_AREA_SIZE); var local6:Vector3d = this.readVector3d(local5,POSITION_COMPONENT_BITSIZE,1); var local7:Vector3d = this.readVector3d(local5,ORIENTATION_COMPONENT_BITSIZE,ANGLE_FACTOR); var local8:Vector3d = this.readVector3d(local5,LINEAR_VELOCITY_COMPONENT_BITSIZE,1); var local9:Vector3d = this.readVector3d(local5,ANGULAR_VELOCITY_COMPONENT_BITSIZE,ANGULAR_VELOCITY_FACTOR); return new MoveCommand(local9,local3,local8,local7,local6,local4); } private function bytesToArray(param1:IDataInput, param2:int) : Array { var local3:Array = []; var local4:int = 0; while(local4 < param2) { local3[local4] = param1.readByte(); local4++; } return local3; } private function readVector3d(param1:BitArea, param2:int, param3:Number) : Vector3d { var local4:Number = (param1.read(param2) - (1 << param2 - 1)) * param3; var local5:Number = (param1.read(param2) - (1 << param2 - 1)) * param3; var local6:Number = (param1.read(param2) - (1 << param2 - 1)) * param3; return new Vector3d(local4,local5,local6); } private function writeVector3d(param1:BitArea, param2:Vector3d, param3:int, param4:Number) : void { var local5:int = 1 << param3 - 1; param1.write(param3,this.prepareValue(param2.x,local5,param4)); param1.write(param3,this.prepareValue(param2.y,local5,param4)); param1.write(param3,this.prepareValue(param2.z,local5,param4)); } private function prepareValue(param1:Number, param2:int, param3:Number) : int { var local4:int = int(param1 / param3); var local5:int = local4 < -param2 ? 0 : local4 - param2; return int(Math.min(param2,local5)); } } }
package projects.tanks.client.commons.models.layout { public interface ILobbyLayoutModelBase { } }
package assets.input { import flash.display.BitmapData; [Embed(source="/_assets/assets.input.InputLeft.png")] public class InputLeft extends BitmapData { public function InputLeft(param1:int, param2:int, param3:Boolean = true, param4:uint = 0) { super(param1,param2,param3,param4); } } }
package alternativa.tanks.model.item.itemforpartners { [ModelInterface] public interface ItemEnabledForPartner { function isAvailable() : Boolean; } }
package projects.tanks.client.panel.model.profile.rename { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; 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 AndroidRenameModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:AndroidRenameModelServer; private var client:IAndroidRenameModelBase = IAndroidRenameModelBase(this); private var modelId:Long = Long.getLong(1479505722,-162721658); private var _renameFailId:Long = Long.getLong(810003174,-1049558551); private var _renameSuccessfulId:Long = Long.getLong(825297695,-807400147); public function AndroidRenameModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new AndroidRenameModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(AndroidRenameCC,false))); } protected function getInitParam() : AndroidRenameCC { return AndroidRenameCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._renameFailId: this.client.renameFail(); break; case this._renameSuccessfulId: this.client.renameSuccessful(); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.register { import alternativa.init.Main; import alternativa.resource.IResource; import alternativa.resource.ResourceStatus; import alternativa.resource.factory.IResourceFactory; import alternativa.service.IResourceService; import alternativa.types.Long; import flash.utils.Dictionary; public class ResourceRegister implements IResourceService { private var resourceFactories:Dictionary; private var resources:Dictionary; private var _resourcesList:Vector.<IResource>; public var _resourceStatus:Dictionary; public var _batchLoadingHistory:Array; public var _resourceLoadingHistory:Dictionary; public function ResourceRegister() { super(); this.resources = new Dictionary(); this.resourceFactories = new Dictionary(); this._resourcesList = new Vector.<IResource>(); this._resourceStatus = new Dictionary(); this._batchLoadingHistory = new Array(); this._resourceLoadingHistory = new Dictionary(); } public function registerResource(resource:IResource) : void { this.resources[resource.id] = resource; this._resourcesList.push(resource); Main.writeVarsToConsoleChannel("RESOURCE","Ресурс %1 id: %2 зарегистрирован",resource.name,resource.id); } public function unregisterResource(id:Long) : void { Main.writeVarsToConsoleChannel("RESOURCE","Регистрация ресурса " + IResource(this.resources[id]).name + " id:" + id + " удалена",6710886); this._resourcesList.splice(this._resourcesList.indexOf(this.resources[id]),1); delete this.resources[id]; } public function getResource(id:Long) : IResource { if(this.resources[id] == undefined) { return null; } return this.resources[id]; } public function registerResourceFactory(resourceFactory:IResourceFactory, resourceType:int) : void { this.resourceFactories[resourceType] = resourceFactory; Main.writeVarsToConsoleChannel("RESOURCE","Loader for resource " + resourceFactory + " registered",6710886); } public function unregisterResourceFactory(resourceTypes:Array) : void { var i:int = 0; for each(i in resourceTypes) { delete this.resourceFactories[i]; } } public function setResourceStatus(id:Long, batchId:int, typeName:String, name:String, status:String) : void { var r:ResourceStatus = null; Main.writeVarsToConsoleChannel("RESOURCE","setResourceStatus id: %1, batchId: %2, typeName: %3, name: %4, status: %5",id,batchId,typeName,name,status); if(this._batchLoadingHistory.indexOf(batchId) == -1) { this._batchLoadingHistory.push(batchId); } if(this._resourceLoadingHistory[batchId] == null) { this._resourceLoadingHistory[batchId] = new Array(); } if((this._resourceLoadingHistory[batchId] as Array).indexOf(id) == -1) { (this._resourceLoadingHistory[batchId] as Array).push(id); } if(this._resourceStatus[batchId] == null) { this._resourceStatus[batchId] = new Dictionary(); } if((this._resourceStatus[batchId] as Dictionary)[id] == null) { (this._resourceStatus[batchId] as Dictionary)[id] = new ResourceStatus(id,batchId,typeName,name,status); } else { r = (this._resourceStatus[batchId] as Dictionary)[id] as ResourceStatus; r.id = id; r.batchId = batchId; r.typeName = typeName; r.name = name; r.status = status; } Main.writeVarsToConsoleChannel("RESOURCE"," resourceStatus[batchId][id]: " + r); } public function get batchLoadingHistory() : Array { return this._batchLoadingHistory; } public function get resourceLoadingHistory() : Dictionary { return this._resourceLoadingHistory; } public function get resourceStatus() : Dictionary { return this._resourceStatus; } public function getResourceFactory(resourceType:int) : IResourceFactory { return this.resourceFactories[resourceType]; } public function get resourcesList() : Vector.<IResource> { return this._resourcesList; } } }
package platform.loading.init { import alternativa.osgi.OSGi; import alternativa.osgi.bundle.IBundleActivator; import alternativa.protocol.IProtocol; import platform.client.core.general.spaces.loading.dispatcher.types.ObjectsData; import platform.client.core.general.spaces.loading.dispatcher.types.ObjectsDependencies; import platform.client.core.general.spaces.loading.modelconstructors.ModelData; import platform.loading.codecs.ModelDataCodec; import platform.loading.codecs.ObjectsDataCodec; import platform.loading.codecs.ObjectsDependenciesCodec; public class SpacesModelsActivator implements IBundleActivator { public function SpacesModelsActivator() { super(); } public function start(param1:OSGi) : void { var local2:IProtocol = IProtocol(param1.getService(IProtocol)); local2.registerCodecForType(ModelData,new ModelDataCodec()); local2.registerCodecForType(ObjectsData,new ObjectsDataCodec()); local2.registerCodecForType(ObjectsDependencies,new ObjectsDependenciesCodec()); } public function stop(param1:OSGi) : void { } } }
package alternativa.tanks.model.achievement { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.gui.AchievementCongratulationsWindow; import alternativa.tanks.help.HelpService; import alternativa.tanks.help.IHelpService; import alternativa.tanks.help.achievements.FirstPurchaseHelper; import alternativa.tanks.help.achievements.SetEmailHelper; import alternativa.tanks.help.achievements.UpRankHelper; import alternativa.tanks.locale.constants.TextConst; import alternativa.tanks.model.panel.IPanel; import flash.display.DisplayObjectContainer; import flash.events.Event; import flash.events.MouseEvent; import flash.geom.Point; import forms.events.MainButtonBarEvents; public class AchievementModel { private const HELPER_GROUP_KEY:String = "GarageModel"; private var firstPurchaseHelper:FirstPurchaseHelper; private var setEmailHelper:SetEmailHelper; private var upRankHelper:UpRankHelper; private var currentAchievements:Vector.<Achievement>; private var helpService:HelpService; private var window:AchievementCongratulationsWindow; private var dialogsLayer:DisplayObjectContainer; private var panelModel:IPanel; private var state:State; public function AchievementModel() { super(); this.firstPurchaseHelper = new FirstPurchaseHelper(); this.setEmailHelper = new SetEmailHelper(); this.upRankHelper = new UpRankHelper(); this.helpService = Main.osgi.getService(IHelpService) as HelpService; this.helpService.registerHelper(this.HELPER_GROUP_KEY,800,this.firstPurchaseHelper,false); this.helpService.registerHelper(this.HELPER_GROUP_KEY,801,this.setEmailHelper,false); this.helpService.registerHelper(this.HELPER_GROUP_KEY,802,this.upRankHelper,false); this.currentAchievements = new Vector.<Achievement>(); this.dialogsLayer = Main.dialogsLayer; } public function objectLoaded(activeAchievements:Vector.<Achievement>) : void { this.panelModel = Main.osgi.getService(IPanel) as IPanel; this.setAchievements(activeAchievements); } private function setAchievements(activeAchievements:Vector.<Achievement>) : void { var achivement:Achievement = null; for each(achivement in activeAchievements) { this.currentAchievements.push(achivement); } if(this.currentAchievements.length != 0) { this.showCurrentAchievementBubbles(); this.alignHelpers(); Main.stage.addEventListener(Event.RESIZE,this.alignHelpers); } } public function completeAchievement(achievement:Achievement) : void { this.removeAchievement(achievement); this.hideAllBubbles(); this.panelModel.blur(); var localeService:ILocaleService = ILocaleService(Main.osgi.getService(ILocaleService)); var text:String = localeService.getText(achievement == Achievement.FIRST_PURCHASE ? TextConst.ACHIEVEMENT_COMPLETE_FIRST_PURCHASE_TEXT : TextConst.ACHIEVEMENT_COMPLETE_EMAIL_TEXT); this.window = new AchievementCongratulationsWindow(); this.window.init(text); this.dialogsLayer.addChild(this.window); this.window.closeBtn.addEventListener(MouseEvent.CLICK,this.closeWindow); this.alignHelpers(); } public function showNewRankCongratulationsWindow() : void { this.hideAllBubbles(); this.panelModel.blur(); var localeService:ILocaleService = ILocaleService(Main.osgi.getService(ILocaleService)); var text:String = localeService.getText(TextConst.NEWBIES_BONUSES_NEW_RANK_WINDOW_MESSAGE_TEXT); this.window = new AchievementCongratulationsWindow(); this.window.init(text); this.dialogsLayer.addChild(this.window); this.window.closeBtn.addEventListener(MouseEvent.CLICK,this.closeWindow); this.alignHelpers(); } private function closeWindow(e:Event = null) : void { this.window.closeBtn.removeEventListener(MouseEvent.CLICK,this.closeWindow); this.dialogsLayer.removeChild(this.window); this.panelModel.unblur(); this.showCurrentAchievementBubbles(); } private function hideAllBubbles() : void { for(var i:int = 800; i < 803; i++) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,i); } this.helpService.hideHelp(); } private function removeAchievement(achievement:Achievement) : void { if(this.currentAchievements.indexOf(achievement) != -1) { this.currentAchievements.splice(this.currentAchievements.indexOf(achievement),1); } } private function newbies() : Boolean { if(this.panelModel == null) { return false; } return this.panelModel.rank == 1; } private function showCurrentAchievementBubbles() : void { var achievement:Achievement = null; for(var i:int = 800; i < 803; i++) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,i); } for each(achievement in this.currentAchievements) { if(achievement == Achievement.FIRST_PURCHASE) { if(this.state != State.GARAGE && this.state != State.BATTLE) { this.helpService.showHelper(this.HELPER_GROUP_KEY,800); } } else if(this.state != State.BATTLE) { this.helpService.showHelper(this.HELPER_GROUP_KEY,801); } } if(this.newbies() && this.state == State.BATTLE) { this.helpService.showHelper(this.HELPER_GROUP_KEY,802); } } public function changeSwitchPanelStateStart(typePanel:String) : void { switch(typePanel) { case MainButtonBarEvents.SETTINGS: if(this.containsAchievement(Achievement.SET_EMAIL)) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,801); } this.helpService.hideHelper(this.HELPER_GROUP_KEY,802); break; case MainButtonBarEvents.GARAGE: if(this.containsAchievement(Achievement.FIRST_PURCHASE)) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,800); } if(this.containsAchievement(Achievement.SET_EMAIL)) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,801); } this.helpService.hideHelper(this.HELPER_GROUP_KEY,802); break; case MainButtonBarEvents.BATTLE: if(this.containsAchievement(Achievement.FIRST_PURCHASE)) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,800); } if(this.containsAchievement(Achievement.SET_EMAIL)) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,801); } this.helpService.hideHelper(this.HELPER_GROUP_KEY,802); break; case MainButtonBarEvents.HELP: if(this.state != State.BATTLE) { this.hideAllBubbles(); } this.helpService.hideHelper(this.HELPER_GROUP_KEY,802); } } public function changeSwitchPanelStateEnd(typePanel:String) : void { switch(typePanel) { case MainButtonBarEvents.GARAGE: if(this.containsAchievement(Achievement.SET_EMAIL) && !this.containsAchievement(Achievement.FIRST_PURCHASE)) { this.helpService.showHelper(this.HELPER_GROUP_KEY,801); } this.state = State.GARAGE; break; case MainButtonBarEvents.BATTLE: if(this.containsAchievement(Achievement.SET_EMAIL) && !this.containsAchievement(Achievement.FIRST_PURCHASE)) { this.helpService.showHelper(this.HELPER_GROUP_KEY,801); } if(this.containsAchievement(Achievement.FIRST_PURCHASE)) { this.helpService.showHelper(this.HELPER_GROUP_KEY,800); } this.state = State.BATTLES_LIST; break; case MainButtonBarEvents.HELP: if(this.state != State.BATTLE) { this.showCurrentAchievementBubbles(); } } } public function onEnterInBattle() : void { if(this.containsAchievement(Achievement.FIRST_PURCHASE)) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,800); } if(this.containsAchievement(Achievement.SET_EMAIL)) { this.helpService.hideHelper(this.HELPER_GROUP_KEY,801); } this.state = State.BATTLE; } public function onLoadedInBattle() : void { if(this.newbies()) { this.helpService.showHelper(this.HELPER_GROUP_KEY,802); } } private function containsAchievement(achievement:Achievement) : Boolean { var id:int = this.currentAchievements.indexOf(achievement); return id >= 0; } private function alignHelpers(event:Event = null) : void { var width:int = Math.max(1000,Main.stage.stageWidth); var heigth:int = Math.max(580,Main.stage.stageHeight); this.firstPurchaseHelper.targetPoint = new Point(width - 330,30); this.setEmailHelper.targetPoint = new Point(width - 115,30); this.upRankHelper.targetPoint = new Point(270,30); if(this.window != null) { this.window.x = Main.stage.stageWidth - this.window.width >> 1; this.window.y = Main.stage.stageHeight - this.window.height >> 1; } } } }
package projects.tanks.client.battlefield.models.user.bossstate { public interface IBossStateModelBase { function changeRole(param1:BossRelationRole) : void; } }
package _codec.projects.tanks.client.tanksservices.model.notifier.battle { 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.tanksservices.model.notifier.battle.BattleNotifierData; public class VectorCodecBattleNotifierDataLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecBattleNotifierDataLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(BattleNotifierData,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.<BattleNotifierData> = new Vector.<BattleNotifierData>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = BattleNotifierData(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:BattleNotifierData = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<BattleNotifierData> = Vector.<BattleNotifierData>(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 projects.tanks.client.panel.model.shop.goldboxpackage { public class GoldBoxPackageCC { private var _count:int; public function GoldBoxPackageCC(param1:int = 0) { super(); this._count = param1; } public function get count() : int { return this._count; } public function set count(param1:int) : void { this._count = param1; } public function toString() : String { var local1:String = "GoldBoxPackageCC ["; local1 += "count = " + this.count + " "; return local1 + "]"; } } }
package _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.railgun { 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.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; import projects.tanks.client.battlefield.models.tankparts.sfx.shoot.railgun.RailgunShootSFXCC; public class CodecRailgunShootSFXCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_chargingPart1:ICodec; private var codec_chargingPart2:ICodec; private var codec_chargingPart3:ICodec; private var codec_hitMarkTexture:ICodec; private var codec_lightingSFXEntity:ICodec; private var codec_powTexture:ICodec; private var codec_ringsTexture:ICodec; private var codec_shotSound:ICodec; private var codec_smokeImage:ICodec; private var codec_sphereTexture:ICodec; private var codec_trailImage:ICodec; public function CodecRailgunShootSFXCC() { super(); } public function init(param1:IProtocol) : void { this.codec_chargingPart1 = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_chargingPart2 = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_chargingPart3 = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_hitMarkTexture = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_lightingSFXEntity = param1.getCodec(new TypeCodecInfo(LightingSFXEntity,false)); this.codec_powTexture = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false)); this.codec_ringsTexture = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false)); this.codec_shotSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_smokeImage = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_sphereTexture = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false)); this.codec_trailImage = param1.getCodec(new TypeCodecInfo(TextureResource,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:RailgunShootSFXCC = new RailgunShootSFXCC(); local2.chargingPart1 = this.codec_chargingPart1.decode(param1) as TextureResource; local2.chargingPart2 = this.codec_chargingPart2.decode(param1) as TextureResource; local2.chargingPart3 = this.codec_chargingPart3.decode(param1) as TextureResource; local2.hitMarkTexture = this.codec_hitMarkTexture.decode(param1) as TextureResource; local2.lightingSFXEntity = this.codec_lightingSFXEntity.decode(param1) as LightingSFXEntity; local2.powTexture = this.codec_powTexture.decode(param1) as MultiframeTextureResource; local2.ringsTexture = this.codec_ringsTexture.decode(param1) as MultiframeTextureResource; local2.shotSound = this.codec_shotSound.decode(param1) as SoundResource; local2.smokeImage = this.codec_smokeImage.decode(param1) as TextureResource; local2.sphereTexture = this.codec_sphereTexture.decode(param1) as MultiframeTextureResource; local2.trailImage = this.codec_trailImage.decode(param1) as TextureResource; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:RailgunShootSFXCC = RailgunShootSFXCC(param2); this.codec_chargingPart1.encode(param1,local3.chargingPart1); this.codec_chargingPart2.encode(param1,local3.chargingPart2); this.codec_chargingPart3.encode(param1,local3.chargingPart3); this.codec_hitMarkTexture.encode(param1,local3.hitMarkTexture); this.codec_lightingSFXEntity.encode(param1,local3.lightingSFXEntity); this.codec_powTexture.encode(param1,local3.powTexture); this.codec_ringsTexture.encode(param1,local3.ringsTexture); this.codec_shotSound.encode(param1,local3.shotSound); this.codec_smokeImage.encode(param1,local3.smokeImage); this.codec_sphereTexture.encode(param1,local3.sphereTexture); this.codec_trailImage.encode(param1,local3.trailImage); } } }
package projects.tanks.client.battlefield.models.battle.pointbased.rugby.explosion { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; 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 BallExplosionModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:BallExplosionModelServer; private var client:IBallExplosionModelBase = IBallExplosionModelBase(this); private var modelId:Long = Long.getLong(528440881,-1507999770); public function BallExplosionModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new BallExplosionModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(BallExplosionCC,false))); } protected function getInitParam() : BallExplosionCC { return BallExplosionCC(initParams[Model.object]); } 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 alternativa.tanks.models.notifier { import alternativa.tanks.models.user.ClanUserService; import platform.client.fp10.core.model.ObjectLoadListener; import projects.tanks.client.clans.notifier.ClanNotifierData; import projects.tanks.client.clans.notifier.ClanNotifierModelBase; import projects.tanks.client.clans.notifier.IClanNotifierModelBase; import projects.tanks.clients.fp10.libraries.tanksservices.service.clan.ClanUserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.clan.UserClanInfo; import projects.tanks.clients.fp10.libraries.tanksservices.service.user.IUserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties.IUserPropertiesService; [ModelInfo] public class ClanNotifierModel extends ClanNotifierModelBase implements IClanNotifierModelBase, ObjectLoadListener { [Inject] public static var clanUserInfoService:ClanUserInfoService; [Inject] public static var clanUserService:ClanUserService; [Inject] public static var userInfoService:IUserInfoService; [Inject] public static var userPropertyService:IUserPropertiesService; public function ClanNotifierModel() { super(); } public function objectLoaded() : void { var local1:ClanNotifierData = getInitParam(); var local2:UserClanInfo = new UserClanInfo(local1); clanUserInfoService.updateUserClanInfo(local2); } public function sendData(param1:Vector.<ClanNotifierData>) : void { var local2:ClanNotifierData = null; var local3:UserClanInfo = null; for each(local2 in param1) { local3 = new UserClanInfo(local2); clanUserInfoService.updateUserClanInfo(local3); } if(userInfoService.getCurrentUserId() == local2.userId && clanUserInfoService.updateFriendsClanButtonFunction != null) { clanUserInfoService.updateFriendsClanButtonFunction.call(null); } } } }
package alternativa.tanks.utils { import alternativa.osgi.OSGi; import alternativa.tanks.battle.events.BattleEventDispatcher; public class DataValidatorImpl implements DataValidator { private static const zero:EncryptedInt = new EncryptedIntImpl(); private static const one:EncryptedInt = new EncryptedIntImpl(1); private static const numChecksPerTick:EncryptedInt = new EncryptedIntImpl(5); private const currentIndex:EncryptedInt = new EncryptedIntImpl(); private var battleEventDispatcher:BattleEventDispatcher; private var validators:Vector.<DataUnitValidator> = new Vector.<DataUnitValidator>(); public function DataValidatorImpl(param1:OSGi) { super(); this.battleEventDispatcher = BattleEventDispatcher(param1.getService(BattleEventDispatcher)); } public function addValidator(param1:DataUnitValidator) : void { if(this.validators.indexOf(param1) < zero.getInt()) { this.validators.push(param1); } } public function removeValidator(param1:DataUnitValidator) : void { var local2:int = int(this.validators.indexOf(param1)); if(local2 >= zero.getInt()) { this.validators.splice(local2,one.getInt()); } } public function removeAllValidators() : void { this.validators.length = zero.getInt(); } public function tick() : void { var local1:int = 0; var local2:DataUnitValidator = null; if(this.validators.length > zero.getInt()) { local1 = int(zero.getInt()); while(local1 < numChecksPerTick.getInt()) { local2 = this.getNextValidator(); if(local2.hasIncorrectData()) { this.battleEventDispatcher.dispatchEvent(new DataValidationErrorEvent(local2.getType())); break; } local1++; } } } private function getNextValidator() : DataUnitValidator { return this.validators[this.getNextIndex()]; } private function getNextIndex() : int { var local1:int = int(this.currentIndex.getInt()); local1++; if(local1 >= this.validators.length) { local1 = int(zero.getInt()); } this.currentIndex.setInt(local1); return local1; } } }
package projects.tanks.client.panel.model.shop.notification { 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 ShopNotifierModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:ShopNotifierModelServer; private var client:IShopNotifierModelBase = IShopNotifierModelBase(this); private var modelId:Long = Long.getLong(1668161981,-943255745); private var _notifyDiscountsInShopId:Long = Long.getLong(240051811,-1135024818); private var _notifyNewItemsInShopId:Long = Long.getLong(864049549,260374042); public function ShopNotifierModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new ShopNotifierModelServer(IModel(this)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._notifyDiscountsInShopId: this.client.notifyDiscountsInShop(); break; case this._notifyNewItemsInShopId: this.client.notifyNewItemsInShop(); } } override public function get id() : Long { return this.modelId; } } }
package controls.buttons { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.buttons.H50ButtonSkin_leftClass.png")] public class H50ButtonSkin_leftClass extends BitmapAsset { public function H50ButtonSkin_leftClass() { super(); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.utils { public class LocaleServiceLangValues { public static const RU:String = "ru"; public static const DE:String = "de"; public static const PTBR:String = "pt_BR"; public static const EN:String = "en"; public static const CN:String = "cn"; public static const PL:String = "pl"; public static const ES:String = "es"; public static const FA:String = "fa"; public function LocaleServiceLangValues() { super(); } } }
package _codec.projects.tanks.client.battlefield.models.battle.battlefield.facilities.facillity { 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.facilities.facillity.FacilitySphericalZoneCC; public class VectorCodecFacilitySphericalZoneCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecFacilitySphericalZoneCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(FacilitySphericalZoneCC,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.<FacilitySphericalZoneCC> = new Vector.<FacilitySphericalZoneCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = FacilitySphericalZoneCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:FacilitySphericalZoneCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<FacilitySphericalZoneCC> = Vector.<FacilitySphericalZoneCC>(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 scpacker.networking.connecting { public interface ServerConnectionService { function connect(param1:String, param2:Function) : void; } }
package alternativa.tanks.models.battle.gui.gui.statistics.messages { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.gui.gui.statistics.messages.ActionOutputLine_ctfRedPlayerBringbackRedflagIcon.png")] public class ActionOutputLine_ctfRedPlayerBringbackRedflagIcon extends BitmapAsset { public function ActionOutputLine_ctfRedPlayerBringbackRedflagIcon() { super(); } } }
package assets.slider { import flash.display.BitmapData; [Embed(source="/_assets/assets.slider.slider_TRACK_LEFT.png")] public dynamic class slider_TRACK_LEFT extends BitmapData { public function slider_TRACK_LEFT(param1:int = 5, param2:int = 30) { super(param1,param2); } } }
package alternativa.tanks.models.battle.gui.inventory { import alternativa.math.Vector3; import platform.client.fp10.core.type.IGameObject; public class InventoryItem { private var id:int; private var _count:int; private var gameObject:IGameObject; private var inventoryItemModel:IInventoryItemActivator; public function InventoryItem(param1:IGameObject, param2:int, param3:int, param4:IInventoryItemActivator) { super(); this.gameObject = param1; this.id = param2; this._count = param3; this.inventoryItemModel = param4; } public function requestActivation() : void { this.inventoryItemModel.requestActivation(this); } public function doActivate(param1:Vector3) : void { this.inventoryItemModel.doActivate(this,param1); } public function getGameObject() : IGameObject { return this.gameObject; } public function getId() : int { return this.id; } public function set count(param1:int) : void { this._count = param1; } public function get count() : int { return this._count; } } }
package forms.buttons { import flash.display.Bitmap; public class MainPanelFriendsButton extends MainPanelWideButton { [Embed(source="1052.png")] private static const iconN:Class; [Embed(source="875.png")] private static const overBtn:Class; [Embed(source="939.png")] private static const normalBtn:Class; public function MainPanelFriendsButton() { super(new Bitmap(new iconN().bitmapData),3,3,new Bitmap(new overBtn().bitmapData),new Bitmap(new normalBtn().bitmapData)); } } }
package projects.tanks.client.clans.user.incomingnotificator { import alternativa.types.Long; public interface IClanUserIncomingNotificatorModelBase { function onAdding(param1:Long) : void; function onRemoved(param1:Long) : void; } }
package alternativa.tanks.model.panel { public interface IPanel { function lock() : void; function unlock() : void; function get userName() : String; function get userEmail() : String; function get rank() : int; function get crystal() : int; function partSelected(param1:int) : void; function blur() : void; function unblur() : void; function goToGarage() : void; function goToPayment() : void; function setInviteSendResult(param1:Boolean, param2:String) : void; function _showMessage(param1:String) : void; function setIdNumberCheckResult(param1:Boolean) : void; } }
package alternativa.tanks.model.item.present { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.resource.types.ImageResource; import platform.client.fp10.core.type.IGameObject; public class PresentImageAdapt implements PresentImage { private var object:IGameObject; private var impl:PresentImage; public function PresentImageAdapt(param1:IGameObject, param2:PresentImage) { super(); this.object = param1; this.impl = param2; } public function getImage() : ImageResource { var result:ImageResource = null; try { Model.object = this.object; result = this.impl.getImage(); } finally { Model.popObject(); } return result; } } }
package projects.tanks.clients.fp10.TanksLauncher.background { import mx.core.BitmapAsset; [Embed(source="/_assets/projects.tanks.clients.fp10.TanksLauncher.background.Background_tileClass.jpg")] public class Background_tileClass extends BitmapAsset { public function Background_tileClass() { super(); } } }
package alternativa.tanks.bonuses { import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.Mesh; import flash.media.Sound; public class BattleBonusData { public var boxMesh:Mesh; public var parachuteOuterMesh:Mesh; public var parachuteInnerMesh:Mesh; public var cordsMaterial:TextureMaterial; public var pickupSound:Sound; public var lightColor:uint; public var lightIntensity:Number; public var attenuationBegin:Number; public var attenuationEnd:Number; public function BattleBonusData() { super(); } } }
package alternativa.tanks.view.battlelist.battleitem { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.view.battlelist.battleitem.BattleTypeIcon_formatDisableClass.png")] public class BattleTypeIcon_formatDisableClass extends BitmapAsset { public function BattleTypeIcon_formatDisableClass() { super(); } } }
package projects.tanks.clients.fp10.Prelauncher.makeup { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/projects.tanks.clients.fp10.Prelauncher.makeup.MakeUp_gameIconMakeUp.png")] public class MakeUp_gameIconMakeUp extends BitmapAsset { public function MakeUp_gameIconMakeUp() { super(); } } }
package alternativa.tanks.gui.communication.tabs { import flash.display.Sprite; public class AbstractCommunicationPanelTab extends Sprite { public var isActive:Boolean; public function AbstractCommunicationPanelTab() { super(); } public function resize(param1:int, param2:int) : void { } public function render() : void { } public function hide() : void { } } }
package projects.tanks.client.panel.model.shop.promo { 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 projects.tanks.client.panel.model.donationalert.types.GoodInfoData; public class ShopPromoCodeModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:ShopPromoCodeModelServer; private var client:IShopPromoCodeModelBase = IShopPromoCodeModelBase(this); private var modelId:Long = Long.getLong(441391263,1266773881); private var _codeActivatedId:Long = Long.getLong(127084649,413337814); private var _codeActivated_rewardCodec:ICodec; private var _codeActivationBlockedId:Long = Long.getLong(1650116493,253304315); private var _codeIsInvalidId:Long = Long.getLong(127086331,1588951154); public function ShopPromoCodeModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new ShopPromoCodeModelServer(IModel(this)); this._codeActivated_rewardCodec = this._protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(GoodInfoData,false),false,1)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._codeActivatedId: this.client.codeActivated(this._codeActivated_rewardCodec.decode(param2) as Vector.<GoodInfoData>); break; case this._codeActivationBlockedId: this.client.codeActivationBlocked(); break; case this._codeIsInvalidId: this.client.codeIsInvalid(); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.models.sfx.shoot.shaft { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.core.Face; import alternativa.engine3d.core.Sorting; import alternativa.engine3d.core.Vertex; import alternativa.engine3d.core.Wrapper; import alternativa.engine3d.materials.Material; import alternativa.engine3d.objects.Mesh; use namespace alternativa3d; class Trail1 extends Mesh { private var a:Vertex; private var b:Vertex; private var c:Vertex; private var d:Vertex; private var face:Face; function Trail1() { super(); this.a = this.createVertex(-1,-1,0,0,1); this.b = this.createVertex(1,-1,0,1,1); this.c = this.createVertex(1,0,0,1,0); this.d = this.createVertex(-1,0,0,0,0); this.face = this.createQuad(this.a,this.b,this.c,this.d); calculateFacesNormals(); sorting = Sorting.DYNAMIC_BSP; shadowMapAlphaThreshold = 2; depthMapAlphaThreshold = 2; useShadowMap = false; useLight = false; } public function init(param1:Number, param2:Number, param3:Number, param4:Material) : void { alpha = 1; var _loc5_:Number = param1 / 2; boundMinX = this.a.x = this.d.x = -_loc5_; boundMaxX = this.b.x = this.c.x = _loc5_; boundMinY = this.a.y = this.b.y = -param2; boundMaxY = 0; boundMinZ = boundMaxZ = 0; this.a.v = this.b.v = param3; this.face.material = param4; } public function set width(param1:Number) : void { var _loc2_:Number = param1 / 2; boundMinX = this.a.x = this.d.x = -_loc2_; boundMaxX = this.b.x = this.c.x = _loc2_; } public function get length() : Number { return -this.a.y; } public function set length(param1:Number) : void { if(param1 < 10) { param1 = 10; } boundMinY = this.a.y = this.b.y = -param1; } private function createVertex(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number) : Vertex { var _loc6_:Vertex = new Vertex(); _loc6_.next = vertexList; vertexList = _loc6_; _loc6_.x = param1; _loc6_.y = param2; _loc6_.z = param3; _loc6_.u = param4; _loc6_.v = param5; return _loc6_; } private function createQuad(param1:Vertex, param2:Vertex, param3:Vertex, param4:Vertex) : Face { var _loc5_:Face = new Face(); _loc5_.next = faceList; faceList = _loc5_; _loc5_.wrapper = new Wrapper(); _loc5_.wrapper.vertex = param1; _loc5_.wrapper.next = new Wrapper(); _loc5_.wrapper.next.vertex = param2; _loc5_.wrapper.next.next = new Wrapper(); _loc5_.wrapper.next.next.vertex = param3; _loc5_.wrapper.next.next.next = new Wrapper(); _loc5_.wrapper.next.next.next.vertex = param4; return _loc5_; } } }
package projects.tanks.client.panel.model.referrals.notification { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; public class NewReferralsNotifierModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:NewReferralsNotifierModelServer; private var client:INewReferralsNotifierModelBase = INewReferralsNotifierModelBase(this); private var modelId:Long = Long.getLong(1159964427,-343700957); private var _notifyNewReferralsCountUpdatedId:Long = Long.getLong(2091301631,441198109); private var _notifyNewReferralsCountUpdated_countCodec:ICodec; private var _notifyReferralAddedId:Long = Long.getLong(1626332809,1880389982); private var _notifyReferralAdded_newReferralsCountCodec:ICodec; public function NewReferralsNotifierModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new NewReferralsNotifierModelServer(IModel(this)); this._notifyNewReferralsCountUpdated_countCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); this._notifyReferralAdded_newReferralsCountCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._notifyNewReferralsCountUpdatedId: this.client.notifyNewReferralsCountUpdated(int(this._notifyNewReferralsCountUpdated_countCodec.decode(param2))); break; case this._notifyReferralAddedId: this.client.notifyReferralAdded(int(this._notifyReferralAdded_newReferralsCountCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package platform.clients.fp10.libraries.alternativapartners.type { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IPartnerAdapt implements IPartner { private var object:IGameObject; private var impl:IPartner; public function IPartnerAdapt(param1:IGameObject, param2:IPartner) { super(); this.object = param1; this.impl = param2; } public function getLoginParameters(param1:IParametersListener) : void { var listener:IParametersListener = param1; try { Model.object = this.object; this.impl.getLoginParameters(listener); } finally { Model.popObject(); } } public function hasPaymentAction() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.hasPaymentAction()); } finally { Model.popObject(); } return result; } public function paymentAction() : void { try { Model.object = this.object; this.impl.paymentAction(); } finally { Model.popObject(); } } public function getFailRedirectUrl() : String { var result:String = null; try { Model.object = this.object; result = this.impl.getFailRedirectUrl(); } finally { Model.popObject(); } return result; } public function isExternalLoginAllowed() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.isExternalLoginAllowed()); } finally { Model.popObject(); } return result; } public function hasRatings() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.hasRatings()); } finally { Model.popObject(); } return result; } } }
package projects.tanks.client.battlefield.models.map { 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 BattleMapModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function BattleMapModelServer(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.view.forms.commons { import alternativa.osgi.service.display.IDisplay; import alternativa.osgi.service.launcherparams.ILauncherParams; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.controller.events.CheckCallsignEvent; import alternativa.tanks.controller.events.CheckEmailEvent; import alternativa.tanks.service.IPasswordParamsService; import alternativa.tanks.service.IRegistrationUXService; import alternativa.tanks.view.bubbles.Bubble; import alternativa.tanks.view.bubbles.EntranceBubbleFactory; import alternativa.tanks.view.events.AntiAddictionInfoUpdatedEvent; import alternativa.tanks.view.events.RegistrationFormEvent; import alternativa.tanks.view.forms.freeuids.FreeUidsForm; import alternativa.tanks.view.forms.freeuids.FreeUidsFormEvent; import alternativa.tanks.view.forms.primivites.ValidationIcon; import alternativa.tanks.view.layers.EntranceView; import alternativa.tanks.ymservice.YandexMetricaService; import controls.base.DefaultButtonBase; import controls.base.LabelBase; import controls.base.TankInputBase; import controls.checkbox.CheckBoxBase; import controls.checkbox.CheckBoxEvent; import flash.display.Bitmap; import flash.display.Sprite; import flash.events.Event; import flash.events.FocusEvent; import flash.events.KeyboardEvent; import flash.events.MouseEvent; import flash.events.TimerEvent; import flash.ui.Keyboard; import flash.utils.Timer; import forms.events.LoginFormEvent; import org.robotlegs.core.IInjector; import projects.tanks.client.entrance.model.entrance.logging.RegistrationUXFormAction; import projects.tanks.clients.flash.commons.models.captcha.CaptchaSection; import projects.tanks.clients.flash.commons.models.captcha.RefreshCaptchaClickedEvent; import projects.tanks.clients.flash.commons.services.validate.IValidateService; import projects.tanks.clients.flash.commons.services.validate.ValidateService; import projects.tanks.clients.fp10.libraries.TanksLocale; import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.HelperAlign; public class RegistrationCommonElementsSection extends Sprite { [Inject] public static var display:IDisplay; [Inject] public static var localeService:ILocaleService; [Inject] public static var passwordParamsService:IPasswordParamsService; [Inject] public static var validateService:IValidateService; [Inject] public static var launcherParams:ILauncherParams; [Inject] public static var ymService:YandexMetricaService; [Inject] public static var registrationUXService:IRegistrationUXService; public static const MAX_CHARS_CALLSIGN:int = 20; public static const MAX_CHARS_EMAIL:int = 100; private static const PASSWORDS_DO_NOT_MATCH:String = "PasswordsDoNotMatch"; private static const NAME_IS_NOT_UNIQUE:String = "NameIsNotUnique"; private static const PASSWORD_IS_TOO_EASY:String = "PasswordIsTooEasy"; private static const UID_IS_CHOSEN_FROM_FREE_UIDS_FORM:String = "UidIsChosenFromFreeUidsForm"; private static const SYMBOL_IS_NOT_ALLOWED:String = "SymbolIsNotAllowed"; [Inject] public var injector:IInjector; [Inject] public var entranceView:EntranceView; private const CHECK_CALLSIGN_DELAY:int = 500; public var _continueButton:DefaultButtonBase; private var _callsignInput:TankInputBase; private var _callSignCheckIcon:ValidationIcon; private var _callsignValidated:Boolean; private var _checkCallsignTimer:Timer; private var _emailInput:TankInputBase; private var _registrationThroughEmail:Boolean; private var _emailCheckIcon:ValidationIcon; private var _emailValidated:Boolean; private var _checkEmailTimer:Timer; private var _pass1:TankInputBase; private var _pass2:TankInputBase; private var _pass1CheckIcon:ValidationIcon; private var _pass2CheckIcon:ValidationIcon; private var _acceptRulesCheckBox:CheckBoxBase; private var _acceptRulesLabel:LabelBase; private var _antiAddictionEnabled:Boolean; private var _antiAddictionSection:AntiAddictionSection; private var _freeUidsForm:FreeUidsForm; private var _isFreeUidsFormAlreadyShowed:Boolean; private const MARGIN:int = 20; private const BORDER:int = 25; private var _windowWidth:int = 380; private var _windowHeight:int = 250; private var _inputsLeftMargin:int = 80; private var _captchaSection:CaptchaSection; private var _nameIsNotUniqueBubble:Bubble; private var _nameIsIncorrectBubble:Bubble; private var _symbolIsNotAllowedBubble:Bubble; private var _emailIsBusyBubble:Bubble; private var _emailIsInvalidBubble:Bubble; private var _emailDomainIsForbidden:Bubble; private var _passwordIsTooEasyBubble:Bubble; private var _passwordsDoNotMatchBubble:Bubble; private var acceptConditionsBubble:Bubble; public function RegistrationCommonElementsSection() { super(); } [PostConstruct] public function postConstruct() : void { this._captchaSection = this.injector.instantiate(CaptchaSection); this._callsignInput = new TankInputBase(); this._emailInput = new TankInputBase(); this._callSignCheckIcon = new ValidationIcon(); this._emailCheckIcon = new ValidationIcon(); this._pass1 = new TankInputBase(); this._pass2 = new TankInputBase(); this._pass1CheckIcon = new ValidationIcon(); this._pass2CheckIcon = new ValidationIcon(); this._continueButton = new DefaultButtonBase(); this._acceptRulesCheckBox = new CheckBoxBase(); this._acceptRulesLabel = new LabelBase(); addChild(this._captchaSection); addChild(this._emailInput); addChild(this._callsignInput); addChild(this._pass1); addChild(this._pass2); addChild(this._continueButton); addChild(this._acceptRulesCheckBox); addChild(this._acceptRulesLabel); addChild(this._pass2CheckIcon); addChild(this._pass1CheckIcon); addChild(this._emailCheckIcon); addChild(this._callSignCheckIcon); this._callsignInput.label = localeService.getText(TanksLocale.TEXT_REGISTER_FORM_CALLSIGN_INPUT_LABEL_TEXT); this._pass1.label = localeService.getText(TanksLocale.TEXT_REGISTER_FORM_PASSWORD_INPUT_LABEL_TEXT); this._pass2.label = localeService.getText(TanksLocale.TEXT_REGISTER_FORM_REPEAT_PASSWORD_INPUT_LABEL_TEXT); this._callsignInput.maxChars = MAX_CHARS_CALLSIGN; this._callsignInput.validValue = true; this._emailInput.label = "E-mail:"; this._emailInput.maxChars = MAX_CHARS_EMAIL; this._pass1.maxChars = passwordParamsService.maxPasswordLength; this._pass1.hidden = true; this._pass1.validValue = true; this._pass2.maxChars = passwordParamsService.maxPasswordLength; this._pass2.hidden = true; this._pass2.validValue = true; this._acceptRulesCheckBox.checked = false; this._acceptRulesLabel.wordWrap = true; this._acceptRulesLabel.multiline = true; this._acceptRulesLabel.width = 240; this._acceptRulesLabel.htmlText = localeService.getText(TanksLocale.TEXT_REGISTER_FORM_AGREEMENT_NOTE_TEXT); this._continueButton.label = localeService.getText(TanksLocale.TEXT_REGISTER_FORM_CONTINUE); this._continueButton.enable = false; this._antiAddictionSection = new AntiAddictionSection(); addChild(this._antiAddictionSection); this._antiAddictionSection.visible = false; this._captchaSection.visible = false; this._checkCallsignTimer = new Timer(this.CHECK_CALLSIGN_DELAY,1); this._checkEmailTimer = new Timer(this.CHECK_CALLSIGN_DELAY,1); this.createBubbles(); this.createFreeUidsForm(); this.updatePositionAndVisibleElements(); } private function createBubbles() : void { this._nameIsNotUniqueBubble = EntranceBubbleFactory.nameIsNotUniqueBubble(); this._nameIsIncorrectBubble = EntranceBubbleFactory.nameIsIncorrectBubble(); this._symbolIsNotAllowedBubble = EntranceBubbleFactory.symbolIsNotAllowedBubble(); this._emailIsBusyBubble = EntranceBubbleFactory.emailIsBusy(); this._emailIsInvalidBubble = EntranceBubbleFactory.emailIsInvalidBubble(); this._emailDomainIsForbidden = EntranceBubbleFactory.emailDomainIsForbidden(); this._passwordIsTooEasyBubble = EntranceBubbleFactory.passwordIsTooEasyBubble(); this._passwordsDoNotMatchBubble = EntranceBubbleFactory.passwordsDoNotMatchBubble(); this.acceptConditionsBubble = EntranceBubbleFactory.customBubble(TanksLocale.TEXT_ACCEPT_CONDITIONS,HelperAlign.TOP_RIGHT); this.acceptConditionsBubble.relativePosition.y += 15; } private function createFreeUidsForm() : void { this._freeUidsForm = new FreeUidsForm(); addChild(this._freeUidsForm); } private function updatePositionAndVisibleElements() : void { this._inputsLeftMargin = this.BORDER + 5 + Math.max(this._callsignInput._label.width,this._pass1._label.width,this._pass2._label.width); this._callsignInput.x = this._inputsLeftMargin; this._callsignInput.y = this.MARGIN; this._callsignInput.width = this._windowWidth - this._inputsLeftMargin - this.BORDER; this._freeUidsForm.x = this._callsignInput.x; this._freeUidsForm.y = this._callsignInput.y + this._callsignInput.height; this._freeUidsForm.width = this._windowWidth - this._inputsLeftMargin - this.BORDER; this._callSignCheckIcon.x = this._windowWidth - this.MARGIN - this._callSignCheckIcon.width - 10; this._callSignCheckIcon.y = this._callsignInput.y + 7; this._emailInput.x = this._inputsLeftMargin; this._emailInput.y = this._callsignInput.y + this._callsignInput.height + this.MARGIN - 10; this._emailInput.width = this._windowWidth - this._inputsLeftMargin - this.BORDER; this._emailCheckIcon.x = this._windowWidth - this.MARGIN - this._emailCheckIcon.width - 10; this._emailCheckIcon.y = this._emailInput.y + 7; this._pass1.visible = !this._registrationThroughEmail; this._pass2.visible = !this._registrationThroughEmail; this._pass1CheckIcon.visible = !this._registrationThroughEmail; this._pass2CheckIcon.visible = !this._registrationThroughEmail; this._emailInput.visible = this._registrationThroughEmail; this._pass1.x = this._inputsLeftMargin; this._pass1.y = this._callsignInput.y + this._callsignInput.height + this.MARGIN - 10; this._pass1.width = this._windowWidth - this._inputsLeftMargin - this.BORDER; this._pass1CheckIcon.x = this._windowWidth - this.MARGIN - 30; this._pass1CheckIcon.y = this._pass1.y + 7; this._pass2.x = this._inputsLeftMargin; this._pass2.y = this._pass1.y + this._pass1.height + this.MARGIN - 10; this._pass2.width = this._windowWidth - this._inputsLeftMargin - this.BORDER; this._pass2CheckIcon.x = this._windowWidth - this.MARGIN - 30; this._pass2CheckIcon.y = this._pass2.y + 7; this._acceptRulesCheckBox.x = this._pass2.x; this._acceptRulesCheckBox.y = this._pass2.y + this._pass2.height + this.MARGIN - 10; this._acceptRulesLabel.x = this._acceptRulesCheckBox.x + this._acceptRulesCheckBox.width; this._acceptRulesLabel.y = this._acceptRulesCheckBox.y; this._continueButton.x = this._windowWidth - this.BORDER - this._continueButton.width; this._continueButton.y = this._windowHeight - this.MARGIN - this._continueButton.height; this._captchaSection.width = this._windowWidth - this._inputsLeftMargin - this.BORDER; } private function setEvents() : void { addEventListener(Event.REMOVED_FROM_STAGE,this.onRemoveFromStage); this._freeUidsForm.addEventListener(FreeUidsFormEvent.CLICK_ITEM,this.onFreeUidsFormSelectedItem); this._freeUidsForm.addEventListener(FreeUidsFormEvent.FOCUS_OUT,this.onFreeUidsFormFocusOut); this._callsignInput.textField.addEventListener(FocusEvent.FOCUS_IN,this.onCallsignFocusIn); this._callsignInput.addEventListener(LoginFormEvent.TEXT_CHANGED,this.onCallsignChanged); this._continueButton.addEventListener(MouseEvent.CLICK,this.onContinueButtonClick); this._acceptRulesCheckBox.addEventListener(CheckBoxEvent.STATE_CHANGED,this.onCheckRulesChanged); this._captchaSection.captchaAnswer.addEventListener(KeyboardEvent.KEY_DOWN,this.onPlayClickedKey); this._captchaSection.refreshButton.addEventListener(MouseEvent.CLICK,this.onRefreshCaptcha); this._checkCallsignTimer.addEventListener(TimerEvent.TIMER_COMPLETE,this.onCallsignCheckTimerComplete); this._checkEmailTimer.addEventListener(TimerEvent.TIMER_COMPLETE,this.onEmailCheckTimerComplete); if(this._antiAddictionEnabled) { this._antiAddictionSection.addEventListener(AntiAddictionInfoUpdatedEvent.EVENT,this.onAntiAddictionUpdated); } if(this._registrationThroughEmail) { this._emailInput.addEventListener(LoginFormEvent.TEXT_CHANGED,this.onEmailChanged); this._emailInput.addEventListener(KeyboardEvent.KEY_DOWN,this.onPlayClickedKey); } else { this._pass1.addEventListener(LoginFormEvent.TEXT_CHANGED,this.onPasswordChanged); this._pass2.addEventListener(LoginFormEvent.TEXT_CHANGED,this.onPasswordChanged); this._pass2.addEventListener(KeyboardEvent.KEY_DOWN,this.onPlayClickedKey); } } private function onCheckRulesChanged(param1:CheckBoxEvent) : void { if(this._acceptRulesCheckBox.checked) { registrationUXService.logFormAction(RegistrationUXFormAction.USER_AGREEMENT_ACCEPTED); } this.togglePlayButton(); } private function onRemoveFromStage(param1:Event) : void { removeEventListener(Event.REMOVED_FROM_STAGE,this.onRemoveFromStage); this._freeUidsForm.destroy(); this.removeEvents(); } private function removeEvents() : void { this._freeUidsForm.removeEventListener(FreeUidsFormEvent.FOCUS_OUT,this.onFreeUidsFormFocusOut); this._freeUidsForm.removeEventListener(FreeUidsFormEvent.CLICK_ITEM,this.onFreeUidsFormSelectedItem); this._callsignInput.textField.removeEventListener(FocusEvent.FOCUS_IN,this.onCallsignFocusIn); this._callsignInput.removeEventListener(LoginFormEvent.TEXT_CHANGED,this.onCallsignChanged); this._continueButton.removeEventListener(MouseEvent.CLICK,this.onContinueButtonClick); this._acceptRulesCheckBox.removeEventListener(CheckBoxEvent.STATE_CHANGED,this.onCheckRulesChanged); this._captchaSection.captchaAnswer.removeEventListener(KeyboardEvent.KEY_DOWN,this.onPlayClickedKey); this._captchaSection.refreshButton.removeEventListener(MouseEvent.CLICK,this.onRefreshCaptcha); this._checkCallsignTimer.removeEventListener(TimerEvent.TIMER_COMPLETE,this.onCallsignCheckTimerComplete); this._checkEmailTimer.removeEventListener(TimerEvent.TIMER_COMPLETE,this.onEmailCheckTimerComplete); if(this._antiAddictionEnabled) { this._antiAddictionSection.removeEventListener(AntiAddictionInfoUpdatedEvent.EVENT,this.onAntiAddictionUpdated); } if(this._registrationThroughEmail) { this._emailInput.removeEventListener(LoginFormEvent.TEXT_CHANGED,this.onEmailChanged); this._emailInput.removeEventListener(KeyboardEvent.KEY_DOWN,this.onPlayClickedKey); } else { this._pass1.removeEventListener(LoginFormEvent.TEXT_CHANGED,this.onPasswordChanged); this._pass2.removeEventListener(LoginFormEvent.TEXT_CHANGED,this.onPasswordChanged); this._pass2.removeEventListener(KeyboardEvent.KEY_DOWN,this.onPlayClickedKey); } } public function get callsign() : String { return this._callsignInput.textField.text; } public function get emailText() : String { return this._emailInput.textField.text; } public function get password() : String { return this._pass1.textField.text; } public function get verificationPassword() : String { return this._pass2.textField.text; } public function set password(param1:String) : void { this._pass1.textField.text = param1; if(param1.length != 0) { this.onPasswordChanged(); } } public function set verificationPassword(param1:String) : void { this._pass2.textField.text = param1; if(param1.length != 0) { this.onPasswordChanged(); } } public function get rememberMe() : Boolean { return !launcherParams.isDebug; } public function set callsign(param1:String) : void { this._callsignInput.value = param1; display.stage.focus = this._callsignInput.textField; if(param1.length != 0) { this.onCallsignChanged(); this._callsignInput.textField.setSelection(param1.length,param1.length); } } public function set emailText(param1:String) : void { this._emailInput.value = param1; if(param1.length != 0) { this.onEmailChanged(); } } public function get realName() : String { return this._antiAddictionSection != null ? this._antiAddictionSection.realName.textField.text : ""; } public function get idNumber() : String { return this._antiAddictionSection != null ? this._antiAddictionSection.idNumber.textField.text : ""; } public function set idNumber(param1:String) : void { if(this._antiAddictionSection != null) { this._antiAddictionSection.idNumber.textField.text = param1; } } public function set realName(param1:String) : void { if(this._antiAddictionSection != null) { this._antiAddictionSection.realName.textField.text = param1; } } public function get captchaAnswer() : String { return this._captchaSection.captchaAnswer.value; } public function set captcha(param1:Bitmap) : void { this._captchaSection.captcha = param1; } private function onContinueButtonClick(param1:MouseEvent = null) : void { this._continueButton.enable = false; this.removeEvents(); dispatchEvent(new RegistrationFormEvent()); } private function onRefreshCaptcha(param1:MouseEvent) : void { dispatchEvent(new RefreshCaptchaClickedEvent()); } private function onPlayClickedKey(param1:KeyboardEvent) : void { if(param1.keyCode == Keyboard.ENTER && this._continueButton.enable) { this.onContinueButtonClick(); } } public function alertAboutFreeUid() : void { registrationUXService.logFormAction(RegistrationUXFormAction.CORRECT_USERNAME_TYPED); this._symbolIsNotAllowedBubble.hide(); this._callsignInput.validValue = true; this._callsignValidated = true; this._callSignCheckIcon.markAsValid(); this.togglePlayButton(); } public function alertAboutBusyUid(param1:Vector.<String>) : void { registrationUXService.logFormAction(RegistrationUXFormAction.BUSY_USERNAME_TYPED); this._symbolIsNotAllowedBubble.hide(); this._callsignInput.validValue = false; this._callSignCheckIcon.markAsInvalid(); this._callSignCheckIcon.addChild(this._nameIsNotUniqueBubble); this._nameIsNotUniqueBubble.visible = true; ymService.reachGoalIfPlayerWasInTutorial(NAME_IS_NOT_UNIQUE); if(param1.length != 0) { this._isFreeUidsFormAlreadyShowed = true; this._nameIsNotUniqueBubble.visible = false; this._pass1._label.visible = false; this._pass2._label.visible = false; this._freeUidsForm.create(param1); } this.togglePlayButton(); } public function alertAboutIncorrectUid() : void { registrationUXService.logFormAction(RegistrationUXFormAction.FORBIDDEN_USERNAME_TYPED); this._symbolIsNotAllowedBubble.hide(); this._callsignInput.validValue = false; this._callSignCheckIcon.markAsInvalid(); this._callSignCheckIcon.addChild(this._nameIsIncorrectBubble); this.togglePlayButton(); } public function alertAboutEmailIsFree() : void { registrationUXService.logFormAction(RegistrationUXFormAction.CORRECT_USERNAME_TYPED); this._emailInput.validValue = true; this._emailValidated = true; this._emailCheckIcon.markAsValid(); this.togglePlayButton(); } public function alertAboutEmailIsBusy() : void { registrationUXService.logFormAction(RegistrationUXFormAction.BUSY_USERNAME_TYPED); this._emailInput.validValue = false; this._emailCheckIcon.markAsInvalid(); this._emailCheckIcon.addChild(this._emailIsBusyBubble); this.togglePlayButton(); } public function alertAboutEmailIsInvalid() : void { registrationUXService.logFormAction(RegistrationUXFormAction.FORBIDDEN_USERNAME_TYPED); this._emailInput.validValue = false; this._emailCheckIcon.markAsInvalid(); this._emailCheckIcon.addChild(this._emailIsInvalidBubble); this.togglePlayButton(); } public function alertAboutEmailDomainIsForbidden() : void { registrationUXService.logFormAction(RegistrationUXFormAction.FORBIDDEN_USERNAME_TYPED); this._emailInput.validValue = false; this._emailCheckIcon.markAsInvalid(); this._emailCheckIcon.addChild(this._emailDomainIsForbidden); this.togglePlayButton(); } public function alertAboutIncorrectPassword() : void { this._pass1.validValue = false; this._pass1CheckIcon.markAsInvalid(); this._pass1CheckIcon.addChild(this._passwordIsTooEasyBubble); this.togglePlayButton(); } public function showCommonElements(param1:Boolean, param2:Boolean, param3:Boolean = false) : void { this._registrationThroughEmail = param3; this.updatePositionAndVisibleElements(); this.updateTabIndex(); var local4:int = Math.max(this._acceptRulesCheckBox.y + this._acceptRulesCheckBox.height,this._acceptRulesLabel.y + this._acceptRulesLabel.height) + this.MARGIN; if(!param3) { this._pass1CheckIcon.turnOff(); this._pass2CheckIcon.turnOff(); } this._antiAddictionEnabled = param2; if(param2) { this._antiAddictionSection.visible = true; this._antiAddictionSection.y = local4; this._antiAddictionSection.x = 15; local4 += this._antiAddictionSection.height + this.MARGIN; } if(param1) { this._captchaSection.visible = true; this._captchaSection.x = this._inputsLeftMargin; this._captchaSection.y = local4; local4 += this._captchaSection.height + this.MARGIN; } this._continueButton.y = local4; this._windowHeight = this._continueButton.y + this._continueButton.height; this.setEvents(); } private function updateTabIndex() : void { if(this._registrationThroughEmail) { this._callsignInput.tabIndex = 0; this._emailInput.tabIndex = 1; } else { this._callsignInput.tabIndex = 0; this._pass1.tabIndex = 1; this._pass2.tabIndex = 2; } } override public function get height() : Number { return this._windowHeight; } private function onFreeUidsFormSelectedItem(param1:FreeUidsFormEvent) : void { this.callsign = param1.uid; ymService.reachGoalIfPlayerWasInTutorial(UID_IS_CHOSEN_FROM_FREE_UIDS_FORM); registrationUXService.logFormAction(RegistrationUXFormAction.USERNAME_OFFER_ACCEPTED); this.hideFreeUidsForm(); } private function onFreeUidsFormFocusOut(param1:FreeUidsFormEvent) : void { this.hideFreeUidsForm(); } private function hideFreeUidsForm() : void { this._freeUidsForm.hide(); this._pass1._label.visible = true; this._pass2._label.visible = true; this._nameIsNotUniqueBubble.visible = true; } private function onCallsignFocusIn(param1:FocusEvent) : void { if(this._isFreeUidsFormAlreadyShowed) { this._pass1._label.visible = false; this._pass2._label.visible = false; this._nameIsNotUniqueBubble.visible = false; this._freeUidsForm.show(); } } private function onCallsignChanged(param1:LoginFormEvent = null) : void { this._callsignValidated = false; this._callsignInput.validValue = true; this._nameIsIncorrectBubble.hide(); this._nameIsNotUniqueBubble.hide(); this._symbolIsNotAllowedBubble.hide(); this._callSignCheckIcon.turnOff(); this._isFreeUidsFormAlreadyShowed = false; this.hideFreeUidsForm(); this._checkCallsignTimer.reset(); this._checkCallsignTimer.start(); var local2:String = this._callsignInput.value; if(!validateService.isValidIdentificationStringForRegistration(local2)) { registrationUXService.logCountableFormAction(RegistrationUXFormAction.FORBIDDEN_CHARACTERS_TYPED,validateService.getForbiddenCharactersCountForRegistration(local2)); registrationUXService.logCountableFormAction(RegistrationUXFormAction.FORBIDDEN_LETTERS_TYPED,validateService.getForbiddenLettersCountForRegistration(local2)); this._callsignInput.value = local2.replace(ValidateService.NOT_ALLOWED_PATTERN_FOR_REGISTRATION,""); this.alertAboutSymbolIsNotAllowed(); } this.togglePlayButton(); } private function alertAboutSymbolIsNotAllowed() : void { this._callsignInput.validValue = false; this._callSignCheckIcon.markAsInvalid(); this._callSignCheckIcon.addChild(this._symbolIsNotAllowedBubble); ymService.reachGoalIfPlayerWasInTutorial(SYMBOL_IS_NOT_ALLOWED); registrationUXService.logFormAction(RegistrationUXFormAction.FORBIDDEN_USERNAME_TYPED); } private function onEmailChanged(param1:LoginFormEvent = null) : void { this._emailValidated = false; this._emailInput.validValue = true; this._emailIsInvalidBubble.hide(); this._emailDomainIsForbidden.hide(); this._emailIsBusyBubble.hide(); this._emailCheckIcon.turnOff(); this._checkEmailTimer.reset(); this._checkEmailTimer.start(); this.togglePlayButton(); } private function onPasswordChanged(param1:LoginFormEvent = null) : void { this._passwordIsTooEasyBubble.hide(); this._pass1.validValue = true; this._pass1CheckIcon.markAsValid(); if(Boolean(passwordParamsService.isPasswordForbidden(this._pass1.textField.text)) && this._pass1.textField.text.length != 0) { this._pass1CheckIcon.markAsInvalid(); this._pass1.validValue = false; if(!this._nameIsIncorrectBubble.parent && !this._nameIsNotUniqueBubble.parent) { this._pass1CheckIcon.addChild(this._passwordIsTooEasyBubble); ymService.reachGoalIfPlayerWasInTutorial(PASSWORD_IS_TOO_EASY); } } if(this._pass1.textField.text.length == 0) { this._pass1CheckIcon.turnOff(); } else if(this._pass1.validValue) { registrationUXService.logFormAction(RegistrationUXFormAction.CORRECT_PASSWORD_TYPED); } this._pass2.validValue = true; this._pass2CheckIcon.markAsValid(); this._passwordsDoNotMatchBubble.hide(); if(this._pass1.textField.text != this._pass2.textField.text && this._pass2.textField.text.length != 0) { this._pass2CheckIcon.markAsInvalid(); this._pass2.validValue = false; if(!this._nameIsIncorrectBubble.parent && !this._nameIsNotUniqueBubble.parent) { if(!this._passwordIsTooEasyBubble.parent) { ymService.reachGoalIfPlayerWasInTutorial(PASSWORDS_DO_NOT_MATCH); this._pass2CheckIcon.addChild(this._passwordsDoNotMatchBubble); } } } if(this._pass2.textField.text.length == 0) { this._pass2CheckIcon.turnOff(); } else if(this._pass2.validValue) { registrationUXService.logFormAction(RegistrationUXFormAction.CORRECT_PASSWORD_CONFIRMATION_TYPED); } this.togglePlayButton(); } private function togglePlayButton() : void { var local1:Boolean = false; if(this._registrationThroughEmail) { this._continueButton.enable = this._callsignValidated && this._emailValidated; } else { this._continueButton.enable = this._callsignValidated && this._pass1.textField.text == this._pass2.textField.text && !passwordParamsService.isPasswordForbidden(this._pass1.textField.text); } if(this._antiAddictionEnabled) { local1 = this._antiAddictionSection.isIdValid() && this._antiAddictionSection.isRealNameValid(); this._continueButton.enable = this._continueButton.enable && local1; } if(this._continueButton.enable && !this._acceptRulesCheckBox.checked) { this._acceptRulesCheckBox.addChild(this.acceptConditionsBubble); } else { this.acceptConditionsBubble.hide(); } this._continueButton.enable = this._continueButton.enable && this._acceptRulesCheckBox.checked; } private function onCallsignCheckTimerComplete(param1:TimerEvent = null) : void { if(validateService.isUidValid(this._callsignInput.value)) { this._callSignCheckIcon.startProgress(); dispatchEvent(new CheckCallsignEvent(this.callsign)); } else { this._callsignInput.validValue = true; this._symbolIsNotAllowedBubble.hide(); this._callSignCheckIcon.turnOff(); if(this._callsignInput.value.length != 0) { this.alertAboutIncorrectUid(); } } } private function onEmailCheckTimerComplete(param1:TimerEvent) : void { if(validateService.isEmailValid(this._emailInput.value)) { this._emailCheckIcon.startProgress(); dispatchEvent(new CheckEmailEvent(this.emailText)); } else { this._emailInput.validValue = true; this._emailCheckIcon.turnOff(); if(this._emailInput.value.length != 0) { this.alertAboutEmailIsInvalid(); } } } private function onAntiAddictionUpdated(param1:AntiAddictionInfoUpdatedEvent) : void { this.togglePlayButton(); } public function captchaFailed() : void { this.setEvents(); this.togglePlayButton(); this._captchaSection.captchaAnswer.clear(); } } }
package forms.buttons { import flash.display.Bitmap; public class MainPanelChallengeButton extends MainPanelWideButton { [Embed(source="818.png")] private static const iconN:Class; [Embed(source="982.png")] private static const overBtn:Class; [Embed(source="958.png")] private static const normalBtn:Class; public function MainPanelChallengeButton() { super(new Bitmap(new iconN().bitmapData),3,3,new Bitmap(new overBtn().bitmapData),new Bitmap(new normalBtn().bitmapData)); } } }
package alternativa.tanks.model.challenge { import mx.core.BitmapAsset; [ExcludeClass] public class ChallengeCongratulationWindow_maryBitmap extends BitmapAsset { public function ChallengeCongratulationWindow_maryBitmap() { super(); } } }
package alternativa.tanks.models.weapon.shaft { import alternativa.math.Vector3; import alternativa.physics.Body; public class AimedShotResult { public var staticHitPoint:Vector3; public var target:Body; public var targetHitPoint:Vector3; public function AimedShotResult() { super(); } public function setTarget(param1:Body, param2:Vector3) : void { this.target = param1; this.targetHitPoint = param2; } public function setStaticHitPoint(param1:Vector3) : void { this.staticHitPoint = param1.clone(); } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class CongratulationsWindowPresent_bitmapCryss extends BitmapAsset { public function CongratulationsWindowPresent_bitmapCryss() { super(); } } }
package projects.tanks.client.chat.models.chat.chat { 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; public class ChatModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _changeChannelId:Long = Long.getLong(1556150623,-1920786149); private var _changeChannel_channelCodec:ICodec; private var _sendMessageId:Long = Long.getLong(727072716,-952919953); private var _sendMessage_targetUserNameCodec:ICodec; private var _sendMessage_addressModeCodec:ICodec; private var _sendMessage_channelCodec:ICodec; private var _sendMessage_textCodec:ICodec; private var model:IModel; public function ChatModelServer(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._changeChannel_channelCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._sendMessage_targetUserNameCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._sendMessage_addressModeCodec = this.protocol.getCodec(new EnumCodecInfo(ChatAddressMode,false)); this._sendMessage_channelCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._sendMessage_textCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); } public function changeChannel(param1:String) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._changeChannel_channelCodec.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._changeChannelId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } public function sendMessage(param1:String, param2:ChatAddressMode, param3:String, param4:String) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._sendMessage_targetUserNameCodec.encode(this.protocolBuffer,param1); this._sendMessage_addressModeCodec.encode(this.protocolBuffer,param2); this._sendMessage_channelCodec.encode(this.protocolBuffer,param3); this._sendMessage_textCodec.encode(this.protocolBuffer,param4); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local5:SpaceCommand = new SpaceCommand(Model.object.id,this._sendMessageId,this.protocolBuffer); var local6:IGameObject = Model.object; var local7:ISpace = local6.space; local7.commandSender.sendCommand(local5); this.protocolBuffer.optionalMap.clear(); } } }
package assets.scroller { import flash.display.BitmapData; import flash.display.MovieClip; public class ScrollTrackSkin extends MovieClip { private var _height:Number = 30; private var _width:Number = 15; public var tracpng:BitmapData; public function ScrollTrackSkin() { super(); this.initSkin(); graphics.clear(); graphics.beginBitmapFill(this.tracpng); graphics.drawRect(0,0,15,3); graphics.endFill(); } public function initSkin() : void { this.tracpng = new TrackPNG(15,3); } override public function set height(param1:Number) : void { this._height = int(param1); this.draw(); } override public function get height() : Number { return this._height; } override public function set width(param1:Number) : void { this._height = int(param1); this.draw(); } override public function get width() : Number { return this._width; } private function draw() : void { graphics.clear(); graphics.beginBitmapFill(this.tracpng); graphics.drawRect(0,0,this._width,this._height); graphics.endFill(); } } }
package alternativa.tanks.view.battleinfo.dm { import alternativa.tanks.view.battleinfo.BattleInfoBaseParams; import projects.tanks.client.battleselect.model.battle.entrance.user.BattleInfoUser; public class BattleInfoDmParams extends BattleInfoBaseParams { public var users:Vector.<BattleInfoUser> = new Vector.<BattleInfoUser>(); public function BattleInfoDmParams() { super(); } } }
package alternativa.gfx.core { import alternativa.gfx.alternativagfx; import flash.display3D.Context3D; import flash.display3D.Context3DTextureFormat; import flash.utils.ByteArray; import flash.utils.Endian; use namespace alternativagfx; public class CompressedTextureResource extends TextureResource { private var _byteArray:ByteArray; private var _width:int; private var _height:int; public function CompressedTextureResource(param1:ByteArray) { super(); this._byteArray = param1; this._byteArray.endian = Endian.LITTLE_ENDIAN; this._byteArray.position = 7; this._width = 1 << this._byteArray.readByte(); this._height = 1 << this._byteArray.readByte(); this._byteArray.position = 0; } public function get byteArray() : ByteArray { return this._byteArray; } public function get width() : int { return this._width; } public function get height() : int { return this._height; } override public function dispose() : void { super.dispose(); this._byteArray = null; this._width = 0; this._height = 0; } override public function get available() : Boolean { return this._byteArray != null; } override alternativagfx function create(param1:Context3D) : void { super.alternativagfx::create(param1); texture = param1.createTexture(this._width,this._height,Context3DTextureFormat.COMPRESSED,false); } override alternativagfx function upload() : void { super.alternativagfx::upload(); texture.uploadCompressedTextureFromByteArray(this._byteArray,0); } } }
package _codec.projects.tanks.client.panel.model.payment.modes.paygarden { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import projects.tanks.client.panel.model.payment.modes.paygarden.PayGardenProductType; public class CodecPayGardenProductType implements ICodec { public function CodecPayGardenProductType() { super(); } public function init(param1:IProtocol) : void { } public function decode(param1:ProtocolBuffer) : Object { var local2:PayGardenProductType = null; var local3:int = int(param1.reader.readInt()); switch(local3) { case 0: local2 = PayGardenProductType.CRYSTALS; break; case 1: local2 = PayGardenProductType.PREMIUM; break; case 2: local2 = PayGardenProductType.ITEM; } return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:int = int(param2.value); param1.writer.writeInt(local3); } } }
package alternativa.tanks.battle.notificationpausefinish { import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.LogicUnit; import alternativa.tanks.battle.events.BattleEventDispatcher; import alternativa.tanks.battle.events.BattleEventListener; import alternativa.tanks.battle.events.PauseActivationEvent; import alternativa.tanks.battle.events.PauseDeactivationEvent; import flash.utils.getTimer; import platform.client.fp10.core.type.AutoClosable; import projects.tanks.client.commons.models.layout.LayoutState; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher.IDialogWindowsDispatcherService; import projects.tanks.clients.fp10.libraries.tanksservices.service.layout.ILobbyLayoutService; public class NotificationEndsPauseSupport implements AutoClosable, BattleEventListener, LogicUnit { [Inject] public static var battleEventDispatcher:BattleEventDispatcher; [Inject] public static var battleService:BattleService; [Inject] public static var dialogWindowsDispatcherService:IDialogWindowsDispatcherService; [Inject] public static var lobbyLayoutService:ILobbyLayoutService; private static const NOTIFICATION_ENDS_PAUSE_TIME_IN_SEC:int = 60; private var _idleTimeoutEndTime:int; private var _alert:EndsPauseAlert; private var _pauseActivate:Boolean; public function NotificationEndsPauseSupport() { super(); this.init(); } private static function needShowAlert() : Boolean { return !lobbyLayoutService.isSwitchInProgress() && Boolean(lobbyLayoutService.isWindowOpenOverBattle()); } private static function closeModalWindowsOverBattle() : void { var local1:LayoutState = lobbyLayoutService.getCurrentState(); if(local1 != LayoutState.BATTLE) { lobbyLayoutService.returnToBattle(); } } private function init() : void { battleEventDispatcher.addBattleEventListener(PauseActivationEvent,this); battleEventDispatcher.addBattleEventListener(PauseDeactivationEvent,this); } public function handleBattleEvent(param1:Object) : void { if(param1 is PauseActivationEvent) { this.onPauseActivated(PauseActivationEvent(param1)); } else if(param1 is PauseDeactivationEvent) { this.onPauseDeactivated(); } } private function onPauseActivated(param1:PauseActivationEvent) : void { if(this._pauseActivate) { return; } this._pauseActivate = true; this._idleTimeoutEndTime = getTimer() + param1.idleTimeLeft; battleService.getBattleRunner().addLogicUnit(this); } private function onPauseDeactivated() : void { if(!this._pauseActivate) { return; } this._pauseActivate = false; battleService.getBattleRunner().removeLogicUnit(this); this.destroyAlert(); } private function destroyAlert() : void { if(this.hasAlert()) { this._alert.removeEventListener(NotificationEndsPausedAlertEvent.RETURN_TO_BATTLE,this.onReturnToBattle); this._alert.removeEventListener(NotificationEndsPausedAlertEvent.CLOSE_ALERT,this.onCloseAlert); this._alert.destroy(); this._alert = null; } } public function runLogic(param1:int, param2:int) : void { var local3:int = (this._idleTimeoutEndTime - param1) / 1000; if(local3 <= NOTIFICATION_ENDS_PAUSE_TIME_IN_SEC) { if(this.hasAlert()) { this._alert.seconds = Math.max(local3,0); } else if(needShowAlert()) { this.createAlert(local3); } } } private function hasAlert() : Boolean { return this._alert != null; } private function createAlert(param1:int) : void { this._alert = new EndsPauseAlert(); this._alert.addEventListener(NotificationEndsPausedAlertEvent.RETURN_TO_BATTLE,this.onReturnToBattle); this._alert.addEventListener(NotificationEndsPausedAlertEvent.CLOSE_ALERT,this.onCloseAlert); this._alert.seconds = param1; this._alert.show(); } private function onCloseAlert(param1:NotificationEndsPausedAlertEvent = null) : void { this.onPauseDeactivated(); } private function onReturnToBattle(param1:NotificationEndsPausedAlertEvent) : void { dialogWindowsDispatcherService.forciblyClose(); closeModalWindowsOverBattle(); this.onPauseDeactivated(); } [Obfuscation(rename="false")] public function close() : void { this.destroyAlert(); battleEventDispatcher.removeBattleEventListener(PauseActivationEvent,this); battleEventDispatcher.removeBattleEventListener(PauseDeactivationEvent,this); } } }
package alternativa.tanks.model.item.fitting { [ModelInterface] public interface ItemFitting { function fit() : void; } }
package alternativa.tanks.models.weapon.thunder { 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 ThunderCallbackAdapt implements ThunderCallback { private var object:IGameObject; private var impl:ThunderCallback; public function ThunderCallbackAdapt(param1:IGameObject, param2:ThunderCallback) { super(); this.object = param1; this.impl = param2; } public function onShot(param1:int) : void { var time:int = param1; try { Model.object = this.object; this.impl.onShot(time); } finally { Model.popObject(); } } public function onShotStatic(param1:int, param2:Vector3) : void { var time:int = param1; var direction:Vector3 = param2; try { Model.object = this.object; this.impl.onShotStatic(time,direction); } finally { Model.popObject(); } } public function onShotTarget(param1:int, param2:Vector3, param3:Body) : void { var time:int = param1; var hitPoint:Vector3 = param2; var targetBody:Body = param3; try { Model.object = this.object; this.impl.onShotTarget(time,hitPoint,targetBody); } finally { Model.popObject(); } } } }
package alternativa.tanks.models.dom.sfx { import mx.core.BitmapAsset; [ExcludeClass] public class AllBeamProperties_blueRay extends BitmapAsset { public function AllBeamProperties_blueRay() { super(); } } }
package projects.tanks.client.battleselect.model.battle.team { import projects.tanks.client.battleselect.model.battle.entrance.user.BattleInfoUser; public class TeamBattleInfoCC { private var _scoreBlue:int; private var _scoreRed:int; private var _usersBlue:Vector.<BattleInfoUser>; private var _usersRed:Vector.<BattleInfoUser>; public function TeamBattleInfoCC(param1:int = 0, param2:int = 0, param3:Vector.<BattleInfoUser> = null, param4:Vector.<BattleInfoUser> = null) { super(); this._scoreBlue = param1; this._scoreRed = param2; this._usersBlue = param3; this._usersRed = param4; } public function get scoreBlue() : int { return this._scoreBlue; } public function set scoreBlue(param1:int) : void { this._scoreBlue = param1; } public function get scoreRed() : int { return this._scoreRed; } public function set scoreRed(param1:int) : void { this._scoreRed = param1; } public function get usersBlue() : Vector.<BattleInfoUser> { return this._usersBlue; } public function set usersBlue(param1:Vector.<BattleInfoUser>) : void { this._usersBlue = param1; } public function get usersRed() : Vector.<BattleInfoUser> { return this._usersRed; } public function set usersRed(param1:Vector.<BattleInfoUser>) : void { this._usersRed = param1; } public function toString() : String { var local1:String = "TeamBattleInfoCC ["; local1 += "scoreBlue = " + this.scoreBlue + " "; local1 += "scoreRed = " + this.scoreRed + " "; local1 += "usersBlue = " + this.usersBlue + " "; local1 += "usersRed = " + this.usersRed + " "; return local1 + "]"; } } }
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.EnumCodecInfo; import projects.tanks.client.panel.model.shop.androidspecialoffer.banner.AndroidBannerType; public class VectorCodecAndroidBannerTypeLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecAndroidBannerTypeLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new EnumCodecInfo(AndroidBannerType,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.<AndroidBannerType> = new Vector.<AndroidBannerType>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = AndroidBannerType(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:AndroidBannerType = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<AndroidBannerType> = Vector.<AndroidBannerType>(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.bonus.showing.info { import platform.client.fp10.core.resource.types.LocalizedImageResource; [ModelInterface] public interface BonusInfo { function getTopText() : String; function getBottomText() : String; function getImage() : LocalizedImageResource; } }
package projects.tanks.client.garage.models.item.upgradeable.discount { 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 DiscountForUpgradeModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function DiscountForUpgradeModelServer(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 projects.tanks.client.panel.model.donationalert.user.donation { public class DonationProfileCC { private var _donator:Boolean; public function DonationProfileCC(param1:Boolean = false) { super(); this._donator = param1; } public function get donator() : Boolean { return this._donator; } public function set donator(param1:Boolean) : void { this._donator = param1; } public function toString() : String { var local1:String = "DonationProfileCC ["; local1 += "donator = " + this.donator + " "; return local1 + "]"; } } }
package projects.tanks.client.battlefield.models.statistics.targetingmode { 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 TargetingStatisticsModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:TargetingStatisticsModelServer; private var client:ITargetingStatisticsModelBase = ITargetingStatisticsModelBase(this); private var modelId:Long = Long.getLong(2097029315,-1445393748); public function TargetingStatisticsModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new TargetingStatisticsModelServer(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 assets.resultwindow { import flash.display.BitmapData; [Embed(source="/_assets/assets.resultwindow.bres_HEADER_RED_TL.png")] public dynamic class bres_HEADER_RED_TL extends BitmapData { public function bres_HEADER_RED_TL(param1:int = 4, param2:int = 4) { super(param1,param2); } } }
package alternativa.tanks.model.item.grouped { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IGroupedItemAdapt implements IGroupedItem { private var object:IGameObject; private var impl:IGroupedItem; public function IGroupedItemAdapt(param1:IGameObject, param2:IGroupedItem) { super(); this.object = param1; this.impl = param2; } public function isGrouped() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.isGrouped()); } finally { Model.popObject(); } return result; } public function getGroup() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getGroup()); } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.engine3d { import alternativa.engine3d.materials.TextureMaterial; import alternativa.init.Main; import alternativa.tanks.models.battlefield.BattlefieldModel; import alternativa.tanks.models.battlefield.IBattleField; import flash.display.BitmapData; public class TanksTextureMaterial extends TextureMaterial { public function TanksTextureMaterial(param1:BitmapData = null, param2:Boolean = false, param3:Boolean = true, param4:int = 0, param5:Number = 1) { var bfModel:BattlefieldModel = BattlefieldModel(Main.osgi.getService(IBattleField)); if(bfModel.toDestroy.indexOf(this) == -1) { bfModel.toDestroy.push(this); } super(param1,param2,param3,param4,param5); } public function destroy(b:Boolean) : * { dispose(); } } }
package projects.tanks.client.partners.impl.china.ifeng { 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 IfengModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function IfengModelServer(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 _codec.projects.tanks.client.tanksservices.model.notifier.rank { 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.tanksservices.model.notifier.rank.RankNotifierData; public class VectorCodecRankNotifierDataLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecRankNotifierDataLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(RankNotifierData,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.<RankNotifierData> = new Vector.<RankNotifierData>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = RankNotifierData(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:RankNotifierData = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<RankNotifierData> = Vector.<RankNotifierData>(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 projects.tanks.clients.fp10.libraries.tanksservices.model.logging { import platform.client.fp10.core.model.ObjectLoadListener; import platform.client.fp10.core.model.ObjectUnloadListener; import projects.tanks.client.tanksservices.model.logging.IUserActionsLoggerModelBase; import projects.tanks.client.tanksservices.model.logging.UserActionsLoggerModelBase; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.battlelist.UserBattleSelectActionEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.battlelist.UserBattleSelectActionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.gamescreen.UserChangeGameScreenService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.gamescreen.UserChangedGameScreenEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.garage.UserGarageActionEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.garage.UserGarageActionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.paymentactions.UserPaymentActionEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.paymentactions.UserPaymentActionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.settings.UserSettingsChangedEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.settings.UserSettingsChangedService; [ModelInfo] public class UserActionsLoggerModel extends UserActionsLoggerModelBase implements IUserActionsLoggerModelBase, ObjectLoadListener, ObjectUnloadListener { [Inject] public static var paymentActionService:UserPaymentActionsService; [Inject] public static var garageActionService:UserGarageActionsService; [Inject] public static var battleSelectActionService:UserBattleSelectActionsService; [Inject] public static var changeScreenService:UserChangeGameScreenService; [Inject] public static var settingsChangedService:UserSettingsChangedService; public function UserActionsLoggerModel() { super(); } public function objectLoaded() : void { paymentActionService.addEventListener(UserPaymentActionEvent.TYPE,getFunctionWrapper(this.onPaymentAction)); if(getInitParam().loggingEnabled) { garageActionService.addEventListener(UserGarageActionEvent.TYPE,getFunctionWrapper(this.onGarageAction)); battleSelectActionService.addEventListener(UserBattleSelectActionEvent.TYPE,getFunctionWrapper(this.onBattleSelectAction)); changeScreenService.addEventListener(UserChangedGameScreenEvent.TYPE,getFunctionWrapper(this.onScreenChanged)); settingsChangedService.addEventListener(UserSettingsChangedEvent.TYPE,getFunctionWrapper(this.onSettingsChanged)); } } private function onPaymentAction(param1:UserPaymentActionEvent) : void { server.paymentAction(param1.getPaymentAction(),param1.getLayoutName(),param1.getCountryCode(),param1.getPayModeId(),param1.getShopItemId()); } private function onGarageAction(param1:UserGarageActionEvent) : void { server.garageAction(param1.getAction(),param1.getItem()); } private function onBattleSelectAction(param1:UserBattleSelectActionEvent) : void { server.battleSelectAction(param1.getAction(),param1.getMode(),param1.getAdditionalInfo()); } private function onScreenChanged(param1:UserChangedGameScreenEvent) : void { server.changeScreenAction(param1.getPreviousScreen(),param1.getNewScreen()); } private function onSettingsChanged(param1:UserSettingsChangedEvent) : void { server.settingsAction(param1.getSettings()); } public function objectUnloaded() : void { paymentActionService.removeEventListener(UserPaymentActionEvent.TYPE,getFunctionWrapper(this.onPaymentAction)); if(getInitParam().loggingEnabled) { garageActionService.removeEventListener(UserGarageActionEvent.TYPE,getFunctionWrapper(this.onGarageAction)); battleSelectActionService.removeEventListener(UserBattleSelectActionEvent.TYPE,getFunctionWrapper(this.onBattleSelectAction)); changeScreenService.removeEventListener(UserChangedGameScreenEvent.TYPE,getFunctionWrapper(this.onScreenChanged)); settingsChangedService.removeEventListener(UserSettingsChangedEvent.TYPE,getFunctionWrapper(this.onSettingsChanged)); } } } }
package alternativa.tanks.models.tank.pause { import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.objects.tank.TankControlLockBits; import alternativa.tanks.models.tank.ITankModel; import alternativa.tanks.models.tank.IdleKickTime; import alternativa.tanks.models.tank.event.LocalTankLoadListener; import alternativa.tanks.models.tank.event.LocalTankUnloadListener; import alternativa.tanks.models.tank.support.PauseSupport; import projects.tanks.client.battlefield.models.user.pause.ITankPauseModelBase; import projects.tanks.client.battlefield.models.user.pause.TankPauseModelBase; [ModelInfo] public class TankPauseModel extends TankPauseModelBase implements ITankPauseModelBase, ITankPause, LocalTankLoadListener, LocalTankUnloadListener { [Inject] public static var battleService:BattleService; private var idleKickTime:IdleKickTime = new IdleKickTime(); public function TankPauseModel() { super(); } public function localTankLoaded(param1:Boolean) : void { var local2:Boolean = Boolean(battleService.isLocalTankPaused()); putData(PauseSupport,new PauseSupport(object,this.idleKickTime,local2)); } public function localTankUnloaded(param1:Boolean) : void { getData(PauseSupport).close(); clearData(PauseSupport); } public function enablePause() : void { battleService.setLocalTankPaused(true); var local1:ITankModel = ITankModel(object.adapt(ITankModel)); local1.lockMovementControl(TankControlLockBits.PAUSE); local1.getWeaponController().lockWeapon(TankControlLockBits.PAUSE,true); } public function disablePause() : void { battleService.setLocalTankPaused(false); var local1:ITankModel = ITankModel(object.adapt(ITankModel)); local1.unlockMovementControl(TankControlLockBits.PAUSE); local1.getWeaponController().unlockWeapon(TankControlLockBits.PAUSE); this.resetIdleKickTime(); server.disablePause(); } public function resetIdleKickTime() : void { this.idleKickTime.reset(battleService.getIdleKickPeriod()); } } }
package alternativa.tanks.models.battlefield.gui.statistics.field { import flash.display.Bitmap; public class DOMScoreIndicator extends TeamScoreFieldBase { private static const ICON_WIDTH:int = 21; private static const ICON_Y:int = 9; [Embed(source="1071.png")] private static const icon_:Class; private var icon:Bitmap; public function DOMScoreIndicator() { this.icon = new Bitmap(new icon_().bitmapData); super(); addChild(this.icon); this.icon.y = ICON_Y; } override protected function calculateWidth() : int { var maxWidth:int = labelRed.width > labelBlue.width ? int(int(labelRed.width)) : int(int(labelBlue.width)); labelRed.x = 5 + 5 + (maxWidth - labelRed.width >> 1); this.icon.x = labelRed.x + maxWidth + 5; labelBlue.x = this.icon.x + ICON_WIDTH + 5 + (maxWidth - labelBlue.width >> 1); return labelBlue.x + maxWidth + 5 + 5; } } }
package alternativa.tanks.controllers.battlecreate { import alternativa.types.Long; public class SaveMapParams { public var mapId:Long; public var themeName:String; public var selectedThemes:Object; public function SaveMapParams() { super(); } } }
package _codec.projects.tanks.client.panel.model.shop.discount { 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.discount.ShopDiscountCC; public class VectorCodecShopDiscountCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecShopDiscountCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ShopDiscountCC,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.<ShopDiscountCC> = new Vector.<ShopDiscountCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ShopDiscountCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ShopDiscountCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ShopDiscountCC> = Vector.<ShopDiscountCC>(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 projects.tanks.client.panel.model.shop.specialkit.view { public interface IPayPalKitViewModelBase { } }
package projects.tanks.client.garage.skins.shot { 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 AvailableShotSkinsModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function AvailableShotSkinsModelServer(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.battle.gui.gui.statistics.messages { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.gui.gui.statistics.messages.ActionOutputLine_ctfBluePlayerBringbackBlueflagIcon.png")] public class ActionOutputLine_ctfBluePlayerBringbackBlueflagIcon extends BitmapAsset { public function ActionOutputLine_ctfBluePlayerBringbackBlueflagIcon() { super(); } } }
package projects.tanks.client.panel.model.shop.onetimepurchase.event { public interface IEventOneTimePurchaseModelBase { } }
package _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.thunder { 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.tankparts.sfx.shoot.thunder.ThunderShootSFXCC; public class VectorCodecThunderShootSFXCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecThunderShootSFXCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ThunderShootSFXCC,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.<ThunderShootSFXCC> = new Vector.<ThunderShootSFXCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ThunderShootSFXCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ThunderShootSFXCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ThunderShootSFXCC> = Vector.<ThunderShootSFXCC>(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.item.shopabonement { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.commons.types.ShopCategoryEnum; public class ShopAbonementEvents implements ShopAbonement { private var object:IGameObject; private var impl:Vector.<Object>; public function ShopAbonementEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getShopCategory() : ShopCategoryEnum { var result:ShopCategoryEnum = null; var i:int = 0; var m:ShopAbonement = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = ShopAbonement(this.impl[i]); result = m.getShopCategory(); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.models.battle.battlefield { public class GUILockBits { public static const REPORT:int = 1; public static const SETTINGS:int = 2; public static const CHAT:int = 4; public function GUILockBits() { super(); } } }
package projects.tanks.client.battleselect.model.matchmaking.grouplifecycle.invite { import alternativa.types.Long; public interface IMatchmakingGroupInviteModelBase { function accepted(param1:Long) : void; function rejectInvitationToGroupDisabled(param1:Long) : void; function rejectUserAlreadyInGroup(param1:Long) : void; function rejectUserOffline(param1:Long) : void; function rejected(param1:Long) : void; function sendInvite(param1:Long) : void; } }
package alternativa.engine3d.animation { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.animation.keys.Track; import alternativa.engine3d.core.Object3DContainer; import alternativa.engine3d.objects.Joint; import alternativa.engine3d.objects.Skin; use namespace alternativa3d; public class AnimationClip extends AnimationNode { alternativa3d var _objects:Array; public var name:String; public var loop:Boolean = true; public var length:Number = 0; public var animated:Boolean = true; private var _time:Number = 0; private var _numTracks:int = 0; private var _tracks:Vector.<Track> = new Vector.<Track>(); private var _notifiersList:AnimationNotify; public function AnimationClip(param1:String = null) { super(); this.name = param1; } public function get objects() : Array { return this.alternativa3d::_objects == null ? null : [].concat(this.alternativa3d::_objects); } public function set objects(param1:Array) : void { this.updateObjects(this.alternativa3d::_objects,alternativa3d::controller,param1,alternativa3d::controller); this.alternativa3d::_objects = param1 == null ? null : [].concat(param1); } override alternativa3d function setController(param1:AnimationController) : void { this.updateObjects(this.alternativa3d::_objects,alternativa3d::controller,this.alternativa3d::_objects,param1); this.alternativa3d::controller = param1; } private function addObject(param1:Object) : void { if(this.alternativa3d::_objects == null) { this.alternativa3d::_objects = [param1]; } else { this.alternativa3d::_objects.push(param1); } if(alternativa3d::controller != null) { alternativa3d::controller.alternativa3d::addObject(param1); } } private function updateObjects(param1:Array, param2:AnimationController, param3:Array, param4:AnimationController) : void { var local5:int = 0; var local6:int = 0; if(param2 != null && param1 != null) { local5 = 0; local6 = int(this.alternativa3d::_objects.length); while(local5 < local6) { param2.alternativa3d::removeObject(param1[local5]); local5++; } } if(param4 != null && param3 != null) { local5 = 0; local6 = int(param3.length); while(local5 < local6) { param4.alternativa3d::addObject(param3[local5]); local5++; } } } public function updateLength() : void { var local2:Track = null; var local3:Number = NaN; var local1:int = 0; while(local1 < this._numTracks) { local2 = this._tracks[local1]; local3 = local2.length; if(local3 > this.length) { this.length = local3; } local1++; } } public function addTrack(param1:Track) : Track { if(param1 == null) { throw new Error("Track can not be null"); } var local2:* = this._numTracks++; this._tracks[local2] = param1; if(param1.length > this.length) { this.length = param1.length; } return param1; } public function removeTrack(param1:Track) : Track { var local5:Track = null; var local2:int = int(this._tracks.indexOf(param1)); if(local2 < 0) { throw new ArgumentError("Track not found"); } --this._numTracks; var local3:int = local2 + 1; while(local2 < this._numTracks) { this._tracks[local2] = this._tracks[local3]; local2++; local3++; } this._tracks.length = this._numTracks; this.length = 0; var local4:int = 0; while(local4 < this._numTracks) { local5 = this._tracks[local4]; if(local5.length > this.length) { this.length = local5.length; } local4++; } return param1; } public function getTrackAt(param1:int) : Track { return this._tracks[param1]; } public function get numTracks() : int { return this._numTracks; } override alternativa3d function update(param1:Number, param2:Number) : void { var local4:int = 0; var local5:Track = null; var local6:AnimationState = null; var local3:Number = this._time; if(this.animated) { this._time += param1 * speed; if(this.loop) { if(this._time < 0) { this._time = 0; } else if(this._time >= this.length) { this.alternativa3d::collectNotifiers(local3,this.length); this._time = this.length <= 0 ? 0 : this._time % this.length; this.alternativa3d::collectNotifiers(0,this._time); } else { this.alternativa3d::collectNotifiers(local3,this._time); } } else { if(this._time < 0) { this._time = 0; } else if(this._time >= this.length) { this._time = this.length; } this.alternativa3d::collectNotifiers(local3,this._time); } } if(param2 > 0) { local4 = 0; while(local4 < this._numTracks) { local5 = this._tracks[local4]; if(local5.object != null) { local6 = alternativa3d::controller.alternativa3d::getState(local5.object); if(local6 != null) { local5.alternativa3d::blend(this._time,param2,local6); } } local4++; } } } public function get time() : Number { return this._time; } public function set time(param1:Number) : void { this._time = param1; } public function get normalizedTime() : Number { return this.length == 0 ? 0 : this._time / this.length; } public function set normalizedTime(param1:Number) : void { this._time = param1 * this.length; } private function getNumChildren(param1:Object) : int { if(param1 is Joint) { return Joint(param1).numChildren; } if(param1 is Object3DContainer) { return Object3DContainer(param1).numChildren; } if(param1 is Skin) { return Skin(param1).numJoints; } return 0; } private function getChildAt(param1:Object, param2:int) : Object { if(param1 is Joint) { return Joint(param1).getChildAt(param2); } if(param1 is Object3DContainer) { return Object3DContainer(param1).getChildAt(param2); } if(param1 is Skin) { return Skin(param1).getJointAt(param2); } return null; } private function addChildren(param1:Object) : void { var local4:Object = null; var local2:int = 0; var local3:int = this.getNumChildren(param1); while(local2 < local3) { local4 = this.getChildAt(param1,local2); this.addObject(local4); this.addChildren(local4); local2++; } } public function attach(param1:Object, param2:Boolean) : void { this.updateObjects(this.alternativa3d::_objects,alternativa3d::controller,null,alternativa3d::controller); this.alternativa3d::_objects = null; this.addObject(param1); if(param2) { this.addChildren(param1); } } alternativa3d function collectNotifiers(param1:Number, param2:Number) : void { var local3:AnimationNotify = this._notifiersList; while(local3 != null) { if(local3.alternativa3d::_time > param1) { if(local3.alternativa3d::_time > param2) { return; } local3.alternativa3d::processNext = alternativa3d::controller.alternativa3d::nearestNotifyers; alternativa3d::controller.alternativa3d::nearestNotifyers = local3; } local3 = local3.alternativa3d::next; } } public function addNotify(param1:Number, param2:String = null) : AnimationNotify { var local4:AnimationNotify = null; param1 = param1 <= 0 ? 0 : (param1 >= this.length ? this.length : param1); var local3:AnimationNotify = new AnimationNotify(param2); local3.alternativa3d::_time = param1; if(this._notifiersList == null) { this._notifiersList = local3; return local3; } if(this._notifiersList.alternativa3d::_time > param1) { local3.alternativa3d::next = this._notifiersList; this._notifiersList = local3; return local3; } local4 = this._notifiersList; while(local4.alternativa3d::next != null && local4.alternativa3d::next.alternativa3d::_time <= param1) { local4 = local4.alternativa3d::next; } if(local4.alternativa3d::next == null) { local4.alternativa3d::next = local3; } else { local3.alternativa3d::next = local4.alternativa3d::next; local4.alternativa3d::next = local3; } return local3; } public function addNotifyAtEnd(param1:Number = 0, param2:String = null) : AnimationNotify { return this.addNotify(this.length - param1,param2); } public function removeNotify(param1:AnimationNotify) : AnimationNotify { var local2:AnimationNotify = null; if(this._notifiersList != null) { if(this._notifiersList == param1) { this._notifiersList = this._notifiersList.alternativa3d::next; return param1; } local2 = this._notifiersList; while(local2.alternativa3d::next != null && local2.alternativa3d::next != param1) { local2 = local2.alternativa3d::next; } if(local2.alternativa3d::next == param1) { local2.alternativa3d::next = param1.alternativa3d::next; return param1; } } throw new Error("Notify not found"); } public function get notifiers() : Vector.<AnimationNotify> { var local1:Vector.<AnimationNotify> = new Vector.<AnimationNotify>(); var local2:int = 0; var local3:AnimationNotify = this._notifiersList; while(local3 != null) { local1[local2] = local3; local2++; local3 = local3.alternativa3d::next; } return local1; } public function slice(param1:Number, param2:Number = 1.7976931348623157e+308) : AnimationClip { var local3:AnimationClip = new AnimationClip(this.name); local3.alternativa3d::_objects = this.alternativa3d::_objects == null ? null : [].concat(this.alternativa3d::_objects); var local4:int = 0; while(local4 < this._numTracks) { local3.addTrack(this._tracks[local4].slice(param1,param2)); local4++; } return local3; } public function clone() : AnimationClip { var local1:AnimationClip = new AnimationClip(this.name); local1.alternativa3d::_objects = this.alternativa3d::_objects == null ? null : [].concat(this.alternativa3d::_objects); var local2:int = 0; while(local2 < this._numTracks) { local1.addTrack(this._tracks[local2]); local2++; } local1.length = this.length; return local1; } } }
package alternativa.tanks.models.weapon.smoky { public class SmokyEffectsParams { public static const PLANE_WIDTH:Number = 60; public static const PLANE_LENGTH:Number = 210; public static const SHOT_SOUND_VOLUME:Number = 1; public static const EXPLOSION_OFFSET_TO_CAMERA:Number = 110; public static const SHOT_GRAPHIC_EFFECT_LIFE_TIME:int = 100; public static const EXPLOSION_SOUND_DELAY:int = 100; public static const DECAL_RADIUS:int = 250; public function SmokyEffectsParams() { super(); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.probattle { import flash.events.EventDispatcher; import flash.events.TimerEvent; import flash.utils.Timer; public class UserProBattleService extends EventDispatcher implements IUserProBattleService { private var timer:Timer; private var userHasAbonement:Boolean = false; public function UserProBattleService() { super(); } public function hasAbonement() : Boolean { return this.userHasAbonement; } public function setAbonementRemainingTimeSec(param1:int) : void { if(param1 > 0) { this.userHasAbonement = true; this.setTimer(param1); } else { this.userHasAbonement = false; } } private function setTimer(param1:int) : void { this.timer = new Timer(this.getNormalizedDuration(param1),1); this.timer.addEventListener(TimerEvent.TIMER,this.onAbonementDurationOver); this.timer.start(); } private function getNormalizedDuration(param1:int) : Number { var local2:Number = int.MAX_VALUE; if(int.MAX_VALUE / 1000 > param1) { local2 = param1 * 1000; } return local2; } private function onAbonementDurationOver(param1:TimerEvent) : void { this.timer.removeEventListener(TimerEvent.TIMER,this.onAbonementDurationOver); this.timer.stop(); this.userHasAbonement = false; dispatchEvent(new ProBattleEvent(ProBattleEvent.OVER)); } } }
package projects.tanks.clients.fp10.tanksformsflash { import alternativa.osgi.OSGi; import alternativa.osgi.bundle.IBundleActivator; import alternativa.osgi.service.display.IDisplay; import alternativa.osgi.service.locale.ILocaleService; import alternativa.osgi.service.logging.LogService; import controls.Rank; import controls.dropdownlist.AccountsList; import controls.dropdownlist.DropDownList; import controls.panel.UpdateRankNotice; import controls.statassets.StatHeader; import controls.timer.CountDownTimer; import forms.ChangeTeamAlert; import forms.ServerRedirectAlert; import forms.ServerStopAlert; import forms.TankWindowWithHeader; import forms.contextmenu.ContextMenu; import forms.payment.PaymentListHeader; import forms.ranks.RankIcon; import forms.registration.bubbles.EmailInvalidBubble; import forms.registration.bubbles.NameIsIncorrectBubble; import forms.registration.bubbles.NameIsNotUniqueBubble; import forms.registration.bubbles.PasswordIsTooEasyBubble; import forms.registration.bubbles.PasswordsDoNotMatchBubble; import forms.stat.StatListRenderer; import forms.userlabel.UserLabel; import platform.clients.fp10.libraries.alternativapartners.service.IPartnerService; 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.blockuser.IBlockUserService; import projects.tanks.clients.fp10.libraries.tanksservices.service.blur.IBlurService; import projects.tanks.clients.fp10.libraries.tanksservices.service.clan.ClanFunctionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.clan.ClanUserInfoService; 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.group.IGroupInfoService; 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.notifier.online.IOnlineNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.BattleUserPremiumService; 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.storage.IStorageService; import projects.tanks.clients.fp10.libraries.tanksservices.service.user.IUserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties.IUserPropertiesService; import services.alertservice.AlertService; import services.contextmenu.ContextMenuService; import services.contextmenu.IContextMenuService; import utils.GUIDebugger; import utils.TimeFormatter; public class Activator implements IBundleActivator { public static var osgi:OSGi; public function Activator() { super(); } public function start(param1:OSGi) : void { var _osgi:OSGi = param1; osgi = _osgi; osgi.injectService(ILocaleService,function(param1:Object):void { Rank.localeService = ILocaleService(param1); },function():ILocaleService { return Rank.localeService; }); osgi.injectService(IStorageService,function(param1:Object):void { AccountsList.storageService = IStorageService(param1); },function():IStorageService { return AccountsList.storageService; }); osgi.injectService(IDisplay,function(param1:Object):void { DropDownList.display = IDisplay(param1); },function():IDisplay { return DropDownList.display; }); osgi.injectService(ILocaleService,function(param1:Object):void { UpdateRankNotice.localeService = ILocaleService(param1); },function():ILocaleService { return UpdateRankNotice.localeService; }); osgi.injectService(PremiumService,function(param1:Object):void { UpdateRankNotice.premiumService = PremiumService(param1); },function():PremiumService { return UpdateRankNotice.premiumService; }); osgi.injectService(RankService,function(param1:Object):void { UpdateRankNotice.rankService = RankService(param1); },function():RankService { return UpdateRankNotice.rankService; }); osgi.injectService(ILocaleService,function(param1:Object):void { StatHeader.localeService = ILocaleService(param1); },function():ILocaleService { return StatHeader.localeService; }); osgi.injectService(LogService,function(param1:Object):void { CountDownTimer.logService = LogService(param1); },function():LogService { return CountDownTimer.logService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ChangeTeamAlert.localeService = ILocaleService(param1); },function():ILocaleService { return ChangeTeamAlert.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ServerRedirectAlert.localeService = ILocaleService(param1); },function():ILocaleService { return ServerRedirectAlert.localeService; }); osgi.injectService(IDisplay,function(param1:Object):void { ServerStopAlert.display = IDisplay(param1); },function():IDisplay { return ServerStopAlert.display; }); osgi.injectService(ILocaleService,function(param1:Object):void { ServerStopAlert.localeService = ILocaleService(param1); },function():ILocaleService { return ServerStopAlert.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { TankWindowWithHeader.localeService = ILocaleService(param1); },function():ILocaleService { return TankWindowWithHeader.localeService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { ContextMenu.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return ContextMenu.battleInfoService; }); osgi.injectService(IBattleInviteService,function(param1:Object):void { ContextMenu.battleInviteService = IBattleInviteService(param1); },function():IBattleInviteService { return ContextMenu.battleInviteService; }); osgi.injectService(IBlockUserService,function(param1:Object):void { ContextMenu.blockUserService = IBlockUserService(param1); },function():IBlockUserService { return ContextMenu.blockUserService; }); osgi.injectService(ClanFunctionsService,function(param1:Object):void { ContextMenu.clanFunctionsService = ClanFunctionsService(param1); },function():ClanFunctionsService { return ContextMenu.clanFunctionsService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { ContextMenu.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return ContextMenu.clanUserInfoService; }); osgi.injectService(IContextMenuService,function(param1:Object):void { ContextMenu.contextMenuService = IContextMenuService(param1); },function():IContextMenuService { return ContextMenu.contextMenuService; }); osgi.injectService(IDisplay,function(param1:Object):void { ContextMenu.display = IDisplay(param1); },function():IDisplay { return ContextMenu.display; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { ContextMenu.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return ContextMenu.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ContextMenu.localeService = ILocaleService(param1); },function():ILocaleService { return ContextMenu.localeService; }); osgi.injectService(IOnlineNotifierService,function(param1:Object):void { ContextMenu.onlineNotifierService = IOnlineNotifierService(param1); },function():IOnlineNotifierService { return ContextMenu.onlineNotifierService; }); osgi.injectService(IPartnerService,function(param1:Object):void { ContextMenu.partnerService = IPartnerService(param1); },function():IPartnerService { return ContextMenu.partnerService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { ContextMenu.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return ContextMenu.userChangeGameScreenService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { ContextMenu.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return ContextMenu.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { ContextMenu.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return ContextMenu.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PaymentListHeader.localeService = ILocaleService(param1); },function():ILocaleService { return PaymentListHeader.localeService; }); osgi.injectService(RankService,function(param1:Object):void { RankIcon.rankService = RankService(param1); },function():RankService { return RankIcon.rankService; }); osgi.injectService(ILocaleService,function(param1:Object):void { EmailInvalidBubble.localeService = ILocaleService(param1); },function():ILocaleService { return EmailInvalidBubble.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { NameIsIncorrectBubble.localeService = ILocaleService(param1); },function():ILocaleService { return NameIsIncorrectBubble.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { NameIsNotUniqueBubble.localeService = ILocaleService(param1); },function():ILocaleService { return NameIsNotUniqueBubble.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PasswordIsTooEasyBubble.localeService = ILocaleService(param1); },function():ILocaleService { return PasswordIsTooEasyBubble.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { PasswordsDoNotMatchBubble.localeService = ILocaleService(param1); },function():ILocaleService { return PasswordsDoNotMatchBubble.localeService; }); osgi.injectService(RankService,function(param1:Object):void { StatListRenderer.rankService = RankService(param1); },function():RankService { return StatListRenderer.rankService; }); osgi.injectService(BattleUserPremiumService,function(param1:Object):void { UserLabel.battlePremiumService = BattleUserPremiumService(param1); },function():BattleUserPremiumService { return UserLabel.battlePremiumService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { UserLabel.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return UserLabel.clanUserInfoService; }); osgi.injectService(IContextMenuService,function(param1:Object):void { UserLabel.contextMenuService = IContextMenuService(param1); },function():IContextMenuService { return UserLabel.contextMenuService; }); osgi.injectService(IDisplay,function(param1:Object):void { UserLabel.display = IDisplay(param1); },function():IDisplay { return UserLabel.display; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { UserLabel.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return UserLabel.friendInfoService; }); osgi.injectService(IGroupInfoService,function(param1:Object):void { UserLabel.groupInfoService = IGroupInfoService(param1); },function():IGroupInfoService { return UserLabel.groupInfoService; }); osgi.injectService(PremiumService,function(param1:Object):void { UserLabel.premiumService = PremiumService(param1); },function():PremiumService { return UserLabel.premiumService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { UserLabel.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return UserLabel.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { UserLabel.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return UserLabel.userPropertiesService; }); osgi.injectService(IBlurService,function(param1:Object):void { AlertService.blurService = IBlurService(param1); },function():IBlurService { return AlertService.blurService; }); osgi.injectService(IDialogWindowsDispatcherService,function(param1:Object):void { AlertService.dialogWindowsDispatcherService = IDialogWindowsDispatcherService(param1); },function():IDialogWindowsDispatcherService { return AlertService.dialogWindowsDispatcherService; }); osgi.injectService(IDisplay,function(param1:Object):void { AlertService.display = IDisplay(param1); },function():IDisplay { return AlertService.display; }); osgi.injectService(ILocaleService,function(param1:Object):void { AlertService.localeService = ILocaleService(param1); },function():ILocaleService { return AlertService.localeService; }); osgi.injectService(IAlertService,function(param1:Object):void { ContextMenuService.alertService = IAlertService(param1); },function():IAlertService { return ContextMenuService.alertService; }); osgi.injectService(IFriendActionService,function(param1:Object):void { ContextMenuService.friendsActionService = IFriendActionService(param1); },function():IFriendActionService { return ContextMenuService.friendsActionService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ContextMenuService.localeService = ILocaleService(param1); },function():ILocaleService { return ContextMenuService.localeService; }); osgi.injectService(IDisplay,function(param1:Object):void { GUIDebugger.display = IDisplay(param1); },function():IDisplay { return GUIDebugger.display; }); osgi.injectService(ILocaleService,function(param1:Object):void { TimeFormatter.localeService = ILocaleService(param1); },function():ILocaleService { return TimeFormatter.localeService; }); } public function stop(param1:OSGi) : void { } } }
package alternativa.tanks.controller.commands { import alternativa.tanks.service.IEntranceServerFacade; import org.robotlegs.mvcs.Command; public class PassToFirstBattleCommand extends Command { [Inject] public var serverFacade:IEntranceServerFacade; public function PassToFirstBattleCommand() { super(); } override public function execute() : void { this.serverFacade.fightWithoutRegistration(); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.user { import flash.events.IEventDispatcher; import projects.tanks.clients.fp10.libraries.tanksservices.model.notifier.battle.BattleLinkData; public interface IUserInfoLabelUpdater extends IEventDispatcher { function hasData() : Boolean; function get online() : Boolean; function get uid() : String; function get rank() : int; function get battleLink() : BattleLinkData; function incrementVisibleLabelsCounter() : void; function decrementVisibleLabelsCounter() : void; function updateLastAccessTime() : void; function hasBattleLink() : Boolean; function getSNUid() : String; function isReferral() : Boolean; } }
package alternativa.tanks.gui.chat.dropdown { import alternativa.tanks.gui.communication.button.CommunicationPanelTabControl; import controls.dropdownlist.DropDownList; import flash.events.MouseEvent; public class ChatDropDownList extends DropDownList implements CommunicationPanelTabControl { private var isButtonMode:Boolean; private var category:String; public function ChatDropDownList(param1:String) { super(); this.category = param1; height = 256; listWidthExtension = 30; } override protected function onButtonClick(param1:MouseEvent) : void { if(this.isButtonMode) { dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } else { super.onButtonClick(param1); } } public function getCategory() : String { return this.category; } public function get enabled() : Boolean { return this.isButtonMode; } public function set enabled(param1:Boolean) : void { this.isButtonMode = param1; } } }
package projects.tanks.client.battlefield.models.tankparts.sfx.colortransform { import projects.tanks.client.battlefield.models.tankparts.sfx.colortransform.struct.ColorTransformStruct; public class ColorTransformCC { private var _colorTransforms:Vector.<ColorTransformStruct>; public function ColorTransformCC(param1:Vector.<ColorTransformStruct> = null) { super(); this._colorTransforms = param1; } public function get colorTransforms() : Vector.<ColorTransformStruct> { return this._colorTransforms; } public function set colorTransforms(param1:Vector.<ColorTransformStruct>) : void { this._colorTransforms = param1; } public function toString() : String { var local1:String = "ColorTransformCC ["; local1 += "colorTransforms = " + this.colorTransforms + " "; return local1 + "]"; } } }
package _codec.projects.tanks.client.battlefield.models.tankparts.weapon.terminator { 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.tankparts.weapon.terminator.TerminatorCC; public class VectorCodecTerminatorCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecTerminatorCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(TerminatorCC,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.<TerminatorCC> = new Vector.<TerminatorCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = TerminatorCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:TerminatorCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<TerminatorCC> = Vector.<TerminatorCC>(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 projects.tanks.client.garage.models.garage.present { public interface IPresentPurchaseModelBase { function setUidAvailable(param1:Boolean) : void; } }
package projects.tanks.client.battlefield.gui.models.inventory { import scpacker.Base; public class InventoryModelBase extends Base { public function InventoryModelBase() { super(); } } }
package alternativa.tanks.models.foreignclan { import alternativa.tanks.models.panel.create.ClanCreateService; import platform.client.fp10.core.model.ObjectLoadListener; import platform.client.fp10.core.model.ObjectUnloadListener; import projects.tanks.client.clans.panel.foreignclan.ForeignClanData; import projects.tanks.client.clans.panel.foreignclan.ForeignClanModelBase; import projects.tanks.client.clans.panel.foreignclan.IForeignClanModelBase; [ModelInfo] public class ForeignClanModel extends ForeignClanModelBase implements IForeignClanModelBase, ObjectLoadListener, ObjectUnloadListener { [Inject] public static var foreignClanService:ForeignClanService; [Inject] public static var createClanService:ClanCreateService; public function ForeignClanModel() { super(); } public function objectLoaded() : void { createClanService.flags = getInitParam().flags; foreignClanService.addEventListener(ForeignClanEvent.SEND_REQUEST,getFunctionWrapper(this.onSendRequest)); foreignClanService.addEventListener(ForeignClanEvent.ACCEPT_REQUEST,getFunctionWrapper(this.onAcceptRequest)); foreignClanService.addEventListener(ForeignClanEvent.REVOKE_REQUEST,getFunctionWrapper(this.onRevokeRequest)); } private function onSendRequest(param1:ForeignClanEvent) : void { server.sendRequest(); } private function onAcceptRequest(param1:ForeignClanEvent) : void { server.acceptRequest(); } private function onRevokeRequest(param1:ForeignClanEvent) : void { server.revokeRequest(); } public function showForeignClan(param1:ForeignClanData) : void { foreignClanService.showForeignClan(param1); } public function userSmallRankForAddClan() : void { foreignClanService.userSmallRankForAddClan(); } public function onJoinClan(param1:String) : void { foreignClanService.onJoinClan(param1); } public function alreadyInClanOutgoing(param1:String) : void { foreignClanService.alreadyInClanOutgoing(); } public function alreadyInIncoming(param1:String) : void { foreignClanService.alreadyInIncoming(); } public function clanBlocked(param1:String) : void { foreignClanService.clanBlocked(param1); } public function objectUnloaded() : void { foreignClanService.removeEventListener(ForeignClanEvent.SEND_REQUEST,getFunctionWrapper(this.onSendRequest)); foreignClanService.removeEventListener(ForeignClanEvent.ACCEPT_REQUEST,getFunctionWrapper(this.onAcceptRequest)); foreignClanService.removeEventListener(ForeignClanEvent.REVOKE_REQUEST,getFunctionWrapper(this.onRevokeRequest)); } } }
package alternativa.tanks.gui.device { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.device.DevicesIcons_iconDefaultDeviceClass.png")] public class DevicesIcons_iconDefaultDeviceClass extends BitmapAsset { public function DevicesIcons_iconDefaultDeviceClass() { super(); } } }
package alternativa.tanks.models.battlefield.effects.levelup.rangs { import mx.core.BitmapAsset; [ExcludeClass] public class BigRangIcon_rang_24 extends BitmapAsset { public function BigRangIcon_rang_24() { super(); } } }
package alternativa.tanks.models.battlefield.effects.levelup { import mx.core.BitmapAsset; [ExcludeClass] public class LevelUpEffect_WaveTexture extends BitmapAsset { public function LevelUpEffect_WaveTexture() { super(); } } }
package projects.tanks.client.panel.model.challenge.rewarding { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; 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 ChallengesRewardingModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _requestTiersInfoId:Long = Long.getLong(1369735373,-1505616102); private var model:IModel; public function ChallengesRewardingModelServer(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()); } public function requestTiersInfo() : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local1:SpaceCommand = new SpaceCommand(Model.object.id,this._requestTiersInfoId,this.protocolBuffer); var local2:IGameObject = Model.object; var local3:ISpace = local2.space; local3.commandSender.sendCommand(local1); this.protocolBuffer.optionalMap.clear(); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties { import alternativa.types.Long; import flash.events.IEventDispatcher; public interface IUserPropertiesService extends IEventDispatcher { function isInited() : Boolean; function get userId() : Long; function get userName() : String; function set userName(param1:String) : void; function get score() : int; function get rank() : int; function get fullRank() : int; function getUserProfileUrl(param1:String) : String; function get registrationTimestamp() : int; function init(param1:Long, param2:String, param3:int, param4:int, param5:String, param6:int, param7:Boolean, param8:Boolean) : void; function initRank(param1:int) : void; function updateRank(param1:int) : void; function updateCanUseGroup(param1:Boolean) : void; function updateScore(param1:int) : void; function hasSpectatorPermissions() : Boolean; function isQuestsAvailableByRank() : Boolean; function canUseGroup() : Boolean; } }
package alternativa.tanks.gui.payment.controls.exchange { import controls.numeric.NumericEditorEvent; public class PresetedExchangeGroup extends ExchangeGroup { private var inputValues:Vector.<int>; private var outputValues:Vector.<Number>; private var bonusValues:Vector.<int>; private var inputValuesIndex:int; private var inputValuesDefaultIndex:int; public function PresetedExchangeGroup(param1:Vector.<int>, param2:Vector.<Number>, param3:Vector.<int>, param4:int) { super(true,false); this.inputValuesArray = param1; this.outputValues = param2; this.bonusValues = param3; this.inputValuesDefaultIndex = param4; input.setStep(1); input.setValue(param4); output.setMaxValue(0); output.setMaxValue(param1.length); this.resetValue(); } override public function resetValue() : void { this.inputValuesIndex = this.inputValuesDefaultIndex; this.setIndex(this.inputValuesIndex); } public function get currentIndex() : int { return input.getValue(); } override public function set inputValue(param1:int) : void { } override public function get inputValue() : int { return this.inputValues[this.inputValuesIndex]; } override public function get outputValue() : Number { return this.outputValues[this.inputValuesIndex]; } override public function set outputValue(param1:Number) : void { } public function set inputValuesArray(param1:Vector.<int>) : void { this.inputValues = param1; input.setMinValue(0); input.setMaxValue(this.inputValues.length - 1); } public function set outputValuesArray(param1:Vector.<Number>) : void { this.outputValues = param1; } public function set bonusValuesArray(param1:Vector.<int>) : void { this.bonusValues = param1; } public function set defaultIndex(param1:int) : void { this.inputValuesDefaultIndex = param1; this.setIndex(param1); } public function setIndex(param1:int) : void { input.setValue(param1,false); output.setValue(param1,false); output.tf.value = "" + this.outputValues[param1]; input.tf.value = "" + this.inputValues[param1]; bonus = this.bonusValues[param1]; premiumDuration = Boolean(calculator) ? int(calculator.calculatePremiumDuration(this.outputValues[param1])) : 0; } override protected function onInputChange(param1:NumericEditorEvent) : void { if(param1.isChangedByUser() && param1.isValid()) { this.inputValuesIndex = input.intValue; this.setIndex(this.inputValuesIndex); } } } }
package alternativa.engine3d.loaders.collada { import alternativa.engine3d.animation.AnimationClip; import alternativa.engine3d.core.Object3D; public class DaeObject { public var object:Object3D; public var animation:AnimationClip; public var jointNode:DaeNode; public var isSplitter:Boolean = false; public var isStaticGeometry:Boolean = false; public var lodDistance:Number = 0; public function DaeObject(param1:Object3D, param2:AnimationClip = null) { super(); this.object = param1; this.animation = param2; } } }