code
stringlengths
57
237k
package alternativa.tanks.model.quest.challenge.rewarding { import controls.base.LabelBase; import forms.ColorConstants; import projects.tanks.clients.flash.commons.services.notification.Notification; public class ChallengesRewardingNotification extends Notification { private static const X_MARGIN:int = 9; private static const Y_MARGIN:int = 7; private var _messageLabel:LabelBase; public function ChallengesRewardingNotification(param1:String) { super(null,param1,true); } override protected function init() : void { super.init(); this._messageLabel = new LabelBase(); this._messageLabel.color = ColorConstants.GREEN_LABEL; this._messageLabel.mouseEnabled = false; addChild(this._messageLabel); this._messageLabel.htmlText = message; } override protected function resize() : void { this._messageLabel.x = GAP + X_MARGIN; this._messageLabel.y = GAP + Y_MARGIN; _innerHeight = this._messageLabel.y + this._messageLabel.height - 3; _height = _innerHeight + 2 * Y_MARGIN + GAP - 2; _width = GAP * 2 + X_MARGIN * 2 + this._messageLabel.width; super.resize(); } } }
package projects.tanks.client.clans.user { public class ClanUserCC { private var _clan:Boolean; private var _giveBonusesClan:Boolean; private var _loadingInServiceSpace:Boolean; private var _restrictionTimeJoinClanInSec:int; private var _showBuyLicenseButton:Boolean; private var _showOtherClan:Boolean; public function ClanUserCC(param1:Boolean = false, param2:Boolean = false, param3:Boolean = false, param4:int = 0, param5:Boolean = false, param6:Boolean = false) { super(); this._clan = param1; this._giveBonusesClan = param2; this._loadingInServiceSpace = param3; this._restrictionTimeJoinClanInSec = param4; this._showBuyLicenseButton = param5; this._showOtherClan = param6; } public function get clan() : Boolean { return this._clan; } public function set clan(param1:Boolean) : void { this._clan = param1; } public function get giveBonusesClan() : Boolean { return this._giveBonusesClan; } public function set giveBonusesClan(param1:Boolean) : void { this._giveBonusesClan = param1; } public function get loadingInServiceSpace() : Boolean { return this._loadingInServiceSpace; } public function set loadingInServiceSpace(param1:Boolean) : void { this._loadingInServiceSpace = param1; } public function get restrictionTimeJoinClanInSec() : int { return this._restrictionTimeJoinClanInSec; } public function set restrictionTimeJoinClanInSec(param1:int) : void { this._restrictionTimeJoinClanInSec = param1; } public function get showBuyLicenseButton() : Boolean { return this._showBuyLicenseButton; } public function set showBuyLicenseButton(param1:Boolean) : void { this._showBuyLicenseButton = param1; } public function get showOtherClan() : Boolean { return this._showOtherClan; } public function set showOtherClan(param1:Boolean) : void { this._showOtherClan = param1; } public function toString() : String { var local1:String = "ClanUserCC ["; local1 += "clan = " + this.clan + " "; local1 += "giveBonusesClan = " + this.giveBonusesClan + " "; local1 += "loadingInServiceSpace = " + this.loadingInServiceSpace + " "; local1 += "restrictionTimeJoinClanInSec = " + this.restrictionTimeJoinClanInSec + " "; local1 += "showBuyLicenseButton = " + this.showBuyLicenseButton + " "; local1 += "showOtherClan = " + this.showOtherClan + " "; return local1 + "]"; } } }
package projects.tanks.client.battlefield.models.battle.cp { import alternativa.types.Long; import projects.tanks.client.battleservice.model.battle.team.BattleTeam; public interface IControlPointsModelBase { function pointCaptureStarted(param1:BattleTeam) : void; function pointCaptureStopped(param1:BattleTeam) : void; function setPointProgress(param1:int, param2:Number, param3:Number) : void; function setPointState(param1:int, param2:ControlPointState) : void; function stopBattle() : void; function tankEnteredPointZone(param1:int, param2:Long) : void; function tankLeftPointZone(param1:int, param2:Long) : void; } }
package alternativa.tanks.gui.icons { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.icons.SocialNetworkIcon_googleBitmap.png")] public class SocialNetworkIcon_googleBitmap extends BitmapAsset { public function SocialNetworkIcon_googleBitmap() { super(); } } }
package alternativa.protocol { import flash.utils.ByteArray; import flash.utils.IDataInput; import flash.utils.IDataOutput; public interface IProtocol { function registerCodec(param1:ICodecInfo, param2:ICodec) : void; function registerCodecForType(param1:Class, param2:ICodec) : void; function getCodec(param1:ICodecInfo) : ICodec; function makeCodecInfo(param1:Class) : ICodecInfo; function wrapPacket(param1:IDataOutput, param2:ProtocolBuffer, param3:CompressionType) : void; function unwrapPacket(param1:IDataInput, param2:ProtocolBuffer, param3:CompressionType) : Boolean; function decode(param1:Class, param2:ByteArray) : *; } }
package alternativa.tanks.gui.shop.events { import flash.events.Event; public class ShopWindowBackButtonEvent extends Event { public static const CLICK:String = "ShopWindowBackButtonClickEvent"; public function ShopWindowBackButtonEvent(param1:String) { super(param1,true); } } }
package _codec.projects.tanks.client.battlefield.models.tankparts.weapon.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 alternativa.types.Float; import projects.tanks.client.battlefield.models.tankparts.weapon.railgun.RailgunCC; public class CodecRailgunCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_chargingTimeMsec:ICodec; private var codec_weakeningCoeff:ICodec; public function CodecRailgunCC() { super(); } public function init(param1:IProtocol) : void { this.codec_chargingTimeMsec = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_weakeningCoeff = param1.getCodec(new TypeCodecInfo(Float,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:RailgunCC = new RailgunCC(); local2.chargingTimeMsec = this.codec_chargingTimeMsec.decode(param1) as int; local2.weakeningCoeff = this.codec_weakeningCoeff.decode(param1) as Number; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:RailgunCC = RailgunCC(param2); this.codec_chargingTimeMsec.encode(param1,local3.chargingTimeMsec); this.codec_weakeningCoeff.encode(param1,local3.weakeningCoeff); } } }
package alternativa.utils { import flash.utils.ByteArray; public class XMLUtils { private static var buf:ByteArray = new ByteArray(); public function XMLUtils() { super(); } public static function copyXMLString(s:String) : String { buf.position = 0; buf.writeUTF(s); buf.position = 0; return buf.readUTF(); } public static function getAttributeAsString(element:XML, attrName:String, defValue:String = null) : String { var attribute:XML = null; var attributes:XMLList = element.attribute(attrName); if(attributes.length() > 0) { attribute = attributes[0]; return attribute.toString(); } return defValue; } public static function getAttributeAsNumber(element:XML, attrName:String, defValue:Number = NaN) : Number { var attributes:XMLList = element.attribute(attrName); if(attributes.length() > 0) { return Number(attributes[0]); } return defValue; } } }
package alternativa { import alternativa.osgi.service.launcherparams.ILauncherParams; public interface ILauncherListener { function onConfigLoadingStart() : void; function onConfigLoadingComplete() : void; function onConfigLoadingError(param1:String) : void; function onConfigLoadingProgress(param1:uint, param2:uint) : void; function onLibrariesLoadingStart() : void; function onLibrariesLoadingComplete(param1:ILauncherParams, param2:Function) : void; function onLibrariesInitialized() : void; function onLibraryLoadingError(param1:String) : void; function onServerUnavailable() : void; function onServerOverloaded() : void; } }
package alternativa.tanks.models.weapon.common { import alternativa.math.Vector3; import alternativa.physics.Body; import alternativa.physics.collision.types.RayHit; import alternativa.tanks.models.weapon.AllGlobalGunParams; import alternativa.tanks.models.weapons.targeting.TargetingResult; public class HitInfo { public var distance:Number; public var body:Body; public var position:Vector3 = new Vector3(); public var direction:Vector3 = new Vector3(); public var normal:Vector3 = new Vector3(); public function HitInfo() { super(); } public function setResult(param1:AllGlobalGunParams, param2:TargetingResult) : void { if(param2.hasAnyHit()) { this.setHit(param1.barrelOrigin,param2.getDirection(),param2.getSingleHit()); } else { this.setMiss(param2.getDirection()); } } private function setHit(param1:Vector3, param2:Vector3, param3:RayHit) : void { this.distance = param3.t; this.body = param3.shape.body; this.normal.copy(param3.normal); this.direction.copy(param2); this.position.copy(param1).addScaled(param3.t,param2); } private function setMiss(param1:Vector3) : void { this.direction.copy(param1); this.body = null; } } }
package alternativa.tanks { import alternativa.engine3d.objects.Mesh; import flash.display.BitmapData; import flash.geom.Vector3D; public class Tank3DPart { public var mesh:Mesh; public var lightmap:BitmapData; public var details:BitmapData; public var turretMountPoint:Vector3D; public var animatedPaint:Boolean; public function Tank3DPart() { super(); } } }
package alternativa.tanks.model.referrals { import alternativa.tanks.service.referrals.ReferralsService; import alternativa.tanks.service.referrals.ReferralsServiceEvent; import platform.client.fp10.core.model.ObjectLoadPostListener; import platform.client.fp10.core.model.ObjectUnloadListener; import projects.tanks.client.panel.model.referrals.IReferralsModelBase; import projects.tanks.client.panel.model.referrals.ReferralIncomeData; import projects.tanks.client.panel.model.referrals.ReferralsModelBase; [ModelInfo] public class ReferralsModel extends ReferralsModelBase implements IReferralsModelBase, ObjectLoadPostListener, ObjectUnloadListener { [Inject] public static var referralService:ReferralsService; public function ReferralsModel() { super(); } public function objectLoadedPost() : void { referralService.setInviteLink(getInitParam().inviteLink); referralService.addEventListener(ReferralsServiceEvent.UPDATE_DATA_REQUEST,getFunctionWrapper(this.onUpdateDataRequest)); } private function onUpdateDataRequest(param1:ReferralsServiceEvent) : void { server.updateReferralsData(); } public function updateData(param1:Vector.<ReferralIncomeData>) : void { referralService.updateReferralsData(param1); } public function objectUnloaded() : void { referralService.removeEventListener(ReferralsServiceEvent.UPDATE_DATA_REQUEST,getFunctionWrapper(this.onUpdateDataRequest)); } } }
package alternativa.tanks.gui.shop.shopitems.item.kits { import alternativa.tanks.gui.shop.shopitems.item.AbstractGarageItemShopItemButton; import alternativa.tanks.model.payment.shop.kit.KitPackage; import platform.client.fp10.core.type.IGameObject; public class KitPackageButton extends AbstractGarageItemShopItemButton { public function KitPackageButton(param1:IGameObject) { super(param1); } override protected function getNameLabelValue(param1:IGameObject) : String { return KitPackage(param1.adapt(KitPackage)).getName(); } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.ItemInfoPanelBitmaps_bitmapSpeed.png")] public class ItemInfoPanelBitmaps_bitmapSpeed extends BitmapAsset { public function ItemInfoPanelBitmaps_bitmapSpeed() { super(); } } }
package alternativa.tanks.gui.communication.tabs.clanchat { import flash.events.Event; public class ClanChatViewEvent extends Event { public static const CLAN_CHAT_ADDED:String = "ClanChatViewEvent.CLAN_CHAT_ADDED"; public static const UPDATE_CLAN_CHAT_VIEW:String = "ClanChatViewEvent.UPDATE_CLAN_CHAT_VIEW"; public function ClanChatViewEvent(param1:String) { super(param1,true); } } }
package alternativa.tanks.models.controlpoints.sfx { import alternativa.tanks.battle.BattleService; import alternativa.tanks.sfx.GraphicEffect; import flash.utils.Dictionary; import platform.client.fp10.core.type.IGameObject; public class BeamEffects { [Inject] public static var battleService:BattleService; private var effects:Dictionary = new Dictionary(); public function BeamEffects() { super(); } public function addEffect(param1:IGameObject, param2:GraphicEffect) : void { this.effects[param1] = param2; battleService.getBattleScene3D().addGraphicEffect(param2); } public function removeEffect(param1:IGameObject) : void { var local2:GraphicEffect = this.effects[param1]; if(local2 != null) { local2.kill(); delete this.effects[param1]; } } } }
package projects.tanks.client.panel.model.mobilequest.profile { 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; import platform.client.fp10.core.registry.ModelRegistry; public class MobileQuestProfileModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:MobileQuestProfileModelServer; private var client:IMobileQuestProfileModelBase = IMobileQuestProfileModelBase(this); private var modelId:Long = Long.getLong(1240219703,-1345063692); private var _changeProgressId:Long = Long.getLong(45741248,-1496530658); private var _changeProgress_currentStepCodec:ICodec; public function MobileQuestProfileModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new MobileQuestProfileModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(MobileQuestProfileCC,false))); this._changeProgress_currentStepCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); } protected function getInitParam() : MobileQuestProfileCC { return MobileQuestProfileCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._changeProgressId: this.client.changeProgress(int(this._changeProgress_currentStepCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package projects.tanks.client.garage.models.item.modification { 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 ModificationModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function ModificationModelServer(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.battlefield { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.ViewportBorder_bmpClassBorderTop.png")] public class ViewportBorder_bmpClassBorderTop extends BitmapAsset { public function ViewportBorder_bmpClassBorderTop() { super(); } } }
package platform.client.fp10.core.registry { import alternativa.types.Long; import platform.client.fp10.core.type.ISpace; public interface SpaceRegistry { function addSpace(param1:ISpace) : void; function removeSpace(param1:ISpace) : void; function get spaces() : Vector.<ISpace>; function getSpace(param1:Long) : ISpace; function get currentSpace() : ISpace; function set currentSpace(param1:ISpace) : void; } }
package alternativa.tanks.models.weapon.twins { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ITwinsSFXModelAdapt implements ITwinsSFXModel { private var object:IGameObject; private var impl:ITwinsSFXModel; public function ITwinsSFXModelAdapt(param1:IGameObject, param2:ITwinsSFXModel) { super(); this.object = param1; this.impl = param2; } public function getPlasmaWeaponEffects() : TwinsEffects { var result:TwinsEffects = null; try { Model.object = this.object; result = this.impl.getPlasmaWeaponEffects(); } finally { Model.popObject(); } return result; } public function getSFXData() : TwinsSFXData { var result:TwinsSFXData = null; try { Model.object = this.object; result = this.impl.getSFXData(); } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.sfx { import alternativa.engine3d.core.MipMapping; import alternativa.engine3d.core.Object3D; import alternativa.engine3d.materials.TextureMaterial; import alternativa.math.Vector3; import alternativa.osgi.OSGi; import alternativa.physics.collision.CollisionDetector; import alternativa.physics.collision.types.RayHit; import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.objects.tank.Tank; import alternativa.tanks.models.battle.battlefield.BattleUserInfoService; import alternativa.tanks.physics.CollisionGroup; import alternativa.tanks.sfx.levelup.LightBeamEffect; import alternativa.tanks.sfx.levelup.LightWaveEffect; import alternativa.tanks.sfx.levelup.SparkEffect; import alternativa.types.Long; import alternativa.utils.TextureMaterialRegistry; import flash.display.BitmapData; import flash.display.BlendMode; import forms.ranks.BigRankIcon; import projects.tanks.clients.flash.commons.models.gpu.GPUCapabilities; import projects.tanks.clients.fp10.libraries.tanksservices.service.user.IUserInfoService; public class LevelUpEffectFactory { [Inject] public static var battleService:BattleService; [Inject] public static var userInfoService:IUserInfoService; [Inject] public static var materialRegistry:TextureMaterialRegistry; private static const BeamTexture:Class = LevelUpEffectFactory_BeamTexture; private static const beamBitmapData:BitmapData = new BeamTexture().bitmapData; private static const SparkTexture:Class = LevelUpEffectFactory_SparkTexture; private static const sparkBitmapData:BitmapData = new SparkTexture().bitmapData; private static const WaveTexture:Class = LevelUpEffectFactory_WaveTexture; private static const waveBitmapData:BitmapData = new WaveTexture().bitmapData; private static const origin:Vector3 = new Vector3(); private static const upDirection:Vector3 = new Vector3(0,0,1); private static const rayHit:RayHit = new RayHit(); public function LevelUpEffectFactory() { super(); } private static function getAvailableHeight(param1:Number, param2:Number, param3:Number, param4:Number) : Number { origin.reset(param1,param2,param3); var local5:CollisionDetector = battleService.getBattleRunner().getCollisionDetector(); if(local5.raycastStatic(origin,upDirection,CollisionGroup.STATIC,param4,null,rayHit)) { return rayHit.t; } return param4; } public function createEffect(param1:Tank, param2:int) : void { var local3:Object3D = param1.getSkin().getTurret3D(); var local4:Number = this.getEffectHeight(local3.x,local3.y,local3.z); this.createLightBeams(local4,local3); this.createLabel(param1.getUser().id,local4,param2,local3); this.createSparks(local4,local3); this.createWave(local3); } private function getEffectHeight(param1:Number, param2:Number, param3:Number) : Number { var local4:Number = 500; var local5:Number = 2000; var local6:Number = getAvailableHeight(param1,param2,param3,local5); return Math.max(local4,local6); } private function createLightBeams(param1:Number, param2:Object3D) : void { var local9:Number = NaN; var local10:Number = NaN; var local11:LightBeamEffect = null; var local3:int = 6; var local4:Number = 90; var local5:Number = 0; var local6:Number = Math.PI * 2 / local3; var local7:TextureMaterial = materialRegistry.getMaterial(beamBitmapData); var local8:int = 0; while(local8 < local3) { local9 = Math.sin(local5) * local4; local10 = Math.cos(local5) * local4; local11 = LightBeamEffect(battleService.getObjectPool().getObject(LightBeamEffect)); local11.init(500,200,30,param1,0.8,0.5,local9,local10,-50,param2,local7); battleService.getBattleScene3D().addGraphicEffect(local11); local5 += local6; local8++; } } private function createLabel(param1:Long, param2:Number, param3:int, param4:Object3D) : void { var local5:BigRankIcon = new BigRankIcon(); var local6:BattleUserInfoService = BattleUserInfoService(OSGi.getInstance().getService(BattleUserInfoService)); var local7:Boolean = Boolean(local6.hasUserPremium(param1)); local5.init(local7,param3); var local8:BitmapData = new BitmapData(local5.width,local5.height,true,0); local8.draw(local5); var local9:TextureMaterial = new TextureMaterial(local8,false,true,MipMapping.PER_PIXEL,1); var local10:SparkEffect = SparkEffect(battleService.getObjectPool().getObject(SparkEffect)); local10.init(500,270,270,0,param2 * 0.8,param2 * 0.15,0.35,0,0,50,param4,local9,BlendMode.NORMAL); battleService.getBattleScene3D().addGraphicEffect(local10); } private function createSparks(param1:Number, param2:Object3D) : void { var local3:int = 0; var local4:Number = NaN; var local5:TextureMaterial = null; var local6:int = 0; var local7:Number = NaN; var local8:Number = NaN; var local9:Number = NaN; var local10:Number = NaN; var local11:SparkEffect = null; if(GPUCapabilities.gpuEnabled) { local3 = 15; local4 = 100; local5 = materialRegistry.getMaterial(sparkBitmapData); local6 = 0; while(local6 < local3) { local7 = Math.PI * 2 * Math.random(); local8 = Math.sin(local7) * local4; local9 = Math.cos(local7) * local4; local10 = -110 * local6 - 50; local11 = SparkEffect(battleService.getObjectPool().getObject(SparkEffect)); local11.init(400,150,150,local7,param1 * 0.7,param1 * 0.15,0.7,local8,local9,local10,param2,local5,BlendMode.ADD); battleService.getBattleScene3D().addGraphicEffect(local11); local6++; } } } private function createWave(param1:Object3D) : void { var local2:TextureMaterial = materialRegistry.getMaterial(waveBitmapData); var local3:LightWaveEffect = LightWaveEffect(battleService.getObjectPool().getObject(LightWaveEffect)); local3.init(900,220,3,true,param1,local2); battleService.getBattleScene3D().addGraphicEffect(local3); } } }
package alternativa.engine3d.loaders.collada { import alternativa.engine3d.core.Light3D; import alternativa.engine3d.lights.AmbientLight; import alternativa.engine3d.lights.DirectionalLight; import alternativa.engine3d.lights.OmniLight; import alternativa.engine3d.lights.SpotLight; use namespace collada; public class DaeLight extends DaeElement { public function DaeLight(param1:XML, param2:DaeDocument) { super(param1,param2); } private function float4ToUint(param1:Array) : uint { var local2:uint = param1[0] * 255; var local3:uint = param1[1] * 255; var local4:uint = param1[2] * 255; return local2 << 16 | local3 << 8 | local4 | 4278190080; } public function get revertDirection() : Boolean { var local1:XML = data.technique_common.children()[0]; return local1 == null ? false : local1.localName() == "directional" || local1.localName() == "spot"; } public function parseLight() : Light3D { var info:XML = null; var extra:XML = null; var light:Light3D = null; var color:uint = 0; var constantAttenuationXML:XML = null; var linearAttenuationXML:XML = null; var linearAttenuation:Number = NaN; var attenuationStart:Number = NaN; var attenuationEnd:Number = NaN; var hotspot:Number = NaN; var fallof:Number = NaN; var DEG2RAD:Number = NaN; info = data.technique_common.children()[0]; extra = data.extra.technique.(@profile[0] == "OpenCOLLADA3dsMax").light[0]; light = null; if(info != null) { color = this.float4ToUint(parseNumbersArray(info.color[0])); linearAttenuation = 0; attenuationStart = 0; attenuationEnd = 1; switch(info.localName()) { case "ambient": light = new AmbientLight(color); light.calculateBounds(); break; case "directional": light = new DirectionalLight(color); if(extra != null) { light.intensity = parseNumber(extra.multiplier[0]); } light.calculateBounds(); break; case "point": if(extra != null) { attenuationStart = parseNumber(extra.attenuation_far_start[0]); attenuationEnd = parseNumber(extra.attenuation_far_end[0]); } else { constantAttenuationXML = info.constant_attenuation[0]; linearAttenuationXML = info.linear_attenuation[0]; if(constantAttenuationXML != null) { attenuationStart = -parseNumber(constantAttenuationXML); } if(linearAttenuationXML != null) { linearAttenuation = parseNumber(linearAttenuationXML); } if(linearAttenuation > 0) { attenuationEnd = 1 / linearAttenuation + attenuationStart; } else { attenuationEnd = attenuationStart + 1; } } light = new OmniLight(color,attenuationStart,attenuationEnd); if(extra != null) { light.intensity = parseNumber(extra.multiplier[0]); } light.calculateBounds(); break; case "spot": hotspot = 0; fallof = Math.PI / 4; DEG2RAD = Math.PI / 180; if(extra != null) { attenuationStart = parseNumber(extra.attenuation_far_start[0]); attenuationEnd = parseNumber(extra.attenuation_far_end[0]); hotspot = DEG2RAD * parseNumber(extra.hotspot_beam[0]); fallof = DEG2RAD * parseNumber(extra.falloff[0]); } else { constantAttenuationXML = info.constant_attenuation[0]; linearAttenuationXML = info.linear_attenuation[0]; if(constantAttenuationXML != null) { attenuationStart = -parseNumber(constantAttenuationXML); } if(linearAttenuationXML != null) { linearAttenuation = parseNumber(linearAttenuationXML); } if(linearAttenuation > 0) { attenuationEnd = 1 / linearAttenuation + attenuationStart; } else { attenuationEnd = attenuationStart + 1; } } light = new SpotLight(color,attenuationStart,attenuationEnd,hotspot,fallof); if(extra != null) { light.intensity = parseNumber(extra.multiplier[0]); } light.calculateBounds(); } } return light; } } }
package controls.rangicons { import mx.core.BitmapAsset; [ExcludeClass] public class RangsIcon_p1 extends BitmapAsset { public function RangsIcon_p1() { super(); } } }
package alternativa.tanks.model.emailreminder { import alternativa.osgi.OSGi; import alternativa.tanks.gui.EmailBlockRequestEvent; import alternativa.tanks.gui.EmailReminderWindow; import alternativa.tanks.gui.EnterEmailReminderWindowEvent; import alternativa.tanks.gui.ThanksForConfirmationEmailWindow; import alternativa.tanks.service.panel.IPanelView; import alternativa.tanks.service.settings.ISettingsService; import platform.client.fp10.core.model.ObjectLoadListener; import platform.client.fp10.core.model.ObjectUnloadListener; import projects.tanks.client.panel.model.emailreminder.EmailReminderModelBase; import projects.tanks.client.panel.model.emailreminder.IEmailReminderModelBase; [ModelInfo] public class EmailReminderModel extends EmailReminderModelBase implements IEmailReminderModelBase, ObjectLoadListener, ObjectUnloadListener, EmailReminderService { [Inject] public static var panelView:IPanelView; [Inject] public static var settingsService:ISettingsService; private var window:EmailReminderWindow; public function EmailReminderModel() { super(); } public function objectLoaded() : void { OSGi.getInstance().registerService(EmailReminderService,object.adapt(EmailReminderService)); } public function openEnterEmailReminder() : void { this.createEmailReminderWindow(); this.window.showEnterEmailReminder(); } public function openConfirmEmailReminder(param1:String) : void { this.createEmailReminderWindow(); this.window.showConfirmEmailReminder(param1); } public function openThanksForConfirmationEmailWindow() : void { new ThanksForConfirmationEmailWindow(); } private function createEmailReminderWindow() : void { this.window = new EmailReminderWindow(); this.window.addEventListener(EmailBlockRequestEvent.SEND_VALIDATE_EMAIL_REQUEST_EVENT,getFunctionWrapper(this.onValidateEmail)); this.window.addEventListener(EnterEmailReminderWindowEvent.EMAIL_CONFIRMATION,getFunctionWrapper(this.onEmailConfirmation)); this.window.addEventListener(EnterEmailReminderWindowEvent.EMAIL_SAVING_AND_CONFIRMATION,getFunctionWrapper(this.onEmailSavingAndConfirmation)); this.window.addEventListener(EnterEmailReminderWindowEvent.WINDOW_CLOSING,getFunctionWrapper(this.onWindowClosing)); } private function onWindowClosing(param1:EnterEmailReminderWindowEvent) : void { this.window.removeEventListener(EmailBlockRequestEvent.SEND_VALIDATE_EMAIL_REQUEST_EVENT,getFunctionWrapper(this.onValidateEmail)); this.window.removeEventListener(EnterEmailReminderWindowEvent.EMAIL_CONFIRMATION,getFunctionWrapper(this.onEmailConfirmation)); this.window.removeEventListener(EnterEmailReminderWindowEvent.EMAIL_SAVING_AND_CONFIRMATION,getFunctionWrapper(this.onEmailSavingAndConfirmation)); this.window.removeEventListener(EnterEmailReminderWindowEvent.WINDOW_CLOSING,getFunctionWrapper(this.onWindowClosing)); this.window = null; } private function onEmailSavingAndConfirmation(param1:EnterEmailReminderWindowEvent) : void { settingsService.setEmail(param1.email,false); server.setAndConfirmEmail(param1.email); } private function onEmailConfirmation(param1:EnterEmailReminderWindowEvent) : void { server.confirmEmail(); } private function onValidateEmail(param1:EmailBlockRequestEvent) : void { server.validateEmail(param1.email); } public function notifyEmailIsBusy(param1:String) : void { this.window.showEmailIsBusy(param1); } public function notifyEmailIsForbidden(param1:String) : void { this.window.showEmailIsForbidden(param1); } public function notifyEmailIsFree(param1:String) : void { this.window.showEmailIsFree(param1); } public function activateMessage(param1:String) : void { panelView.showAlert(param1); } public function showEmailReminder() : void { if(!settingsService.isEmailSet()) { this.openEnterEmailReminder(); return; } if(!settingsService.isEmailConfirmed()) { this.openConfirmEmailReminder(settingsService.getEmail()); } } public function showNeedEmailAlert() : void { this.createEmailReminderWindow(); this.window.showNeedEmailAlert(); } public function objectUnloaded() : void { OSGi.getInstance().unregisterService(EmailReminderService); } } }
package forms.battlelist { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.locale.constants.TextConst; import assets.icons.play_icons_ALL; import assets.scroller.color.ScrollThumbSkinGreen; import assets.scroller.color.ScrollTrackGreen; import controls.Label; import controls.TankWindow; import controls.TankWindowHeader; import controls.TankWindowInner; import controls.rangicons.RangIconSmall; import fl.controls.List; import fl.data.DataProvider; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.TimerEvent; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; import flash.utils.Timer; import forms.events.BattleListEvent; public class ViewDM extends Sprite { private var _gameName:String; private var _clanName:String; private var _sizeTeam:int; private var _minRang:int; private var _maxRang:int; private var _img:BitmapData; private var _inviteOnly:Boolean; private var _lifeTime:Number; private var _currentTime:Number; private var _killsLimit:int; private var _available:Boolean; private var mainBackground:TankWindow; private var listInner:TankWindowInner; private var format:TextFormat; private var fightButton:BattleBigButton; private var fightButtonIcon:BitmapData; public var info:BattleInfo; private var list:List; private var dp:DataProvider; private var firstStart:Boolean = true; private var delayTimer:Timer; private var noNameText:String; private var _haveSubscribe:Boolean; private var noSubscribeAlert:NoSubScribeAlert; private var _payBattle:Boolean = false; private var _fullCash:Boolean = false; private var _userAlreadyPaid:Boolean = false; public function ViewDM(haveSubscribe:Boolean) { this.mainBackground = new TankWindow(); this.listInner = new TankWindowInner(100,100,TankWindowInner.GREEN); this.format = new TextFormat("MyriadPro",13); this.fightButton = new BattleBigButton(); this.fightButtonIcon = new play_icons_ALL(0,0); this.info = new BattleInfo(); this.dp = new DataProvider(); this.noSubscribeAlert = new NoSubScribeAlert(); super(); addEventListener(Event.ADDED_TO_STAGE,this.ConfigUI); addEventListener(Event.ADDED_TO_STAGE,this.addResizeListener); addEventListener(Event.REMOVED_FROM_STAGE,this.removeResizeListener); this._haveSubscribe = haveSubscribe; } public function get haveSubscribe() : Boolean { return this._haveSubscribe; } public function set haveSubscribe(value:Boolean) : void { this._haveSubscribe = value; } private function addResizeListener(e:Event) : void { stage.addEventListener(Event.RESIZE,this.onResize); this.onResize(null); } private function removeResizeListener(e:Event) : void { stage.removeEventListener(Event.RESIZE,this.onResize); } public function Init(gameName:String, clanName:String, sizeTeam:int, minRang:int, maxRang:int, img:BitmapData = null, lifeTime:Number = 0, currentTime:int = 0, killsLimit:int = 0, inviteOnly:Boolean = false, url:String = "", available:Boolean = true, payBattle:Boolean = false, inventoryOn:Boolean = false, userAlreadyPaid:Boolean = false, fullCash:Boolean = false) : void { this.dp = new DataProvider(); this._payBattle = payBattle; this._fullCash = fullCash; this.list.dataProvider = this.dp; this._gameName = gameName; this._clanName = clanName; this._sizeTeam = sizeTeam; this._minRang = minRang; this._maxRang = maxRang; this._img = img; this._inviteOnly = inviteOnly; this._lifeTime = lifeTime; this._currentTime = currentTime; this._userAlreadyPaid = userAlreadyPaid; this._killsLimit = killsLimit; this.info.setUp(this._gameName,this._clanName,this._minRang,this._maxRang,this._killsLimit,this._lifeTime,this._currentTime,this._img,this._inviteOnly,false,false,url,false,payBattle,inventoryOn); this.info.setPreview(this._img); this._available = available; this.fightButton.width = 130; Main.writeVarsToConsoleChannel("BATTLE SELECT"," _payBattle: %1 _userAlreadyPaid: %2 _haveSubscribe: %3",this._payBattle,this._userAlreadyPaid,this._haveSubscribe); this.fightButton.enable = available && (this._fullCash || !this._payBattle || this._userAlreadyPaid || this._haveSubscribe); this.fightButton.icon = this.fightButtonIcon; this.noSubscribeAlert.visible = !this._haveSubscribe && payBattle; this.fightButton.cost = this._haveSubscribe || !payBattle || this._userAlreadyPaid ? int(0) : int(5); this.fillTeam(); this.onResize(null); } private function ConfigUI(e:Event) : void { var localeService:ILocaleService = Main.osgi.getService(ILocaleService) as ILocaleService; removeEventListener(Event.ADDED_TO_STAGE,this.ConfigUI); this.list = new List(); this.confScroll(); this.fightButton.x = 320; addChild(this.mainBackground); addChild(this.listInner); addChild(this.list); addChild(this.fightButton); addChild(this.noSubscribeAlert); this.listInner.showBlink = true; this.mainBackground.headerLang = localeService.getText(TextConst.GUI_LANG); this.mainBackground.header = TankWindowHeader.BATTLE_INFO; addChild(this.info); this.list.rowHeight = 20; this.list.setStyle("cellRenderer",TeamListRenderer); this.fightButton.label = localeService.getText(TextConst.BATTLEINFO_PANEL_BUTTON_PLAY); this.fightButton.addEventListener(MouseEvent.CLICK,this.goFight); this.noSubscribeAlert.visible = false; } private function goFight(e:MouseEvent) : void { dispatchEvent(new BattleListEvent(BattleListEvent.START_DM_GAME)); } public function dropKills() : void { var item:Object = null; for(var i:int = 0; i < this.dp.length; i++) { item = this.dp.getItemAt(i); item.kills = 0; this.dp.replaceItemAt(item,i); } this.dp.sortOn(["kills","rang"],[Array.DESCENDING | Array.NUMERIC,Array.DESCENDING | Array.NUMERIC]); this.dp.invalidate(); } public function updatePlayer(id:Object = null, name:String = "", rang:int = 0, kills:int = 0) : void { var index:int = 0; var item:Object = new Object(); var data:Object = new Object(); item.id = id; item.rang = rang; item.playerName = name; item.style = "green"; data.rang = rang; item.kills = kills; index = id == null ? int(-1) : int(this.indexById(id)); if(index < 0) { this.dp.addItem(item); } else { this.dp.replaceItemAt(item,index); } this.dp.sortOn(["kills","rang"],[Array.DESCENDING | Array.NUMERIC,Array.DESCENDING | Array.NUMERIC]); if(this.dp.length > this._sizeTeam) { this.dp.removeItemAt(this.dp.length - 1); } if(this.dp.length > 1) { item = this.dp.getItemAt(this.dp.length - 1); } this.fightButton.enable = this._available && (this._fullCash || !this._payBattle || this._userAlreadyPaid || this._haveSubscribe); if(item.id != null) { this.fightButton.enable = false; } if(this.delayTimer == null) { this.delayTimer = new Timer(500,1); this.delayTimer.addEventListener(TimerEvent.TIMER,this.resizeList); } this.delayTimer.reset(); } public function removePlayer(id:Object) : void { var index:int = this.indexById(id); if(index >= 0) { this.dp.removeItemAt(index); this.updatePlayer(); } if(this.delayTimer == null) { this.delayTimer = new Timer(500,1); this.delayTimer.addEventListener(TimerEvent.TIMER,this.resizeList); } this.delayTimer.stop(); this.delayTimer.start(); } private function indexById(id:Object) : int { var obj:Object = null; for(var i:int = 0; i < this.dp.length; i++) { obj = this.dp.getItemAt(i); if(obj.id == id) { return i; } } return -1; } private function onResize(e:Event) : void { var minWidth:int = int(Math.max(1000,stage.stageWidth)); this.mainBackground.width = minWidth / 3; this.mainBackground.height = Math.max(stage.stageHeight - 60,530); this.x = this.mainBackground.width * 2; this.y = 60; this.info.y = 11; this.info.x = 11; this.info.width = this.mainBackground.width - 22; this.info.height = int(this.mainBackground.height * 0.4); this.listInner.x = 11; this.listInner.y = this.info.height + 14; this.listInner.width = this.mainBackground.width - 22; this.listInner.height = this.mainBackground.height - this.info.height - (this._haveSubscribe || !this._payBattle ? 80 : 164); this.list.x = this.listInner.x + 4; this.list.y = this.listInner.y + 4; this.list.setSize(this.listInner.width - (this.list.maxVerticalScrollPosition > 0 ? 1 : 4),this.listInner.height - 8); this.fightButton.x = this.mainBackground.width - this.fightButton.width - 11; this.fightButton.y = this.mainBackground.height - 61; this.noSubscribeAlert.x = 15; this.noSubscribeAlert.y = this.mainBackground.height - 85 - 55; this.noSubscribeAlert.width = this.mainBackground.width - 30; if(this.delayTimer == null) { this.delayTimer = new Timer(200,1); this.delayTimer.addEventListener(TimerEvent.TIMER,this.resizeList); } this.delayTimer.stop(); this.delayTimer.start(); } private function resizeList(e:TimerEvent) : void { this.info.width = this.mainBackground.width - 22; this.info.height = int(this.mainBackground.height * 0.4); this.listInner.x = 11; this.listInner.y = this.info.height + 14; this.listInner.width = this.mainBackground.width - 22; this.listInner.height = this.mainBackground.height - this.info.height - (this._haveSubscribe || !this._payBattle ? 80 : 164); this.list.x = this.listInner.x + 4; this.list.y = this.listInner.y + 4; this.list.setSize(this.listInner.width - (this.list.maxVerticalScrollPosition > 0 ? 1 : 4),this.listInner.height - 8); this.dp.invalidate(); this.fightButton.x = this.mainBackground.width - this.fightButton.width - 11; this.fightButton.y = this.mainBackground.height - 61; this.noSubscribeAlert.x = 15; this.noSubscribeAlert.y = this.mainBackground.height - 85 - 55; this.noSubscribeAlert.width = this.mainBackground.width - 30; this.delayTimer.removeEventListener(TimerEvent.TIMER,this.resizeList); this.delayTimer = null; } public function fillTeam() : void { this.dp.removeAll(); for(var i:int = 0; i < this._sizeTeam; i++) { this.updatePlayer(); } } public function hide() : void { stage.removeEventListener(Event.RESIZE,this.onResize); this.fightButton.removeEventListener(MouseEvent.CLICK,this.goFight); } private function myIcon(data:Object) : Bitmap { var icon:Bitmap = null; var name:Label = null; var kills:Label = null; var rangIcon:RangIconSmall = null; var bmp:BitmapData = new BitmapData(360,20,true,0); var cont:Sprite = new Sprite(); this.format.color = 16777215; name = new Label(); name.text = data.playerName == "" ? "none" : data.playerName; name.height = 20; name.x = 26; name.y = 0; kills = new Label(); kills.text = data.kills == 0 ? "-" : String(data.kills); kills.autoSize = TextFieldAutoSize.CENTER; kills.height = 20; kills.width = 20; kills.x = 160; kills.y = 0; if(data.rang > 0) { rangIcon = new RangIconSmall(data.rang); rangIcon.x = 13; rangIcon.y = 5; cont.addChild(rangIcon); } cont.addChild(name); cont.addChild(kills); bmp.draw(cont,null,null,null,null,true); return new Bitmap(bmp); } private function confScroll() : void { this.list.setStyle("downArrowUpSkin",ScrollArrowDownGreen); this.list.setStyle("downArrowDownSkin",ScrollArrowDownGreen); this.list.setStyle("downArrowOverSkin",ScrollArrowDownGreen); this.list.setStyle("downArrowDisabledSkin",ScrollArrowDownGreen); this.list.setStyle("upArrowUpSkin",ScrollArrowUpGreen); this.list.setStyle("upArrowDownSkin",ScrollArrowUpGreen); this.list.setStyle("upArrowOverSkin",ScrollArrowUpGreen); this.list.setStyle("upArrowDisabledSkin",ScrollArrowUpGreen); this.list.setStyle("trackUpSkin",ScrollTrackGreen); this.list.setStyle("trackDownSkin",ScrollTrackGreen); this.list.setStyle("trackOverSkin",ScrollTrackGreen); this.list.setStyle("trackDisabledSkin",ScrollTrackGreen); this.list.setStyle("thumbUpSkin",ScrollThumbSkinGreen); this.list.setStyle("thumbDownSkin",ScrollThumbSkinGreen); this.list.setStyle("thumbOverSkin",ScrollThumbSkinGreen); this.list.setStyle("thumbDisabledSkin",ScrollThumbSkinGreen); } } }
package alternativa.tanks.gui.icons { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.icons.SocialNetworkIcon_fbBitmap.png")] public class SocialNetworkIcon_fbBitmap extends BitmapAsset { public function SocialNetworkIcon_fbBitmap() { super(); } } }
package com.alternativaplatform.projects.tanks.client.models.battlefield.mine { import scpacker.Base; public class BattleMinesModelBase extends Base { public function BattleMinesModelBase() { super(); } } }
package _codec.projects.tanks.client.garage.models.garagepreview { 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 alternativa.types.Float; import platform.client.fp10.core.resource.types.TextureResource; import projects.tanks.client.garage.models.garagepreview.GaragePreviewModelCC; import projects.tanks.clients.flash.resources.resource.Tanks3DSResource; public class CodecGaragePreviewModelCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_cameraAltitude:ICodec; private var codec_cameraDistance:ICodec; private var codec_cameraFov:ICodec; private var codec_cameraPitch:ICodec; private var codec_garageBox:ICodec; private var codec_hasBatteries:ICodec; private var codec_skyboxFrontSide:ICodec; public function CodecGaragePreviewModelCC() { super(); } public function init(param1:IProtocol) : void { this.codec_cameraAltitude = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_cameraDistance = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_cameraFov = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_cameraPitch = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_garageBox = param1.getCodec(new TypeCodecInfo(Tanks3DSResource,false)); this.codec_hasBatteries = param1.getCodec(new TypeCodecInfo(Boolean,false)); this.codec_skyboxFrontSide = param1.getCodec(new TypeCodecInfo(TextureResource,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:GaragePreviewModelCC = new GaragePreviewModelCC(); local2.cameraAltitude = this.codec_cameraAltitude.decode(param1) as Number; local2.cameraDistance = this.codec_cameraDistance.decode(param1) as Number; local2.cameraFov = this.codec_cameraFov.decode(param1) as Number; local2.cameraPitch = this.codec_cameraPitch.decode(param1) as Number; local2.garageBox = this.codec_garageBox.decode(param1) as Tanks3DSResource; local2.hasBatteries = this.codec_hasBatteries.decode(param1) as Boolean; local2.skyboxFrontSide = this.codec_skyboxFrontSide.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:GaragePreviewModelCC = GaragePreviewModelCC(param2); this.codec_cameraAltitude.encode(param1,local3.cameraAltitude); this.codec_cameraDistance.encode(param1,local3.cameraDistance); this.codec_cameraFov.encode(param1,local3.cameraFov); this.codec_cameraPitch.encode(param1,local3.cameraPitch); this.codec_garageBox.encode(param1,local3.garageBox); this.codec_hasBatteries.encode(param1,local3.hasBatteries); this.codec_skyboxFrontSide.encode(param1,local3.skyboxFrontSide); } } }
package alternativa.tanks.models.battlefield.gui.statistics.field { import flash.events.Event; import flash.events.TimerEvent; import flash.utils.Timer; import flash.utils.getTimer; public class TimeLimitField extends WinkingField { private var timer:Timer; private var targetTime:uint; private var onlySeconds:Boolean; public function TimeLimitField(winkLimit:int, iconType:int, winkManager:WinkManager, onlySeconds:Boolean) { super(winkLimit,iconType,winkManager); this.onlySeconds = onlySeconds; this.timer = new Timer(1000); this.timer.addEventListener(TimerEvent.TIMER,this.onTimer); } public function initTime(time:int) : void { this.targetTime = Math.round(getTimer() / 1000 + time); value = time; if(_value > 0) { this.timer.stop(); this.timer.start(); } else { stopWink(); } } override protected function updateLabel() : void { if(this.onlySeconds) { label.text = _value < 10 ? "0" + _value.toString() : _value.toString(); } else { label.text = this.getMinutes(_value) + " : " + this.getSeconds(_value); } } override protected function onRemovedFromStage(e:Event) : void { super.onRemovedFromStage(e); this.timer.stop(); } private function onTimer(e:TimerEvent) : void { var v:int = 0; if(_value > 0) { v = Math.round(this.targetTime - getTimer() / 1000); value = v < 0 ? int(int(0)) : int(int(v)); } else { this.timer.stop(); } } private function getMinutes(seconds:int) : String { var min:int = seconds / 60; return min > 9 ? min.toString() : "0" + min.toString(); } private function getSeconds(seconds:int) : String { var sec:int = seconds % 60; return sec > 9 ? sec.toString() : "0" + sec.toString(); } } }
package alternativa.tanks.models.sfx.shoot.shaft { import alternativa.engine3d.materials.Material; import alternativa.math.Vector3; import alternativa.object.ClientObject; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.models.battlefield.scene3dcontainer.Scene3DContainer; import alternativa.tanks.sfx.SFXUtils; import alternativa.tanks.utils.objectpool.ObjectPool; import alternativa.tanks.utils.objectpool.PooledObject; public class TrailEffect1 extends PooledObject implements ShaftTrailEffect { public static const WIDTH:Number = 80; private var position:Vector3; private var direction:Vector3; private var alphaSpeed:Number; private var timeToLive:int; private var beam:Trail1; private var container:Scene3DContainer; public function TrailEffect1(param1:ObjectPool) { this.position = new Vector3(); this.direction = new Vector3(); super(param1); this.beam = new Trail1(); } public function init(param1:Vector3, param2:Vector3, param3:Number, param4:Number, param5:Material, param6:int) : void { this.position.vCopy(param1); this.direction.vCopy(param2); this.timeToLive = param6; this.alphaSpeed = 1 / param6; this.beam.init(WIDTH,param3,param4,param5); } public function play(param1:int, param2:GameCamera) : Boolean { if(this.timeToLive < 0) { return false; } this.timeToLive -= param1; this.beam.alpha -= this.alphaSpeed * param1; SFXUtils.alignObjectPlaneToView(this.beam,this.position,this.direction,param2.pos); return true; } public function addToContainer(param1:Scene3DContainer) : void { this.container = param1; param1.addChild(this.beam); } public function destroy() : void { this.container.removeChild(this.beam); this.container = null; } public function kill() : void { this.timeToLive = -1; } public function get owner() : ClientObject { return null; } } }
package projects.tanks.clients.flash.commons.models.layout { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.commons.models.layout.LayoutState; public class ILobbyLayoutAdapt implements ILobbyLayout { private var object:IGameObject; private var impl:ILobbyLayout; public function ILobbyLayoutAdapt(param1:IGameObject, param2:ILobbyLayout) { super(); this.object = param1; this.impl = param2; } public function showGarage() : void { try { Model.object = this.object; this.impl.showGarage(); } finally { Model.popObject(); } } public function showBattleSelect() : void { try { Model.object = this.object; this.impl.showBattleSelect(); } finally { Model.popObject(); } } public function showMatchmaking() : void { try { Model.object = this.object; this.impl.showMatchmaking(); } finally { Model.popObject(); } } public function showBattleLobby() : void { try { Model.object = this.object; this.impl.showBattleLobby(); } finally { Model.popObject(); } } public function showClan() : void { try { Model.object = this.object; this.impl.showClan(); } finally { Model.popObject(); } } public function exitFromBattle() : void { try { Model.object = this.object; this.impl.exitFromBattle(); } finally { Model.popObject(); } } public function exitFromBattleToState(param1:LayoutState) : void { var state:LayoutState = param1; try { Model.object = this.object; this.impl.exitFromBattleToState(state); } finally { Model.popObject(); } } public function returnToBattle() : void { try { Model.object = this.object; this.impl.returnToBattle(); } finally { Model.popObject(); } } } }
package alternativa.tanks.battle.notificationpausefinish { import flash.events.Event; public class NotificationEndsPausedAlertEvent extends Event { public static const RETURN_TO_BATTLE:String = "NotificationEndsPausedAlertEvent.RETURN_TO_BATTLE"; public static const CLOSE_ALERT:String = "NotificationEndsPausedAlertEvent.CLOSE_ALERT"; public function NotificationEndsPausedAlertEvent(param1:String) { super(param1); } } }
package alternativa.tanks.battle.objects.tank { import alternativa.engine3d.core.Object3D; import alternativa.math.Vector3; import alternativa.physics.Body; import alternativa.tanks.battle.objects.tank.tankskin.TankSkin; import alternativa.tanks.models.weapon.AllGlobalGunParams; import alternativa.tanks.models.weapon.BasicGlobalGunParams; import projects.tanks.client.battleservice.model.battle.team.BattleTeam; public interface WeaponPlatform { function getAllGunParams(param1:AllGlobalGunParams, param2:int = 0) : void; function getBasicGunParams(param1:BasicGlobalGunParams, param2:int = 0) : void; function getBody() : Body; function getLocalMuzzlePosition(param1:int = 0) : Vector3; function getLaserLocalPosition() : Vector3; function getBarrelLength(param1:int = 0) : Number; function getTurret3D() : Object3D; function stopMovement() : void; function lockMovement(param1:Boolean) : void; function getNumberOfBarrels() : int; function enableTurretSound(param1:Boolean) : void; function getSkin() : TankSkin; function showTitle() : void; function addDust(param1:int = 7) : void; function get teamType() : BattleTeam; function getWeaponMount() : WeaponMount; } }
package forms.ranks { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/forms.ranks.PremiumRankBitmaps_bitmapBigRank29.png")] public class PremiumRankBitmaps_bitmapBigRank29 extends BitmapAsset { public function PremiumRankBitmaps_bitmapBigRank29() { super(); } } }
package alternativa.tanks.model.challenge { import alternativa.init.Main; import alternativa.tanks.model.challenge.server.ChallengeServerData; import alternativa.tanks.model.panel.IPanel; import flash.display.DisplayObjectContainer; import flash.events.Event; import flash.events.MouseEvent; public class ChallengeModel implements IChallenge { private var panelModel:IPanel; private var dialogsLayer:DisplayObjectContainer; private var window:ChallengeWindow; public function ChallengeModel() { super(); this.dialogsLayer = Main.dialogsLayer; } public function show(quest:ChallengeServerData) : void { this.panelModel = Main.osgi.getService(IPanel) as IPanel; this.panelModel.blur(); this.window = new ChallengeWindow(quest.specialChallenge != null); this.dialogsLayer.addChild(this.window); Main.stage.addEventListener(Event.RESIZE,this.alignWindow); this.window.closeBtn.addEventListener(MouseEvent.CLICK,this.closeWindow); this.alignWindow(null); this.window.show(quest); } public function updateQuest(quest:ChallengeServerData) : void { if(this.window == null) { return; } this.window.show(quest); } private function alignWindow(e:Event) : void { this.window.x = Math.round((Main.stage.stageWidth - this.window.width) * 0.5); this.window.y = Math.round((Main.stage.stageHeight - this.window.height) * 0.5); } private function closeWindow(e:MouseEvent = null) : void { this.panelModel.unblur(); this.dialogsLayer.removeChild(this.window); Main.stage.removeEventListener(Event.RESIZE,this.alignWindow); this.window = null; } } }
package projects.tanks.client.battlefield.models.inventory.sfx { public interface IInventorySfxModelBase { } }
package alternativa.tanks.models.battle.battlefield.billboard.billboardimage { import alternativa.tanks.battle.BattleService; import platform.client.fp10.core.model.ObjectLoadListener; import projects.tanks.client.battlefield.models.battle.battlefield.billboard.billboardimage.BillboardImageModelBase; import projects.tanks.client.battlefield.models.battle.battlefield.billboard.billboardimage.IBillboardImageModelBase; [ModelInfo] public class BillboardImageModel extends BillboardImageModelBase implements IBillboardImageModelBase, ObjectLoadListener { [Inject] public static var battleService:BattleService; public function BillboardImageModel() { super(); } [Obfuscation(rename="false")] public function objectLoaded() : void { battleService.setBillboardImage(getInitParam().image.data); } } }
package projects.tanks.client.battlefield.models.map { import platform.client.fp10.core.resource.types.MultiframeTextureResource; public class DustParams { private var _alpha:Number; private var _density:Number; private var _dustFarDistance:Number; private var _dustNearDistance:Number; private var _dustParticle:MultiframeTextureResource; private var _dustSize:Number; public function DustParams(param1:Number = 0, param2:Number = 0, param3:Number = 0, param4:Number = 0, param5:MultiframeTextureResource = null, param6:Number = 0) { super(); this._alpha = param1; this._density = param2; this._dustFarDistance = param3; this._dustNearDistance = param4; this._dustParticle = param5; this._dustSize = param6; } public function get alpha() : Number { return this._alpha; } public function set alpha(param1:Number) : void { this._alpha = param1; } public function get density() : Number { return this._density; } public function set density(param1:Number) : void { this._density = param1; } public function get dustFarDistance() : Number { return this._dustFarDistance; } public function set dustFarDistance(param1:Number) : void { this._dustFarDistance = param1; } public function get dustNearDistance() : Number { return this._dustNearDistance; } public function set dustNearDistance(param1:Number) : void { this._dustNearDistance = param1; } public function get dustParticle() : MultiframeTextureResource { return this._dustParticle; } public function set dustParticle(param1:MultiframeTextureResource) : void { this._dustParticle = param1; } public function get dustSize() : Number { return this._dustSize; } public function set dustSize(param1:Number) : void { this._dustSize = param1; } public function toString() : String { var local1:String = "DustParams ["; local1 += "alpha = " + this.alpha + " "; local1 += "density = " + this.density + " "; local1 += "dustFarDistance = " + this.dustFarDistance + " "; local1 += "dustNearDistance = " + this.dustNearDistance + " "; local1 += "dustParticle = " + this.dustParticle + " "; local1 += "dustSize = " + this.dustSize + " "; return local1 + "]"; } } }
package alternativa.tanks.model.challenge { import mx.core.BitmapAsset; [ExcludeClass] public class ChallengeCongratulationWindow_foresterBitmap extends BitmapAsset { public function ChallengeCongratulationWindow_foresterBitmap() { super(); } } }
package controls.statassets { import controls.base.LabelBase; import flash.display.Sprite; import flash.text.TextFieldAutoSize; import flash.text.TextFormatAlign; public class StatHeaderButton extends Sprite { private var _bg:StatLineHeader = new StatLineHeader(); private var _label:LabelBase = new LabelBase(); public var numSort:int = 0; protected var _selected:Boolean = false; protected var _width:int = 100; protected var _height:int = 20; public function StatHeaderButton(param1:Boolean = true) { super(); this._bg.width = this._width; this._bg.height = this._height; addChild(this._bg); addChild(this._label); this._label.color = 860685; this._label.x = 2; this._label.y = 0; this._label.mouseEnabled = false; this._label.autoSize = TextFieldAutoSize.NONE; this._label.align = param1 ? TextFormatAlign.RIGHT : TextFormatAlign.LEFT; this._label.height = 19; } public function set selected(param1:Boolean) : void { this._selected = param1; this._bg.selected = this._selected; } public function set label(param1:String) : void { this._label.text = param1; } override public function set width(param1:Number) : void { this._width = Math.floor(param1); this._bg.width = param1; this._label.width = this._width - 4; } override public function set height(param1:Number) : void { this._height = Math.floor(param1); this._bg.height = param1; } } }
package alternativa.tanks.services.colortransform { import flash.geom.ColorTransform; public interface ColorTransformer { function setColorTransform(param1:ColorTransform) : void; } }
package alternativa.tanks.models.battle.gui.gui.statistics.field.score { import assets.icons.BattleInfoIcons; public class TDMScoreField extends TeamScoreFieldBase implements TeamScoreIndicator { private static const ICON_WIDTH:int = 17; private static const ICON_Y:int = 10; private var icon:BattleInfoIcons; public function TDMScoreField() { super(); this.icon = new BattleInfoIcons(); this.icon.type = BattleInfoIcons.KILL_LIMIT; addChild(this.icon); this.icon.y = ICON_Y; } override protected function calculateWidth() : int { var local1:int = 5; var local2:int = labelRed.width > labelBlue.width ? int(labelRed.width) : int(labelBlue.width); labelRed.x = local1 + local1 + (local2 - labelRed.width >> 1); this.icon.x = labelRed.x + local2 + local1; labelBlue.x = this.icon.x + ICON_WIDTH + local1 + (local2 - labelBlue.width >> 1); return labelBlue.x + local2 + local1 + local1; } } }
package controls.scroller.blue { import mx.core.BitmapAsset; [ExcludeClass] public class ScrollSkinBlue_track extends BitmapAsset { public function ScrollSkinBlue_track() { super(); } } }
package assets.button { import flash.display.BitmapData; [Embed(source="/_assets/assets.button.button_def_OVER_RIGHT.png")] public dynamic class button_def_OVER_RIGHT extends BitmapData { public function button_def_OVER_RIGHT(param1:int = 7, param2:int = 30) { super(param1,param2); } } }
package alternativa.init { import alternativa.osgi.OSGi; import alternativa.osgi.bundle.IBundleActivator; import alternativa.tanks.gui.communication.tabs.clanchat.ClanChatView; import alternativa.tanks.gui.communication.tabs.clanchat.IClanChatView; import alternativa.tanks.models.clan.membersdata.ClanMembersDataService; import alternativa.tanks.models.clan.membersdata.ClanMembersDataServiceImpl; import alternativa.tanks.models.foreignclan.ForeignClanService; import alternativa.tanks.models.foreignclan.ForeignClanServiceImpl; import alternativa.tanks.models.panel.ClanPanelNotificationServiceImpl; import alternativa.tanks.models.panel.create.ClanCreateService; import alternativa.tanks.models.panel.create.ClanCreateServiceImpl; import alternativa.tanks.models.service.ClanFriendsServiceImpl; import alternativa.tanks.models.service.ClanFunctionsServiceImpl; import alternativa.tanks.models.service.ClanService; import alternativa.tanks.models.service.ClanServiceImpl; import alternativa.tanks.models.user.ClanUserService; import alternativa.tanks.models.user.ClanUserServiceImpl; import alternativa.tanks.service.clan.ClanFriendsService; import alternativa.tanks.service.clan.ClanPanelNotificationService; 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.clan.ClanUserInfoServiceImpl; public class ClansModelActivator implements IBundleActivator { public function ClansModelActivator() { super(); } public function start(param1:OSGi) : void { param1.registerService(ClanService,new ClanServiceImpl()); param1.registerService(ClanCreateService,new ClanCreateServiceImpl()); param1.registerService(ClanUserService,new ClanUserServiceImpl()); param1.registerService(ClanMembersDataService,new ClanMembersDataServiceImpl()); param1.registerService(ClanPanelNotificationService,new ClanPanelNotificationServiceImpl()); param1.registerService(ClanUserInfoService,new ClanUserInfoServiceImpl()); param1.registerService(ClanFriendsService,new ClanFriendsServiceImpl()); param1.registerService(ClanFunctionsService,new ClanFunctionsServiceImpl()); param1.registerService(IClanChatView,new ClanChatView()); param1.registerService(ForeignClanService,new ForeignClanServiceImpl()); } public function stop(param1:OSGi) : void { } } }
package projects.tanks.client.partners.impl.miniplay { 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 MiniplayLoginModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:MiniplayLoginModelServer; private var client:IMiniplayLoginModelBase = IMiniplayLoginModelBase(this); private var modelId:Long = Long.getLong(1395350347,-677112271); public function MiniplayLoginModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new MiniplayLoginModelServer(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 platform.clients.fp10.libraries.alternativapartners.type { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IPartnerEvents implements IPartner { private var object:IGameObject; private var impl:Vector.<Object>; public function IPartnerEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getLoginParameters(param1:IParametersListener) : void { var i:int = 0; var m:IPartner = null; var listener:IParametersListener = param1; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IPartner(this.impl[i]); m.getLoginParameters(listener); i++; } } finally { Model.popObject(); } } public function hasPaymentAction() : Boolean { var result:Boolean = false; var i:int = 0; var m:IPartner = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IPartner(this.impl[i]); result = Boolean(m.hasPaymentAction()); i++; } } finally { Model.popObject(); } return result; } public function paymentAction() : void { var i:int = 0; var m:IPartner = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IPartner(this.impl[i]); m.paymentAction(); i++; } } finally { Model.popObject(); } } public function getFailRedirectUrl() : String { var result:String = null; var i:int = 0; var m:IPartner = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IPartner(this.impl[i]); result = m.getFailRedirectUrl(); i++; } } finally { Model.popObject(); } return result; } public function isExternalLoginAllowed() : Boolean { var result:Boolean = false; var i:int = 0; var m:IPartner = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IPartner(this.impl[i]); result = Boolean(m.isExternalLoginAllowed()); i++; } } finally { Model.popObject(); } return result; } public function hasRatings() : Boolean { var result:Boolean = false; var i:int = 0; var m:IPartner = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IPartner(this.impl[i]); result = Boolean(m.hasRatings()); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.models.weapon.rocketlauncher.sfx { import alternativa.engine3d.materials.TextureMaterial; import alternativa.tanks.engine3d.EffectsMaterialRegistry; import alternativa.tanks.engine3d.TextureAnimation; import alternativa.tanks.models.sfx.lighting.LightingSfx; import alternativa.tanks.sfx.LightAnimation; import alternativa.tanks.utils.GraphicsUtils; import flash.media.Sound; import platform.client.fp10.core.type.AutoClosable; import projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.sfx.RocketLauncherSfxCC; public class RocketLauncherSfxData implements AutoClosable { [Inject] public static var materialRegistry:EffectsMaterialRegistry; public var explosion:TextureAnimation; public var explosionMark:TextureMaterial; public var rocketTexture:TextureMaterial; public var rocketFlame:TextureMaterial; public var rocketSmoke:TextureMaterial; public var shotSounds:Vector.<Sound>; public var hitSounds:Vector.<Sound>; public var rocketFlightSound:Sound; public var aimingSound:Sound; public var targetLostSound:Sound; public var aimingCompleteSound:Sound; public var rocketLightingAnimation:LightAnimation; public var explosionLightingAnimation:LightAnimation; public function RocketLauncherSfxData(param1:RocketLauncherSfxCC, param2:LightingSfx) { super(); this.explosion = GraphicsUtils.getTextureAnimationFromResource(materialRegistry,param1.explosionTexture); this.explosionMark = materialRegistry.getMaterial(param1.explosionMarkTexture.data); this.rocketTexture = materialRegistry.getMaterial(param1.rocketTexture.data); this.rocketFlame = materialRegistry.getMaterial(param1.rocketFlameTexture.data); this.rocketSmoke = materialRegistry.getMaterial(param1.rocketSmokeTexture.data); this.shotSounds = Vector.<Sound>([param1.rightShotSounds.sound,param1.leftShotSounds.sound]); this.hitSounds = Vector.<Sound>([param1.rightHitSounds.sound,param1.leftHitSounds.sound]); this.rocketFlightSound = param1.rocketFlightSound.sound; this.aimingSound = param1.aimingSound.sound; this.targetLostSound = param1.targetLostSound.sound; this.aimingCompleteSound = param1.aimingCompleteSound.sound; this.rocketLightingAnimation = param2.createAnimation("rocket"); this.explosionLightingAnimation = param2.createAnimation("explosion"); } public function close() : void { var local1:int = 0; materialRegistry.releaseMaterial(this.explosion.material); materialRegistry.releaseMaterial(this.explosionMark); materialRegistry.releaseMaterial(this.rocketTexture); materialRegistry.releaseMaterial(this.rocketFlame); materialRegistry.releaseMaterial(this.rocketSmoke); local1 = 0; while(local1 < this.shotSounds.length) { this.shotSounds[local1] = null; local1++; } this.shotSounds = null; local1 = 0; while(local1 < this.hitSounds.length) { this.hitSounds[local1] = null; local1++; } this.hitSounds = null; this.rocketFlightSound = null; this.aimingSound = null; this.targetLostSound = null; this.aimingCompleteSound = null; this.rocketLightingAnimation = null; this.explosionLightingAnimation = null; } } }
package _codec.projects.tanks.client.panel.model.mobilequest.profile { 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.mobilequest.profile.MobileQuestProfileCC; public class VectorCodecMobileQuestProfileCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecMobileQuestProfileCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(MobileQuestProfileCC,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.<MobileQuestProfileCC> = new Vector.<MobileQuestProfileCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = MobileQuestProfileCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:MobileQuestProfileCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<MobileQuestProfileCC> = Vector.<MobileQuestProfileCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.models.service { import alternativa.tanks.service.clan.ClanFriendsService; import alternativa.types.Long; import flash.events.EventDispatcher; public class ClanFriendsServiceImpl extends EventDispatcher implements ClanFriendsService { private var _clanMembers:Vector.<Long>; public function ClanFriendsServiceImpl() { super(); } public function get clanMembers() : Vector.<Long> { return this._clanMembers; } public function set clanMembers(param1:Vector.<Long>) : void { this._clanMembers = param1; } } }
package { import alternativa.init.BattlefieldModelActivator; import alternativa.init.GarageModelActivator; import alternativa.osgi.OSGi; import alternativa.osgi.bundle.IBundleActivator; import projects.tanks.client.battlefield.osgi.Activator; import projects.tanks.client.garage.osgi.Activator; import projects.tanks.clients.flash.resources.osgi.Activator; import projects.tanks.clients.flash.resourcesflash.Activator; import projects.tanks.clients.fp10.models.battlefieldmodelflash.Activator; import projects.tanks.clients.fp10.models.tanksgaragemodelflash.Activator; public class GameActivator implements IBundleActivator { public function GameActivator() { super(); } public function start(param1:OSGi) : void { new projects.tanks.clients.flash.resources.osgi.Activator().start(param1); new projects.tanks.clients.flash.resourcesflash.Activator().start(param1); new projects.tanks.client.garage.osgi.Activator().start(param1); new GarageModelActivator().start(param1); new projects.tanks.clients.fp10.models.tanksgaragemodelflash.Activator().start(param1); new projects.tanks.client.battlefield.osgi.Activator().start(param1); new BattlefieldModelActivator().start(param1); new projects.tanks.clients.fp10.models.battlefieldmodelflash.Activator().start(param1); } public function stop(param1:OSGi) : void { } } }
package alternativa.tanks.gui.panel.buttons { import flash.display.Bitmap; public class MainPanelGrayWideButton extends MainPanelWideButton { private static const buttonNormal:Class = MainPanelGrayWideButton_buttonNormal; private static const buttonNormalBitmap:Bitmap = new buttonNormal(); private static const buttonOver:Class = MainPanelGrayWideButton_buttonOver; private static const buttonOverBitmap:Bitmap = new buttonOver(); public function MainPanelGrayWideButton(param1:Bitmap, param2:int, param3:int) { super(param1,param2,param3,buttonOverBitmap,buttonNormalBitmap); } } }
package projects.tanks.client.garage.models.garage { import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.commons.types.ItemViewCategoryEnum; public interface IGarageModelBase { function initDepot(param1:Vector.<IGameObject>) : void; function initMarket(param1:Vector.<IGameObject>) : void; function initMounted(param1:Vector.<IGameObject>) : void; function reloadGarage(param1:String, param2:int) : void; function removeDepotItem(param1:IGameObject) : void; function select(param1:IGameObject) : void; function selectFirstItemInDepot() : void; function showCategory(param1:ItemViewCategoryEnum) : void; function unmountDrone() : void; function updateDepotItem(param1:IGameObject, param2:int) : void; function updateMountedItems(param1:Vector.<IGameObject>) : void; function updateTemporaryItem(param1:IGameObject, param2:int) : void; } }
package alternativa.tanks.model.antiaddiction { import alternativa.tanks.gui.AntiAddictionWindow; import alternativa.tanks.service.panel.IPanelView; import flash.events.Event; import flash.events.TimerEvent; import flash.utils.Timer; import forms.AntiAddictionAlert; import platform.client.fp10.core.model.ObjectLoadListener; import projects.tanks.client.panel.model.antiaddictionalert.AntiAddictionAlertModelBase; import projects.tanks.client.panel.model.antiaddictionalert.IAntiAddictionAlertModelBase; [ModelInfo] public class AntiAddictionAlertModel extends AntiAddictionAlertModelBase implements IAntiAddictionAlertModelBase, IAntiAddictionAlert, ObjectLoadListener { [Inject] public static var panelView:IPanelView; private var alertShowTimer:Timer; private var antiAddictionWindow:AntiAddictionWindow; private var antiAddictionAlert:AntiAddictionAlert; public function AntiAddictionAlertModel() { super(); } public function objectLoaded() : void { this.createAlertShowTimer(); } private function createAlertShowTimer() : void { this.alertShowTimer = new Timer(60 * 1000,1); this.alertShowTimer.addEventListener(TimerEvent.TIMER_COMPLETE,getFunctionWrapper(this.onShowAlertTimerComplete)); } private function onShowAlertTimerComplete(param1:TimerEvent) : void { if(this.antiAddictionAlert != null) { this.antiAddictionAlert.removeFormDialog(); } } public function showAntiAddictionAlert(param1:int, param2:Boolean) : void { this.showAntiAddictionWindow(param1,param2); } private function showAntiAddictionWindow(param1:int, param2:Boolean) : void { var local3:String = null; if(param1 >= 210) { if(this.antiAddictionWindow != null) { this.antiAddictionWindow.removeDialog(); } this.antiAddictionWindow = new AntiAddictionWindow(param1,param2); this.antiAddictionWindow.addEventListener(Event.COMPLETE,getFunctionWrapper(this.onIDCardEntered)); } else { local3 = ""; if(param1 >= 180) { local3 = "您累计在线时间已满3小时,请您下线休息,做适当身体活动。"; } else if(param1 >= 120) { local3 = "您累计在线时间已满2小时。"; } else if(param1 >= 60) { local3 = "您累计在线时间已满1小时。"; } if(this.antiAddictionAlert != null) { this.antiAddictionAlert.removeFormDialog(); } this.antiAddictionAlert = new AntiAddictionAlert(local3); if(this.alertShowTimer == null) { this.createAlertShowTimer(); } this.alertShowTimer.reset(); this.alertShowTimer.start(); } } private function onIDCardEntered(param1:Event) : void { this.setIdNumberAndRealName(this.antiAddictionWindow.realNameInput.value,this.antiAddictionWindow.idCardInput.value); this.antiAddictionWindow.disableButtons(); } public function setIdNumberAndRealName(param1:String, param2:String) : void { server.setRealNameAndIDNumber(param1,param2); } public function realNameAndIDNumberSetSuccesfully(param1:String) : void { panelView.showAlert(param1); if(this.antiAddictionWindow != null) { this.antiAddictionWindow.removeDialog(); } } public function realNameAndIDNumberSetError(param1:String) : void { panelView.showAlert(param1); if(this.antiAddictionWindow != null) { this.antiAddictionWindow.enableButtons(); } } } }
package alternativa.tanks.models.weapon.gauss.sfx { import alternativa.math.Vector3; import alternativa.physics.Body; import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.objects.tank.WeaponPlatform; import alternativa.tanks.models.weapon.WeaponForces; import alternativa.tanks.models.weapon.WeaponObject; import alternativa.tanks.models.weapon.gauss.GaussTurretSkin; import alternativa.tanks.models.weapon.rocketlauncher.weapon.salvo.aim.AimSoundEffect; import alternativa.tanks.sfx.MobileSound3DEffect; import alternativa.tanks.sfx.Sound3D; import alternativa.tanks.sfx.Sound3DEffect; import alternativa.tanks.utils.objectpool.ObjectPool; import flash.media.Sound; public class GaussEffects implements AimSoundEffect { [Inject] public static var battleService:BattleService; public static const ANTENNA_UP_SOUND_DURATION:int = 400; public static const ANTENNA_DOWN_SOUND_DURATION:int = 400; private var antennaEffect:GaussAntennaAimingEffect; private var weaponPlatform:WeaponPlatform; private var sfxData:GaussSFXData; private var antennaToggleSoundEffect:MobileSound3DEffect; private var aimingEffect:MobileSound3DEffect; public function GaussEffects(param1:WeaponObject, param2:GaussTurretSkin, param3:WeaponPlatform, param4:GaussSFXData) { super(); this.weaponPlatform = param3; this.sfxData = param4; this.antennaEffect = new GaussAntennaAimingEffect(param2.getAntenna()); } public function playAimingSoundEffect() : void { this.killAimingSoundEffect(); this.aimingEffect = this.getSoundEffect(); this.aimingEffect.init(Sound3D.create(this.sfxData.startAimingSound),this.weaponPlatform.getTurret3D()); battleService.addSound3DEffect(this.aimingEffect); } public function playTargetLostSoundEffect() : void { this.killAimingSoundEffect(); this.aimingEffect = this.getSoundEffect(); this.aimingEffect.init(Sound3D.create(this.sfxData.targetLostSound),this.weaponPlatform.getTurret3D()); battleService.addSound3DEffect(this.aimingEffect); } public function playTargetLockSoundEffect() : void { var local1:MobileSound3DEffect = this.getSoundEffect(); local1.init(Sound3D.create(this.sfxData.targetLockSound),this.weaponPlatform.getTurret3D()); battleService.addSound3DEffect(local1); } private function killToggleSound() : void { if(this.antennaToggleSoundEffect != null) { this.antennaToggleSoundEffect.kill(); this.antennaToggleSoundEffect = null; } } public function killAimingSoundEffect() : void { if(this.aimingEffect != null) { this.aimingEffect.kill(); this.aimingEffect = null; } } public function playOpenEffect() : void { this.killToggleSound(); this.antennaEffect.turnOn(); this.playAntennaToggleSound(this.sfxData.antennaUpSound,ANTENNA_UP_SOUND_DURATION); } public function playHideEffect() : void { this.killToggleSound(); this.antennaEffect.turnOff(); this.playAntennaToggleSound(this.sfxData.antennaDownSound,ANTENNA_DOWN_SOUND_DURATION); } private function playAntennaToggleSound(param1:Sound, param2:int) : void { this.antennaToggleSoundEffect = this.getSoundEffect(); var local3:int = param2 - this.antennaEffect.getRemainingTimeMs(); this.antennaToggleSoundEffect.init(Sound3D.create(param1),this.weaponPlatform.getTurret3D(),0,1,local3); battleService.addSound3DEffect(this.antennaToggleSoundEffect); } public function playSoundEffect(param1:Sound, param2:Vector3) : void { battleService.addSound3DEffect(Sound3DEffect.create(param2,Sound3D.create(param1))); } private function getSoundEffect() : MobileSound3DEffect { return MobileSound3DEffect(battleService.getObjectPool().getObject(MobileSound3DEffect)); } public function playCommonShotEffect(param1:Vector3, param2:Vector3, param3:WeaponForces) : void { this.weaponPlatform.getBody().addWorldForceScaled(param1,param2,-param3.getRecoilForce()); this.weaponPlatform.addDust(); var local4:GaussMuzzleEffect = this.getMuzzleEffect(); local4.init(this.sfxData,this.weaponPlatform); battleService.addGraphicEffect(local4); } public function playPowerShotEffect(param1:Body, param2:Vector3) : void { var local3:GaussPowerShotEffect = this.getPowerShotEffect(); local3.init(this.sfxData,this.weaponPlatform,param1,param2); battleService.addGraphicEffect(local3); } private function getObjectPool() : ObjectPool { return battleService.getObjectPool(); } private function getMuzzleEffect() : GaussMuzzleEffect { return GaussMuzzleEffect(this.getObjectPool().getObject(GaussMuzzleEffect)); } private function getPowerShotEffect() : GaussPowerShotEffect { return GaussPowerShotEffect(battleService.getObjectPool().getObject(GaussPowerShotEffect)); } public function reset() : void { this.antennaEffect.reset(); } } }
package alternativa.tanks.models.inventory { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IInventoryModelAdapt implements IInventoryModel { private var object:IGameObject; private var impl:IInventoryModel; public function IInventoryModelAdapt(param1:IGameObject, param2:IInventoryModel) { super(); this.object = param1; this.impl = param2; } public function lockItem(param1:int, param2:int, param3:Boolean) : void { var itemType:int = param1; var lockMask:int = param2; var lock:Boolean = param3; try { Model.object = this.object; this.impl.lockItem(itemType,lockMask,lock); } finally { Model.popObject(); } } public function lockItems(param1:int, param2:Boolean) : void { var lockMask:int = param1; var lock:Boolean = param2; try { Model.object = this.object; this.impl.lockItems(lockMask,lock); } finally { Model.popObject(); } } public function lockItemsByMask(param1:Vector.<int>, param2:int, param3:Boolean) : void { var affectedSlots:Vector.<int> = param1; var lockMask:int = param2; var lock:Boolean = param3; try { Model.object = this.object; this.impl.lockItemsByMask(affectedSlots,lockMask,lock); } finally { Model.popObject(); } } } }
package alternativa.tanks.models.battle.gui.gui.statistics.table { import alternativa.tanks.models.battle.gui.userlabel.StatisticsListUserLabel; import controls.Label; import controls.Money; import controls.resultassets.ResultWindowBlueNormal; import controls.resultassets.ResultWindowBlueSelected; import controls.resultassets.ResultWindowGreenNormal; import controls.resultassets.ResultWindowGreenSelected; import controls.resultassets.ResultWindowRedNormal; import controls.resultassets.ResultWindowRedSelected; import fl.controls.listClasses.CellRenderer; import fl.controls.listClasses.ListData; import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextFieldAutoSize; import flash.text.TextFormatAlign; import forms.ColorConstants; import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService; public class StatisticsListRenderer extends CellRenderer { [Inject] public static var battleInfoService:IBattleInfoService; public static var showBonus:Boolean; private static const COLOR_NORMAL:uint = 16777215; private static const COLOR_NOT_LOADED:uint = 11184810; private static const COLOR_GOLD:uint = 15976448; private static const COLOR_GREY:uint = 10921638; private static const DASH_TEXT:String = "—"; private var nicon:DisplayObject; public function StatisticsListRenderer() { super(); this.mouseChildren = true; this.buttonMode = this.useHandCursor = false; } private static function createCell(param1:DisplayObjectContainer, param2:String, param3:uint, param4:String, param5:int, param6:int) : Label { var local7:Label = null; local7 = new Label(); local7.mouseEnabled = false; local7.autoSize = TextFieldAutoSize.NONE; local7.text = param2; local7.color = param3; local7.align = param4; local7.x = param6; local7.width = param5; local7.height = TableConst.ROW_HEIGHT; param1.addChild(local7); return local7; } private static function createStarsRewardCell(param1:DisplayObjectContainer, param2:int, param3:uint, param4:int) : void { var local5:String = Money.numToString(param4,false); createCell(param1,local5,param3,TextFormatAlign.RIGHT,TableConst.BONUS_REWARD_WIDTH,param2); } [Obfuscation(rename="false")] override public function set data(param1:Object) : void { _data = param1; this.nicon = this.myIcon(_data); } [Obfuscation(rename="false")] override public function set listData(param1:ListData) : void { _listData = param1; label = _listData.label; if(this.nicon != null) { setStyle("icon",this.nicon); } } [Obfuscation(rename="false")] override protected function drawBackground() : void { } [Obfuscation(rename="false")] override protected function drawLayout() : void { } [Obfuscation(rename="false")] override protected function drawIcon() : void { var local1:DisplayObject = icon; var local2:Object = getStyleValue("icon"); if(local2 != null) { icon = getDisplayObjectInstance(local2); } if(icon != null) { addChildAt(icon,1); } if(local1 != null && local1 != icon && local1.parent == this) { removeChild(local1); } } private function myIcon(param1:Object) : Sprite { var local3:DisplayObject = null; var local5:uint = 0; var local6:StatisticsListUserLabel = null; var local8:Label = null; var local2:StatisticsData = StatisticsData(param1); switch(local2.type) { case ViewStatistics.BLUE: local3 = local2.self ? new ResultWindowBlueSelected() : new ResultWindowBlueNormal(); break; case ViewStatistics.GREEN: local3 = local2.self ? new ResultWindowGreenSelected() : new ResultWindowGreenNormal(); break; case ViewStatistics.RED: local3 = local2.self ? new ResultWindowRedSelected() : new ResultWindowRedNormal(); } var local4:Sprite = new Sprite(); local4.addChild(local3); if(!param1.loaded) { local5 = COLOR_NOT_LOADED; } else { local5 = Boolean(param1.suspicious) ? uint(ColorConstants.SUSPICIOUS) : COLOR_NORMAL; } local6 = new StatisticsListUserLabel(local2); if(!param1.loaded) { local6.setUidColor(COLOR_NOT_LOADED,true); } else if(Boolean(param1.suspicious)) { local6.setUidColor(ColorConstants.SUSPICIOUS,true); } else { local6.setUidColor(COLOR_NORMAL,battleInfoService.isSpectatorMode()); } var local7:int = TableConst.LABELS_OFFSET; local6.x = local7 - 14; local4.addChild(local6); local7 += TableConst.CALLSIGN_WIDTH; if(local2.type != ViewStatistics.GREEN) { local8 = createCell(local4,local2.score.toString(),local5,TextFormatAlign.RIGHT,TableConst.SCORE_WIDTH,local7); local7 += local8.width; } local8 = createCell(local4,local2.kills.toString(),local5,TextFormatAlign.RIGHT,TableConst.KILLS_WIDTH,local7); local7 += local8.width; local8 = createCell(local4,local2.deaths.toString(),local5,TextFormatAlign.RIGHT,TableConst.DEATHS_WIDTH,local7); local7 += local8.width; var local9:Number = local2.kills / local2.deaths; var local10:String = local2.deaths == 0 || local2.kills == 0 ? DASH_TEXT : local9.toFixed(2); local8 = createCell(local4,local10,local5,TextFormatAlign.RIGHT,TableConst.RATIO_WIDTH,local7); local7 += local8.width; if(local2.reward > -1) { local8 = createCell(local4,Money.numToString(local2.reward,false),local5,TextFormatAlign.RIGHT,TableConst.REWARD_WIDTH,local7); local7 += local8.width; if(showBonus) { createStarsRewardCell(local4,local7,COLOR_GOLD,local2.stars); } } local3.width = width; local3.height = TableConst.ROW_HEIGHT - 2; return local4; } } }
package alternativa.tanks.battle.events { public class StateCorrectionEvent { public static const REGULAR_UPDATE:StateCorrectionEvent = new StateCorrectionEvent(false); public static const MANDATORY_UPDATE:StateCorrectionEvent = new StateCorrectionEvent(true); private var _mandatory:Boolean; public function StateCorrectionEvent(param1:Boolean) { super(); this._mandatory = param1; } public function get mandatory() : Boolean { return this._mandatory; } } }
package alternativa.tanks.model.quest.challenge.gui { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.model.quest.challenge.gui.ChallengesView_silverStarBgClass.png")] public class ChallengesView_silverStarBgClass extends BitmapAsset { public function ChallengesView_silverStarBgClass() { super(); } } }
package alternativa.tanks.models.weapon.gauss.state { import alternativa.tanks.models.weapon.gauss.GaussEventType; import alternativa.tanks.models.weapon.gauss.LocalGaussWeapon; public class ModeSelectionState implements IGaussState { private static const TARGET_SEARCH_DELAY:Number = 200; private var weapon:LocalGaussWeapon; private var targetSearchStartTime:int = 0; public function ModeSelectionState(param1:LocalGaussWeapon) { super(); this.weapon = param1; } public function enter(param1:int, param2:GaussEventType, param3:*) : void { this.targetSearchStartTime = this.weapon.getTime() + TARGET_SEARCH_DELAY; this.update(param1,0); } public function update(param1:int, param2:int) : void { if(!this.weapon.isTriggerPulled() || this.weapon.isBuffed()) { this.weapon.processEvent(GaussEventType.SIMPLE_SHOT); } else if(this.weapon.getTime() >= this.targetSearchStartTime) { this.weapon.processEvent(GaussEventType.TARGET_SEARCH_STARTED); } } } }
package controls { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.TankWindowInner_bottomLeftClass.png")] public class TankWindowInner_bottomLeftClass extends BitmapAsset { public function TankWindowInner_bottomLeftClass() { super(); } } }
package platform.client.fp10.core.model { [ModelInterface] public interface ObjectUnloadListener { function objectUnloaded() : void; } }
package alternativa.tanks.sfx { import alternativa.math.Vector3; import alternativa.tanks.battle.objects.tank.Tank; import alternativa.tanks.camera.GameCamera; import flash.events.Event; import flash.media.Sound; import flash.media.SoundChannel; public class TankSoundEffects implements ISound3DEffect { private static const _tankPosition:Vector3 = new Vector3(); private var _tank:Tank; private var engineSounds:EngineSounds; private var turretSound:Sound3D; private var _engineMode:int = 1; private var _enabled:Boolean = false; private var _turretSoundEnabled:Boolean; public function TankSoundEffects(param1:Sound, param2:Sound, param3:Sound, param4:Sound) { super(); this.engineSounds = new EngineSounds(param1,param2,param3); this.turretSound = Sound3D.create(param4,0.5,500,2000,5); } public function setIdleMode() : void { this._engineMode = EngineSounds.IDLE; if(this._enabled) { this.engineSounds.setIdleMode(); } } public function setAccelerationMode() : void { this._engineMode = EngineSounds.ACCELERATING; if(this._enabled) { this.engineSounds.setAccelerationMode(); } } public function setTurningMode() : void { this._engineMode = EngineSounds.TURNING; if(this._enabled) { this.engineSounds.setTurningMode(); } } public function setTank(param1:Tank) : void { this._tank = param1; } public function playTurretSound(param1:Boolean) : void { var local2:SoundChannel = null; if(this._enabled) { if(param1 && this._turretSoundEnabled) { if(!this.turretSound.isPlaying()) { local2 = this.turretSound.play(100,0); if(local2 != null) { local2.addEventListener(Event.SOUND_COMPLETE,this.onTurretSoundComplete); } } } else if(this.turretSound.isPlaying()) { this.turretSound.stop(); } } } private function onTurretSoundComplete(param1:Event) : void { if(this._turretSoundEnabled) { this.turretSound.play(3000,9999); } } public function set turretSoundEnabled(param1:Boolean) : void { if(this._turretSoundEnabled != param1) { this._turretSoundEnabled = param1; if(!this._turretSoundEnabled) { this.turretSound.stop(); } } } public function play(param1:int, param2:GameCamera) : void { if(this._tank != null && this._enabled) { _tankPosition.copy(this._tank.getBody().state.position); this.engineSounds.update(param1,param2.position,_tankPosition,param2.xAxis); this.turretSound.checkVolume(param2.position,_tankPosition,param2.xAxis); } } public function destroy() : void { this.engineSounds.stop(); this.turretSound.stop(); } public function kill() : void { } public function get numSounds() : int { return 2; } public function readPosition(param1:Vector3) : void { param1.copy(this._tank.getBody().state.position); } public function set enabled(param1:Boolean) : void { if(this._enabled != param1) { this._enabled = param1; this.updateSounds(); } } private function updateSounds() : void { if(this._enabled) { switch(this._engineMode) { case EngineSounds.IDLE: this.engineSounds.setIdleMode(); break; case EngineSounds.ACCELERATING: this.engineSounds.setAccelerationMode(); break; case EngineSounds.TURNING: this.engineSounds.setTurningMode(); } } else { this.turretSound.stop(); this.engineSounds.setSilentMode(); } } } }
package controls.chat { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.chat.BattleChatInput_bitmapNL.png")] public class BattleChatInput_bitmapNL extends BitmapAsset { public function BattleChatInput_bitmapNL() { super(); } } }
package projects.tanks.client.garage.models.item.relativeproperties { 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 RelativePropertiesModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function RelativePropertiesModelServer(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.tank { import alternativa.math.Vector3; import projects.tanks.client.battlefield.models.user.tank.commands.MoveCommand; import projects.tanks.client.battlefield.types.Vector3d; public class MoveCommandUtils { private static const nearDistance:Number = 30; private static const nearDistanceSqr:Number = nearDistance * nearDistance; private static const nearVelocity:Number = 50; private static const nearVelocitySqr:Number = nearVelocity * nearVelocity; private static const nearOrientationDegrees:Number = 4; private static const nearOrientationRad:Number = nearOrientationDegrees / 180 * Math.PI; private static const nearRotationDirDegrees:Number = 10; private static const nearRotationDirRad:Number = nearRotationDirDegrees / 180 * Math.PI; public function MoveCommandUtils() { super(); } public static function copyMoveCommand(param1:MoveCommand, param2:MoveCommand) : void { copyVector3d(param1.angularVelocity,param2.angularVelocity); copyVector3d(param1.linearVelocity,param2.linearVelocity); copyVector3d(param1.orientation,param2.orientation); copyVector3d(param1.position,param2.position); param2.control = param1.control; param2.turnSpeedNumber = param1.turnSpeedNumber; } public static function copyVector3d(param1:Vector3d, param2:Vector3d) : void { param2.x = param1.x; param2.y = param1.y; param2.z = param1.z; } public static function calculateDistanceSqr(param1:Vector3, param2:Vector3d) : Number { var local3:Number = param1.x - param2.x; var local4:Number = param1.y - param2.y; var local5:Number = param1.z - param2.z; return local3 * local3 + local4 * local4 + local5 * local5; } public static function isMoveCommandsAlmostEquals(param1:MoveCommand, param2:MoveCommand) : Boolean { return checkDistance(param1,param2) && checkOrientation(param1,param2) && checkLinearVelocity(param1,param2) && checkAngularVelocity(param1,param2); } private static function checkDistance(param1:MoveCommand, param2:MoveCommand) : Boolean { return diffSqr(param1.position,param2.position) < nearDistanceSqr; } private static function checkLinearVelocity(param1:MoveCommand, param2:MoveCommand) : Boolean { return diffSqr(param1.linearVelocity,param2.linearVelocity) < nearVelocitySqr; } private static function checkOrientation(param1:MoveCommand, param2:MoveCommand) : Boolean { var local3:Vector3d = param2.orientation; var local4:Vector3d = param1.orientation; return Math.abs(local4.x - local3.x) < nearOrientationRad && Math.abs(local4.y - local3.y) < nearOrientationRad && Math.abs(local4.z - local3.z) < nearOrientationRad; } private static function checkAngularVelocity(param1:MoveCommand, param2:MoveCommand) : Boolean { var local3:Vector3d = param2.angularVelocity; var local4:Vector3d = param1.angularVelocity; return Math.abs(local4.x - local3.x) < nearRotationDirRad && Math.abs(local4.y - local3.y) < nearRotationDirRad && Math.abs(local4.z - local3.z) < nearRotationDirRad; } private static function diffSqr(param1:Vector3d, param2:Vector3d) : Number { var local3:Number = param1.x - param2.x; var local4:Number = param1.y - param2.y; var local5:Number = param1.z - param2.z; return local3 * local3 + local4 * local4 + local5 * local5; } private static function cosAngleBetween(param1:Vector3d, param2:Vector3d) : Number { var local3:Number = length(param1); var local4:Number = length(param2); return (param1.x * param2.x + param1.y * param2.y + param1.z * param2.z) / local3 / local4; } private static function length(param1:Vector3d) : Number { return Math.sqrt(param1.x * param1.x + param1.y * param1.y + param1.z * param1.z); } public static function getDiffs(param1:MoveCommand, param2:MoveCommand) : String { return dumpDistance(param1,param2) + " " + dumpOrientation(param1,param2) + " " + dumpLinearVelocity(param1,param2) + " " + dumpAngularVelocity(param1,param2) + " " + dumpBooleans(param1,param2); } private static function dumpBooleans(param1:MoveCommand, param2:MoveCommand) : String { return (checkDistance(param1,param2) ? "T" : "F") + (checkOrientation(param1,param2) ? "T" : "F") + (checkLinearVelocity(param1,param2) ? "T" : "F") + (checkAngularVelocity(param1,param2) ? "T" : "F"); } private static function dumpDistance(param1:MoveCommand, param2:MoveCommand) : String { return "dist: [" + diffSqr(param1.position,param2.position) + "/" + nearDistanceSqr + "]"; } private static function dumpOrientation(param1:MoveCommand, param2:MoveCommand) : String { var local3:Vector3d = param2.orientation; var local4:Vector3d = param1.orientation; return "ori: [X:" + Math.abs(local4.x - local3.x) + "/" + nearOrientationRad + "];[Y:" + Math.abs(local4.x - local3.x) + "/" + nearOrientationRad + "];[Z:" + Math.abs(local4.x - local3.x) + "/" + nearOrientationRad + "]"; } private static function dumpLinearVelocity(param1:MoveCommand, param2:MoveCommand) : String { return "lV: [" + diffSqr(param1.linearVelocity,param2.linearVelocity) + "/" + nearVelocitySqr + "]"; } private static function dumpAngularVelocity(param1:MoveCommand, param2:MoveCommand) : String { var local3:Vector3d = param2.angularVelocity; var local4:Vector3d = param1.angularVelocity; return "oV: [X:" + Math.abs(local4.x - local3.x) + "/" + nearRotationDirRad + "];[Y:" + Math.abs(local4.x - local3.x) + "/" + nearRotationDirRad + "];[Z:" + Math.abs(local4.x - local3.x) + "/" + nearRotationDirRad + "]"; } } }
package projects.tanks.clients.fp10.Prelauncher.makeup { import mx.core.FontAsset; [ExcludeClass] [Embed(source="/_assets/projects.tanks.clients.fp10.Prelauncher.makeup.MakeUp_myriadProBoldFont.ttf", fontName="Embedded Myriad Pro Bold", fontFamily="Myriad Pro", mimeType="application/x-font", fontWeight="bold", fontStyle="normal", unicodeRange="U+0020-007E,U+00A0-017E,U+0192-0192,U+01A0-01A1,U+01AF-01B0,U+01FA-01FF,U+0218-021D,U+0232-0233,U+02C6-02C7,U+02C9-02C9,U+02D8-02DD,U+037E-037E,U+0384-038A,U+038C-038C,U+038E-03A1,U+03A3-03CE,U+0401-040C,U+040E-044F,U+0451-045C,U+045E-045F,U+0490-0491,U+04D9-04D9,U+1E80-1E85,U+1EA0-1EF9,U+2010-2010,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026-2026,U+2030-2030,U+2039-203A,U+2044-2044,U+2070-2070,U+2074-2079,U+207D-207E,U+2080-2089,U+208D-208E,U+20AB-20AC,U+2113-2113,U+2116-2116,U+2122-2122,U+2126-2126,U+212E-212E,U+2202-2202,U+2206-2206,U+220F-220F,U+2211-2212,U+2215-2215,U+2219-221A,U+221E-221E,U+222B-222B,U+2248-2248,U+2260-2260,U+2264-2265,U+25CA-25CA,U+E000-E008,U+E184-E184,U+E300-E309,U+E310-E319,U+E320-E321,U+EFED-EFEE,U+EFF1-EFF3,U+EFF5-EFF5,U+EFF7-EFF7,U+F629-F634,U+F638-F64C,U+F64E-F66C,U+F6AE-F6BD,U+F6C1-F6C3,U+F6C9-F6D8,U+F6DC-F6DC,U+F6DF-F6E8,U+F730-F739,U+FB00-FB04", advancedAntiAliasing="true", embedAsCFF="false" )] public class MakeUp_myriadProBoldFont extends FontAsset { public function MakeUp_myriadProBoldFont() { super(); } } }
package alternativa.tanks.display.usertitle { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.display.usertitle.ProgressBarSkin_hpRightRedCls.png")] public class ProgressBarSkin_hpRightRedCls extends BitmapAsset { public function ProgressBarSkin_hpRightRedCls() { super(); } } }
package controls.scroller.blue { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.scroller.blue.ScrollSkinBlue_trackBottom.png")] public class ScrollSkinBlue_trackBottom extends BitmapAsset { public function ScrollSkinBlue_trackBottom() { super(); } } }
package alternativa.tanks.locale.ru { import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.locale.constants.TextConst; public class Text { public static const GUI_LANG:String = "ru"; public static const GAME_BASE_URL:String = "mytankspay.org"; public static const CHECK_PASSWORD_FORM_RESTORE_LINK_TEXT:String = "<a href=\'event:lost\'><font color=\'#59ff32\'><u>Забыли позывной или пароль?</u></font></a>"; public static const CHECK_PASSWORD_FORM_BUTTON_REGISTRATION_TEXT:String = "Регистрация"; public static const CHECK_PASSWORD_FORM_CALLSIGN:String = "Позывной:"; public static const CHECK_PASSWORD_FORM_PASSWORD:String = "Пароль:"; public static const CHECK_PASSWORD_FORM_REMEMBER:String = "Запомнить"; public static const CHECK_PASSWORD_FORM_PLAY_BUTTON:String = "Играть"; public static const CHECK_PASSWORD_FORM_CAPTCHA:String = "Введите символы, изображённые на картинке:"; public static const ACCOUNT_RECOVERY_FORM_HELP_LABEL_TEXT:String = "Введите Ваш действительный e-mail:"; public static const ACCOUNT_RECOVERY_FORM_BUTTON_CANCEL_TEXT:String = "Отмена"; public static const ACCOUNT_RECOVERY_FORM_BUTTON_RECOVER_TEXT:String = "Восстановить"; public static const ACCOUNT_RECOVERY_FORM_ENTER_CODE:String = "Введите код, который пришёл на Ваш e-mail:"; public static const ACCOUNT_RECOVERY_FORM_ERROR:String = "Произошла ошибка."; public static const ACCOUNT_RECOVERY_FORM_WRONG_CODE:String = "Неверный код подтверждения."; public static const ACCOUNT_RECOVERY_FORM_PASSWORD_CHANGED:String = "Ваш пароль изменён."; public static const ACCOUNT_RECOVERY_FORM_NEW_PASSWORD:String = "Новый пароль:"; public static const ACCOUNT_RECOVERY_FORM_SAVE:String = "Сохранить"; public static const ACCOUNT_RECOVERY_FORM_CANCEL:String = "Отмена"; public static const REGISTER_FORM_HEADER_TEXT:String = "Вам не надо регистрироваться,\nесли у Вас есть аккаунт MyTanks"; public static const REGISTER_FORM_CALLSIGN_INPUT_LABEL_TEXT:String = "Позывной:"; public static const REGISTER_FORM_PASSWORD_INPUT_LABEL_TEXT:String = "Пароль:"; public static const REGISTER_FORM_REPEAT_PASSWORD_INPUT_LABEL_TEXT:String = "Повтор:"; public static const REGISTER_FORM_REMEMBER_ME_CHECKBOX_LABEL_TEXT:String = "Запомнить"; public static const REGISTER_FORM_AGREEMENT_NOTE_TEXT:String = "Я согласен с " + "<a href=\'event:rules\'><font color=\'#59ff32\'><u>Правилами</u></font></a> " + "и <a href=\'event:terms\'><font color=\'#59ff32\'><u>Условиями</u></font></a>"; public static const REGISTER_FORM_AGREEMENT_CHECKBOX_LABEL_TEXT:String = "Согласен"; public static const REGISTER_FORM_BUTTON_LOGIN_TEXT:String = "Есть аккаунт"; public static const REGISTER_FORM_BUTTON_PLAY_TEXT:String = "Играть"; public static const REGISTER_FORM_EMAIL_NOTE_TEXT:String = "Вы можете ввести e-mail для возможности восстановления"; public static const REGISTER_FORM_EMAIL_LABEL_TEXT:String = "E-mail:"; public static const REGISTER_FORM_CONFIRM_TEXT:String = "Вы должны подтвердить адрес e-mail, проверьте Ваш ящик"; public static const REGISTER_FORM_SEND_NEWS_TEXT:String = "Получать игровые новости"; public static const GARAGE_INFO_PANEL_BUTTON_BUY_TEXT:String = "Купить"; public static const GARAGE_INFO_PANEL_BUTTON_EQUIP_TEXT:String = "Установить"; public static const GARAGE_INFO_PANEL_BUTTON_UPGRADE_TEXT:String = "Улучшить"; public static const GARAGE_INFO_PANEL_BUTTON_OPEN_TEXT:String = "Открыть"; public static const GARAGE_INFO_PANEL_BUTTON_ADD_CRYSTALS_TEXT:String = "Пополнить"; public static const GARAGE_INFO_PANEL_DISTANCE_UNIT_TEXT:String = "m"; public static const GARAGE_INFO_PANEL_SPEED_UNIT_TEXT:String = "m/sec"; public static const GARAGE_INFO_PANEL_ANGLE_UNIT_TEXT:String = "grad"; public static const GARAGE_INFO_PANEL_TURN_SPEED_UNIT_TEXT:String = "grad/sec"; public static const GARAGE_INFO_PANEL_CRITICAL_CHANCE_UNIT_TEXT:String = "%"; public static const GARAGE_INFO_PANEL_HEATING_TIME_UNIT_TEXT:String = "sec"; public static const GARAGE_INFO_PANEL_HEALTH_UNIT_TEXT:String = "hp"; public static const GARAGE_INFO_PANEL_DAMAGE_SPEED_UNIT_TEXT:String = "hp/sec"; public static const GARAGE_INFO_PANEL_POWER_UNIT_TEXT:String = "ep"; public static const GARAGE_INFO_PANEL_RATE_OF_FIRE_UNIT_TEXT:String = "shot/min"; public static const GARAGE_INFO_PANEL_RESOURCE_UNIT_TEXT:String = "rp"; public static const GARAGE_INFO_PANEL_RESOURCE_TIME_WEAR_UNIT_TEXT:String = "rp/min"; public static const GARAGE_INFO_PANEL_RESOURCE_SHOT_WEAR_UNIT_TEXT:String = "rp/shot"; public static const GARAGE_INFO_PANEL_RESOURCE_SHOT_TIME_WEAR_UNIT_TEXT:String = "rp/sec"; public static const GARAGE_INFO_PANEL_UPGRADE_BUTTON_COST_LABEL_TEXT:String = "Улучшить за %1"; public static const GARAGE_INFO_PANEL_UPGRADE_BUTTON_INSUFFICIENT_RANK_LABEL_TEXT:String = "Для улучшения нужен ранг:"; public static const GARAGE_INFO_PANEL_UPGRADE_BUTTON_INSUFFICIENT_CRYSTALS_LABEL_TEXT:String = "Для улучшения нужны кристаллы: %1"; public static const GARAGE_INFO_PANEL_SKIN_BUTTON_MOUNT_COMMON:String = "Выключить HD"; public static const GARAGE_INFO_PANEL_SKIN_BUTTON_MOUNT_HD:String = "Включить HD"; public static const GARAGE_INFO_PANEL_SKIN_BUTTON_BUY_HD:String = "Купить HD"; public static const GARAGE_INFO_PANEL_RENEWAL_BUTTON_CURRENCY_LABEL:String = " ¤"; public static const GARAGE_BUY_BUTTON_RANK_LABEL:String = "Ранг"; public static const GARAGE_CONFIRM_ALERT_CONFIRM_BUTTON_TEXT:String = "Да"; public static const GARAGE_CONFIRM_ALERT_CANCEL_BUTTON_TEXT:String = "Нет"; public static const GARAGE_CONFIRM_ALERT_COST_PREFIX:String = "за"; public static const GARAGE_CONFIRM_ALERT_BUY_QEUSTION_TEXT:String = "Вы подтверждаете покупку?"; public static const GARAGE_CONFIRM_ALERT_UPGRADE_QEUSTION_TEXT:String = "Вы подтверждаете улучшение?"; public static const GARAGE_CONFIRM_ALERT_NOT_ENOUGH_CRYSTALS:String = "Недостаточно кристаллов."; public static const MAIN_PANEL_RATING_LABEL:String = "Рейтинг: #"; public static const MAIN_PANEL_BUTTON_BATTLES:String = "Битвы"; public static const MAIN_PANEL_BUTTON_GARAGE:String = "Гараж"; public static const MAIN_PANEL_BUTTON_HALL:String = "Зал славы"; public static const MAIN_PANEL_BUTTON_RATING:String = "Профиль"; public static const MAIN_PANEL_BUTTON_CHALLENGE:String = "Задания"; public static const MAIN_PANEL_BUTTON_SHOP:String = "Магазин"; public static const CHAT_PANEL_BUTTON_SEND:String = "Сказать"; public static const CHAT_PANEL_COMMAND_BLOCK:String = "Игрок %1 добавлен в игнор"; public static const CHAT_PANEL_COMMAND_UNBLOCK:String = "Игрок %1 исключен из игнора"; public static const CHAT_PANEL_COMMAND_UNBLOCK_ALL:String = "Игнор лист очищен"; public static const CHAT_PANEL_COMMAND_BLOCK_LIST:String = "Игнор лист:"; public static const BATTLELIST_PANEL_BUTTON_CREATE:String = "Создать"; public static const BATTLE_CREATE_PANEL_MAP_NAME_LABEL:String = "Имя:"; public static const BATTLE_CREATE_PANEL_MAP_TYPE_LABEL:String = "Карта:"; public static const BATTLE_CREATE_PANEL_MAP_THEME_LABEL:String = "Тема:"; public static const BATTLE_CREATE_PANEL_BUTTON_DEATHMATCH:String = "Каждый\nза себя "; public static const BATTLE_CREATE_PANEL_BUTTON_TEAM_DEATHMATCH:String = "Команда\nна команду"; public static const BATTLE_CREATE_PANEL_BUTTON_CAPTURE_THE_FLAG:String = "Захват\nфлага"; public static const BATTLE_CREATE_PANEL_BUTTON_START:String = "Запустить"; public static const BATTLE_CREATE_PANEL_STEPPER_MAX_PLAYERS:String = "Max игроков"; public static const BATTLE_CREATE_PANEL_STEPPER_MAX_TEAM_SIZE:String = "Max команды"; public static const BATTLE_CREATE_PANEL_STEPPER_TIME_LIMIT:String = "Время"; public static const BATTLE_CREATE_PANEL_STEPPER_KILLS_LIMIT:String = "Уничтожений"; public static const BATTLE_CREATE_PANEL_STEPPER_FLAG_LIMIT:String = "Флаги"; public static const BATTLE_CREATE_PANEL_CHECKBOX_AUTOBALANCE:String = "Автобаланс"; public static const BATTLE_CREATE_PANEL_CHECKBOX_FRIENDLY_FIRE:String = "Огонь по своим"; public static const BATTLE_CREATE_PANEL_CHECKBOX_PRIVATE_BATTLE:String = "Закрытая битва"; public static const BATTLE_CREATE_PANEL_CHECKBOX_PAY_BATTLE:String = "Без припасов"; public static const BATTLE_CREATE_PANEL_CHECKBOX_HR_MODE:String = "ХР режим"; public static const BATTLE_CREATE_PANEL_CHECKBOX_BONUS_BATTLE:String = "Бонусы"; public static const BATTLE_CREATE_PANEL_LABEL_COST_BATTLE:String = "Стоимость входа"; public static const BATTLE_CREATE_PANEL_LABEL_NO_SUBSCRIBE_BATTLE:String = "Чтобы принять участие в битве без припасов, необходимо купить абонемент на месяц или внести разовый платёж за одну игру в размере 5 кристаллов."; public static const BATTLE_CREATE_PANEL_FLOOD_ALERT_TEXT:String = "Вы можете создавать не более трех битв в течении 5 минут."; public static const BATTLEINFO_PANEL_BUTTON_PLAY:String = "Играть"; public static const BATTLEINFO_PANEL_COPY_LINK_TEXT:String = "Скопировать ссылку"; public static const BATTLEINFO_PANEL_NONAME_TEXT:String = "Пусто"; public static const BATTLEINFO_PANEL_PAID_BATTLES_ALERT_TEXT:String = "Вы входите в битву, где нельзя активировать\nимеющиеся у вас расходники. Эта битва платная."; public static const BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER:String = "Войти"; public static const BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_DONT_ENTER:String = "Не входить"; public static const REFERAL_WINDOW_INFO_TEXT:String = "Пригласи в игру друга и получай кристаллы за каждое его звание и 10% от внесённых им реальных денег.\n\nЕсть три варианта приглашений:\n - вручную ввести E-mail адреса друзей, чтобы мы послали им письма\n со специальной ссылкой;\n - разослать друзьям специальную ссылку самостоятельно;\n - разместить прикольный баннер на твоём сайте или форуме.\n\n <u><a href=\'%1\' target=\'_blank\'>Таблица званий и бонусов.</a></u>"; public static const REFERAL_WINDOW_COPY_LINK_LABEL_TEXT:String = "Скопируйте ссылку и перешлите своим друзьям"; public static const REFERAL_WINDOW_COPY_BANNER_LABEL_TEXT:String = "Скопируйте код баннера и вставьте его на сайт или в блог"; public static const REFERAL_WINDOW_EMAIL_LABEL_TEXT:String = "E-mail друзей:\n<font size=\'-2\'>(через запятую)</font>"; public static const REFERAL_WINDOW_LETTER_LABEL_TEXT:String = "Текст письма:\n<font size=\'-2\'>(нельзя изменить)</font>"; public static const REFERAL_WINDOW_LETTER_TEXT:String = "Привет!\n\nТвой друг %1 приглашает тебя в игру \"MyTanks Online\".\n %2 \n\nПрими участие в бешенных танковых боях - тренируй реакцию и меткость, круши вражеские танки и помогай своей команде!\nИгра проста и понятна, разобраться в управлении танком может даже первоклассник. Есть несколько режимов: можно сражаться как в одиночку, убивая все, что движется на гусеницах, так и в составе команды, прикрывая друг друга и используя коллективную тактику. Команды так же могут вести битвы за флаги: каждая из команд пытается унести флаг из вражеского тыла на собственную базу.\n\nНа поле боя нет места искусственному интелекту - все игроки реальные люди. Сегодня, они так же как и ты зашли в игру встретиться с друзьями и порвать вражеские команды на куски.\n\nДоступный в игре боевой арсенал приятно тебя удивит. Начав карьеру на рекрутовском дизельном танке с бронебойной пушкой, можно дослужится до маршала, получив возможность использовать в бою такие грозные компоненты как корпуса с активной защитой и новейшие пушки, использующие нанороботов для превращения врага в пыль.\n\nВсе это - первая трехмерная многопользовательская Flash-игра!\nДля того, чтобы начать - нужно просто зайти на сайт! Ничего скачивать и устанавливать не нужно.\n\nНачни прямо сейчас!"; public static const REFERAL_WINDOW_BUTTON_GET_LINK_TEXT:String = "Получить\nссылку"; public static const REFERAL_WINDOW_BUTTON_GET_BANNER_TEXT:String = "Получить код\nбаннера"; public static const REFERAL_WINDOW_BUTTON_INVITE_BY_EMAIL_TEXT:String = "Разослать\nписьма"; public static const REFERAL_WINDOW_BUTTON_COPY_LINK_TEXT:String = "Скопировать ссылку в буфер обмена"; public static const REFERAL_WINDOW_BUTTON_COPY_BANNER_TEXT:String = "Скопировать код в буфер обмена"; public static const REFERAL_WINDOW_BUTTON_SEND_TEXT:String = "Отправить"; public static const REFERAL_WINDOW_BUTTON_CLOSE_TEXT:String = "Закрыть"; public static const REFERAL_WINDOW_BUTTON_STATISTICS_TEXT:String = "Статистика по приглашениям"; public static const REFERAL_WINDOW_COUNT_LABEL:String = "Всего зарегистрировалось:"; public static const REFERAL_WINDOW_SUMMARY_LABEL:String = "Суммарный бонус:"; public static const INVITATION_HAS_BEEN_SENT_ALERT_TEXT:String = "Приглашение успешно отправлено."; public static const INVITATION_HAS_NOT_BEEN_SENT_ALERT_TEXT:String = "Не удалось отправить приглашение."; public static const INVITATION_SUBJECT_TEXT:String = "Приглашение в MyTanks"; public static const REFERAL_WINDOW_ADDRESS_NOT_VALID_ALERT_TEXT:String = "Адрес %1 не действителен."; public static const REFERAL_WINDOW_ADDRESSES_NOT_VALID_ALERT_TEXT:String = "Адреса %1 не действительны."; public static const INVITATION_SENDER_NAME_LABEL_TEXT:String = "Ваше имя:\n<font size=\'-2\'>(можно изменить)</font>"; public static const REFERAL_STATISTICS_HEADER_CALLSIGN:String = "Друг"; public static const REFERAL_STATISTICS_HEADER_INCOME:String = "Кристаллы"; public static const REFERAL_WINDOW_LINK_DESCRIPTION:String = "Эту ссылку можно отправить друзьям через ICQ, Skype или другое средство связи. Имейте ввиду, что модераторы форумов обычно чистят подобные ссылки, справедливо считая их реферральными."; public static const REFERAL_WINDOW_BANNER_DESCRIPTION:String = "Ты можешь разместить этот баннер у себя в блоге, на форуме или в любом другом месте, где полностью поддерживается HTML. Размер баннера - 468 х 120 пикселей, вес - около 100 Кб."; public static const REFERAL_WINDOW_MAIL_DESCRIPTION:String = "Отправь письма с приглашениями в игру своим друзьям. За один раз можно указать не более трех e-mail. Рассылать письма можно не чаще одного раза за десять секунд."; public static const RATING_WINDOW_TEXT:String = "НЕДЕЛЬНЫЙ РЕЙТИНГ"; public static const RATING_GOLDS_TEXT:String = "Рейтинг по голдам"; public static const RATING_CRYSTALLS_TEXT:String = "Рейтинг по кристаллам"; public static const RATING_SCORES_TEXT:String = "Рейтинг по опыту"; public static const RATING_CLOSE_BUTTON_TEXT:String = "Закрыть"; public static const RATING_SEARCH_FIELD_TEXT:String = "Найти в списке..."; public static const RATING_NAME_TEXT:String = "Имя"; public static const RATING_COUNT_TEXT:String = "Количество"; public static const LOBBY_CHAT_BUTTON:String = "Чат"; public static const LOBBY_NEWS_BUTTON:String = "Новости"; public static const ALERT_QUIT_TEXT:String = "Выйти из игры?"; public static const ALERT_EMAIL_CONFIRMED:String = "Адрес подтвержден"; public static const ALERT_RECOVERY_LINK_SENDED:String = "Что дальше? На ваш почтовый ящик отправлено письмо со ссылкой.\nНажав её, вы попадёте в игру без ввода пароля."; public static const ALERT_GARAGE_AVAILABLE:String = "Теперь вы можете делать покупки в гараже."; public static const ALERT_CHAT_PROCEED_EXTERNAL_LINK:String = "Вы собираетесь перейти по ссылке, не связанной с игрой «MyTanks».\nАдминистрация проекта не несёт ответственности за содержимое сторонних сайтов\nи настоятельно рекомендует не указывать на них какие-либо данные,\nотносящиеся к вашей учетной записи в игре - e-mail, логин, пароль и прочие.\nКроме того, посторонний ресурс может оказаться источником вирусов и вредоносных программ,\nугрожающих конфиденциальности ваших данных и безопасности аккаунта в «Танках Онлайн».\nЕсли вы передумали переходить по ссылке, нажмите «Отмена»."; public static const ERROR_FATAL:String = "Произошла критическая ошибка"; public static const ERROR_FATAL_DEBUG:String = "Произошла критическая ошибка"; public static const ERROR_CALLSIGN_WRONG_FIRST_SYMBOL:String = "1-й символ позывного должен быть буквой или цифрой"; public static const ERROR_CALLSIGN_NOT_SINGLE_DEVIDERS:String = "Позывной не должен содержать несколько символов \".\" или \"_\" или \"-\" подряд"; public static const ERROR_CALLSIGN_WRONG_LAST_SYMBOL:String = "Последний символ позывного должен быть буквой или цифрой"; public static const ERROR_CALLSIGN_LENGTH:String = "Позывной должен содержать больше одного символа "; public static const ERROR_CALLSIGN_NOT_UNIQUE:String = "Такой позывной уже есть"; public static const ERROR_EMAIL_NOT_UNIQUE:String = "E-mail не уникален"; public static const ERROR_EMAIL_INVALID:String = "E-mail неверный"; public static const ERROR_EMAIL_NOT_FOUND:String = "Такой email не зарегистрирован.\nВозможно, вы регистрировали другой."; public static const ERROR_EMAIL_NOT_SENDED:String = "Письмо не отправлено"; public static const ERROR_PASSWORD_INCORRECT:String = "Пароль неверный"; public static const ERROR_PASSWORD_LENGTH:String = "Пароль должен содержать больше одного символа"; public static const ERROR_PASSWORD_CHANGE:String = "Невозможно сменить пароль"; public static const ERROR_ACCOUNT_BAN:String = "Аккаунт забанен."; public static const ERROR_WRONG_CAPTCHA:String = "Контрольные символы введены неверно"; public static const ALERT_CONFIRM_BATTLE_EXIT:String = "Выйти из битвы?"; public static const ALERT_CONFIRM_REMOVE_FRIEND:String = "Удалить игрока из списка?"; public static const ALERT_ANSWER_YES:String = "Да"; public static const ALERT_ANSWER_NO:String = "Нет"; public static const ALERT_ANSWER_OK:String = "ОК"; public static const ALERT_ANSWER_CANCEL:String = "Отмена"; public static const ALERT_ANSWER_SEND_BUG_REPORT:String = "Отправить баг-репорт и вернуться в битву"; public static const ALERT_ANSWER_RETURN_TO_BATTLE:String = "Вернуться в битву"; public static const ALERT_ANSWER_GO_TO_GARAGE:String = "Перейти в гараж"; public static const ALERT_ANSWER_PROCEED:String = "Перейти"; public static const SERVER_STOP_ALERT_TEXT:String = "ОБНОВЛЕНИЕ СЕРВЕРА!\n\nСервер будет остановлен через %1 сек."; public static const REDIRECT_ALERT_TEXT:String = "РЕСТАРТ СЕРВЕРА!\n\nВы будете подключены к одному из работающих серверов через %1 сек."; public static const FOCUS_WARNIG_TEXT:String = "Кликни для продолжения"; public static const STATISTICS_SEARCH_LABEL_TEXT:String = "Поиск:"; public static const STATISTICS_HEADER_NUMBER:String = "#"; public static const STATISTICS_HEADER_RANK:String = "Ранг"; public static const STATISTICS_HEADER_CALLSIGN:String = "Позывной"; public static const STATISTICS_HEADER_ACHIVIMENTS:String = "Достижения"; public static const STATISTICS_HEADER_SCORE:String = "Очки"; public static const STATISTICS_HEADER_KILLS:String = "Уничтожил"; public static const STATISTICS_HEADER_DEATHS:String = "Подбит"; public static const STATISTICS_HEADER_RATIO:String = "У/П"; public static const STATISTICS_HEADER_WEALTH:String = "Богатство"; public static const STATISTICS_HEADER_RATING:String = "Рейтинг"; public static const STATISTICS_HEADER_COLUMN_WIDTH:String = "0,45,190,345,50,100,150,190,265"; public static const BUG_REPORT_SEND_SCREEN_SHOT_CHECKBOX_LABEL_TEXT:String = "Отправить скриншот"; public static const BUG_REPORT_SUMMARY_LABEL_TEXT:String = "Суть:"; public static const BUG_REPORT_DESCRIPTION_LABEL_TEXT:String = "Описание:"; public static const BUG_REPORT_BUTTON_CANCEL_TEXT:String = "Отмена"; public static const BUG_REPORT_BUTTON_SEND_TEXT:String = "Отправить"; public static const BUG_REPORT_HAS_BEEN_SENT_ALERT_TEXT:String = "Сообщение об ошибке успешно отправлено"; public static const BUG_REPORT_SUMMARY_SUBJECTS:Array = ["[0021] Другое","[0001] Деньги ушли, кристаллы не начислены","[0002] Оскорбление в игре","[0003] Нарушитель правил игры","[0004] Прокачка","[0006] Я пригласил друга, а число друзей не изменилось","[0007] Мои достижения, ранг и кристаллы стали нулевыми","[0008] У меня снизились заработанные очки","[0009] Улучшение из гаража пропало","[0010] Я купил вещь, а она не появилась у меня в гараже","[0011] Мой танк не убиваемый","[0012] Танк противника не убиваемый","[0013] Танк противника невидим","[0014] Connection closed","[0015] Выкидывает из боя","[0016] Умер, а респауна нет","[0019] Критическая ошибка"]; public static const BUG_REPORT_NOT_TESTER_ALERT_TEXT:String = "Вы не можете отправить баг-репорт. Посылка баг-репорта разрешена\nтолько участникам тестовой группы. Если у вас проблема с платежом,\nто в каждом из подразделов платёжного раздела есть кнопка \"" + Text.PAYMENT_BUTTON_SEND_BUG_REPORT_TEXT + "\".\nО решении всех остальных проблем вы можете почитать на форуме."; public static const BUG_REPORT_NOT_TESTER_ALERT_BUTTON_TO_PAYMENT_TEXT:String = "Перейти в платёжный раздел"; public static const BUG_REPORT_NOT_TESTER_ALERT_TO_FORUM_TEXT:String = "Перейти на форум"; public static const SETTINGS_SOUND_VOLUME_LABEL_TEXT:String = "Громкость:"; public static const SETTINGS_BACKGROUND_SOUND_CHECKBOX_LABEL_TEXT:String = "Фоновый звук"; public static const SETTINGS_PERFORMANCE_HEADER_LABEL_TEXT:String = "Отображение"; public static const SETTINGS_SHOW_FPS_CHECKBOX_LABEL_TEXT:String = "Показывать FPS"; public static const SETTINGS_ENABLE_ADAPTIVE_FPS_CHECKBOX_LABEL_TEXT:String = "Адаптивный FPS"; public static const SETTINGS_SHOW_SKYBOX_CHECKBOX_LABEL_TEXT:String = "Показывать небо"; public static const SETTINGS_SHOW_BATTLE_CHAT_CHECKBOX_LABEL_TEXT:String = "Показывать боевой чат"; public static const SETTINGS_USE_NEW_LOADER_CHECKBOX_LABEL_TEXT:String = "Использовать новый\nзагрузчик"; public static const SETTINGS_FOG_CHECKBOX_LABEL_TEXT:String = "Туман"; public static const SETTINGS_SOFT_PARTICLES_CHECKBOX_LABEL_TEXT:String = "Мягкие частицы"; public static const SETTINGS_TANK_SHADOWS_CHECKBOX_LABEL_TEXT:String = "Тени под танком"; public static const SETTINGS_DUST_CHECKBOX_LABEL_TEXT:String = "Пыль под танками"; public static const SETTINGS_DYNAMIC_SHADOWS_CHECKBOX_LABEL_TEXT:String = "Динамические тени"; public static const SETTINGS_DYNAMIC_LIGHTS_CHECKBOX_LABEL_TEXT:String = "Освещение"; public static const SETTINGS_TRACKS_CHECKBOX_LABEL_TEXT:String = "Анимированные гусеницы"; public static const SETTINGS_DAMAGE_CHECKBOX_LABEL_TEXT:String = "Вылетающий урон"; public static const SETTINGS_OLD_TEXTURES_LABEL_TEXT:String = "Старые текстуры"; public static const SETTINGS_MIPMAPPING_LABEL_TEXT:String = "Использовать мип-маппинг"; public static const SETTINGS_COLORED_FPS:String = "Цветной индикатор FPS"; public static const SETTINGS_ACCOUNT_HEADER_LABEL_TEXT:String = "Аккаунт"; public static const SETTINGS_NEW_PASSWORD_LABEL_TEXT:String = "Новый пароль:"; public static const SETTINGS_REENTER_PASSWORD_LABEL_TEXT:String = "Повтор:"; public static const SETTINGS_EMAIL_LABEL_TEXT:String = "E-mail:"; public static const SETTINGS_BUTTON_RESEND_CONFIRMATION_TEXT:String = "Подтвердить"; public static const SETTINGS_CONTROL_HEADER_LABEL_TEXT:String = "Управление"; public static const SETTINGS_INVERSE_TURN_CONTROL_CHECKBOX_LABEL_TEXT:String = "Инверсное управление при движении назад"; public static const SETTINGS_SEND_NEWS_CHECKBOX_LABEL_TEXT:String = "Отправлять новости"; public static const REGISTER_FORM_BUBBLE_PASSWORD_SIMPLE:String = "Пароль слишком простой"; public static const REGISTER_FORM_BUBBLE_PASSWORD_MISMATCH:String = "Пароли не совпадают"; public static const REGISTER_FORM_BUBBLE_LOGIN_WRONG:String = "Неверное имя"; public static const SETTINGS_BUTTON_CANCEL_TEXT:String = "Отмена"; public static const SETTINGS_BUTTON_SAVE_TEXT:String = "Сохранить"; public static const SETTINGS_BUTTON_CHANGE_PASSWORD_TEXT:String = "Изменить пароль и e-mail"; public static const SETTINGS_CHANGE_PASSWORD_CONFIRMATION_SENT_TEXT:String = "Письмо с инструкциями отправлено на ваш почтовый ящик"; public static const SETTINGS_CHANGE_PASSWORD_WRONG_LINK_TEXT:String = "Ссылка для изменения пароля - некорректна. Повторите попытку."; public static const PAYMENT_MAININFO_LABEL_TEXT:String = "Здесь Вы можете купить кристаллы, чтобы использовать их в Гараже для покупки нужных вам вещей. Выберите удобный для вас способ оплаты."; public static const PAYMENT_COMMON_NAME:String = "Имя: "; public static const PAYMENT_COMMON_LANGUAGE:String = "Язык: "; public static const PAYMENT_COMMON_DATE:String = "Дата: "; public static const PAYMENT_COMMON_SYSTEM:String = "Система: "; public static const PAYMENT_COMMON_TRANSACTION:String = "Платеж: "; public static const PAYMENT_COMMON_COMMENT:String = "Комментарий: "; public static const PAYMENT_SMS_NAME_TEXT:String = "SMS"; public static const PAYMENT_QIWI_NAME_TEXT:String = "Qiwi"; public static const PAYMENT_YANDEX_MONEY_NAME_TEXT:String = "Яндекс.Деньги"; public static const PAYMENT_VISA_NAME_TEXT:String = "VISA"; public static const PAYMENT_PREPAID_NAME_TEXT:String = "Карты предоплаты"; public static const PAYMENT_WEBMONEY_NAME_TEXT:String = "WebMoney"; public static const PAYMENT_EASYPAY_NAME_TEXT:String = "EasyPay"; public static const PAYMENT_RBK_NAME_TEXT:String = "RBK"; public static const PAYMENT_MONEYMAIL_NAME_TEXT:String = "Moneymail"; public static const PAYMENT_WEBCREDS_NAME_TEXT:String = "WebCreds"; public static const PAYMENT_PAYPAL_NAME_TEXT:String = "PayPal"; public static const PAYMENT_TERMINAL_NAME_TEXT:String = "Платёжные терминалы"; public static const PAYMENT_SMS_REQUEST_TEXT:String = "Текст SMS: "; public static const PAYMENT_CARD_TYPE:String = "Тип карты: "; public static const PAYMENT_CARD_CODE:String = "Последние цифры: "; public static const PAYMENT_CARD_NAME:String = "Имя и Фамилия: "; public static const PAYMENT_CARD_PHONE_NUMBER:String = "Номер телефона: "; public static const PAYMENT_YANDEX_MONEY_NUMBER:String = "№ кошелька: "; public static const PAYMENT_SMS_DESCRIPTION_TEXT:String = "Выберите страну и вашего оператора мобильной связи. Выберите желаемое количество кристаллов, и отправьте SMS с указанным текстом на соответствующей номер. В случае отсутствия проблем связи кристаллы зачисляются в течение нескольких секунд.\n\nВнимание! Согласно правилам работы SMS-сервиса у нас действуют антифродовые ограничения. Чтобы избежать потери Ваших платежей, пожалуйста, соблюдайте следующие правила:\n\n1. Не отправляйте SMS на сумму более чем 400 руб/час.\n\n2. Не отправляйте на один ник игрока более 3-х SMS с одного и того же номера в течение часа.\n\nВсе цены приведены без учёта налогов.\n\n<font color=\'#ff4e00\'>Убедитесь в согласии того, кто оплачивает счёт!</font>"; public static const PAYMENT_QIWI_DESCRIPTION_TEXT:String = "Выберите желаемое количество кристаллов, и нажмите \"" + Text.PAYMENT_BUTTON_PROCEED_TEXT + "\". На сайте платёжной системы используйте свой лицевой счёт для оплаты по выставленному счёту.\n\nТеперь возможна покупка кристаллов через терминалы QIWI, для чего нужно помнить лишь игровой ник.\nНикаких идентификаторов и агрегаторов.\n\nВ терминале QIWI выберите раздел \"Оплата услуг\", \"Другие услуги\", \"Игры\", \"MyTanks Online\", введите свой игровой ник (с учётом заглавных и строчных букв), внесите желаемую сумму и нажмите \"Оплатить\"."; public static const PAYMENT_YANDEX_MONEY_DESCRIPTION_TEXT:String = "Вы попадёте на страничку с параметрами платежа. Вам нужно будет ввести желаемое количество кристаллов и действовать в соответствии с инструкцией указанной там же."; public static const PAYMENT_VISA_DESCRIPTION_TEXT:String = "Выберите платёжную систему, желаемое количество кристаллов и нажмите \"" + Text.PAYMENT_BUTTON_PROCEED_TEXT + "\". На сайте платёжной системы заполните платёжную форму и нажмите \"Оплатить\"."; public static const PAYMENT_PREPAID_DESCRIPTION_TEXT:String = "Предоплаченная карта - удобный способ быстро пополнить свой счёт. Вам нужно приобрести одну из поддерживаемых игрой предоплаченных карт, зайти в этот раздел, указать тип карты и нажать «Далее». На открывшейся странице необходимо ввести содержащийся на карте код. После этого вы получите кристаллы на сумму, указанную на карте."; public static const PAYMENT_WEBMONEY_DESCRIPTION_TEXT:String = "Вы попадёте на страничку с параметрами платежа. Вам нужно будет ввести желаемое количество кристаллов, выбрать тип валюты и действовать в соответствии с инструкцией указанной там же."; public static const PAYMENT_EASYPAY_DESCRIPTION_TEXT:String = "Выберите количество кристаллов, нажмите \"" + Text.PAYMENT_BUTTON_PROCEED_TEXT + "\". На сайте платёжной системы используйте свой лицевой счёт для оплаты по выставленному счёту."; public static const PAYMENT_RBK_DESCRIPTION_TEXT:String = "Выберите количество кристаллов, нажмите \"" + Text.PAYMENT_BUTTON_PROCEED_TEXT + "\". На сайте платёжной системы используйте платёжную форму для оплаты по выставленному счёту."; public static const PAYMENT_MONEYMAIL_DESCRIPTION_TEXT:String = "Выберите количество кристаллов, нажмите \"" + Text.PAYMENT_BUTTON_PROCEED_TEXT + "\". На сайте платёжной системы используйте платёжную форму для оплаты по выставленному счёту."; public static const PAYMENT_WEBCREDS_DESCRIPTION_TEXT:String = "Выберите количество кристаллов, нажмите \"" + Text.PAYMENT_BUTTON_PROCEED_TEXT + "\". На сайте платёжной системы используйте платёжную форму для оплаты по выставленному счёту."; public static const PAYMENT_PAYPAL_DESCRIPTION_TEXT:String = "Комиссия системы составляет 7,5% для платежей больше 15 USD. Комиссия на платежи меньше 15 USD составляет 7,5% + 0.4 USD. Первый платёж может прийти с задержкой до 24 часов."; public static const PAYMENT_TERMINAL_DESCRIPTION_TEXT:String = "Выберите страну и нажмите Далее. Вы попадёте на страничку с параметрами платежа. Вам нужно будет ввести желаемое количество кристаллов и действовать в соответствии с инструкцией указанной там же." + "\n\nТеперь возможна покупка кристаллов через терминалы QIWI, для чего нужно помнить лишь игровой ник.\nНикаких идентификаторов и агрегаторов.\n\nВ терминале QIWI выберите раздел \"Оплата услуг\", \"Другие услуги\", \"Игры\", \"MyTanks Online\", введите свой игровой ник (с учётом заглавных и строчных букв), внесите желаемую сумму и нажмите \"Оплатить\"."; public static const PAYMENT_WMCOMBO_LABEL_TEXT:String = "Тип:"; public static const PAYMENT_OPERATORS_LABEL_TEXT:String = "Оператор:"; public static const PAYMENT_COUNTRIES_LABEL_TEXT:String = "Страна:"; public static const PAYMENT_SMSTEXT_HEADER_LABEL_TEXT:String = "Текст:"; public static const PAYMENT_SMSNUMBERS_NUMBER_HEADER_LABEL_TEXT:String = "Номер"; public static const PAYMENT_SMSNUMBERS_COST_HEADER_LABEL_TEXT:String = "Цена"; public static const PAYMENT_SMSNUMBERS_SMSTEXT_HEADER_LABEL_TEXT:String = "Текст SMS"; public static const PAYMENT_TERMINAL_COUNTRIES_LABEL_TEXT:String = "Страна:"; public static const PAYMENT_BUTTON_PROCEED_TEXT:String = "Далее"; public static const PAYMENT_NOT_AVAILABLE_ALERT_TEXT:String = "Извините, раздел платежей сейчас недоступен. Пожалуйста, попробуйте зайти позже."; public static const PAYMENT_BUG_REPORT_INFO:String = "Если ваш платёж не дошел или возникла проблема — сообщите нам об этом."; public static const PAYMENT_BUTTON_SEND_BUG_REPORT_TEXT:String = "Сообщить"; public static const PAYMENT_BUG_REPORT_CALLSIGN_INPUT_LABEL_TEXT:String = "Позывной:"; public static const PAYMENT_BUG_REPORT_DATE_INPUT_LABEL_TEXT:String = "Дата платежа:"; public static const PAYMENT_BUG_REPORT_PAYMENT_INPUT_LABEL_TEXT:String = "Оплачено\nкристаллов:"; public static const PAYMENT_BUG_REPORT_PAYMENT_SYSTEM_COMBO_LABEL_TEXT:String = "Платежная\nсистема:"; public static const PAYMENT_BUG_REPORT_OTHER_PAYMENT_SYSTEM_NAME_TEXT:String = "Другая"; public static const PAYMENT_BUG_REPORT_SMS_TEXT_INPUT_LABEL_TEXT:String = "Текст SMS:"; public static const PAYMENT_BUG_REPORT_CARD_TYPE_LABEL_TEXT:String = "Тип карты:"; public static const PAYMENT_BUG_REPORT_MASTERCARD_NAME_TEXT:String = "MasterCard"; public static const PAYMENT_BUG_REPORT_NAME_AND_LASTNAME_INPUT_LABEL_TEXT:String = "Имя и\nфамилия:"; public static const PAYMENT_BUG_REPORT_CARD_LAST_FIGURES_INPUT_LABEL_TEXT:String = "Последние 4\nцифры карты"; public static const PAYMENT_BUG_REPORT_PHONE_NUMBER_INPUT_LABEL_TEXT:String = "Номер\nтелефона:"; public static const PAYMENT_BUG_REPORT_PURSE_NUMBER_INPUT_LABEL_TEXT:String = "Номер\nкошелька:"; public static const PAYMENT_BUG_REPORT_EMAIL_INPUT_LABEL_TEXT:String = "E-mail:"; public static const PAYMENT_BUG_REPORT_COMMENT_INPUT_LABEL_TEXT:String = "Коммент:"; public static const HELP_PANEL_RANK_HELPER_TEXT:String = "Это ваш ранг.\nЧем больше уничтожено\nтанков, тем выше ранг."; public static const HELP_PANEL_RANK_HELPER_ARROW_LENGTH:String = "104"; public static const HELP_PANEL_RANK_BAR_HELPER_TEXT:String = "Индикатор ранга.\nУничтожая чужие\nтанки, вы заполняете\nего и получаете более\nвысокий ранг."; public static const HELP_PANEL_RANK_BAR_HELPER_ARROW_LENGTH:String = "24"; public static const HELP_PANEL_RATING_INDICATOR_HELPER_TEXT:String = "Индикатор\nизменения\nрейтинга."; public static const HELP_PANEL_RATING_INDICATOR_HELPER_ARROW_LENGTH:String = "48"; public static const HELP_PANEL_MAIN_MENU_HELPER_TEXT:String = "Главное меню"; public static const HELP_PANEL_MAIN_MENU_HELPER_ARROW_LENGTH:String = "73"; public static const HELP_PANEL_BUTTON_BAR_HELPER_TEXT:String = "Пригласить друга,\nСообщить об ошибке ,\nНастройки, Звук,\nПомощь, Выйти."; public static const HELP_PANEL_BUTTON_BAR_HELPER_ARROW_LENGTH:String = "36"; public static const HELP_PANEL_MONEY_HELPER_TEXT:String = "Покупка кристаллов\nза реальные деньги."; public static const HELP_PANEL_MONEY_HELPER_ARROW_LENGTH:String = "61"; public static const HELP_PANEL_SCORE_HELPER_TEXT:String = "Ваши / Нужно для\nочки следующего\n ранга"; public static const HELP_PANEL_SCORE_HELPER_ARROW_LENGTH:String = "48"; public static const HELP_BATTLE_SELECT_CREATE_MAP_HELPER_TEXT:String = "Вы можете создать\nсвою собственную битву."; public static const HELP_BATTLE_SELECT_CREATE_MAP_HELPER_ARROW_LENGTH:String = "48"; public static const HELP_BATTLE_SELECT_LOCKED_MAP_HELPER_TEXT:String = "Эта битва ещё недоступна вам\nпо рангу. Выберите одну из битв,\nподсвеченных зелёным цветом."; public static const HELP_BATTLE_SELECT_LOCKED_MAP_HELPER_ARROW_LENGTH:String = "48"; public static const HELP_GARAGE_WAREHOUSE_LIST_HELPER_TEXT:String = "Ваши вещи."; public static const HELP_GARAGE_WAREHOUSE_LIST_HELPER_ARROW_LENGTH:String = "48"; public static const HELP_GARAGE_STORE_LIST_HELPER_TEXT:String = "Вещи, которые\nкогда-нибудь\nстанут вашими."; public static const HELP_GARAGE_STORE_LIST_HELPER_ARROW_LENGTH:String = "48"; public static const HELP_FIRST_PURCHASE_HELPER_TEXT:String = "Нажми, чтобы перейти в Гараж\nи сделать свою первую покупку,\nНаграда - 5 кристаллов!"; public static const HELP_FIRST_PURCHASE_HELPER_ARROW_LENGTH:String = "30"; public static const HELP_SET_EMAIL_HELPER_TEXT:String = "Введи свой e-mail\nи получи 5 кристаллов!"; public static const HELP_SET_EMAIL_HELPER_ARROW_LENGTH:String = "30"; public static const HELP_UP_RANK_HELPER_TEXT:String = "Взрывай вражеские танки,чтобы получить\nновое звание. Дорастёшь до Рядового, и награда твоя!"; public static const HELP_UP_RANK_HELPER_ARROW_LENGTH:String = "25"; public static const FREE_BONUSES_WINDOW_MESSAGE_TEXT:String = "Вы только что получили ваш ежедневный бонус. Используйте его мудро, и враг будет повержен. А завтра приходите за новым подарком! "; public static const FREE_BONUSES_WINDOW_MESSAGE_CRYSTALS_TEXT:String = "<b><font size=\'20\'>Вам достались кристаллы (%1)!</font></b>\nОтправляйтесь в гараж и ни в чем себе не отказывайте."; public static const FREE_BONUSES_WINDOW_MESSAGE_NOSUPPLIES_TEXT:String = "<b><font size=\'20\'>Вам достался суточный абонемент «Битвы без припасов».</font></b>\nОн дает право в течение одного дня участвовать в битвах, где запрещено использование припасов. Никаких заранее заготовленных мин, аптечек и ускорений — рассчитывать можно лишь на себя! Да будет жесть!"; public static const FREE_BONUSES_WINDOW_BUTTON_CLOSE_TEXT:String = "Закрыть"; public static const FREE_BONUSES_WINDOW_MESSAGE_DOUBLECRYSTALLS_TEXT:String = "Поздравляем, вам досталась бонусная карта " + "\"Двойной кристалл\"" + ".C ней вам начисляется вдвое больше кристаллов, чем обычно, при покупке их за реальные деньги. Сколько бы кристаллов вы ни купили, получите в подарок ещё столько же Карта действует только 24 часа. Успевайте делать выгодные покупки!"; public static const ACHIEVEMENT_COMPLETE_FIRST_PURCHASE_TEXT:String = "Поздравляем с первой покупкой, танкист! 5 кристаллов твои."; public static const ACHIEVEMENT_COMPLETE_EMAIL_TEXT:String = "E-mail принят, спасибо! 5 кристаллов твои."; public static const CHALLENGES_WINDOW_BUTTON_CHANGE_TEXT:String = "Сменить"; public static const FREE_BONUSES_WINDOW_RUNET_AWARD_TEXT:String = "Благодаря вам проект вышел в третий тур голосования, но пока еще не дотягивает до «народной десятки». Голосование продлится до 25 ноября, голосовать за проект нужно ежедневно! Даешь вдисятку!"; public static const FREE_BONUSES_WINDOW_RUNET_AWARD_BUTTON_1ST_TIME_TEXT:String = "Проголосовать сегодня!"; public static const FREE_BONUSES_WINDOW_RUNET_AWARD_BUTTON_TEXT:String = "Проголосовать %1 раз"; public static const NEWBIES_BONUSES_WINDOW_MESSAGE_TEXT:String = "Поздравляем! Ты получил свой первый ежедневный подарок - недельный абонемент на повышенный опыт. С ним ты будешь зарабатывать звания быстрее, а значит, быстрее получишь доступ к новым пушкам и корпусам.\n\nИ не забудь зайти в игру завтра - тебя ждёт новый подарок! "; public static const NEWBIES_BONUSES_NEW_RANK_WINDOW_MESSAGE_TEXT:String = "Новобранец, тебе присмаивается новое звание - Рядовой!\nПринимай поздравления и заслуженную награду - 5 кристаллов."; public static const COUNTRIES_ARMENIA_NAME:String = "Армения"; public static const COUNTRIES_KAZAKHSTAN_NAME:String = "Казахстан"; public static const COUNTRIES_RUSSIA_NAME:String = "Россия"; public static const COUNTRIES_UKRAINE_NAME:String = "Украина"; public static const SERVER_IS_RESTARTING_LOGIN_TEXT:String = "В данный момент происходит рестарт сервера.\nВход на сервер временно закрыт."; public static const SERVER_IS_RESTARTING_CREATE_BATTLE_TEXT:String = "В данный момент происходит рестарт сервера.\nСоздание и подключение к битвам временно заблокированно."; public static const GIFT_WINDOW_OPEN:String = "Открыть подарок"; public static const GIFT_WINDOW_CLOSE:String = "Закрыть"; public static const GIFT_WINDOW_OPENED:String = "Открыто: "; public static const GIFT_WINDOW_LEFTED:String = "Осталось: "; public static const GIFT_WINDOW_INFO:String = "За предмет, который уже есть в гараже будет начислёно 50% стоимости предмета."; public static const RANK_NAMES:String = "Новобранец,Рядовой,Ефрейтор,Капрал,Мастер-капрал,Сержант,Штаб-сержант,Мастер-сержант,Первый сержант," + "Сержант-майор,Уорэнт-офицер 1,Уорэнт-офицер 2,Уорэнт-офицер 3,Уорэнт-офицер 4,Уорэнт-офицер 5,Младший лейтенант,Лейтенант," + "Старший лейтенант,Капитан,Майор,Подполковник,Полковник,Бригадир,Генерал-майор,Генерал-лейтенант,Генерал,Маршал,Фельдмаршал,Командор,Генералиссимус"; public function Text() { super(); } public static function init(localeService:ILocaleService) : void { localeService.registerText(TextConst.GUI_LANG,Text.GUI_LANG); localeService.registerText(TextConst.GAME_BASE_URL,Text.GAME_BASE_URL); localeService.registerText(TextConst.CHECK_PASSWORD_FORM_RESTORE_LINK_TEXT,Text.CHECK_PASSWORD_FORM_RESTORE_LINK_TEXT); localeService.registerText(TextConst.CHECK_PASSWORD_FORM_BUTTON_REGISTRATION_TEXT,Text.CHECK_PASSWORD_FORM_BUTTON_REGISTRATION_TEXT); localeService.registerText(TextConst.CHECK_PASSWORD_FORM_CALLSIGN,Text.CHECK_PASSWORD_FORM_CALLSIGN); localeService.registerText(TextConst.CHECK_PASSWORD_FORM_PASSWORD,Text.CHECK_PASSWORD_FORM_PASSWORD); localeService.registerText(TextConst.CHECK_PASSWORD_FORM_REMEMBER,Text.CHECK_PASSWORD_FORM_REMEMBER); localeService.registerText(TextConst.CHECK_PASSWORD_FORM_PLAY_BUTTON,Text.CHECK_PASSWORD_FORM_PLAY_BUTTON); localeService.registerText(TextConst.CHECK_PASSWORD_FORM_CAPTCHA,Text.CHECK_PASSWORD_FORM_CAPTCHA); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_HELP_LABEL_TEXT,Text.ACCOUNT_RECOVERY_FORM_HELP_LABEL_TEXT); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_BUTTON_CANCEL_TEXT,Text.ACCOUNT_RECOVERY_FORM_BUTTON_CANCEL_TEXT); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_BUTTON_RECOVER_TEXT,Text.ACCOUNT_RECOVERY_FORM_BUTTON_RECOVER_TEXT); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_ENTER_CODE,Text.ACCOUNT_RECOVERY_FORM_ENTER_CODE); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_ERROR,Text.ACCOUNT_RECOVERY_FORM_ERROR); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_WRONG_CODE,Text.ACCOUNT_RECOVERY_FORM_WRONG_CODE); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_PASSWORD_CHANGED,Text.ACCOUNT_RECOVERY_FORM_PASSWORD_CHANGED); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_NEW_PASSWORD,Text.ACCOUNT_RECOVERY_FORM_NEW_PASSWORD); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_SAVE,Text.ACCOUNT_RECOVERY_FORM_SAVE); localeService.registerText(TextConst.ACCOUNT_RECOVERY_FORM_CANCEL,Text.ACCOUNT_RECOVERY_FORM_CANCEL); localeService.registerText(TextConst.REGISTER_FORM_HEADER_TEXT,Text.REGISTER_FORM_HEADER_TEXT); localeService.registerText(TextConst.REGISTER_FORM_CALLSIGN_INPUT_LABEL_TEXT,Text.REGISTER_FORM_CALLSIGN_INPUT_LABEL_TEXT); localeService.registerText(TextConst.REGISTER_FORM_PASSWORD_INPUT_LABEL_TEXT,Text.REGISTER_FORM_PASSWORD_INPUT_LABEL_TEXT); localeService.registerText(TextConst.REGISTER_FORM_REPEAT_PASSWORD_INPUT_LABEL_TEXT,Text.REGISTER_FORM_REPEAT_PASSWORD_INPUT_LABEL_TEXT); localeService.registerText(TextConst.REGISTER_FORM_REMEMBER_ME_CHECKBOX_LABEL_TEXT,Text.REGISTER_FORM_REMEMBER_ME_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.REGISTER_FORM_AGREEMENT_CHECKBOX_LABEL_TEXT,Text.REGISTER_FORM_AGREEMENT_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.REGISTER_FORM_AGREEMENT_NOTE_TEXT,Text.REGISTER_FORM_AGREEMENT_NOTE_TEXT); localeService.registerText(TextConst.REGISTER_FORM_BUTTON_LOGIN_TEXT,Text.REGISTER_FORM_BUTTON_LOGIN_TEXT); localeService.registerText(TextConst.REGISTER_FORM_BUTTON_PLAY_TEXT,Text.REGISTER_FORM_BUTTON_PLAY_TEXT); localeService.registerText(TextConst.REGISTER_FORM_EMAIL_NOTE_TEXT,Text.REGISTER_FORM_EMAIL_NOTE_TEXT); localeService.registerText(TextConst.REGISTER_FORM_EMAIL_LABEL_TEXT,Text.REGISTER_FORM_EMAIL_LABEL_TEXT); localeService.registerText(TextConst.REGISTER_FORM_CONFIRM_TEXT,Text.REGISTER_FORM_CONFIRM_TEXT); localeService.registerText(TextConst.REGISTER_FORM_SEND_NEWS_TEXT,Text.REGISTER_FORM_SEND_NEWS_TEXT); localeService.registerText(TextConst.REGISTER_FORM_BUBBLE_PASSWORD_SIMPLE,Text.REGISTER_FORM_BUBBLE_PASSWORD_SIMPLE); localeService.registerText(TextConst.REGISTER_FORM_BUBBLE_PASSWORD_MISMATCH,Text.REGISTER_FORM_BUBBLE_PASSWORD_MISMATCH); localeService.registerText(TextConst.REGISTER_FORM_BUBBLE_LOGIN_WRONG,Text.REGISTER_FORM_BUBBLE_LOGIN_WRONG); localeService.registerText(TextConst.GARAGE_INFO_PANEL_BUTTON_BUY_TEXT,Text.GARAGE_INFO_PANEL_BUTTON_BUY_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_BUTTON_EQUIP_TEXT,Text.GARAGE_INFO_PANEL_BUTTON_EQUIP_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_BUTTON_UPGRADE_TEXT,Text.GARAGE_INFO_PANEL_BUTTON_UPGRADE_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_BUTTON_OPEN_TEXT,Text.GARAGE_INFO_PANEL_BUTTON_OPEN_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_BUTTON_ADD_CRYSTALS_TEXT,Text.GARAGE_INFO_PANEL_BUTTON_ADD_CRYSTALS_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_DISTANCE_UNIT_TEXT,Text.GARAGE_INFO_PANEL_DISTANCE_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_SPEED_UNIT_TEXT,Text.GARAGE_INFO_PANEL_SPEED_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_ANGLE_UNIT_TEXT,Text.GARAGE_INFO_PANEL_ANGLE_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_TURN_SPEED_UNIT_TEXT,Text.GARAGE_INFO_PANEL_TURN_SPEED_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_CRITICAL_CHANCE_UNIT_TEXT,Text.GARAGE_INFO_PANEL_CRITICAL_CHANCE_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_HEATING_TIME_UNIT_TEXT,Text.GARAGE_INFO_PANEL_HEATING_TIME_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_HEALTH_UNIT_TEXT,Text.GARAGE_INFO_PANEL_HEALTH_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_DAMAGE_SPEED_UNIT_TEXT,Text.GARAGE_INFO_PANEL_DAMAGE_SPEED_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_POWER_UNIT_TEXT,Text.GARAGE_INFO_PANEL_POWER_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_RATE_OF_FIRE_UNIT_TEXT,Text.GARAGE_INFO_PANEL_RATE_OF_FIRE_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_RESOURCE_UNIT_TEXT,Text.GARAGE_INFO_PANEL_RESOURCE_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_RESOURCE_TIME_WEAR_UNIT_TEXT,Text.GARAGE_INFO_PANEL_RESOURCE_TIME_WEAR_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_RESOURCE_SHOT_WEAR_UNIT_TEXT,Text.GARAGE_INFO_PANEL_RESOURCE_SHOT_WEAR_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_RESOURCE_SHOT_TIME_WEAR_UNIT_TEXT,Text.GARAGE_INFO_PANEL_RESOURCE_SHOT_TIME_WEAR_UNIT_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_RENEWAL_BUTTON_CURRENCY_LABEL,Text.GARAGE_INFO_PANEL_RENEWAL_BUTTON_CURRENCY_LABEL); localeService.registerText(TextConst.GARAGE_INFO_PANEL_UPGRADE_BUTTON_COST_LABEL_TEXT,Text.GARAGE_INFO_PANEL_UPGRADE_BUTTON_COST_LABEL_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_UPGRADE_BUTTON_INSUFFICIENT_RANK_LABEL_TEXT,Text.GARAGE_INFO_PANEL_UPGRADE_BUTTON_INSUFFICIENT_RANK_LABEL_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_UPGRADE_BUTTON_INSUFFICIENT_CRYSTALS_LABEL_TEXT,Text.GARAGE_INFO_PANEL_UPGRADE_BUTTON_INSUFFICIENT_CRYSTALS_LABEL_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_UPGRADE_BUTTON_INSUFFICIENT_CRYSTALS_LABEL_TEXT,Text.GARAGE_INFO_PANEL_UPGRADE_BUTTON_INSUFFICIENT_CRYSTALS_LABEL_TEXT); localeService.registerText(TextConst.GARAGE_INFO_PANEL_SKIN_BUTTON_MOUNT_COMMON,Text.GARAGE_INFO_PANEL_SKIN_BUTTON_MOUNT_COMMON); localeService.registerText(TextConst.GARAGE_INFO_PANEL_SKIN_BUTTON_MOUNT_HD,Text.GARAGE_INFO_PANEL_SKIN_BUTTON_MOUNT_HD); localeService.registerText(TextConst.GARAGE_INFO_PANEL_SKIN_BUTTON_BUY_HD,Text.GARAGE_INFO_PANEL_SKIN_BUTTON_BUY_HD); localeService.registerText(TextConst.GARAGE_INFO_PANEL_RENEWAL_BUTTON_CURRENCY_LABEL,Text.GARAGE_INFO_PANEL_RENEWAL_BUTTON_CURRENCY_LABEL); localeService.registerText(TextConst.GARAGE_BUY_BUTTON_RANK_LABEL,Text.GARAGE_BUY_BUTTON_RANK_LABEL); localeService.registerText(TextConst.GARAGE_CONFIRM_ALERT_CONFIRM_BUTTON_TEXT,Text.GARAGE_CONFIRM_ALERT_CONFIRM_BUTTON_TEXT); localeService.registerText(TextConst.GARAGE_CONFIRM_ALERT_CANCEL_BUTTON_TEXT,Text.GARAGE_CONFIRM_ALERT_CANCEL_BUTTON_TEXT); localeService.registerText(TextConst.GARAGE_CONFIRM_ALERT_COST_PREFIX,Text.GARAGE_CONFIRM_ALERT_COST_PREFIX); localeService.registerText(TextConst.GARAGE_CONFIRM_ALERT_BUY_QEUSTION_TEXT,Text.GARAGE_CONFIRM_ALERT_BUY_QEUSTION_TEXT); localeService.registerText(TextConst.GARAGE_CONFIRM_ALERT_UPGRADE_QEUSTION_TEXT,Text.GARAGE_CONFIRM_ALERT_UPGRADE_QEUSTION_TEXT); localeService.registerText(TextConst.GARAGE_CONFIRM_ALERT_NOT_ENOUGH_CRYSTALS,Text.GARAGE_CONFIRM_ALERT_NOT_ENOUGH_CRYSTALS); localeService.registerText(TextConst.MAIN_PANEL_RATING_LABEL,Text.MAIN_PANEL_RATING_LABEL); localeService.registerText(TextConst.MAIN_PANEL_BUTTON_BATTLES,Text.MAIN_PANEL_BUTTON_BATTLES); localeService.registerText(TextConst.MAIN_PANEL_BUTTON_GARAGE,Text.MAIN_PANEL_BUTTON_GARAGE); localeService.registerText(TextConst.MAIN_PANEL_BUTTON_HALL,Text.MAIN_PANEL_BUTTON_HALL); localeService.registerText(TextConst.MAIN_PANEL_BUTTON_RATING,Text.MAIN_PANEL_BUTTON_RATING); localeService.registerText(TextConst.MAIN_PANEL_BUTTON_CHALLENGE,Text.MAIN_PANEL_BUTTON_CHALLENGE); localeService.registerText(TextConst.MAIN_PANEL_BUTTON_SHOP,Text.MAIN_PANEL_BUTTON_SHOP); localeService.registerText(TextConst.CHAT_PANEL_BUTTON_SEND,Text.CHAT_PANEL_BUTTON_SEND); localeService.registerText(TextConst.CHAT_PANEL_COMMAND_BLOCK,Text.CHAT_PANEL_COMMAND_BLOCK); localeService.registerText(TextConst.CHAT_PANEL_COMMAND_UNBLOCK,Text.CHAT_PANEL_COMMAND_UNBLOCK); localeService.registerText(TextConst.CHAT_PANEL_COMMAND_UNBLOCK_ALL,Text.CHAT_PANEL_COMMAND_UNBLOCK_ALL); localeService.registerText(TextConst.CHAT_PANEL_COMMAND_BLOCK_LIST,Text.CHAT_PANEL_COMMAND_BLOCK_LIST); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_MAP_NAME_LABEL,Text.BATTLE_CREATE_PANEL_MAP_NAME_LABEL); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_MAP_TYPE_LABEL,Text.BATTLE_CREATE_PANEL_MAP_TYPE_LABEL); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_MAP_THEME_LABEL,Text.BATTLE_CREATE_PANEL_MAP_THEME_LABEL); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_BUTTON_DEATHMATCH,Text.BATTLE_CREATE_PANEL_BUTTON_DEATHMATCH); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_BUTTON_TEAM_DEATHMATCH,Text.BATTLE_CREATE_PANEL_BUTTON_TEAM_DEATHMATCH); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_BUTTON_CAPTURE_THE_FLAG,Text.BATTLE_CREATE_PANEL_BUTTON_CAPTURE_THE_FLAG); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_BUTTON_START,Text.BATTLE_CREATE_PANEL_BUTTON_START); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_STEPPER_MAX_PLAYERS,Text.BATTLE_CREATE_PANEL_STEPPER_MAX_PLAYERS); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_STEPPER_MAX_TEAM_SIZE,Text.BATTLE_CREATE_PANEL_STEPPER_MAX_TEAM_SIZE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_STEPPER_TIME_LIMIT,Text.BATTLE_CREATE_PANEL_STEPPER_TIME_LIMIT); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_STEPPER_KILLS_LIMIT,Text.BATTLE_CREATE_PANEL_STEPPER_KILLS_LIMIT); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_STEPPER_FLAG_LIMIT,Text.BATTLE_CREATE_PANEL_STEPPER_FLAG_LIMIT); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_CHECKBOX_AUTOBALANCE,Text.BATTLE_CREATE_PANEL_CHECKBOX_AUTOBALANCE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_CHECKBOX_FRIENDLY_FIRE,Text.BATTLE_CREATE_PANEL_CHECKBOX_FRIENDLY_FIRE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_CHECKBOX_PRIVATE_BATTLE,Text.BATTLE_CREATE_PANEL_CHECKBOX_PRIVATE_BATTLE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_CHECKBOX_PAY_BATTLE,Text.BATTLE_CREATE_PANEL_CHECKBOX_PAY_BATTLE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_CHECKBOX_HR_MODE,Text.BATTLE_CREATE_PANEL_CHECKBOX_HR_MODE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_CHECKBOX_BONUS_BATTLE,Text.BATTLE_CREATE_PANEL_CHECKBOX_BONUS_BATTLE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_LABEL_COST_BATTLE,Text.BATTLE_CREATE_PANEL_LABEL_COST_BATTLE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_LABEL_NO_SUBSCRIBE_BATTLE,Text.BATTLE_CREATE_PANEL_LABEL_NO_SUBSCRIBE_BATTLE); localeService.registerText(TextConst.BATTLE_CREATE_PANEL_FLOOD_ALERT_TEXT,Text.BATTLE_CREATE_PANEL_FLOOD_ALERT_TEXT); localeService.registerText(TextConst.BATTLELIST_PANEL_BUTTON_CREATE,Text.BATTLELIST_PANEL_BUTTON_CREATE); localeService.registerText(TextConst.BATTLEINFO_PANEL_BUTTON_PLAY,Text.BATTLEINFO_PANEL_BUTTON_PLAY); localeService.registerText(TextConst.BATTLEINFO_PANEL_COPY_LINK_TEXT,Text.BATTLEINFO_PANEL_COPY_LINK_TEXT); localeService.registerText(TextConst.BATTLEINFO_PANEL_NONAME_TEXT,Text.BATTLEINFO_PANEL_NONAME_TEXT); localeService.registerText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_TEXT,Text.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_TEXT); localeService.registerText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER,Text.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_ENTER); localeService.registerText(TextConst.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_DONT_ENTER,Text.BATTLEINFO_PANEL_PAID_BATTLES_ALERT_ANSWER_DONT_ENTER); localeService.registerText(TextConst.REFERAL_WINDOW_INFO_TEXT,Text.REFERAL_WINDOW_INFO_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_COPY_LINK_LABEL_TEXT,Text.REFERAL_WINDOW_COPY_LINK_LABEL_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_EMAIL_LABEL_TEXT,Text.REFERAL_WINDOW_EMAIL_LABEL_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_LETTER_LABEL_TEXT,Text.REFERAL_WINDOW_LETTER_LABEL_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_LETTER_TEXT,Text.REFERAL_WINDOW_LETTER_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_BUTTON_GET_LINK_TEXT,Text.REFERAL_WINDOW_BUTTON_GET_LINK_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_BUTTON_GET_BANNER_TEXT,Text.REFERAL_WINDOW_BUTTON_GET_BANNER_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_BUTTON_INVITE_BY_EMAIL_TEXT,Text.REFERAL_WINDOW_BUTTON_INVITE_BY_EMAIL_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_BUTTON_COPY_LINK_TEXT,Text.REFERAL_WINDOW_BUTTON_COPY_LINK_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_BUTTON_COPY_BANNER_TEXT,Text.REFERAL_WINDOW_BUTTON_COPY_BANNER_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_BUTTON_SEND_TEXT,Text.REFERAL_WINDOW_BUTTON_SEND_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_BUTTON_CLOSE_TEXT,Text.REFERAL_WINDOW_BUTTON_CLOSE_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_BUTTON_STATISTICS_TEXT,Text.REFERAL_WINDOW_BUTTON_STATISTICS_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_COUNT_LABEL,Text.REFERAL_WINDOW_COUNT_LABEL); localeService.registerText(TextConst.REFERAL_WINDOW_SUMMARY_LABEL,Text.REFERAL_WINDOW_SUMMARY_LABEL); localeService.registerText(TextConst.INVITATION_HAS_BEEN_SENT_ALERT_TEXT,Text.INVITATION_HAS_BEEN_SENT_ALERT_TEXT); localeService.registerText(TextConst.INVITATION_HAS_NOT_BEEN_SENT_ALERT_TEXT,Text.INVITATION_HAS_NOT_BEEN_SENT_ALERT_TEXT); localeService.registerText(TextConst.INVITATION_SUBJECT_TEXT,Text.INVITATION_SUBJECT_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_ADDRESS_NOT_VALID_ALERT_TEXT,Text.REFERAL_WINDOW_ADDRESS_NOT_VALID_ALERT_TEXT); localeService.registerText(TextConst.REFERAL_WINDOW_ADDRESSES_NOT_VALID_ALERT_TEXT,Text.REFERAL_WINDOW_ADDRESSES_NOT_VALID_ALERT_TEXT); localeService.registerText(TextConst.INVITATION_SENDER_NAME_LABEL_TEXT,Text.INVITATION_SENDER_NAME_LABEL_TEXT); localeService.registerText(TextConst.REFERAL_STATISTICS_HEADER_CALLSIGN,Text.REFERAL_STATISTICS_HEADER_CALLSIGN); localeService.registerText(TextConst.REFERAL_STATISTICS_HEADER_INCOME,Text.REFERAL_STATISTICS_HEADER_INCOME); localeService.registerText(TextConst.REFERAL_WINDOW_LINK_DESCRIPTION,Text.REFERAL_WINDOW_LINK_DESCRIPTION); localeService.registerText(TextConst.REFERAL_WINDOW_BANNER_DESCRIPTION,Text.REFERAL_WINDOW_BANNER_DESCRIPTION); localeService.registerText(TextConst.REFERAL_WINDOW_MAIL_DESCRIPTION,Text.REFERAL_WINDOW_MAIL_DESCRIPTION); localeService.registerText(TextConst.RATING_WINDOW_TEXT,Text.RATING_WINDOW_TEXT); localeService.registerText(TextConst.RATING_GOLDS_TEXT,Text.RATING_GOLDS_TEXT); localeService.registerText(TextConst.RATING_CRYSTALLS_TEXT,Text.RATING_CRYSTALLS_TEXT); localeService.registerText(TextConst.RATING_SCORES_TEXT,Text.RATING_SCORES_TEXT); localeService.registerText(TextConst.RATING_CLOSE_BUTTON_TEXT,Text.RATING_CLOSE_BUTTON_TEXT); localeService.registerText(TextConst.RATING_SEARCH_FIELD_TEXT,Text.RATING_SEARCH_FIELD_TEXT); localeService.registerText(TextConst.RATING_NAME_TEXT,Text.RATING_NAME_TEXT); localeService.registerText(TextConst.RATING_COUNT_TEXT,Text.RATING_COUNT_TEXT); localeService.registerText(TextConst.LOBBY_CHAT_BUTTON,Text.LOBBY_CHAT_BUTTON); localeService.registerText(TextConst.LOBBY_NEWS_BUTTON,Text.LOBBY_NEWS_BUTTON); localeService.registerText(TextConst.ALERT_QUIT_TEXT,Text.ALERT_QUIT_TEXT); localeService.registerText(TextConst.ALERT_EMAIL_CONFIRMED,Text.ALERT_EMAIL_CONFIRMED); localeService.registerText(TextConst.ALERT_RECOVERY_LINK_SENDED,Text.ALERT_RECOVERY_LINK_SENDED); localeService.registerText(TextConst.ALERT_GARAGE_AVAILABLE,Text.ALERT_GARAGE_AVAILABLE); localeService.registerText(TextConst.ALERT_CHAT_PROCEED_EXTERNAL_LINK,Text.ALERT_CHAT_PROCEED_EXTERNAL_LINK); localeService.registerText(TextConst.ERROR_FATAL,Text.ERROR_FATAL); localeService.registerText(TextConst.ERROR_FATAL_DEBUG,Text.ERROR_FATAL_DEBUG); localeService.registerText(TextConst.ERROR_CALLSIGN_WRONG_FIRST_SYMBOL,Text.ERROR_CALLSIGN_WRONG_FIRST_SYMBOL); localeService.registerText(TextConst.ERROR_CALLSIGN_NOT_SINGLE_DEVIDERS,Text.ERROR_CALLSIGN_NOT_SINGLE_DEVIDERS); localeService.registerText(TextConst.ERROR_CALLSIGN_WRONG_LAST_SYMBOL,Text.ERROR_CALLSIGN_WRONG_LAST_SYMBOL); localeService.registerText(TextConst.ERROR_CALLSIGN_LENGTH,Text.ERROR_CALLSIGN_LENGTH); localeService.registerText(TextConst.ERROR_CALLSIGN_NOT_UNIQUE,Text.ERROR_CALLSIGN_NOT_UNIQUE); localeService.registerText(TextConst.ERROR_EMAIL_NOT_UNIQUE,Text.ERROR_EMAIL_NOT_UNIQUE); localeService.registerText(TextConst.ERROR_EMAIL_INVALID,Text.ERROR_EMAIL_INVALID); localeService.registerText(TextConst.ERROR_EMAIL_NOT_FOUND,Text.ERROR_EMAIL_NOT_FOUND); localeService.registerText(TextConst.ERROR_EMAIL_NOT_SENDED,Text.ERROR_EMAIL_NOT_SENDED); localeService.registerText(TextConst.ERROR_PASSWORD_INCORRECT,Text.ERROR_PASSWORD_INCORRECT); localeService.registerText(TextConst.ERROR_PASSWORD_LENGTH,Text.ERROR_PASSWORD_LENGTH); localeService.registerText(TextConst.ERROR_PASSWORD_CHANGE,Text.ERROR_PASSWORD_CHANGE); localeService.registerText(TextConst.ERROR_ACCOUNT_BAN,Text.ERROR_ACCOUNT_BAN); localeService.registerText(TextConst.ERROR_WRONG_CAPTCHA,Text.ERROR_WRONG_CAPTCHA); localeService.registerText(TextConst.ALERT_CONFIRM_BATTLE_EXIT,Text.ALERT_CONFIRM_BATTLE_EXIT); localeService.registerText(TextConst.ALERT_CONFIRM_REMOVE_FRIEND,Text.ALERT_CONFIRM_REMOVE_FRIEND); localeService.registerText(TextConst.ALERT_ANSWER_YES,Text.ALERT_ANSWER_YES); localeService.registerText(TextConst.ALERT_ANSWER_NO,Text.ALERT_ANSWER_NO); localeService.registerText(TextConst.ALERT_ANSWER_OK,Text.ALERT_ANSWER_OK); localeService.registerText(TextConst.ALERT_ANSWER_CANCEL,Text.ALERT_ANSWER_CANCEL); localeService.registerText(TextConst.ALERT_ANSWER_SEND_BUG_REPORT,Text.ALERT_ANSWER_SEND_BUG_REPORT); localeService.registerText(TextConst.ALERT_ANSWER_RETURN_TO_BATTLE,Text.ALERT_ANSWER_RETURN_TO_BATTLE); localeService.registerText(TextConst.ALERT_ANSWER_GO_TO_GARAGE,Text.ALERT_ANSWER_GO_TO_GARAGE); localeService.registerText(TextConst.ALERT_ANSWER_PROCEED,Text.ALERT_ANSWER_PROCEED); localeService.registerText(TextConst.SERVER_STOP_ALERT_TEXT,Text.SERVER_STOP_ALERT_TEXT); localeService.registerText(TextConst.REDIRECT_ALERT_TEXT,Text.REDIRECT_ALERT_TEXT); localeService.registerText(TextConst.FOCUS_WARNIG_TEXT,Text.FOCUS_WARNIG_TEXT); localeService.registerText(TextConst.STATISTICS_SEARCH_LABEL_TEXT,Text.STATISTICS_SEARCH_LABEL_TEXT); localeService.registerText(TextConst.STATISTICS_HEADER_NUMBER,Text.STATISTICS_HEADER_NUMBER); localeService.registerText(TextConst.STATISTICS_HEADER_RANK,Text.STATISTICS_HEADER_RANK); localeService.registerText(TextConst.STATISTICS_HEADER_CALLSIGN,Text.STATISTICS_HEADER_CALLSIGN); localeService.registerText(TextConst.STATISTICS_HEADER_ACHIVIMENTS,Text.STATISTICS_HEADER_ACHIVIMENTS); localeService.registerText(TextConst.STATISTICS_HEADER_SCORE,Text.STATISTICS_HEADER_SCORE); localeService.registerText(TextConst.STATISTICS_HEADER_KILLS,Text.STATISTICS_HEADER_KILLS); localeService.registerText(TextConst.STATISTICS_HEADER_DEATHS,Text.STATISTICS_HEADER_DEATHS); localeService.registerText(TextConst.STATISTICS_HEADER_RATIO,Text.STATISTICS_HEADER_RATIO); localeService.registerText(TextConst.STATISTICS_HEADER_WEALTH,Text.STATISTICS_HEADER_WEALTH); localeService.registerText(TextConst.STATISTICS_HEADER_RATING,Text.STATISTICS_HEADER_RATING); localeService.registerText(TextConst.STATISTICS_HEADER_COLUMN_WIDTH,Text.STATISTICS_HEADER_COLUMN_WIDTH); localeService.registerText(TextConst.BUG_REPORT_SEND_SCREEN_SHOT_CHECKBOX_LABEL_TEXT,Text.BUG_REPORT_SEND_SCREEN_SHOT_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.BUG_REPORT_SUMMARY_LABEL_TEXT,Text.BUG_REPORT_SUMMARY_LABEL_TEXT); localeService.registerText(TextConst.BUG_REPORT_DESCRIPTION_LABEL_TEXT,Text.BUG_REPORT_DESCRIPTION_LABEL_TEXT); localeService.registerText(TextConst.BUG_REPORT_BUTTON_CANCEL_TEXT,Text.BUG_REPORT_BUTTON_CANCEL_TEXT); localeService.registerText(TextConst.BUG_REPORT_BUTTON_SEND_TEXT,Text.BUG_REPORT_BUTTON_SEND_TEXT); localeService.registerText(TextConst.BUG_REPORT_HAS_BEEN_SENT_ALERT_TEXT,Text.BUG_REPORT_HAS_BEEN_SENT_ALERT_TEXT); localeService.registerTextArray(TextConst.BUG_REPORT_SUMMARY_SUBJECTS,Text.BUG_REPORT_SUMMARY_SUBJECTS); localeService.registerText(TextConst.BUG_REPORT_NOT_TESTER_ALERT_TEXT,Text.BUG_REPORT_NOT_TESTER_ALERT_TEXT); localeService.registerText(TextConst.BUG_REPORT_NOT_TESTER_ALERT_BUTTON_TO_PAYMENT_TEXT,Text.BUG_REPORT_NOT_TESTER_ALERT_BUTTON_TO_PAYMENT_TEXT); localeService.registerText(TextConst.BUG_REPORT_NOT_TESTER_ALERT_TO_FORUM_TEXT,Text.BUG_REPORT_NOT_TESTER_ALERT_TO_FORUM_TEXT); localeService.registerText(TextConst.SETTINGS_SOUND_VOLUME_LABEL_TEXT,Text.SETTINGS_SOUND_VOLUME_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_BACKGROUND_SOUND_CHECKBOX_LABEL_TEXT,Text.SETTINGS_BACKGROUND_SOUND_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_PERFORMANCE_HEADER_LABEL_TEXT,Text.SETTINGS_PERFORMANCE_HEADER_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_SHOW_FPS_CHECKBOX_LABEL_TEXT,Text.SETTINGS_SHOW_FPS_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_ENABLE_ADAPTIVE_FPS_CHECKBOX_LABEL_TEXT,Text.SETTINGS_ENABLE_ADAPTIVE_FPS_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_SHOW_SKYBOX_CHECKBOX_LABEL_TEXT,Text.SETTINGS_SHOW_SKYBOX_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_SHOW_BATTLE_CHAT_CHECKBOX_LABEL_TEXT,Text.SETTINGS_SHOW_BATTLE_CHAT_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_USE_NEW_LOADER_CHECKBOX_LABEL_TEXT,Text.SETTINGS_USE_NEW_LOADER_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_FOG_CHECKBOX_LABEL_TEXT,Text.SETTINGS_FOG_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_SOFT_PARTICLES_CHECKBOX_LABEL_TEXT,Text.SETTINGS_SOFT_PARTICLES_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_TANK_SHADOWS_CHECKBOX_LABEL_TEXT,Text.SETTINGS_TANK_SHADOWS_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_DUST_CHECKBOX_LABEL_TEXT,Text.SETTINGS_DUST_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_DYNAMIC_SHADOWS_CHECKBOX_LABEL_TEXT,Text.SETTINGS_DYNAMIC_SHADOWS_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_DYNAMIC_LIGHTS_CHECKBOX_LABEL_TEXT,Text.SETTINGS_DYNAMIC_LIGHTS_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_TRACKS_CHECKBOX_LABEL_TEXT,Text.SETTINGS_TRACKS_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_DAMAGE_CHECKBOX_LABEL_TEXT,Text.SETTINGS_DAMAGE_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_OLD_TEXTURES_LABEL_TEXT,Text.SETTINGS_OLD_TEXTURES_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_MIPMAPPING_LABEL_TEXT,Text.SETTINGS_MIPMAPPING_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_COLORED_FPS,Text.SETTINGS_COLORED_FPS); localeService.registerText(TextConst.SETTINGS_ACCOUNT_HEADER_LABEL_TEXT,Text.SETTINGS_ACCOUNT_HEADER_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_NEW_PASSWORD_LABEL_TEXT,Text.SETTINGS_NEW_PASSWORD_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_REENTER_PASSWORD_LABEL_TEXT,Text.SETTINGS_REENTER_PASSWORD_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_EMAIL_LABEL_TEXT,Text.SETTINGS_EMAIL_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_BUTTON_RESEND_CONFIRMATION_TEXT,Text.SETTINGS_BUTTON_RESEND_CONFIRMATION_TEXT); localeService.registerText(TextConst.SETTINGS_CONTROL_HEADER_LABEL_TEXT,Text.SETTINGS_CONTROL_HEADER_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_INVERSE_TURN_CONTROL_CHECKBOX_LABEL_TEXT,Text.SETTINGS_INVERSE_TURN_CONTROL_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_SEND_NEWS_CHECKBOX_LABEL_TEXT,Text.SETTINGS_SEND_NEWS_CHECKBOX_LABEL_TEXT); localeService.registerText(TextConst.SETTINGS_BUTTON_CANCEL_TEXT,Text.SETTINGS_BUTTON_CANCEL_TEXT); localeService.registerText(TextConst.SETTINGS_BUTTON_SAVE_TEXT,Text.SETTINGS_BUTTON_SAVE_TEXT); localeService.registerText(TextConst.SETTINGS_BUTTON_CHANGE_PASSWORD_TEXT,Text.SETTINGS_BUTTON_CHANGE_PASSWORD_TEXT); localeService.registerText(TextConst.SETTINGS_CHANGE_PASSWORD_CONFIRMATION_SENT_TEXT,Text.SETTINGS_CHANGE_PASSWORD_CONFIRMATION_SENT_TEXT); localeService.registerText(TextConst.SETTINGS_CHANGE_PASSWORD_WRONG_LINK_TEXT,Text.SETTINGS_CHANGE_PASSWORD_WRONG_LINK_TEXT); localeService.registerText(TextConst.PAYMENT_MAININFO_LABEL_TEXT,Text.PAYMENT_MAININFO_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_COMMON_NAME,Text.PAYMENT_COMMON_NAME); localeService.registerText(TextConst.PAYMENT_COMMON_LANGUAGE,Text.PAYMENT_COMMON_LANGUAGE); localeService.registerText(TextConst.PAYMENT_COMMON_DATE,Text.PAYMENT_COMMON_DATE); localeService.registerText(TextConst.PAYMENT_COMMON_SYSTEM,Text.PAYMENT_COMMON_SYSTEM); localeService.registerText(TextConst.PAYMENT_COMMON_TRANSACTION,Text.PAYMENT_COMMON_TRANSACTION); localeService.registerText(TextConst.PAYMENT_COMMON_COMMENT,Text.PAYMENT_COMMON_COMMENT); localeService.registerText(TextConst.PAYMENT_SMS_NAME_TEXT,Text.PAYMENT_SMS_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_QIWI_NAME_TEXT,Text.PAYMENT_QIWI_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_YANDEX_MONEY_NAME_TEXT,Text.PAYMENT_YANDEX_MONEY_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_PREPAID_NAME_TEXT,Text.PAYMENT_PREPAID_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_PREPAID_DESCRIPTION_TEXT,Text.PAYMENT_PREPAID_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_VISA_NAME_TEXT,Text.PAYMENT_VISA_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_WEBMONEY_NAME_TEXT,Text.PAYMENT_WEBMONEY_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_EASYPAY_NAME_TEXT,Text.PAYMENT_EASYPAY_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_RBK_NAME_TEXT,Text.PAYMENT_RBK_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_MONEYMAIL_NAME_TEXT,Text.PAYMENT_MONEYMAIL_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_WEBCREDS_NAME_TEXT,Text.PAYMENT_WEBCREDS_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_PAYPAL_NAME_TEXT,Text.PAYMENT_PAYPAL_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_TERMINAL_NAME_TEXT,Text.PAYMENT_TERMINAL_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_SMS_REQUEST_TEXT,Text.PAYMENT_SMS_REQUEST_TEXT); localeService.registerText(TextConst.PAYMENT_CARD_TYPE,Text.PAYMENT_CARD_TYPE); localeService.registerText(TextConst.PAYMENT_CARD_CODE,Text.PAYMENT_CARD_CODE); localeService.registerText(TextConst.PAYMENT_CARD_NAME,Text.PAYMENT_CARD_NAME); localeService.registerText(TextConst.PAYMENT_CARD_PHONE_NUMBER,Text.PAYMENT_CARD_PHONE_NUMBER); localeService.registerText(TextConst.PAYMENT_YANDEX_MONEY_NUMBER,Text.PAYMENT_YANDEX_MONEY_NUMBER); localeService.registerText(TextConst.PAYMENT_SMS_DESCRIPTION_TEXT,Text.PAYMENT_SMS_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_QIWI_DESCRIPTION_TEXT,Text.PAYMENT_QIWI_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_YANDEX_MONEY_DESCRIPTION_TEXT,Text.PAYMENT_YANDEX_MONEY_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_VISA_DESCRIPTION_TEXT,Text.PAYMENT_VISA_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_WEBMONEY_DESCRIPTION_TEXT,Text.PAYMENT_WEBMONEY_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_EASYPAY_DESCRIPTION_TEXT,Text.PAYMENT_EASYPAY_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_RBK_DESCRIPTION_TEXT,Text.PAYMENT_RBK_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_MONEYMAIL_DESCRIPTION_TEXT,Text.PAYMENT_MONEYMAIL_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_WEBCREDS_DESCRIPTION_TEXT,Text.PAYMENT_WEBCREDS_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_PAYPAL_DESCRIPTION_TEXT,Text.PAYMENT_PAYPAL_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_TERMINAL_DESCRIPTION_TEXT,Text.PAYMENT_TERMINAL_DESCRIPTION_TEXT); localeService.registerText(TextConst.PAYMENT_WMCOMBO_LABEL_TEXT,Text.PAYMENT_WMCOMBO_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_OPERATORS_LABEL_TEXT,Text.PAYMENT_OPERATORS_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_COUNTRIES_LABEL_TEXT,Text.PAYMENT_COUNTRIES_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_SMSTEXT_HEADER_LABEL_TEXT,Text.PAYMENT_SMSTEXT_HEADER_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_SMSNUMBERS_NUMBER_HEADER_LABEL_TEXT,Text.PAYMENT_SMSNUMBERS_NUMBER_HEADER_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_SMSNUMBERS_COST_HEADER_LABEL_TEXT,Text.PAYMENT_SMSNUMBERS_COST_HEADER_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_SMSNUMBERS_SMSTEXT_HEADER_LABEL_TEXT,Text.PAYMENT_SMSNUMBERS_SMSTEXT_HEADER_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_TERMINAL_COUNTRIES_LABEL_TEXT,Text.PAYMENT_TERMINAL_COUNTRIES_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUTTON_PROCEED_TEXT,Text.PAYMENT_BUTTON_PROCEED_TEXT); localeService.registerText(TextConst.PAYMENT_NOT_AVAILABLE_ALERT_TEXT,Text.PAYMENT_NOT_AVAILABLE_ALERT_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_INFO,Text.PAYMENT_BUG_REPORT_INFO); localeService.registerText(TextConst.PAYMENT_BUTTON_SEND_BUG_REPORT_TEXT,Text.PAYMENT_BUTTON_SEND_BUG_REPORT_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_CALLSIGN_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_CALLSIGN_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_DATE_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_DATE_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_PAYMENT_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_PAYMENT_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_PAYMENT_SYSTEM_COMBO_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_PAYMENT_SYSTEM_COMBO_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_OTHER_PAYMENT_SYSTEM_NAME_TEXT,Text.PAYMENT_BUG_REPORT_OTHER_PAYMENT_SYSTEM_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_SMS_TEXT_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_SMS_TEXT_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_CARD_TYPE_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_CARD_TYPE_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_MASTERCARD_NAME_TEXT,Text.PAYMENT_BUG_REPORT_MASTERCARD_NAME_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_NAME_AND_LASTNAME_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_NAME_AND_LASTNAME_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_CARD_LAST_FIGURES_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_CARD_LAST_FIGURES_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_PHONE_NUMBER_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_PHONE_NUMBER_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_PURSE_NUMBER_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_PURSE_NUMBER_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_EMAIL_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_EMAIL_INPUT_LABEL_TEXT); localeService.registerText(TextConst.PAYMENT_BUG_REPORT_COMMENT_INPUT_LABEL_TEXT,Text.PAYMENT_BUG_REPORT_COMMENT_INPUT_LABEL_TEXT); localeService.registerText(TextConst.HELP_PANEL_RANK_HELPER_TEXT,Text.HELP_PANEL_RANK_HELPER_TEXT); localeService.registerText(TextConst.HELP_PANEL_RANK_HELPER_ARROW_LENGTH,Text.HELP_PANEL_RANK_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_PANEL_RANK_BAR_HELPER_TEXT,Text.HELP_PANEL_RANK_BAR_HELPER_TEXT); localeService.registerText(TextConst.HELP_PANEL_RANK_BAR_HELPER_ARROW_LENGTH,Text.HELP_PANEL_RANK_BAR_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_PANEL_RATING_INDICATOR_HELPER_TEXT,Text.HELP_PANEL_RATING_INDICATOR_HELPER_TEXT); localeService.registerText(TextConst.HELP_PANEL_RATING_INDICATOR_HELPER_ARROW_LENGTH,Text.HELP_PANEL_RATING_INDICATOR_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_PANEL_MAIN_MENU_HELPER_TEXT,Text.HELP_PANEL_MAIN_MENU_HELPER_TEXT); localeService.registerText(TextConst.HELP_PANEL_MAIN_MENU_HELPER_ARROW_LENGTH,Text.HELP_PANEL_MAIN_MENU_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_PANEL_BUTTON_BAR_HELPER_TEXT,Text.HELP_PANEL_BUTTON_BAR_HELPER_TEXT); localeService.registerText(TextConst.HELP_PANEL_BUTTON_BAR_HELPER_ARROW_LENGTH,Text.HELP_PANEL_BUTTON_BAR_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_PANEL_MONEY_HELPER_TEXT,Text.HELP_PANEL_MONEY_HELPER_TEXT); localeService.registerText(TextConst.HELP_PANEL_MONEY_HELPER_ARROW_LENGTH,Text.HELP_PANEL_MONEY_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_PANEL_SCORE_HELPER_TEXT,Text.HELP_PANEL_SCORE_HELPER_TEXT); localeService.registerText(TextConst.HELP_PANEL_SCORE_HELPER_ARROW_LENGTH,Text.HELP_PANEL_SCORE_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_BATTLE_SELECT_CREATE_MAP_HELPER_TEXT,Text.HELP_BATTLE_SELECT_CREATE_MAP_HELPER_TEXT); localeService.registerText(TextConst.HELP_BATTLE_SELECT_CREATE_MAP_HELPER_ARROW_LENGTH,Text.HELP_BATTLE_SELECT_CREATE_MAP_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_BATTLE_SELECT_LOCKED_MAP_HELPER_TEXT,Text.HELP_BATTLE_SELECT_LOCKED_MAP_HELPER_TEXT); localeService.registerText(TextConst.HELP_BATTLE_SELECT_LOCKED_MAP_HELPER_ARROW_LENGTH,Text.HELP_BATTLE_SELECT_LOCKED_MAP_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_GARAGE_WAREHOUSE_LIST_HELPER_TEXT,Text.HELP_GARAGE_WAREHOUSE_LIST_HELPER_TEXT); localeService.registerText(TextConst.HELP_GARAGE_WAREHOUSE_LIST_HELPER_ARROW_LENGTH,Text.HELP_GARAGE_WAREHOUSE_LIST_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_GARAGE_STORE_LIST_HELPER_TEXT,Text.HELP_GARAGE_STORE_LIST_HELPER_TEXT); localeService.registerText(TextConst.HELP_GARAGE_STORE_LIST_HELPER_ARROW_LENGTH,Text.HELP_GARAGE_STORE_LIST_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_FIRST_PURCHASE_HELPER_TEXT,Text.HELP_FIRST_PURCHASE_HELPER_TEXT); localeService.registerText(TextConst.HELP_FIRST_PURCHASE_HELPER_ARROW_LENGTH,Text.HELP_FIRST_PURCHASE_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_SET_EMAIL_HELPER_TEXT,Text.HELP_SET_EMAIL_HELPER_TEXT); localeService.registerText(TextConst.HELP_SET_EMAIL_HELPER_ARROW_LENGTH,Text.HELP_SET_EMAIL_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_UP_RANK_HELPER_ARROW_LENGTH,Text.HELP_UP_RANK_HELPER_ARROW_LENGTH); localeService.registerText(TextConst.HELP_UP_RANK_HELPER_TEXT,Text.HELP_UP_RANK_HELPER_TEXT); localeService.registerText(TextConst.FREE_BONUSES_WINDOW_MESSAGE_TEXT,Text.FREE_BONUSES_WINDOW_MESSAGE_TEXT); localeService.registerText(TextConst.FREE_BONUSES_WINDOW_MESSAGE_CRYSTALS_TEXT,Text.FREE_BONUSES_WINDOW_MESSAGE_CRYSTALS_TEXT); localeService.registerText(TextConst.FREE_BONUSES_WINDOW_MESSAGE_NOSUPPLIES_TEXT,Text.FREE_BONUSES_WINDOW_MESSAGE_NOSUPPLIES_TEXT); localeService.registerText(TextConst.FREE_BONUSES_WINDOW_BUTTON_CLOSE_TEXT,Text.FREE_BONUSES_WINDOW_BUTTON_CLOSE_TEXT); localeService.registerText(TextConst.FREE_BONUSES_WINDOW_MESSAGE_DOUBLECRYSTALLS_TEXT,Text.FREE_BONUSES_WINDOW_MESSAGE_DOUBLECRYSTALLS_TEXT); localeService.registerText(TextConst.ACHIEVEMENT_COMPLETE_FIRST_PURCHASE_TEXT,Text.ACHIEVEMENT_COMPLETE_FIRST_PURCHASE_TEXT); localeService.registerText(TextConst.ACHIEVEMENT_COMPLETE_EMAIL_TEXT,Text.ACHIEVEMENT_COMPLETE_EMAIL_TEXT); localeService.registerText(TextConst.CHALLENGES_WINDOW_BUTTON_CHANGE_TEXT,Text.CHALLENGES_WINDOW_BUTTON_CHANGE_TEXT); localeService.registerText(TextConst.CHALLENGES_WINDOW_LABEL_COMPLETE_TEXT,"Выполнено заданий: "); localeService.registerText(TextConst.CHALLENGES_WINDOW_LABEL_CHALLENGE_TEXT,"Задание:"); localeService.registerText(TextConst.CHALLENGES_WINDOW_LABEL_PRIZE_TEXT,"Приз:"); localeService.registerText(TextConst.CONGRATS_WINDOW_TEXT,"ПОЗДРАВЛЯЕМ"); localeService.registerText(TextConst.CONGRATS_WINDOW_CONGRATS_TEXT,"Танкист! Ты отлично справился с выполнением ежедневного задания.\nПришло время получить заслуженную награду!\n\nПродолжай выполнять задания каждый день и получай бонусы!"); localeService.registerText(TextConst.FRIENDS_WINDOW_TEXT,"Друзья"); localeService.registerText(TextConst.FRIENDS_WINDOW_OUTCOMING_LIST,"Исходящие заявки"); localeService.registerText(TextConst.FRIENDS_WINDOW_INCOMING_LIST,"Входящие заявки"); localeService.registerText(TextConst.FRIENDS_WINDOW_REJECT_ALL,"Отклонить все"); localeService.registerText(TextConst.FRIENDS_WINDOW_SEND_INVITE,"Отправить заявку"); localeService.registerText(TextConst.FRIENDS_WINDOW_SEARCH_IN_LIST,"Найти в списке..."); localeService.registerText(TextConst.PROFILE_WINDOW_TEXT,"Профиль"); localeService.registerText(TextConst.PROFILE_WINDOW_EMPTY_TEXT,"У вас пока нет подарков"); localeService.registerText(TextConst.PROFILE_WINDOW_SENDER_TEXT,"Отправитель:"); localeService.registerText(TextConst.PROFILE_WINDOW_NAME_TEXT,"Название:"); localeService.registerText(TextConst.PROFILE_WINDOW_DATE_TEXT,"Дата:"); localeService.registerText(TextConst.PROFILE_WINDOW_STATUS_TEXT,"Статус:"); localeService.registerText(TextConst.PROFILE_WINDOW_MESSAGE_TEXT,"Сообщение:"); localeService.registerText(TextConst.PROFILE_WINDOW_SEND_GIFT_TEXT,"Отправить подарок"); localeService.registerText(TextConst.FREE_BONUSES_WINDOW_RUNET_AWARD_TEXT,Text.FREE_BONUSES_WINDOW_RUNET_AWARD_TEXT); localeService.registerText(TextConst.FREE_BONUSES_WINDOW_RUNET_AWARD_BUTTON_1ST_TIME_TEXT,Text.FREE_BONUSES_WINDOW_RUNET_AWARD_BUTTON_1ST_TIME_TEXT); localeService.registerText(TextConst.FREE_BONUSES_WINDOW_RUNET_AWARD_BUTTON_TEXT,Text.FREE_BONUSES_WINDOW_RUNET_AWARD_BUTTON_TEXT); localeService.registerText(TextConst.COUNTRIES_ARMENIA_NAME,Text.COUNTRIES_ARMENIA_NAME); localeService.registerText(TextConst.COUNTRIES_KAZAKHSTAN_NAME,Text.COUNTRIES_KAZAKHSTAN_NAME); localeService.registerText(TextConst.COUNTRIES_RUSSIA_NAME,Text.COUNTRIES_RUSSIA_NAME); localeService.registerText(TextConst.COUNTRIES_UKRAINE_NAME,Text.COUNTRIES_UKRAINE_NAME); localeService.registerText(TextConst.SERVER_IS_RESTARTING_LOGIN_TEXT,Text.SERVER_IS_RESTARTING_LOGIN_TEXT); localeService.registerText(TextConst.SERVER_IS_RESTARTING_CREATE_BATTLE_TEXT,Text.SERVER_IS_RESTARTING_CREATE_BATTLE_TEXT); localeService.registerText(TextConst.NEWBIES_BONUSES_WINDOW_MESSAGE_TEXT,Text.NEWBIES_BONUSES_WINDOW_MESSAGE_TEXT); localeService.registerText(TextConst.NEWBIES_BONUSES_NEW_RANK_WINDOW_MESSAGE_TEXT,Text.NEWBIES_BONUSES_NEW_RANK_WINDOW_MESSAGE_TEXT); localeService.registerText(TextConst.GIFT_WINDOW_OPEN,Text.GIFT_WINDOW_OPEN); localeService.registerText(TextConst.GIFT_WINDOW_CLOSE,Text.GIFT_WINDOW_CLOSE); localeService.registerText(TextConst.GIFT_WINDOW_OPENED,Text.GIFT_WINDOW_OPENED); localeService.registerText(TextConst.GIFT_WINDOW_LEFTED,Text.GIFT_WINDOW_LEFTED); localeService.registerText(TextConst.GIFT_WINDOW_INFO,Text.GIFT_WINDOW_INFO); localeService.registerTextMulty([TextConst.BATTLE_PLAYER_JOINED,"вступил в бой",TextConst.BATTLE_PLAYER_LEFT,"покинул бой",TextConst.BATTLE_PLAYER_KILLED,"уничтожил",TextConst.BATTLE_PLAYER_SUICIDED,"самоуничтожился",TextConst.BATTLE_PLAYER_TAKEN_GOLD_BOX,"взял золотой ящик",TextConst.BATTLE_PLAYER_TAKEN_RUBY_BOX,"взял рубиновый ящик",TextConst.BATTLE_PLAYER_TAKEN_SPIN_BOX,"взял спин ящик",TextConst.BATTLE_PLAYER_TAKEN_PRIZE_BOX,"взял подарочный ящик",TextConst.BATTLE_PLAYER_RANKED_UP_CONGRATS,"Поздравляем!",TextConst.BATTLE_PLAYER_RANKED_UP_RANK,"Вы получили звание ",TextConst.CTF_CAPTURED_OUR_FLAG,"доставил наш флаг",TextConst.CTF_LOST_OUR_FLAG,"потерял наш флаг",TextConst.CTF_GOT_OUR_FLAG,"взял наш флаг",TextConst.CTF_RETURNED_OUR_FLAG,"возвратил наш флаг",TextConst.CTF_OUR_FLAG_RETURNED,"Наш флаг возвращён",TextConst.CTF_CAPTURED_ENEMY_FLAG,"доставил вражеский флаг",TextConst.CTF_LOST_ENEMY_FLAG,"потерял вражеский флаг",TextConst.CTF_GOT_ENEMY_FLAG,"взял вражеский флаг",TextConst.CTF_RETURNED_ENEMY_FLAG,"возвратил вражеский флаг",TextConst.CTF_ENEMY_FLAG_RETURNED,"Вражеский флаг возвращён",TextConst.CTF_CAPTURED_FLAG,"доставил флаг",TextConst.CTF_LOST_FLAG,"потерял флаг",TextConst.CTF_GOT_FLAG,"взял флаг",TextConst.CTF_RETURNED_FLAG,"возвратил флаг",TextConst.CTF_RED_FLAG_RETURNED,"Красный флаг возвращён",TextConst.CTF_BLUE_FLAG_RETURNED,"Синий флаг возвращён",TextConst.BATTLE_FUND,"Фонд битвы",TextConst.BATTLE_RESTART,"Битва начнётся через",TextConst.BATTLE_EXIT,"Выйти",TextConst.BATTLE_STAT_CALLSIGN,"Позывной",TextConst.BATTLE_STAT_SCORE,"Счёт",TextConst.BATTLE_STAT_KILLS,"Уничтожено",TextConst.BATTLE_STAT_DEATHS,"Подбит",TextConst.BATTLE_STAT_KDRATIO,"У/П",TextConst.BATTLE_STAT_REWARD,"Приз",TextConst.BATTLE_PAUSE_ENABLED,"Включена пауза",TextConst.BATTLE_PAUSE_PRESS_ANY_KEY,"Нажмите любую кнопку чтобы продолжить",TextConst.BATTLE_PAUSE_BATTLE_LEAVE,"Выход из битвы через",TextConst.BTL_WAITING_FOR,"Ожидание",TextConst.BTL_WAITING_OPPONENTS_ENDING_SINGLE,"-го противника",TextConst.BTL_WAITING_OPPONENTS_ENDING_MULTY,"-х противников",TextConst.BTL_WAITING_PLAYERS_ENDING_SINGLE,"-го игрока",TextConst.BTL_WAITING_PLAYERS_ENDING_MULTY,"-х игроков",TextConst.BTL_ENDS_IN,"Окончание битвы через",TextConst.BATTLE_START_ALERT,"Битва началась",TextConst.BATTLE_TEAM_ALERT,"Вы играете за %1 команду",TextConst.BATTLE_TEAM_BLUE,"синюю",TextConst.BATTLE_TEAM_RED,"красную",TextConst.BATTLE_GOLD,"Скоро будет сброшен золотой ящик",TextConst.BATTLE_SPIN,"Скоро будет сброшен спин ящик",TextConst.BATTLE_RUBY,"Скоро будет сброшен рубиновый ящик",TextConst.BATTLE_PRIZE,"Внимание! Торт почти готов. Приготовиться к трапезе!"]); localeService.registerText(TextConst.RANK_NAMES,Text.RANK_NAMES); } } }
package alternativa.tanks.models.battle.battlefield { import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.SkyBox; import projects.tanks.client.battlefield.models.map.SkyboxSides; public class BattleSkyBox extends SkyBox { private static const SKYBOX_SIZE:int = 200000; public function BattleSkyBox(param1:SkyboxSides) { var local2:TextureMaterial = new TextureMaterial(param1.left.data); var local3:TextureMaterial = new TextureMaterial(param1.right.data); var local4:TextureMaterial = new TextureMaterial(param1.front.data); var local5:TextureMaterial = new TextureMaterial(param1.back.data); var local6:TextureMaterial = new TextureMaterial(param1.top.data); var local7:TextureMaterial = new TextureMaterial(param1.bottom.data); super(SKYBOX_SIZE,local2,local3,local5,local4,local7,local6,0); } } }
package controls.rangicons { import mx.core.BitmapAsset; [ExcludeClass] public class RangIconNormal_p3 extends BitmapAsset { public function RangIconNormal_p3() { super(); } } }
package alternativa.tanks.services.memoryleakguard { import alternativa.osgi.OSGi; import alternativa.osgi.service.command.CommandService; import alternativa.osgi.service.command.FormattedOutput; import flash.utils.Dictionary; public class MemoryLeakTrackerService { private static const classCounters:Dictionary = new Dictionary(); private const objects:Dictionary = new Dictionary(true); public function MemoryLeakTrackerService(param1:OSGi) { super(); this.registerCommands(param1); } private function registerCommands(param1:OSGi) : void { var local2:CommandService = CommandService(param1.getService(CommandService)); local2.registerCommand("ml","tr","Traces tracked objects",[],this._trace); } private function _trace(param1:FormattedOutput) : void { var local2:* = undefined; for(local2 in this.objects) { param1.addText(Object(local2).toString() + " -> " + this.objects[local2]); } } public function track(param1:Object, param2:String) : void { } public function getObjectsCount() : int { var local2:* = undefined; var local1:int = 0; for(local2 in this.objects) { local1++; } return local1; } public function traceObjects() : void { } public function traceStaticstics() : void { } } }
package projects.tanks.client.panel.model.shop.lootbox { public interface ILootBoxPackageModelBase { } }
package alternativa.tanks.models.tank.spawn.spawnhandlers { import alternativa.tanks.battle.events.BattleEventDispatcher; import alternativa.tanks.battle.events.BattleEventListener; import alternativa.tanks.battle.events.MapBuildingCompleteEvent; import alternativa.tanks.models.tank.pause.ITankPause; import alternativa.tanks.services.battlereadiness.BattleReadinessService; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.AutoClosable; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.battlefield.models.user.spawn.TankSpawnerModelServer; public class LocalTankFirstTimeSpawner implements AutoClosable, BattleEventListener { [Inject] public static var battleReadinessService:BattleReadinessService; [Inject] public static var battleEventDispatcher:BattleEventDispatcher; private var user:IGameObject; private var server:TankSpawnerModelServer; public function LocalTankFirstTimeSpawner(param1:IGameObject, param2:TankSpawnerModelServer) { super(); this.user = param1; this.server = param2; var local3:ITankPause = ITankPause(param1.adapt(ITankPause)); local3.resetIdleKickTime(); if(battleReadinessService.isMapReady()) { this.spawn(); } else { battleEventDispatcher.addBattleEventListener(MapBuildingCompleteEvent,this); } } public function handleBattleEvent(param1:Object) : void { this.spawn(); } private function spawn() : void { Model.object = this.user; this.server.readyToSpawnCommand(); Model.popObject(); } [Obfuscation(rename="false")] public function close() : void { this.user = null; this.server = null; battleEventDispatcher.removeBattleEventListener(MapBuildingCompleteEvent,this); } } }
package projects.tanks.client.battlefield.models.ultimate.common { public interface IUltimateModelBase { function resetCharge() : void; function showUltimateCharged() : void; function ultimateRejected() : void; function ultimateUsed() : void; function updateCharge(param1:int) : void; function updateChargeAndRate(param1:int, param2:Number) : void; } }
package projects.tanks.client.battlefield.models.tankparts.sfx.freeze { public interface IFreezeSFXModelBase { } }
package assets.combo { import flash.display.BitmapData; [Embed(source="/_assets/assets.combo.combo_OFF_CENTER.png")] public dynamic class combo_OFF_CENTER extends BitmapData { public function combo_OFF_CENTER(param1:int = 175, param2:int = 30) { super(param1,param2); } } }
package alternativa.tanks.gui.icons { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.icons.CrystalIcon_bitmapCrystal.png")] public class CrystalIcon_bitmapCrystal extends BitmapAsset { public function CrystalIcon_bitmapCrystal() { super(); } } }
package scpacker.resource { import alternativa.init.Main; import flash.events.Event; import flash.events.IOErrorEvent; import flash.events.SecurityErrorEvent; import flash.media.Sound; import flash.media.SoundLoaderContext; import flash.net.URLLoader; import flash.net.URLRequest; import scpacker.resource.cache.SoundCacheLoader; public class SoundResourceLoader { private var path:String; public var list:SoundResourcesList; public var status:int = 0; public function SoundResourceLoader(path:String) { super(); this.path = path; this.list = new SoundResourcesList(); this.load(); } private function load() : void { var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE,this.parse); loader.load(new URLRequest(this.path)); } private function parse(e:Event) : void { var config:Object = null; var temp:Object = null; var obj:Object = null; try { config = JSON.parse(e.target.data); if(config.id != "SOUNDS") { throw new Error("file dont sound\'s resource"); } for each(obj in config.items) { temp = obj; this.loadSound(obj); } this.status = 1; ResourceUtil.onCompleteLoading(); } catch(e:Error) { throw e; } } private function loadSound(configObject:Object) : void { var soundLoader:Sound = null; soundLoader = null; var prefix:String = !!Game.local ? "" : "resources/"; soundLoader = new SoundCacheLoader(); soundLoader.addEventListener(Event.COMPLETE,function(e:Event):void { list.add(new SoundResource(soundLoader,configObject.name)); }); soundLoader.addEventListener(IOErrorEvent.IO_ERROR,function(e:Event):void { Main.debug.showAlert("Can\'t load sound resource: " + configObject.src); }); soundLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,function(e:Event):void { }); configObject.src = (configObject.src as String).split("?")[0]; soundLoader.load(new URLRequest(prefix + configObject.src),new SoundLoaderContext()); } } }
package projects.tanks.client.battlefield.models.user.configuration { import alternativa.types.Long; public class TankConfigurationCC { private var _coloringId:Long; private var _droneId:Long; private var _hullId:Long; private var _weaponId:Long; public function TankConfigurationCC(param1:Long = null, param2:Long = null, param3:Long = null, param4:Long = null) { super(); this._coloringId = param1; this._droneId = param2; this._hullId = param3; this._weaponId = param4; } public function get coloringId() : Long { return this._coloringId; } public function set coloringId(param1:Long) : void { this._coloringId = param1; } public function get droneId() : Long { return this._droneId; } public function set droneId(param1:Long) : void { this._droneId = param1; } public function get hullId() : Long { return this._hullId; } public function set hullId(param1:Long) : void { this._hullId = param1; } public function get weaponId() : Long { return this._weaponId; } public function set weaponId(param1:Long) : void { this._weaponId = param1; } public function toString() : String { var local1:String = "TankConfigurationCC ["; local1 += "coloringId = " + this.coloringId + " "; local1 += "droneId = " + this.droneId + " "; local1 += "hullId = " + this.hullId + " "; local1 += "weaponId = " + this.weaponId + " "; return local1 + "]"; } } }
package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.lights.DirectionalLight; import alternativa.engine3d.objects.Mesh; import alternativa.gfx.agal.FragmentShader; import alternativa.gfx.agal.Shader; import alternativa.gfx.core.Device; import alternativa.gfx.core.IndexBufferResource; import alternativa.gfx.core.ProgramResource; import alternativa.gfx.core.TextureResource; import alternativa.gfx.core.VertexBufferResource; import flash.display3D.Context3DProgramType; import flash.display3D.Context3DVertexBufferFormat; import flash.geom.Vector3D; import flash.utils.ByteArray; use namespace alternativa3d; public class Shadow { private static var casterProgram:ProgramResource; private static var volumeProgram:ProgramResource; private static var casterConst:Vector.<Number> = Vector.<Number>([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0]); private static var volumeVertexBuffer:VertexBufferResource = new VertexBufferResource(Vector.<Number>([0,0,0,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,1,1,1,1,0,1]),3); private static var volumeIndexBuffer:IndexBufferResource = new IndexBufferResource(Vector.<uint>([0,1,3,2,3,1,7,6,4,5,4,6,4,5,0,1,0,5,3,2,7,6,7,2,0,3,4,7,4,3,5,6,1,2,1,6])); private static var volumeTransformConst:Vector.<Number> = new Vector.<Number>(20); private static var volumeFragmentConst:Vector.<Number> = Vector.<Number>([1,0,1,0.5]); private static var receiverPrograms:Array = new Array(); public var mapSize:int; public var blur:int; public var attenuation:Number; public var nearDistance:Number; public var farDistance:Number; public var color:int; public var alpha:Number; public var direction:Vector3D = new Vector3D(0,0,-1); public var offset:Number = 0; public var backFadeRange:Number = 0; private var casters:Vector.<Mesh> = new Vector.<Mesh>(); private var castersCount:int = 0; alternativa3d var receiversBuffers:Vector.<int> = new Vector.<int>(); alternativa3d var receiversFirstIndexes:Vector.<int> = new Vector.<int>(); alternativa3d var receiversNumsTriangles:Vector.<int> = new Vector.<int>(); alternativa3d var receiversCount:int = 0; private var dir:Vector3D = new Vector3D(); private var light:DirectionalLight = new DirectionalLight(0); private var boundVertexList:Vertex = Vertex.alternativa3d::createList(8); private var planeX:Number; private var planeY:Number; private var planeSize:Number; private var minZ:Number; alternativa3d var boundMinX:Number; alternativa3d var boundMinY:Number; alternativa3d var boundMinZ:Number; alternativa3d var boundMaxX:Number; alternativa3d var boundMaxY:Number; alternativa3d var boundMaxZ:Number; alternativa3d var cameraInside:Boolean; private var transformConst:Vector.<Number> = new Vector.<Number>(12); private var uvConst:Vector.<Number> = Vector.<Number>([0,0,0,1,0,0,0,1]); private var colorConst:Vector.<Number> = new Vector.<Number>(12); private var clampConst:Vector.<Number> = Vector.<Number>([0,0,0,1]); alternativa3d var texture:TextureResource; alternativa3d var textureScaleU:Number; alternativa3d var textureScaleV:Number; alternativa3d var textureOffsetU:Number; alternativa3d var textureOffsetV:Number; public function Shadow(param1:int, param2:int, param3:Number, param4:Number, param5:Number, param6:int = 0, param7:Number = 1) { super(); if(param1 > ShadowAtlas.alternativa3d::sizeLimit) { throw new Error("Value of mapSize too big."); } var local8:Number = Math.log(param1) / Math.LN2; if(local8 != int(local8)) { throw new Error("Value of mapSize must be power of 2."); } this.mapSize = param1; this.blur = param2; this.attenuation = param3; this.nearDistance = param4; this.farDistance = param5; this.color = param6; this.alpha = param7; } alternativa3d static function getCasterProgram() : ProgramResource { var local2:ByteArray = null; var local3:FragmentShader = null; var local1:ProgramResource = casterProgram; if(local1 == null) { local2 = new ShadowCasterVertexShader().agalcode; local3 = new FragmentShader(); local3.mov(FragmentShader.oc,Shader.v0); local1 = new ProgramResource(local2,local3.agalcode); casterProgram = local1; } return local1; } public function addCaster(param1:Mesh) : void { this.casters[this.castersCount] = param1; ++this.castersCount; } public function removeCaster(param1:Mesh) : void { var local2:int = 0; while(local2 < this.castersCount) { if(this.casters[local2] == param1) { --this.castersCount; while(local2 < this.castersCount) { this.casters[local2] = this.casters[int(local2 + 1)]; local2++; } this.casters.length = this.castersCount; break; } local2++; } } public function removeAllCasters() : void { this.castersCount = 0; this.casters.length = 0; } alternativa3d function checkVisibility(param1:Camera3D) : Boolean { var local24:Object3D = null; var local25:Object3D = null; var local26:Vertex = null; var local27:Number = NaN; if(this.castersCount == 0) { return false; } if(this.direction != null) { this.dir.x = this.direction.x; this.dir.y = this.direction.y; this.dir.z = this.direction.z; this.dir.normalize(); } else { this.dir.x = 0; this.dir.y = 0; this.dir.z = -1; } this.light.rotationX = Math.atan2(this.dir.z,Math.sqrt(this.dir.x * this.dir.x + this.dir.y * this.dir.y)) - Math.PI / 2; this.light.rotationY = 0; this.light.rotationZ = -Math.atan2(this.dir.x,this.dir.y); this.light.alternativa3d::composeMatrix(); var local2:Number = Number(this.light.alternativa3d::ma); var local3:Number = Number(this.light.alternativa3d::mb); var local4:Number = Number(this.light.alternativa3d::mc); var local5:Number = Number(this.light.alternativa3d::md); var local6:Number = Number(this.light.alternativa3d::me); var local7:Number = Number(this.light.alternativa3d::mf); var local8:Number = Number(this.light.alternativa3d::mg); var local9:Number = Number(this.light.alternativa3d::mh); var local10:Number = Number(this.light.alternativa3d::mi); var local11:Number = Number(this.light.alternativa3d::mj); var local12:Number = Number(this.light.alternativa3d::mk); var local13:Number = Number(this.light.alternativa3d::ml); this.light.alternativa3d::invertMatrix(); this.light.alternativa3d::ima = this.light.alternativa3d::ma; this.light.alternativa3d::imb = this.light.alternativa3d::mb; this.light.alternativa3d::imc = this.light.alternativa3d::mc; this.light.alternativa3d::imd = this.light.alternativa3d::md; this.light.alternativa3d::ime = this.light.alternativa3d::me; this.light.alternativa3d::imf = this.light.alternativa3d::mf; this.light.alternativa3d::img = this.light.alternativa3d::mg; this.light.alternativa3d::imh = this.light.alternativa3d::mh; this.light.alternativa3d::imi = this.light.alternativa3d::mi; this.light.alternativa3d::imj = this.light.alternativa3d::mj; this.light.alternativa3d::imk = this.light.alternativa3d::mk; this.light.alternativa3d::iml = this.light.alternativa3d::ml; this.light.boundMinX = 1e+22; this.light.boundMinY = 1e+22; this.light.boundMinZ = 1e+22; this.light.boundMaxX = -1e+22; this.light.boundMaxY = -1e+22; this.light.boundMaxZ = -1e+22; var local14:int = 0; while(local14 < this.castersCount) { local24 = this.casters[local14]; local24.alternativa3d::composeMatrix(); local25 = local24.alternativa3d::_parent; while(local25 != null) { Object3D.alternativa3d::tA.alternativa3d::composeMatrixFromSource(local25); local24.alternativa3d::appendMatrix(Object3D.alternativa3d::tA); local25 = local25.alternativa3d::_parent; } local24.alternativa3d::appendMatrix(this.light); local26 = this.boundVertexList; local26.x = local24.boundMinX; local26.y = local24.boundMinY; local26.z = local24.boundMinZ; local26 = local26.alternativa3d::next; local26.x = local24.boundMaxX; local26.y = local24.boundMinY; local26.z = local24.boundMinZ; local26 = local26.alternativa3d::next; local26.x = local24.boundMinX; local26.y = local24.boundMaxY; local26.z = local24.boundMinZ; local26 = local26.alternativa3d::next; local26.x = local24.boundMaxX; local26.y = local24.boundMaxY; local26.z = local24.boundMinZ; local26 = local26.alternativa3d::next; local26.x = local24.boundMinX; local26.y = local24.boundMinY; local26.z = local24.boundMaxZ; local26 = local26.alternativa3d::next; local26.x = local24.boundMaxX; local26.y = local24.boundMinY; local26.z = local24.boundMaxZ; local26 = local26.alternativa3d::next; local26.x = local24.boundMinX; local26.y = local24.boundMaxY; local26.z = local24.boundMaxZ; local26 = local26.alternativa3d::next; local26.x = local24.boundMaxX; local26.y = local24.boundMaxY; local26.z = local24.boundMaxZ; local26 = this.boundVertexList; while(local26 != null) { local26.alternativa3d::cameraX = local24.alternativa3d::ma * local26.x + local24.alternativa3d::mb * local26.y + local24.alternativa3d::mc * local26.z + local24.alternativa3d::md; local26.alternativa3d::cameraY = local24.alternativa3d::me * local26.x + local24.alternativa3d::mf * local26.y + local24.alternativa3d::mg * local26.z + local24.alternativa3d::mh; local26.alternativa3d::cameraZ = local24.alternativa3d::mi * local26.x + local24.alternativa3d::mj * local26.y + local24.alternativa3d::mk * local26.z + local24.alternativa3d::ml; if(local26.alternativa3d::cameraX < this.light.boundMinX) { this.light.boundMinX = local26.alternativa3d::cameraX; } if(local26.alternativa3d::cameraX > this.light.boundMaxX) { this.light.boundMaxX = local26.alternativa3d::cameraX; } if(local26.alternativa3d::cameraY < this.light.boundMinY) { this.light.boundMinY = local26.alternativa3d::cameraY; } if(local26.alternativa3d::cameraY > this.light.boundMaxY) { this.light.boundMaxY = local26.alternativa3d::cameraY; } if(local26.alternativa3d::cameraZ < this.light.boundMinZ) { this.light.boundMinZ = local26.alternativa3d::cameraZ; } if(local26.alternativa3d::cameraZ > this.light.boundMaxZ) { this.light.boundMaxZ = local26.alternativa3d::cameraZ; } local26 = local26.alternativa3d::next; } local14++; } var local15:int = this.mapSize - 1 - 1 - this.blur - this.blur; var local16:Number = this.light.boundMaxX - this.light.boundMinX; var local17:Number = this.light.boundMaxY - this.light.boundMinY; var local18:Number = local16 > local17 ? local16 : local17; var local19:Number = local18 / local15; var local20:Number = (1 + this.blur) * local19; var local21:Number = (1 + this.blur) * local19; if(local16 > local17) { local21 += (Math.ceil((local17 - 0.01) / (local19 + local19)) * (local19 + local19) - local17) * 0.5; } else { local20 += (Math.ceil((local16 - 0.01) / (local19 + local19)) * (local19 + local19) - local16) * 0.5; } this.light.boundMinX -= local20; this.light.boundMaxX += local20; this.light.boundMinY -= local21; this.light.boundMaxY += local21; this.light.boundMinZ += this.offset; this.light.boundMaxZ += this.attenuation; this.planeSize = local18 * this.mapSize / local15; if(local16 > local17) { this.planeX = this.light.boundMinX; this.planeY = this.light.boundMinY - (this.light.boundMaxX - this.light.boundMinX - (this.light.boundMaxY - this.light.boundMinY)) * 0.5; } else { this.planeX = this.light.boundMinX - (this.light.boundMaxY - this.light.boundMinY - (this.light.boundMaxX - this.light.boundMinX)) * 0.5; this.planeY = this.light.boundMinY; } var local22:Number = param1.farClipping; param1.farClipping = this.farDistance * param1.shadowsDistanceMultiplier; this.light.alternativa3d::ma = local2; this.light.alternativa3d::mb = local3; this.light.alternativa3d::mc = local4; this.light.alternativa3d::md = local5; this.light.alternativa3d::me = local6; this.light.alternativa3d::mf = local7; this.light.alternativa3d::mg = local8; this.light.alternativa3d::mh = local9; this.light.alternativa3d::mi = local10; this.light.alternativa3d::mj = local11; this.light.alternativa3d::mk = local12; this.light.alternativa3d::ml = local13; this.light.alternativa3d::appendMatrix(param1); var local23:Boolean = this.cullingInCamera(param1); param1.farClipping = local22; if(local23) { if(param1.debug && Boolean(param1.alternativa3d::checkInDebug(this.light) & Debug.BOUNDS)) { Debug.alternativa3d::drawBounds(param1,this.light,this.light.boundMinX,this.light.boundMinY,this.light.boundMinZ,this.light.boundMaxX,this.light.boundMaxY,this.light.boundMaxZ,16711935); } this.alternativa3d::boundMinX = 1e+22; this.alternativa3d::boundMinY = 1e+22; this.alternativa3d::boundMinZ = 1e+22; this.alternativa3d::boundMaxX = -1e+22; this.alternativa3d::boundMaxY = -1e+22; this.alternativa3d::boundMaxZ = -1e+22; local26 = this.boundVertexList; while(local26 != null) { local26.alternativa3d::cameraX = local2 * local26.x + local3 * local26.y + local4 * local26.z + local5; local26.alternativa3d::cameraY = local6 * local26.x + local7 * local26.y + local8 * local26.z + local9; local26.alternativa3d::cameraZ = local10 * local26.x + local11 * local26.y + local12 * local26.z + local13; if(local26.alternativa3d::cameraX < this.alternativa3d::boundMinX) { this.alternativa3d::boundMinX = local26.alternativa3d::cameraX; } if(local26.alternativa3d::cameraX > this.alternativa3d::boundMaxX) { this.alternativa3d::boundMaxX = local26.alternativa3d::cameraX; } if(local26.alternativa3d::cameraY < this.alternativa3d::boundMinY) { this.alternativa3d::boundMinY = local26.alternativa3d::cameraY; } if(local26.alternativa3d::cameraY > this.alternativa3d::boundMaxY) { this.alternativa3d::boundMaxY = local26.alternativa3d::cameraY; } if(local26.alternativa3d::cameraZ < this.alternativa3d::boundMinZ) { this.alternativa3d::boundMinZ = local26.alternativa3d::cameraZ; } if(local26.alternativa3d::cameraZ > this.alternativa3d::boundMaxZ) { this.alternativa3d::boundMaxZ = local26.alternativa3d::cameraZ; } local26 = local26.alternativa3d::next; } this.alternativa3d::cameraInside = false; if(this.minZ <= param1.nearClipping) { local27 = this.light.alternativa3d::ima * param1.alternativa3d::gmd + this.light.alternativa3d::imb * param1.alternativa3d::gmh + this.light.alternativa3d::imc * param1.alternativa3d::gml + this.light.alternativa3d::imd; if(local27 - param1.nearClipping <= this.light.boundMaxX && local27 + param1.nearClipping >= this.light.boundMinX) { local27 = this.light.alternativa3d::ime * param1.alternativa3d::gmd + this.light.alternativa3d::imf * param1.alternativa3d::gmh + this.light.alternativa3d::img * param1.alternativa3d::gml + this.light.alternativa3d::imh; if(local27 - param1.nearClipping <= this.light.boundMaxY && local27 + param1.nearClipping >= this.light.boundMinY) { local27 = this.light.alternativa3d::imi * param1.alternativa3d::gmd + this.light.alternativa3d::imj * param1.alternativa3d::gmh + this.light.alternativa3d::imk * param1.alternativa3d::gml + this.light.alternativa3d::iml; if(local27 - param1.nearClipping <= this.light.boundMaxZ && local27 + param1.nearClipping >= this.light.boundMinZ) { this.alternativa3d::cameraInside = true; } } } } } return local23; } alternativa3d function renderCasters(param1:Camera3D) : void { var local10:Mesh = null; var local2:Device = param1.alternativa3d::device; var local3:Number = 2 / this.planeSize; var local4:Number = -2 / this.planeSize; var local5:Number = 1 / (this.light.boundMaxZ - this.attenuation - (this.light.boundMinZ - this.offset)); var local6:Number = -(this.light.boundMinZ - this.offset) * local5; var local7:Number = (this.light.boundMinX + this.light.boundMaxX) * 0.5; var local8:Number = (this.light.boundMinY + this.light.boundMaxY) * 0.5; var local9:int = 0; while(local9 < this.castersCount) { local10 = this.casters[local9]; local10.alternativa3d::prepareResources(); casterConst[0] = local10.alternativa3d::ma * local3; casterConst[1] = local10.alternativa3d::mb * local3; casterConst[2] = local10.alternativa3d::mc * local3; casterConst[3] = (local10.alternativa3d::md - local7) * local3; casterConst[4] = local10.alternativa3d::me * local4; casterConst[5] = local10.alternativa3d::mf * local4; casterConst[6] = local10.alternativa3d::mg * local4; casterConst[7] = (local10.alternativa3d::mh - local8) * local4; casterConst[8] = local10.alternativa3d::mi * local5; casterConst[9] = local10.alternativa3d::mj * local5; casterConst[10] = local10.alternativa3d::mk * local5; casterConst[11] = local10.alternativa3d::ml * local5 + local6; casterConst[12] = this.alternativa3d::textureScaleU; casterConst[13] = this.alternativa3d::textureScaleV; casterConst[16] = 2 * this.alternativa3d::textureOffsetU - 1 + this.alternativa3d::textureScaleU; casterConst[17] = -(2 * this.alternativa3d::textureOffsetV - 1 + this.alternativa3d::textureScaleV); local2.setVertexBufferAt(0,local10.alternativa3d::vertexBuffer,0,Context3DVertexBufferFormat.FLOAT_3); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,casterConst,5,false); local2.drawTriangles(local10.alternativa3d::indexBuffer,0,local10.alternativa3d::numTriangles); local9++; } this.clampConst[0] = this.alternativa3d::textureOffsetU; this.clampConst[1] = this.alternativa3d::textureOffsetV; this.clampConst[2] = this.alternativa3d::textureOffsetU + this.alternativa3d::textureScaleU; this.clampConst[3] = this.alternativa3d::textureOffsetV + this.alternativa3d::textureScaleV; } alternativa3d function renderVolume(param1:Camera3D) : void { var local2:Device = param1.alternativa3d::device; volumeTransformConst[0] = this.light.alternativa3d::ma; volumeTransformConst[1] = this.light.alternativa3d::mb; volumeTransformConst[2] = this.light.alternativa3d::mc; volumeTransformConst[3] = this.light.alternativa3d::md; volumeTransformConst[4] = this.light.alternativa3d::me; volumeTransformConst[5] = this.light.alternativa3d::mf; volumeTransformConst[6] = this.light.alternativa3d::mg; volumeTransformConst[7] = this.light.alternativa3d::mh; volumeTransformConst[8] = this.light.alternativa3d::mi; volumeTransformConst[9] = this.light.alternativa3d::mj; volumeTransformConst[10] = this.light.alternativa3d::mk; volumeTransformConst[11] = this.light.alternativa3d::ml; volumeTransformConst[12] = this.light.boundMaxX - this.light.boundMinX; volumeTransformConst[13] = this.light.boundMaxY - this.light.boundMinY; volumeTransformConst[14] = this.light.boundMaxZ - this.light.boundMinZ; volumeTransformConst[15] = 1; volumeTransformConst[16] = this.light.boundMinX; volumeTransformConst[17] = this.light.boundMinY; volumeTransformConst[18] = this.light.boundMinZ; volumeTransformConst[19] = 1; local2.setProgram(this.getVolumeProgram()); local2.setVertexBufferAt(0,volumeVertexBuffer,0,Context3DVertexBufferFormat.FLOAT_3); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,11,volumeTransformConst,5,false); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,16,param1.alternativa3d::projection,1); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,17,param1.alternativa3d::correction,1); local2.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,13,volumeFragmentConst,1); local2.drawTriangles(volumeIndexBuffer,0,12); } alternativa3d function renderReceivers(param1:Camera3D) : void { var local21:int = 0; var local2:Device = param1.alternativa3d::device; var local3:Number = this.light.boundMinZ - this.offset; var local4:Number = this.light.boundMaxZ - this.attenuation - local3; var local5:Number = this.light.alternativa3d::ima / this.planeSize; var local6:Number = this.light.alternativa3d::imb / this.planeSize; var local7:Number = this.light.alternativa3d::imc / this.planeSize; var local8:Number = (this.light.alternativa3d::imd - this.planeX) / this.planeSize; var local9:Number = this.light.alternativa3d::ime / this.planeSize; var local10:Number = this.light.alternativa3d::imf / this.planeSize; var local11:Number = this.light.alternativa3d::img / this.planeSize; var local12:Number = (this.light.alternativa3d::imh - this.planeY) / this.planeSize; var local13:Number = this.light.alternativa3d::imi / local4; var local14:Number = this.light.alternativa3d::imj / local4; var local15:Number = this.light.alternativa3d::imk / local4; var local16:Number = (this.light.alternativa3d::iml - local3) / local4; this.transformConst[0] = local5 * param1.alternativa3d::gma + local6 * param1.alternativa3d::gme + local7 * param1.alternativa3d::gmi; this.transformConst[1] = local5 * param1.alternativa3d::gmb + local6 * param1.alternativa3d::gmf + local7 * param1.alternativa3d::gmj; this.transformConst[2] = local5 * param1.alternativa3d::gmc + local6 * param1.alternativa3d::gmg + local7 * param1.alternativa3d::gmk; this.transformConst[3] = local5 * param1.alternativa3d::gmd + local6 * param1.alternativa3d::gmh + local7 * param1.alternativa3d::gml + local8; this.transformConst[4] = local9 * param1.alternativa3d::gma + local10 * param1.alternativa3d::gme + local11 * param1.alternativa3d::gmi; this.transformConst[5] = local9 * param1.alternativa3d::gmb + local10 * param1.alternativa3d::gmf + local11 * param1.alternativa3d::gmj; this.transformConst[6] = local9 * param1.alternativa3d::gmc + local10 * param1.alternativa3d::gmg + local11 * param1.alternativa3d::gmk; this.transformConst[7] = local9 * param1.alternativa3d::gmd + local10 * param1.alternativa3d::gmh + local11 * param1.alternativa3d::gml + local12; this.transformConst[8] = local13 * param1.alternativa3d::gma + local14 * param1.alternativa3d::gme + local15 * param1.alternativa3d::gmi; this.transformConst[9] = local13 * param1.alternativa3d::gmb + local14 * param1.alternativa3d::gmf + local15 * param1.alternativa3d::gmj; this.transformConst[10] = local13 * param1.alternativa3d::gmc + local14 * param1.alternativa3d::gmg + local15 * param1.alternativa3d::gmk; this.transformConst[11] = local13 * param1.alternativa3d::gmd + local14 * param1.alternativa3d::gmh + local15 * param1.alternativa3d::gml + local16; this.uvConst[0] = this.alternativa3d::textureScaleU; this.uvConst[1] = this.alternativa3d::textureScaleV; this.uvConst[4] = this.alternativa3d::textureOffsetU; this.uvConst[5] = this.alternativa3d::textureOffsetV; var local17:Number = this.nearDistance * param1.shadowsDistanceMultiplier; var local18:Number = this.farDistance * param1.shadowsDistanceMultiplier; var local19:Number = 1 - (this.minZ - local17) / (local18 - local17); if(local19 < 0) { local19 = 0; } if(local19 > 1) { local19 = 1; } this.colorConst[0] = 0; this.colorConst[1] = 256; this.colorConst[2] = 1; this.colorConst[3] = this.attenuation / local4; this.colorConst[4] = 0; this.colorConst[5] = this.backFadeRange / local4; this.colorConst[6] = this.offset / local4; this.colorConst[7] = 1; this.colorConst[8] = (this.color >> 16 & 0xFF) / 255; this.colorConst[9] = (this.color >> 8 & 0xFF) / 255; this.colorConst[10] = (this.color & 0xFF) / 255; this.colorConst[11] = this.alpha * local19 * param1.shadowsStrength; local2.setProgram(this.getReceiverProgram(param1.view.alternativa3d::quality,this.alternativa3d::cameraInside,param1.view.alternativa3d::correction)); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,11,param1.alternativa3d::transform,3); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,14,param1.alternativa3d::projection,1); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,15,this.transformConst,3); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,18,param1.alternativa3d::correction,1); local2.setProgramConstantsFromVector(Context3DProgramType.VERTEX,19,this.uvConst,2); local2.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,13,this.colorConst,3); local2.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,16,this.clampConst,1); var local20:int = 0; while(local20 < this.alternativa3d::receiversCount) { local21 = this.alternativa3d::receiversBuffers[local20]; local2.setVertexBufferAt(0,param1.alternativa3d::receiversVertexBuffers[local21],0,Context3DVertexBufferFormat.FLOAT_3); local2.drawTriangles(param1.alternativa3d::receiversIndexBuffers[local21],this.alternativa3d::receiversFirstIndexes[local20],this.alternativa3d::receiversNumsTriangles[local20]); ++param1.alternativa3d::numShadows; local20++; } this.alternativa3d::receiversCount = 0; } private function getVolumeProgram() : ProgramResource { var local2:ByteArray = null; var local3:FragmentShader = null; var local1:ProgramResource = volumeProgram; if(local1 == null) { local2 = new ShadowVolumeVertexShader().agalcode; local3 = new FragmentShader(); local3.mov(FragmentShader.oc,FragmentShader.fc[13]); local1 = new ProgramResource(local2,local3.agalcode); volumeProgram = local1; } return local1; } private function getReceiverProgram(param1:Boolean, param2:Boolean, param3:Boolean) : ProgramResource { var local6:ByteArray = null; var local7:ByteArray = null; var local4:int = int(param1) | int(param2) << 1 | int(param3) << 2; var local5:ProgramResource = receiverPrograms[local4]; if(local5 == null) { local6 = new ShadowReceiverVertexShader(param3).agalcode; local7 = new ShadowReceiverFragmentShader(param1,param2).agalcode; local5 = new ProgramResource(local6,local7); receiverPrograms[local4] = local5; } return local5; } private function cullingInCamera(param1:Camera3D) : Boolean { var local3:Boolean = false; var local4:Boolean = false; var local2:Vertex = this.boundVertexList; local2.x = this.light.boundMinX; local2.y = this.light.boundMinY; local2.z = this.light.boundMinZ; local2 = local2.alternativa3d::next; local2.x = this.light.boundMaxX; local2.y = this.light.boundMinY; local2.z = this.light.boundMinZ; local2 = local2.alternativa3d::next; local2.x = this.light.boundMinX; local2.y = this.light.boundMaxY; local2.z = this.light.boundMinZ; local2 = local2.alternativa3d::next; local2.x = this.light.boundMaxX; local2.y = this.light.boundMaxY; local2.z = this.light.boundMinZ; local2 = local2.alternativa3d::next; local2.x = this.light.boundMinX; local2.y = this.light.boundMinY; local2.z = this.light.boundMaxZ; local2 = local2.alternativa3d::next; local2.x = this.light.boundMaxX; local2.y = this.light.boundMinY; local2.z = this.light.boundMaxZ; local2 = local2.alternativa3d::next; local2.x = this.light.boundMinX; local2.y = this.light.boundMaxY; local2.z = this.light.boundMaxZ; local2 = local2.alternativa3d::next; local2.x = this.light.boundMaxX; local2.y = this.light.boundMaxY; local2.z = this.light.boundMaxZ; this.minZ = 1e+22; local2 = this.boundVertexList; while(local2 != null) { local2.alternativa3d::cameraX = this.light.alternativa3d::ma * local2.x + this.light.alternativa3d::mb * local2.y + this.light.alternativa3d::mc * local2.z + this.light.alternativa3d::md; local2.alternativa3d::cameraY = this.light.alternativa3d::me * local2.x + this.light.alternativa3d::mf * local2.y + this.light.alternativa3d::mg * local2.z + this.light.alternativa3d::mh; local2.alternativa3d::cameraZ = this.light.alternativa3d::mi * local2.x + this.light.alternativa3d::mj * local2.y + this.light.alternativa3d::mk * local2.z + this.light.alternativa3d::ml; if(local2.alternativa3d::cameraZ < this.minZ) { this.minZ = local2.alternativa3d::cameraZ; } local2 = local2.alternativa3d::next; } var local5:Number = param1.nearClipping; local2 = this.boundVertexList; local3 = false; local4 = false; while(local2 != null) { if(local2.alternativa3d::cameraZ > local5) { local3 = true; if(local4) { break; } } else { local4 = true; if(local3) { break; } } local2 = local2.alternativa3d::next; } if(local4 && !local3) { return false; } var local6:Number = param1.farClipping; local2 = this.boundVertexList; local3 = false; local4 = false; while(local2 != null) { if(local2.alternativa3d::cameraZ < local6) { local3 = true; if(local4) { break; } } else { local4 = true; if(local3) { break; } } local2 = local2.alternativa3d::next; } if(local4 && !local3) { return false; } local2 = this.boundVertexList; local3 = false; local4 = false; while(local2 != null) { if(-local2.alternativa3d::cameraX < local2.alternativa3d::cameraZ) { local3 = true; if(local4) { break; } } else { local4 = true; if(local3) { break; } } local2 = local2.alternativa3d::next; } if(local4 && !local3) { return false; } local2 = this.boundVertexList; local3 = false; local4 = false; while(local2 != null) { if(local2.alternativa3d::cameraX < local2.alternativa3d::cameraZ) { local3 = true; if(local4) { break; } } else { local4 = true; if(local3) { break; } } local2 = local2.alternativa3d::next; } if(local4 && !local3) { return false; } local2 = this.boundVertexList; local3 = false; local4 = false; while(local2 != null) { if(-local2.alternativa3d::cameraY < local2.alternativa3d::cameraZ) { local3 = true; if(local4) { break; } } else { local4 = true; if(local3) { break; } } local2 = local2.alternativa3d::next; } if(local4 && !local3) { return false; } local2 = this.boundVertexList; local3 = false; local4 = false; while(local2 != null) { if(local2.alternativa3d::cameraY < local2.alternativa3d::cameraZ) { local3 = true; if(local4) { break; } } else { local4 = true; if(local3) { break; } } local2 = local2.alternativa3d::next; } if(local4 && !local3) { return false; } return true; } } }
package controls.rangicons { import mx.core.BitmapAsset; [ExcludeClass] public class RangIcon_p11 extends BitmapAsset { public function RangIcon_p11() { super(); } } }
package alternativa.tanks.models.tank.ultimate.mammoth { import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.Mesh; import alternativa.math.Vector3; import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.BattleUtils; import alternativa.tanks.battle.events.BattleEventDispatcher; import alternativa.tanks.battle.events.BattleEventSupport; import alternativa.tanks.battle.events.TankLoadedEvent; import alternativa.tanks.battle.objects.tank.Tank; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.models.battle.facilities.BattleFacilities; import alternativa.tanks.models.tank.ITankModel; import alternativa.tanks.models.tank.hullcommon.HullCommon; import alternativa.tanks.sfx.Sound3D; import alternativa.types.Long; import alternativa.utils.TextureMaterialRegistry; import platform.client.fp10.core.model.ObjectLoadListener; import platform.client.fp10.core.model.ObjectUnloadListener; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.battlefield.models.ultimate.effects.mammoth.IMammothUltimateModelBase; import projects.tanks.client.battlefield.models.ultimate.effects.mammoth.MammothUltimateCC; import projects.tanks.client.battlefield.models.ultimate.effects.mammoth.MammothUltimateModelBase; [ModelInfo] public class MammothUltimateModel extends MammothUltimateModelBase implements IMammothUltimateModelBase, ObjectLoadListener, ObjectUnloadListener, ImpactEnable { [Inject] public static var battleService:BattleService; [Inject] public static var battleEventDispatcher:BattleEventDispatcher; [Inject] public static var textureMaterialRegistry:TextureMaterialRegistry; private static const SPARKLE_Z_OFFSET:int = 150; private var sparkSoundIndex:int = -1; private var vector:Vector3 = new Vector3(); private var battleEventSupport:BattleEventSupport; public function MammothUltimateModel() { super(); this.battleEventSupport = new BattleEventSupport(battleEventDispatcher); this.battleEventSupport.addEventHandler(TankLoadedEvent,this.onTankLoaded); } private function onTankLoaded(param1:TankLoadedEvent) : void { var event:TankLoadedEvent = param1; object = ITankModel(object.adapt(ITankModel)).getTankSet().hull; try { if(getInitParam() != null && getInitParam().active) { this.activateField(); } } finally { popObject(); } } public function activateField() : void { var local1:MammothUltimateCC = getInitParam(); var local2:Sound3D = Sound3D.create(local1.effectStartSound.sound); var local3:Sound3D = Sound3D.create(local1.effectLoopSound.sound); var local4:Sound3D = Sound3D.create(local1.effectStopSound.sound); var local5:IGameObject = HullCommon(object.adapt(HullCommon)).getTankObject(); var local6:Tank = ITankModel(local5.adapt(ITankModel)).getTank(); var local7:TextureMaterial = textureMaterialRegistry.getMaterial(local1.heart.data); var local8:TextureMaterial = textureMaterialRegistry.getMaterial(local1.shine.data); var local9:Mesh = local6.getSkin().getHullMesh(); var local10:FieldEffect = FieldEffect(battleService.getObjectPool().getObject(FieldEffect)); local10.init(local8,local7,local9,local2,local3,local4); battleService.addGraphicEffect(local10); putData(FieldEffect,local10); this.getBattleFacilitites().addDynamicCheckZone(object,local6,BattleUtils.toClientScale(local1.effectRadius),false); } public function deactivateField() : void { this.stopFieldEffect(true); } public function stopFieldEffect(param1:Boolean) : void { var local2:FieldEffect = FieldEffect(getData(FieldEffect)); if(local2 != null) { local2.stop(param1); clearData(FieldEffect); } this.getBattleFacilitites().removeCheckZone(object); } private function getBattleFacilitites() : BattleFacilities { return BattleFacilities(object.space.rootObject.adapt(BattleFacilities)); } public function damageByField(param1:Long) : void { var local4:Mesh = null; var local5:ExplosionEffect = null; var local2:TextureMaterial = textureMaterialRegistry.getMaterial(getInitParam().sparkles.data); var local3:IGameObject = object.space.getObject(param1); if(local3 != null) { local4 = ITankModel(local3.adapt(ITankModel)).getTank().getSkin().getHullMesh(); local5 = ExplosionEffect(battleService.getObjectPool().getObject(ExplosionEffect)); local5.init(local2,local4.x,local4.y,local4.z + SPARKLE_Z_OFFSET); battleService.addGraphicEffect(local5); this.playSparkSound(this.sparkSoundIndex,local4); } } private function playSparkSound(param1:int, param2:Mesh) : void { var local5:Sound3D = null; var local3:GameCamera = battleService.getBattleScene3D().getCamera(); var local4:MammothUltimateCC = getInitParam(); param1 = (param1 + 1) % 4; switch(param1) { case 0: local5 = Sound3D.create(local4.effectSparks1Sound.sound); break; case 1: local5 = Sound3D.create(local4.effectSparks2Sound.sound); break; case 2: local5 = Sound3D.create(local4.effectSparks3Sound.sound); break; case 3: local5 = Sound3D.create(local4.effectSparks4Sound.sound); } this.vector.reset(param2.x,param2.y,param2.z + SPARKLE_Z_OFFSET); local5.play(0,0); local5.checkVolume(local3.position,this.vector,local3.xAxis); } public function isImpactEnabled() : Boolean { var local1:FieldEffect = FieldEffect(getData(FieldEffect)); return local1 == null; } public function objectLoaded() : void { this.battleEventSupport.activateHandlers(); } public function objectUnloaded() : void { this.battleEventSupport.deactivateHandlers(); this.stopFieldEffect(false); } } }
package projects.tanks.client.partners.impl.rambler.payment { 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 RamblerPaymentModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:RamblerPaymentModelServer; private var client:IRamblerPaymentModelBase = IRamblerPaymentModelBase(this); private var modelId:Long = Long.getLong(723546009,-53480122); private var _receivePaymentTransactionId:Long = Long.getLong(47453348,912731532); private var _receivePaymentTransaction_transactionIdCodec:ICodec; public function RamblerPaymentModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new RamblerPaymentModelServer(IModel(this)); this._receivePaymentTransaction_transactionIdCodec = this._protocol.getCodec(new TypeCodecInfo(String,false)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._receivePaymentTransactionId: this.client.receivePaymentTransaction(String(this._receivePaymentTransaction_transactionIdCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.models.battle.gui.inventory { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.gui.inventory.HudInventoryIcon_goldGrayIconClass.png")] public class HudInventoryIcon_goldGrayIconClass extends BitmapAsset { public function HudInventoryIcon_goldGrayIconClass() { super(); } } }
package projects.tanks.client.entrance.model.entrance.externalentrance { public class SocialNetworkEntranceParams { private var _authorizationUrl:String; private var _enabled:Boolean; private var _snId:String; public function SocialNetworkEntranceParams(param1:String = null, param2:Boolean = false, param3:String = null) { super(); this._authorizationUrl = param1; this._enabled = param2; this._snId = param3; } public function get authorizationUrl() : String { return this._authorizationUrl; } public function set authorizationUrl(param1:String) : void { this._authorizationUrl = param1; } public function get enabled() : Boolean { return this._enabled; } public function set enabled(param1:Boolean) : void { this._enabled = param1; } public function get snId() : String { return this._snId; } public function set snId(param1:String) : void { this._snId = param1; } public function toString() : String { var local1:String = "SocialNetworkEntranceParams ["; local1 += "authorizationUrl = " + this.authorizationUrl + " "; local1 += "enabled = " + this.enabled + " "; local1 += "snId = " + this.snId + " "; return local1 + "]"; } } }
package alternativa.tanks.models.battle.facilities { import alternativa.math.Vector3; import alternativa.tanks.battle.objects.tank.Tank; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class BattleFacilitiesAdapt implements BattleFacilities { private var object:IGameObject; private var impl:BattleFacilities; public function BattleFacilitiesAdapt(param1:IGameObject, param2:BattleFacilities) { super(); this.object = param1; this.impl = param2; } public function register(param1:IGameObject) : void { var facilityObject:IGameObject = param1; try { Model.object = this.object; this.impl.register(facilityObject); } finally { Model.popObject(); } } public function unregister(param1:IGameObject) : void { var facilityObject:IGameObject = param1; try { Model.object = this.object; this.impl.unregister(facilityObject); } finally { Model.popObject(); } } public function addCheckZone(param1:IGameObject, param2:Vector3, param3:Number, param4:Boolean) : void { var facilityObject:IGameObject = param1; var position:Vector3 = param2; var checkRadius:Number = param3; var checkRaycast:Boolean = param4; try { Model.object = this.object; this.impl.addCheckZone(facilityObject,position,checkRadius,checkRaycast); } finally { Model.popObject(); } } public function addDynamicCheckZone(param1:IGameObject, param2:Tank, param3:Number, param4:Boolean) : void { var facilityObject:IGameObject = param1; var tank:Tank = param2; var checkRadius:Number = param3; var checkRaycast:Boolean = param4; try { Model.object = this.object; this.impl.addDynamicCheckZone(facilityObject,tank,checkRadius,checkRaycast); } finally { Model.popObject(); } } public function removeCheckZone(param1:IGameObject) : void { var facilityObject:IGameObject = param1; try { Model.object = this.object; this.impl.removeCheckZone(facilityObject); } finally { Model.popObject(); } } } }
package alternativa.tanks.gui.shop.components.paymentview { import alternativa.tanks.gui.shop.windows.ShopWindow; import base.DiscreteSprite; public class PaymentView extends DiscreteSprite { public var window:ShopWindow; public function PaymentView() { super(); } public function render(param1:int, param2:int) : void { } public function destroy() : void { this.window = null; } public function postRender() : void { } } }
package _codec.projects.tanks.client.panel.model.videoads { 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.videoads.VideoAdsModelCC; public class VectorCodecVideoAdsModelCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecVideoAdsModelCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(VideoAdsModelCC,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.<VideoAdsModelCC> = new Vector.<VideoAdsModelCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = VideoAdsModelCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:VideoAdsModelCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<VideoAdsModelCC> = Vector.<VideoAdsModelCC>(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.gui.clanmanagement { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.clanmanagement.ClanProfileWindow_bitmapKillsIcon.png")] public class ClanProfileWindow_bitmapKillsIcon extends BitmapAsset { public function ClanProfileWindow_bitmapKillsIcon() { super(); } } }
package alternativa.tanks.model.item.kit { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.resource.types.ImageResource; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.garage.models.item.kit.KitItem; public class GarageKitAdapt implements GarageKit { private var object:IGameObject; private var impl:GarageKit; public function GarageKitAdapt(param1:IGameObject, param2:GarageKit) { 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; } public function getPrice() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getPrice()); } finally { Model.popObject(); } return result; } public function getPriceWithoutDiscount() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getPriceWithoutDiscount()); } finally { Model.popObject(); } return result; } public function getPriceAlreadyBought() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getPriceAlreadyBought()); } finally { Model.popObject(); } return result; } public function getPriceYouSave() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getPriceYouSave()); } finally { Model.popObject(); } return result; } public function getItems() : Vector.<KitItem> { var result:Vector.<KitItem> = null; try { Model.object = this.object; result = this.impl.getItems(); } finally { Model.popObject(); } return result; } public function canBuy() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.canBuy()); } finally { Model.popObject(); } return result; } } }
package controls.resultassets { import assets.resultwindow.bres_SELECTED_BLUE_PIXEL; import assets.resultwindow.bres_SELECTED_BLUE_TL; import controls.statassets.StatLineBase; public class ResultWindowBlueSelected extends StatLineBase { public function ResultWindowBlueSelected() { super(); tl = new bres_SELECTED_BLUE_TL(1,1); px = new bres_SELECTED_BLUE_PIXEL(1,1); frameColor = 7520742; } } }
package controls.rangicons { import mx.core.BitmapAsset; [ExcludeClass] public class RangsIcon_p11 extends BitmapAsset { public function RangsIcon_p11() { super(); } } }
package projects.tanks.client.battleselect.model.battleselect { 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 BattleSelectModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _onSelectId:Long = Long.getLong(1169715532,-825946912); private var _onSelect_battleCodec:ICodec; private var _searchId:Long = Long.getLong(1663785171,1509125133); private var _search_battleIdCodec:ICodec; private var model:IModel; public function BattleSelectModelServer(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._onSelect_battleCodec = this.protocol.getCodec(new TypeCodecInfo(IGameObject,false)); this._search_battleIdCodec = this.protocol.getCodec(new TypeCodecInfo(Long,false)); } public function onSelect(param1:IGameObject) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._onSelect_battleCodec.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._onSelectId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } public function search(param1:Long) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._search_battleIdCodec.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._searchId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } } }
package forms { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.locale.constants.TextConst; import alternativa.tanks.model.captcha.CaptchaForm; import controls.DefaultButton; import controls.Label; import controls.TankInput; import controls.TankWindow; import controls.TankWindowHeader; import flash.display.Sprite; import flash.events.Event; import flash.events.FocusEvent; import flash.text.TextFormatAlign; public class RestoreEmail extends Sprite { public var cancelButton:DefaultButton; public var recoverButton:DefaultButton; public var email:TankInput; public var captchaView:CaptchaForm; private var label:Label; private var bg:TankWindow; public function RestoreEmail() { super(); var localeService:ILocaleService = Main.osgi.getService(ILocaleService) as ILocaleService; this.bg = new TankWindow(280,185); this.bg.headerLang = localeService.getText(TextConst.GUI_LANG); this.bg.header = TankWindowHeader.RECOVER; this.label = new Label(); addChild(this.bg); addChild(this.label); this.label.multiline = true; this.label.size = 11; this.label.align = TextFormatAlign.CENTER; this.label.text = localeService.getText(TextConst.ACCOUNT_RECOVERY_FORM_HELP_LABEL_TEXT); this.label.x = int(140 - this.label.width / 2); this.label.y = 25; this.cancelButton = new DefaultButton(); this.recoverButton = new DefaultButton(); this.email = new TankInput(); addChild(this.cancelButton); addChild(this.recoverButton); addChild(this.email); this.cancelButton.x = 153; this.cancelButton.y = 115; this.recoverButton.x = 30; this.recoverButton.y = 115; this.email.width = 220; this.email.x = 30; this.email.y = 70; this.cancelButton.label = localeService.getText(TextConst.ACCOUNT_RECOVERY_FORM_BUTTON_CANCEL_TEXT); this.recoverButton.label = localeService.getText(TextConst.ACCOUNT_RECOVERY_FORM_BUTTON_RECOVER_TEXT); this.x = 61; this.email.addEventListener(FocusEvent.FOCUS_IN,this.restoreInput); } private function restoreInput(e:Event) : void { this.email.validValue = true; } public function captcha(value:Boolean) : void { if(value && this.captchaView == null) { this.label.size = 12; this.captchaView = new CaptchaForm(); addChild(this.captchaView); this.captchaView.width -= 40; this.bg.height += this.captchaView.height + 40; this.bg.width += 18; this.email.width = this.captchaView.width - 15; this.captchaView.x = this.email.x; this.captchaView.y = this.email.y + this.email.height + 20; this.cancelButton.x = 175; this.cancelButton.y = 295; this.recoverButton.x = 30; this.recoverButton.y = 295; } } } }
package alternativa.tanks.controller.events { import flash.events.Event; public class AccountLoginPressed extends Event { public static const EVENT_TYPE:String = "AccountLoginPressed.EVENT_TYPE"; public function AccountLoginPressed() { super(EVENT_TYPE); } } }
package alternativa.tanks.model.premiumaccount.notification { import alternativa.osgi.service.locale.ILocaleService; import controls.base.DefaultButtonBase; import controls.base.LabelBase; import flash.events.MouseEvent; import forms.ColorConstants; import projects.tanks.client.commons.types.ShopCategoryEnum; import projects.tanks.clients.flash.commons.services.notification.Notification; import projects.tanks.clients.flash.commons.services.payment.PaymentDisplayService; import projects.tanks.clients.fp10.libraries.TanksLocale; public class PremiumCompleteNotification extends Notification { [Inject] public static var localeService:ILocaleService; [Inject] public static var paymentDisplayService:PaymentDisplayService; private var _baseMessageLabel:LabelBase; private var _rejectButton:DefaultButtonBase; private var _acceptButton:DefaultButtonBase; public function PremiumCompleteNotification(param1:String) { super(null,param1,false); } override protected function init() : void { super.init(); this._baseMessageLabel = new LabelBase(); this._baseMessageLabel.color = ColorConstants.GREEN_LABEL; this._baseMessageLabel.mouseEnabled = false; this._baseMessageLabel.htmlText = message; addChild(this._baseMessageLabel); this._acceptButton = new DefaultButtonBase(); this._acceptButton.label = localeService.getText(TanksLocale.TEXT_PREMIUM_BUTTON_EXTEND); addChild(this._acceptButton); this._rejectButton = new DefaultButtonBase(); this._rejectButton.label = localeService.getText(TanksLocale.TEXT_CLOSE_LABEL); addChild(this._rejectButton); } override protected function setEvents() : void { super.setEvents(); this._acceptButton.addEventListener(MouseEvent.CLICK,this.onAcceptClick); this._rejectButton.addEventListener(MouseEvent.CLICK,this.onRejectClick); } override protected function removeEvents() : void { super.removeEvents(); this._acceptButton.removeEventListener(MouseEvent.CLICK,this.onAcceptClick); this._rejectButton.removeEventListener(MouseEvent.CLICK,this.onRejectClick); } private function onAcceptClick(param1:MouseEvent = null) : void { hide(); if(!paymentDisplayService.isPaymentDisplayed()) { paymentDisplayService.openPaymentAt(ShopCategoryEnum.PREMIUM); } } private function onRejectClick(param1:MouseEvent) : void { this.closeNotification(); } override protected function closeNotification() : void { hide(); } override protected function resize() : void { this._baseMessageLabel.x = GAP + 9; this._baseMessageLabel.y = GAP + 5; _innerHeight = this._baseMessageLabel.y + this._baseMessageLabel.height - 3; var local1:int = this._baseMessageLabel.x + this._baseMessageLabel.width + GAP * 2; if(local1 > _width) { _width = local1; } var local2:int = _innerHeight + 16; this._acceptButton.x = GAP; this._acceptButton.y = local2; this._rejectButton.x = _width - this._rejectButton.width - GAP; this._rejectButton.y = local2; _height = this._acceptButton.y + this._acceptButton.height + GAP + 1; super.resize(); } } }
package alternativa.tanks.gui.settings.tabs { import alternativa.tanks.gui.settings.SettingsWindow; import fl.containers.ScrollPane; import fl.controls.ScrollPolicy; import flash.display.DisplayObject; import flash.display.Sprite; import flash.events.MouseEvent; import forms.ColorConstants; import utils.ScrollStyleUtils; public class ScrollableSettingsTabView extends SettingsTabView { public static const TOP_MARGIN_FOR_SCROLL_TAB:int = MARGIN - SCROLL_GAP; private static const AROUND_GAP:int = 25; private static const SCROLL_GAP:int = 5; private static const SCROLL_PANE_BOTTOM_PADDING:int = 15; private static const SCROLL_SHIFT_GAP:int = 5; private static const SCROLL_SPEED_MULTIPLIER:int = 3; protected var scrollPane:ScrollPane; private var scrollContainer:Sprite; private var scrollPaneBottomPadding:Sprite; private var _width:int; private var _height:int; private var items:Vector.<DisplayObject> = new Vector.<DisplayObject>(); public function ScrollableSettingsTabView() { super(); this.scrollContainer = new Sprite(); this.scrollPaneBottomPadding = new Sprite(); this.scrollContainer.addChild(this.scrollPaneBottomPadding); this.scrollPane = new ScrollPane(); ScrollStyleUtils.setGrayStyle(this.scrollPane); this.scrollPane.horizontalScrollPolicy = ScrollPolicy.OFF; this.scrollPane.verticalScrollPolicy = ScrollPolicy.AUTO; this.scrollPane.source = this.scrollContainer; this.scrollPane.update(); this.scrollPane.focusEnabled = false; this.scrollPane.addEventListener(MouseEvent.MOUSE_WHEEL,onMouseWheel,true); addChild(this.scrollPane); } private static function onMouseWheel(param1:MouseEvent) : void { param1.delta *= SCROLL_SPEED_MULTIPLIER; } protected function addItem(param1:DisplayObject) : void { this.items.push(param1); this.scrollContainer.addChild(param1); } public function render(param1:int, param2:int) : void { var local4:DisplayObject = null; this._width = param1; this._height = param2; this.scrollPane.y = SCROLL_GAP; this.scrollPane.setSize(param1 + SCROLL_SHIFT_GAP,param2 - SCROLL_GAP * 2); var local3:int = 0; for each(local4 in this.items) { local3 += local4.height; } this.fixScrollPaneBottomPadding(local3); this.scrollPane.update(); } override public function show() : void { this.render(SettingsWindow.TAB_VIEW_MAX_WIDTH,SettingsWindow.TAB_VIEW_MAX_HEIGHT); } override public function get width() : Number { return this._width; } override public function get height() : Number { return this._height; } private function fixScrollPaneBottomPadding(param1:int) : void { this.scrollPaneBottomPadding.graphics.lineStyle(1,ColorConstants.WHITE,0); this.scrollPaneBottomPadding.graphics.beginFill(ColorConstants.WHITE,0); this.scrollPaneBottomPadding.graphics.drawRect(0,0,1,SCROLL_PANE_BOTTOM_PADDING); this.scrollPaneBottomPadding.graphics.endFill(); this.scrollPaneBottomPadding.x = AROUND_GAP; this.scrollPaneBottomPadding.y = param1; } override public function destroy() : void { this.scrollPane.removeEventListener(MouseEvent.MOUSE_WHEEL,onMouseWheel,true); this.scrollPane = null; super.destroy(); } } }