code
stringlengths
57
237k
package platform.client.fp10.core.network.connection { import platform.client.fp10.core.network.ICommandSender; import platform.client.fp10.core.service.transport.ITransportService; public class ControlConnectionSender implements ICommandSender { [Inject] public static var transportService:ITransportService; public function ControlConnectionSender() { super(); } public function sendCommand(param1:Object) : void { var local2:ICommandSender = null; if(transportService == null || (local2 = transportService.controlConnection) == null) { return; } local2.sendCommand(param1); } } }
package controls.buttons.skins { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.buttons.skins.GoldBigButtonSkin_middleDownClass.png")] public class GoldBigButtonSkin_middleDownClass extends BitmapAsset { public function GoldBigButtonSkin_middleDownClass() { super(); } } }
package _codec.projects.tanks.client.entrance.model.entrance.partners { 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.entrance.model.entrance.partners.CompositePartnerCC; public class VectorCodecCompositePartnerCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecCompositePartnerCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(CompositePartnerCC,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.<CompositePartnerCC> = new Vector.<CompositePartnerCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = CompositePartnerCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:CompositePartnerCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<CompositePartnerCC> = Vector.<CompositePartnerCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.model.payment.modes.braintree { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class BraintreePaymentAdapt implements BraintreePayment { private var object:IGameObject; private var impl:BraintreePayment; public function BraintreePaymentAdapt(param1:IGameObject, param2:BraintreePayment) { super(); this.object = param1; this.impl = param2; } public function isPayPal() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.isPayPal()); } finally { Model.popObject(); } return result; } } }
package _codec.projects.tanks.client.clans.container { 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.clans.container.ContainerCC; public class VectorCodecContainerCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecContainerCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ContainerCC,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.<ContainerCC> = new Vector.<ContainerCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ContainerCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ContainerCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ContainerCC> = Vector.<ContainerCC>(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.tank.explosion { import alternativa.tanks.engine3d.TextureAnimation; public class ExplosionData { public var flameAnimation:TextureAnimation; public var shockWaveAnimation:TextureAnimation; public var smokeAnimation:TextureAnimation; public function ExplosionData(param1:TextureAnimation, param2:TextureAnimation, param3:TextureAnimation) { super(); this.flameAnimation = param1; this.shockWaveAnimation = param2; this.smokeAnimation = param3; } } }
package alternativa.tanks.gui.friends.list.renderer.background { import controls.cellrenderer.CellUnavailable; public class UserOfflineCellNormal extends CellUnavailable { public function UserOfflineCellNormal() { super(); } } }
package projects.tanks.client.battlefield.models.user.resistance { 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 TankResistancesModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function TankResistancesModelServer(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.model.payment.androidspecialoffer { import alternativa.types.Long; import projects.tanks.client.panel.model.shop.androidspecialoffer.offers.purchaseofupgrades.AndroidPurchaseOfUpgradesUserModelBase; import projects.tanks.client.panel.model.shop.androidspecialoffer.offers.purchaseofupgrades.IAndroidPurchaseOfUpgradesUserModelBase; [ModelInfo] public class AndroidPurchaseOfUpgradesUserModel extends AndroidPurchaseOfUpgradesUserModelBase implements IAndroidPurchaseOfUpgradesUserModelBase { public function AndroidPurchaseOfUpgradesUserModel() { super(); } public function changeLevel(param1:Long, param2:int) : void { } } }
package projects.tanks.client.garage.models.item.relativeproperties { public class RelativeProperty { private var _property:RelativeProperties; private var _value:int; public function RelativeProperty(param1:RelativeProperties = null, param2:int = 0) { super(); this._property = param1; this._value = param2; } public function get property() : RelativeProperties { return this._property; } public function set property(param1:RelativeProperties) : void { this._property = param1; } public function get value() : int { return this._value; } public function set value(param1:int) : void { this._value = param1; } public function toString() : String { var local1:String = "RelativeProperty ["; local1 += "property = " + this.property + " "; local1 += "value = " + this.value + " "; return local1 + "]"; } } }
package projects.tanks.client.garage.models.item.container.lootbox { 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 LootBoxModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _openId:Long = Long.getLong(176825622,178044881); private var _open_amountCodec:ICodec; private var model:IModel; public function LootBoxModelServer(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._open_amountCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); } public function open(param1:int) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._open_amountCodec.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._openId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } } }
package _codec.projects.tanks.client.panel.model.payment.modes.paygarden { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.EnumCodecInfo; import projects.tanks.client.panel.model.payment.modes.paygarden.PayGardenProductType; public class VectorCodecPayGardenProductTypeLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecPayGardenProductTypeLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new EnumCodecInfo(PayGardenProductType,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.<PayGardenProductType> = new Vector.<PayGardenProductType>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = PayGardenProductType(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:PayGardenProductType = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<PayGardenProductType> = Vector.<PayGardenProductType>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package projects.tanks.client.battleselect.model.matchmaking.notify { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.EnumCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import projects.tanks.client.battleselect.model.matchmaking.queue.MatchmakingMode; public class MatchmakingNotifyModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:MatchmakingNotifyModelServer; private var client:IMatchmakingNotifyModelBase = IMatchmakingNotifyModelBase(this); private var modelId:Long = Long.getLong(1668041838,-577067222); private var _registrationCancelledId:Long = Long.getLong(1292268413,1208036615); private var _registrationTimeoutId:Long = Long.getLong(930952614,-2058633481); private var _userRegistrationSuccessfulId:Long = Long.getLong(1706073111,946529251); private var _userRegistrationSuccessful_avgWaitTimeInSecondsCodec:ICodec; private var _userRegistrationSuccessful_modeCodec:ICodec; public function MatchmakingNotifyModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new MatchmakingNotifyModelServer(IModel(this)); this._userRegistrationSuccessful_avgWaitTimeInSecondsCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); this._userRegistrationSuccessful_modeCodec = this._protocol.getCodec(new EnumCodecInfo(MatchmakingMode,false)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._registrationCancelledId: this.client.registrationCancelled(); break; case this._registrationTimeoutId: this.client.registrationTimeout(); break; case this._userRegistrationSuccessfulId: this.client.userRegistrationSuccessful(int(this._userRegistrationSuccessful_avgWaitTimeInSecondsCodec.decode(param2)),MatchmakingMode(this._userRegistrationSuccessful_modeCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package projects.tanks.client.battlefield.models.tankparts.weapon.common { import platform.client.fp10.core.resource.types.SoundResource; public class WeaponCommonCC { private var _buffShotCooldownMs:int; private var _buffed:Boolean; private var _highlightingDistance:Number; private var _impactForce:Number; private var _kickback:Number; private var _turretRotationAcceleration:Number; private var _turretRotationSound:SoundResource; private var _turretRotationSpeed:Number; public function WeaponCommonCC(param1:int = 0, param2:Boolean = false, param3:Number = 0, param4:Number = 0, param5:Number = 0, param6:Number = 0, param7:SoundResource = null, param8:Number = 0) { super(); this._buffShotCooldownMs = param1; this._buffed = param2; this._highlightingDistance = param3; this._impactForce = param4; this._kickback = param5; this._turretRotationAcceleration = param6; this._turretRotationSound = param7; this._turretRotationSpeed = param8; } public function get buffShotCooldownMs() : int { return this._buffShotCooldownMs; } public function set buffShotCooldownMs(param1:int) : void { this._buffShotCooldownMs = param1; } public function get buffed() : Boolean { return this._buffed; } public function set buffed(param1:Boolean) : void { this._buffed = param1; } public function get highlightingDistance() : Number { return this._highlightingDistance; } public function set highlightingDistance(param1:Number) : void { this._highlightingDistance = param1; } public function get impactForce() : Number { return this._impactForce; } public function set impactForce(param1:Number) : void { this._impactForce = param1; } public function get kickback() : Number { return this._kickback; } public function set kickback(param1:Number) : void { this._kickback = param1; } public function get turretRotationAcceleration() : Number { return this._turretRotationAcceleration; } public function set turretRotationAcceleration(param1:Number) : void { this._turretRotationAcceleration = param1; } public function get turretRotationSound() : SoundResource { return this._turretRotationSound; } public function set turretRotationSound(param1:SoundResource) : void { this._turretRotationSound = param1; } public function get turretRotationSpeed() : Number { return this._turretRotationSpeed; } public function set turretRotationSpeed(param1:Number) : void { this._turretRotationSpeed = param1; } public function toString() : String { var local1:String = "WeaponCommonCC ["; local1 += "buffShotCooldownMs = " + this.buffShotCooldownMs + " "; local1 += "buffed = " + this.buffed + " "; local1 += "highlightingDistance = " + this.highlightingDistance + " "; local1 += "impactForce = " + this.impactForce + " "; local1 += "kickback = " + this.kickback + " "; local1 += "turretRotationAcceleration = " + this.turretRotationAcceleration + " "; local1 += "turretRotationSound = " + this.turretRotationSound + " "; local1 += "turretRotationSpeed = " + this.turretRotationSpeed + " "; return local1 + "]"; } } }
package _codec.projects.tanks.client.battleselect.model.matchmaking.view { 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.battleselect.model.matchmaking.view.MatchmakingLayoutCC; public class VectorCodecMatchmakingLayoutCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecMatchmakingLayoutCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(MatchmakingLayoutCC,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.<MatchmakingLayoutCC> = new Vector.<MatchmakingLayoutCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = MatchmakingLayoutCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:MatchmakingLayoutCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<MatchmakingLayoutCC> = Vector.<MatchmakingLayoutCC>(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.battle.gui.inventory { import alternativa.tanks.models.inventory.InventoryItemType; import flash.display.BitmapData; import forms.ColorConstants; public class HudInventoryIcon { private static const ultimateBgdClass:Class = HudInventoryIcon_ultimateBgdClass; private static const ultimateBgdBitmapData:BitmapData = new ultimateBgdClass().bitmapData; private static const overdriveDictatorIconClass:Class = HudInventoryIcon_overdriveDictatorIconClass; private static const overdriveDictatorIconBitmapData:BitmapData = new overdriveDictatorIconClass().bitmapData; private static const overdriveHornetIconClass:Class = HudInventoryIcon_overdriveHornetIconClass; private static const overdriveHornetIconBitmapData:BitmapData = new overdriveHornetIconClass().bitmapData; private static const overdriveHunterIconClass:Class = HudInventoryIcon_overdriveHunterIconClass; private static const overdriveHunterIconBitmapData:BitmapData = new overdriveHunterIconClass().bitmapData; private static const overdriveJuggernautIconClass:Class = HudInventoryIcon_overdriveJuggernautIconClass; private static const overdriveJuggernautIconBitmapData:BitmapData = new overdriveJuggernautIconClass().bitmapData; private static const overdriveMammothIconClass:Class = HudInventoryIcon_overdriveMammothIconClass; private static const overdriveMammothIconBitmapData:BitmapData = new overdriveMammothIconClass().bitmapData; private static const overdriveTitanIconClass:Class = HudInventoryIcon_overdriveTitanIconClass; private static const overdriveTitanIconBitmapData:BitmapData = new overdriveTitanIconClass().bitmapData; private static const overdriveVikingIconClass:Class = HudInventoryIcon_overdriveVikingIconClass; private static const overdriveVikingIconBitmapData:BitmapData = new overdriveVikingIconClass().bitmapData; private static const overdriveWaspIconClass:Class = HudInventoryIcon_overdriveWaspIconClass; private static const overdriveWaspIconBitmapData:BitmapData = new overdriveWaspIconClass().bitmapData; private static const bgdClass:Class = HudInventoryIcon_bgdClass; private static const bgdBitmapData:BitmapData = new bgdClass().bitmapData; private static const overdriveBg2xClass:Class = HudInventoryIcon_overdriveBg2xClass; private static const overdriveBgBitmapData:BitmapData = new overdriveBg2xClass().bitmapData; private static const lockClass:Class = HudInventoryIcon_lockClass; private static const lockBitmapData:BitmapData = new lockClass().bitmapData; private static const borderClass:Class = HudInventoryIcon_borderClass; private static const borderBitmapData:BitmapData = new borderClass().bitmapData; private static const darkClass:Class = HudInventoryIcon_darkClass; private static const darkBitmapData:BitmapData = new darkClass().bitmapData; private static const dark2xClass:Class = HudInventoryIcon_dark2xClass; private static const dark2xBitmapData:BitmapData = new dark2xClass().bitmapData; private static const firstAidBgdClass:Class = HudInventoryIcon_firstAidBgdClass; private static const firstAidBgdBitmapData:BitmapData = new firstAidBgdClass().bitmapData; private static const armorBgdClass:Class = HudInventoryIcon_armorBgdClass; private static const armorBgdBitmapData:BitmapData = new armorBgdClass().bitmapData; private static const damageBgdClass:Class = HudInventoryIcon_damageBgdClass; private static const damageBgdBitmapData:BitmapData = new damageBgdClass().bitmapData; private static const nitroBgdClass:Class = HudInventoryIcon_nitroBgdClass; private static const nitroBgdBitmapData:BitmapData = new nitroBgdClass().bitmapData; private static const mineBgdClass:Class = HudInventoryIcon_mineBgdClass; private static const mineBgdBitmapData:BitmapData = new mineBgdClass().bitmapData; private static const firstAidWhiteIconClass:Class = HudInventoryIcon_firstAidWhiteIconClass; private static const firstAidWhiteIconBitmapData:BitmapData = new firstAidWhiteIconClass().bitmapData; private static const armorWhiteIconClass:Class = HudInventoryIcon_armorWhiteIconClass; private static const armorWhiteIconBitmapData:BitmapData = new armorWhiteIconClass().bitmapData; private static const damageWhiteIconClass:Class = HudInventoryIcon_damageWhiteIconClass; private static const damageWhiteIconBitmapData:BitmapData = new damageWhiteIconClass().bitmapData; private static const nitroWhiteIconClass:Class = HudInventoryIcon_nitroWhiteIconClass; private static const nitroWhiteIconBitmapData:BitmapData = new nitroWhiteIconClass().bitmapData; private static const mineWhiteIconClass:Class = HudInventoryIcon_mineWhiteIconClass; private static const mineWhiteIconBitmapData:BitmapData = new mineWhiteIconClass().bitmapData; private static const firstAidColorIconClass:Class = HudInventoryIcon_firstAidColorIconClass; private static const firstAidColorIconBitmapData:BitmapData = new firstAidColorIconClass().bitmapData; private static const armorColorIconClass:Class = HudInventoryIcon_armorColorIconClass; private static const armorColorIconBitmapData:BitmapData = new armorColorIconClass().bitmapData; private static const damageColorIconClass:Class = HudInventoryIcon_damageColorIconClass; private static const damageColorIconBitmapData:BitmapData = new damageColorIconClass().bitmapData; private static const nitroColorIconClass:Class = HudInventoryIcon_nitroColorIconClass; private static const nitroColorIconBitmapData:BitmapData = new nitroColorIconClass().bitmapData; private static const mineColorIconClass:Class = HudInventoryIcon_mineColorIconClass; private static const mineColorIconBitmapData:BitmapData = new mineColorIconClass().bitmapData; private static const firstAidGrayIconClass:Class = HudInventoryIcon_firstAidGrayIconClass; private static const firstAidGrayIconBitmapData:BitmapData = new firstAidGrayIconClass().bitmapData; private static const armorGrayIconClass:Class = HudInventoryIcon_armorGrayIconClass; private static const armorGrayIconBitmapData:BitmapData = new armorGrayIconClass().bitmapData; private static const damageGrayIconClass:Class = HudInventoryIcon_damageGrayIconClass; private static const damageGrayIconBitmapData:BitmapData = new damageGrayIconClass().bitmapData; private static const nitroGrayIconClass:Class = HudInventoryIcon_nitroGrayIconClass; private static const nitroGrayIconBitmapData:BitmapData = new nitroGrayIconClass().bitmapData; private static const mineGrayIconClass:Class = HudInventoryIcon_mineGrayIconClass; private static const mineGrayIconBitmapData:BitmapData = new mineGrayIconClass().bitmapData; private static const goldBgdClass:Class = HudInventoryIcon_goldBgdClass; private static const goldBgdBitmapData:BitmapData = new goldBgdClass().bitmapData; private static const goldWhiteIconClass:Class = HudInventoryIcon_goldWhiteIconClass; private static const goldWhiteIconBitmapData:BitmapData = new goldWhiteIconClass().bitmapData; private static const goldColorIconClass:Class = HudInventoryIcon_goldColorIconClass; private static const goldColorIconBitmapData:BitmapData = new goldColorIconClass().bitmapData; private static const goldGrayIconClass:Class = HudInventoryIcon_goldGrayIconClass; private static const goldGrayIconBitmapData:BitmapData = new goldGrayIconClass().bitmapData; private static const droneIconClass:Class = HudInventoryIcon_droneIconClass; private static const droneIconBitmapData:BitmapData = new droneIconClass().bitmapData; public static const BGD:int = 10; public static const LOCK_OVERLAY:int = 11; public static const BORDER:int = 12; public static const COOLDOWN_OVERLAY:int = 14; public static const OVERDRIVE_BG:int = 15; public static const OVERDRIVE_COOLDOWN_OVERLAY:int = 17; public function HudInventoryIcon() { super(); } public static function getIcon(param1:int) : BitmapData { var local2:BitmapData = null; switch(param1) { case HudInventoryIcon.BGD: local2 = bgdBitmapData; break; case HudInventoryIcon.OVERDRIVE_BG: local2 = overdriveBgBitmapData; break; case HudInventoryIcon.LOCK_OVERLAY: local2 = lockBitmapData; break; case HudInventoryIcon.BORDER: local2 = borderBitmapData; break; case HudInventoryIcon.COOLDOWN_OVERLAY: local2 = darkBitmapData; break; case HudInventoryIcon.OVERDRIVE_COOLDOWN_OVERLAY: local2 = dark2xBitmapData; } return local2; } public static function getBgdIcon(param1:int) : BitmapData { var local2:BitmapData = null; switch(param1) { case InventoryItemType.ULTIMATE: local2 = ultimateBgdBitmapData; break; case InventoryItemType.FIRST_AID: local2 = firstAidBgdBitmapData; break; case InventoryItemType.ARMOR: local2 = armorBgdBitmapData; break; case InventoryItemType.DAMAGE: local2 = damageBgdBitmapData; break; case InventoryItemType.NITRO: local2 = nitroBgdBitmapData; break; case InventoryItemType.MINE: local2 = mineBgdBitmapData; break; case InventoryItemType.GOLD: local2 = goldBgdBitmapData; break; case InventoryItemType.BATTERY: local2 = droneIconBitmapData; } return local2; } public static function getUltimateIcon(param1:int) : BitmapData { switch(param1) { case 0: return overdriveDictatorIconBitmapData; case 1: return overdriveHornetIconBitmapData; case 2: return overdriveHunterIconBitmapData; case 3: return overdriveJuggernautIconBitmapData; case 4: return overdriveMammothIconBitmapData; case 5: return overdriveTitanIconBitmapData; case 6: return overdriveVikingIconBitmapData; case 7: return overdriveWaspIconBitmapData; default: return null; } } public static function getNeutralInventoryIcon(param1:int) : BitmapData { var local2:BitmapData = null; switch(param1) { case InventoryItemType.FIRST_AID: local2 = firstAidWhiteIconBitmapData; break; case InventoryItemType.ARMOR: local2 = armorWhiteIconBitmapData; break; case InventoryItemType.DAMAGE: local2 = damageWhiteIconBitmapData; break; case InventoryItemType.NITRO: local2 = nitroWhiteIconBitmapData; break; case InventoryItemType.MINE: local2 = mineWhiteIconBitmapData; break; case InventoryItemType.GOLD: local2 = goldWhiteIconBitmapData; break; case InventoryItemType.BATTERY: local2 = droneIconBitmapData; } return local2; } public static function getEffectInventoryIcon(param1:int) : BitmapData { var local2:BitmapData = null; switch(param1) { case InventoryItemType.FIRST_AID: local2 = firstAidColorIconBitmapData; break; case InventoryItemType.ARMOR: local2 = armorColorIconBitmapData; break; case InventoryItemType.DAMAGE: local2 = damageColorIconBitmapData; break; case InventoryItemType.NITRO: local2 = nitroColorIconBitmapData; break; case InventoryItemType.MINE: local2 = mineColorIconBitmapData; break; case InventoryItemType.GOLD: local2 = goldColorIconBitmapData; break; case InventoryItemType.BATTERY: local2 = droneIconBitmapData; } return local2; } public static function getCooldownInventoryIcon(param1:int) : BitmapData { var local2:BitmapData = null; switch(param1) { case InventoryItemType.FIRST_AID: local2 = firstAidGrayIconBitmapData; break; case InventoryItemType.ARMOR: local2 = armorGrayIconBitmapData; break; case InventoryItemType.DAMAGE: local2 = damageGrayIconBitmapData; break; case InventoryItemType.NITRO: local2 = nitroGrayIconBitmapData; break; case InventoryItemType.MINE: local2 = mineGrayIconBitmapData; break; case InventoryItemType.GOLD: local2 = goldGrayIconBitmapData; break; case InventoryItemType.BATTERY: local2 = droneIconBitmapData; } return local2; } public static function getIndicatorColor(param1:int) : uint { switch(param1) { case InventoryItemType.FIRST_AID: return 10210624; case InventoryItemType.ARMOR: return 15248503; case InventoryItemType.DAMAGE: return 15623237; case InventoryItemType.NITRO: return 15648305; case InventoryItemType.MINE: return 3193743; case InventoryItemType.GOLD: return 16760654; case InventoryItemType.BATTERY: return ColorConstants.WHITE; default: return 0; } } } }
package projects.tanks.client.panel.model.payment { import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.commons.types.ShopCategoryEnum; public class PaymentCC { private var _currentCategoryType:ShopCategoryEnum; private var _hideLinks:Boolean; private var _manualDescription:String; private var _payModes:Vector.<IGameObject>; private var _shopCategories:Vector.<IGameObject>; private var _shopItems:Vector.<IGameObject>; public function PaymentCC(param1:ShopCategoryEnum = null, param2:Boolean = false, param3:String = null, param4:Vector.<IGameObject> = null, param5:Vector.<IGameObject> = null, param6:Vector.<IGameObject> = null) { super(); this._currentCategoryType = param1; this._hideLinks = param2; this._manualDescription = param3; this._payModes = param4; this._shopCategories = param5; this._shopItems = param6; } public function get currentCategoryType() : ShopCategoryEnum { return this._currentCategoryType; } public function set currentCategoryType(param1:ShopCategoryEnum) : void { this._currentCategoryType = param1; } public function get hideLinks() : Boolean { return this._hideLinks; } public function set hideLinks(param1:Boolean) : void { this._hideLinks = param1; } public function get manualDescription() : String { return this._manualDescription; } public function set manualDescription(param1:String) : void { this._manualDescription = param1; } public function get payModes() : Vector.<IGameObject> { return this._payModes; } public function set payModes(param1:Vector.<IGameObject>) : void { this._payModes = param1; } public function get shopCategories() : Vector.<IGameObject> { return this._shopCategories; } public function set shopCategories(param1:Vector.<IGameObject>) : void { this._shopCategories = param1; } public function get shopItems() : Vector.<IGameObject> { return this._shopItems; } public function set shopItems(param1:Vector.<IGameObject>) : void { this._shopItems = param1; } public function toString() : String { var local1:String = "PaymentCC ["; local1 += "currentCategoryType = " + this.currentCategoryType + " "; local1 += "hideLinks = " + this.hideLinks + " "; local1 += "manualDescription = " + this.manualDescription + " "; local1 += "payModes = " + this.payModes + " "; local1 += "shopCategories = " + this.shopCategories + " "; local1 += "shopItems = " + this.shopItems + " "; return local1 + "]"; } } }
package assets.stat { import flash.display.BitmapData; [Embed(source="/_assets/assets.stat.hall_SELECTED.png")] public dynamic class hall_SELECTED extends BitmapData { public function hall_SELECTED(param1:int = 4, param2:int = 4) { super(param1,param2); } } }
package com.alternativaplatform.projects.tanks.client.warfare.models.sfx.shoot.ricochet { public interface IRicochetSFXModelBase { } }
package swfaddress { import alternativa.startup.StartupSettings; import flash.errors.IllegalOperationError; import flash.events.Event; import flash.events.EventDispatcher; import flash.events.TimerEvent; import flash.external.ExternalInterface; import flash.net.URLRequest; import flash.net.navigateToURL; import flash.system.Capabilities; import flash.utils.Timer; [Event(name="change",type="swfaddress.SWFAddressEvent")] [Event(name="init",type="swfaddress.SWFAddressEvent")] public class SWFAddress { public static var onInit:Function; public static var onChange:Function; private static var _init:Boolean = false; private static var _initChange:Boolean = false; private static var _strict:Boolean = true; private static var _value:String = ""; private static var _timer:Timer = null; private static var _availability:Boolean = ExternalInterface.available; private static var _dispatcher:EventDispatcher = new EventDispatcher(); private static var URLhistory:Array = new Array(); private static var _initializer:Boolean = _initialize(); public function SWFAddress() { super(); throw new IllegalOperationError("SWFAddress cannot be instantiated."); } private static function _initialize() : Boolean { if(_availability) { ExternalInterface.addCallback("getSWFAddressValue",function():String { return _value; }); ExternalInterface.addCallback("setSWFAddressValue",_setValue); } if(_timer == null) { _timer = new Timer(75); _timer.addEventListener(TimerEvent.TIMER,_check); } _timer.start(); return true; } private static function _check(param1:TimerEvent) : void { if((typeof SWFAddress["onInit"] == "function" || _dispatcher.hasEventListener("init")) && !_init) { SWFAddress._setValueInit(_getValue()); SWFAddress._init = true; } if(typeof SWFAddress["onChange"] == "function" || _dispatcher.hasEventListener("change")) { SWFAddress._init = true; SWFAddress._setValueInit(_getValue()); } } private static function _getValue() : String { var local1:String = null; var local3:Array = null; var local2:String = null; if(_availability) { local1 = ExternalInterface.call("SWFAddress.getValue") as String; local3 = ExternalInterface.call("SWFAddress.getIds") as Array; if(local3 != null) { local2 = local3.toString(); } } if(local2 == null || !_availability) { local1 = SWFAddress._value; } else if(local1 == "undefined" || local1 == null) { local1 = ""; } return local1 || ""; } private static function _setValueInit(param1:String) : void { var local2:Boolean = param1 != SWFAddress._value; SWFAddress._value = param1; if(!_init) { _dispatchEvent(SWFAddressEvent.INIT); } else if(local2) { _dispatchEvent(SWFAddressEvent.CHANGE); } _initChange = true; } private static function _setValue(param1:String) : void { if(param1 == "undefined" || param1 == null) { param1 = ""; } if(SWFAddress._value == param1 && SWFAddress._init) { return; } if(!SWFAddress._initChange) { return; } SWFAddress._value = param1; if(!_init) { SWFAddress._init = true; if(typeof SWFAddress["onInit"] == "function" || _dispatcher.hasEventListener("init")) { _dispatchEvent(SWFAddressEvent.INIT); } } _dispatchEvent(SWFAddressEvent.CHANGE); } private static function _dispatchEvent(param1:String) : void { if(_dispatcher.hasEventListener(param1)) { _dispatcher.dispatchEvent(new SWFAddressEvent(param1)); } param1 = param1.substr(0,1).toUpperCase() + param1.substring(1); if(typeof SWFAddress["on" + param1] == "function") { SWFAddress["on" + param1](); } } public static function back() : void { if(_availability && SWFAddress._init) { ExternalInterface.call("SWFAddress.back"); } else { _value = URLhistory.pop(); _dispatchEvent(SWFAddressEvent.CHANGE); } } public static function forward() : void { if(_availability && SWFAddress._init) { ExternalInterface.call("SWFAddress.forward"); } } public static function up() : void { var local1:String = SWFAddress.getPath(); SWFAddress.setValue(local1.substr(0,local1.lastIndexOf("/",local1.length - 2) + (local1.substr(local1.length - 1) == "/" ? 1 : 0))); } public static function go(param1:int) : void { if(_availability) { ExternalInterface.call("SWFAddress.go",param1); } } public static function href(param1:String, param2:String = "_self") : void { if(_availability && Capabilities.playerType == "ActiveX") { ExternalInterface.call("SWFAddress.href",param1,param2); return; } navigateToURL(new URLRequest(param1),param2); } public static function popup(param1:String, param2:String = "popup", param3:String = "\"\"", param4:String = "") : void { if(_availability && (Capabilities.playerType == "ActiveX" || ExternalInterface.call("asual.util.Browser.isSafari"))) { ExternalInterface.call("SWFAddress.popup",param1,param2,param3,param4); return; } navigateToURL(new URLRequest("javascript:popup=window.open(\"" + param1 + "\",\"" + param2 + "\"," + param3 + ");" + param4 + ";void(0);"),"_self"); } public static function addEventListener(param1:String, param2:Function, param3:Boolean = false, param4:int = 0, param5:Boolean = false) : void { _dispatcher.addEventListener(param1,param2,param3,param4,param5); } public static function removeEventListener(param1:String, param2:Function) : void { _dispatcher.removeEventListener(param1,param2,false); } public static function dispatchEvent(param1:Event) : Boolean { return _dispatcher.dispatchEvent(param1); } public static function hasEventListener(param1:String) : Boolean { return _dispatcher.hasEventListener(param1); } public static function getBaseURL() : String { var local1:String = null; if(_availability) { local1 = String(ExternalInterface.call("SWFAddress.getBaseURL")); } return local1 == null || local1 == "null" || !_availability ? "" : local1; } public static function getStrict() : Boolean { var local1:String = null; if(_availability) { local1 = ExternalInterface.call("SWFAddress.getStrict") as String; } return local1 == null ? _strict : local1 == "true"; } public static function setStrict(param1:Boolean) : void { if(_availability) { ExternalInterface.call("SWFAddress.setStrict",param1); } _strict = param1; } public static function getHistory() : Boolean { return _availability ? ExternalInterface.call("SWFAddress.getHistory") as Boolean : false; } public static function setHistory(param1:Boolean) : void { if(_availability) { ExternalInterface.call("SWFAddress.setHistory",param1); } } public static function getTracker() : String { return _availability ? ExternalInterface.call("SWFAddress.getTracker") as String : ""; } public static function setTracker(param1:String) : void { if(_availability) { ExternalInterface.call("SWFAddress.setTracker",param1); } } public static function getTitle() : String { var local1:String = _availability ? ExternalInterface.call("SWFAddress.getTitle") as String : ""; if(local1 == "undefined" || local1 == null) { local1 = ""; } return local1; } public static function setTitle(param1:String) : void { if(_availability) { ExternalInterface.call("SWFAddress.setTitle",param1); } } public static function getStatus() : String { var local1:String = _availability ? ExternalInterface.call("SWFAddress.getStatus") as String : ""; if(local1 == "undefined" || local1 == null) { local1 = ""; } return local1; } public static function setStatus(param1:String) : void { if(_availability) { ExternalInterface.call("SWFAddress.setStatus",param1); } } public static function resetStatus() : void { if(_availability) { ExternalInterface.call("SWFAddress.resetStatus"); } } public static function getValue() : String { return _value || ""; } public static function setValue(param1:String, param2:Boolean = true) : void { if(param1 == "undefined" || param1 == null) { param1 = ""; } if(SWFAddress._value == param1) { return; } if(_availability && SWFAddress._init) { ExternalInterface.call("SWFAddress.setValue",param1); } else { URLhistory.push(_value); } SWFAddress._value = param1; if(param2) { _dispatchEvent(SWFAddressEvent.CHANGE); } } public static function getPath() : String { var local1:String = SWFAddress.getValue(); if(local1.indexOf("?") != -1) { return local1.split("?")[0]; } return local1; } public static function getPathNames() : Array { var local1:String = SWFAddress.getPath(); var local2:Array = local1.split("/"); if(local1.substr(0,1) == "/" || local1.length == 0) { local2.splice(0,1); } if(local1.substr(local1.length - 1,1) == "/") { local2.splice(local2.length - 1,1); } return local2; } public static function getQueryString() : String { var local1:String = SWFAddress.getValue(); var local2:Number = Number(local1.indexOf("?")); if(local2 != -1 && local2 < local1.length) { return local1.substr(local2 + 1); } return ""; } private static function fetchParameter(param1:String, param2:String) : String { var local4:Array = null; var local5:Array = null; var local6:Number = NaN; var local3:Number = Number(param2.indexOf("?")); if(local3 != -1) { param2 = param2.substr(local3 + 1); local4 = param2.split("&"); local6 = local4.length; while(Boolean(local6--)) { local5 = local4[local6].split("="); if(local5[0] == param1) { return local5[1]; } } } return ""; } public static function getParameter(param1:String) : String { var local2:String = SWFAddress.getValue(); return fetchParameter(param1,local2); } public static function getQueryParameter(param1:String) : String { var local2:String = SWFAddress.getBaseURL(); return fetchParameter(param1,local2); } public static function getParameterNames() : Array { var local4:Array = null; var local5:Number = NaN; var local1:String = SWFAddress.getValue(); var local2:Number = Number(local1.indexOf("?")); var local3:Array = new Array(); if(local2 != -1) { local1 = local1.substr(local2 + 1); if(local1 != "" && local1.indexOf("=") != -1) { local4 = local1.split("&"); local5 = 0; while(local5 < local4.length) { local3.push(local4[local5].split("=")[0]); local5++; } } } return local3; } public static function reload() : void { if(_availability) { ExternalInterface.call("SWFAddress.reload"); } else if(StartupSettings.isDesktop) { StartupSettings.closeApplication(); } } } }
package alternativa.tanks.gui.notinclan.clanslist { import alternativa.tanks.models.service.ClanUserNotificationsManager; import alternativa.tanks.models.user.ClanUserService; import alternativa.types.Long; import fl.controls.List; import flash.display.Sprite; import flash.utils.Dictionary; import forms.Styles; import utils.ScrollStyleUtils; public class ClansList extends Sprite { [Inject] public static var clanUserService:ClanUserService; protected var dataProvider:ClansDataProvider; protected var list:List; protected var viewed:Dictionary; protected var _width:Number; protected var _height:Number; private var header:ClansListHeader; public function ClansList() { super(); this.viewed = new Dictionary(); this.header = new ClansListHeader(); addChild(this.header); this.list = new List(); this.list.y = 20; this.list.rowHeight = 20; this.list.setStyle(Styles.CELL_RENDERER,ClansListRenderer); this.list.focusEnabled = true; this.list.selectable = false; ScrollStyleUtils.setGreenStyle(this.list); this.dataProvider = new ClansDataProvider(); this.dataProvider.getItemAtHandler = this.markAsViewed; this.dataProvider.sortOn(["isNew","name"],[Array.NUMERIC | Array.DESCENDING,Array.CASEINSENSITIVE]); this.list.dataProvider = this.dataProvider; addChild(this.list); ScrollStyleUtils.setGreenStyle(this.list); } private function markAsViewed(param1:Object) : void { if(!this.isViewed(param1)) { if(param1.type == ClanListType.INCOMING) { ClanUserNotificationsManager.removeIncomingNotification(param1.id); } this.setAsViewed(param1); } } public function removeAllViewed() : void { var local1:Object = null; for(local1 in this.viewed) { ClanUserNotificationsManager.removeIncomingNotification(local1.id); } } public function addClan(param1:Long, param2:String) : void { this.dataProvider.addClan(param1,param2); this.resize(this._width,this._height); } public function removeClan(param1:Long) : void { this.dataProvider.removeClan(param1); this.dataProvider.refresh(); this.resize(this._width,this._height); } protected function isViewed(param1:Object) : Boolean { return param1 in this.viewed; } protected function setAsViewed(param1:Object) : void { this.viewed[param1] = true; } public function refresh() : void { this.dataProvider.refresh(); } public function fillClansList(param1:Vector.<Long>, param2:String) : void { var local3:Long = null; this.dataProvider.removeAll(); this.dataProvider.resetFilter(false); for each(local3 in param1) { this.dataProvider.addClan(local3,param2,false); } this.dataProvider.refresh(); this.resize(this._width,this._height); } public function filterByProperty(param1:String, param2:String) : void { this.dataProvider.setFilter(param1,param2); this.resize(this._width,this._height); } public function resize(param1:Number, param2:Number) : void { this._width = param1; this._height = param2; this.header.width = param1; this.list.height = this._height - 20; var local3:Boolean = this.list.verticalScrollBar.visible; this.list.width = local3 ? this._width + 6 : this._width; } } }
package alternativa.tanks.model.item.fitting { import projects.tanks.client.garage.models.item.fitting.IItemFittingModelBase; import projects.tanks.client.garage.models.item.fitting.ItemFittingModelBase; [ModelInfo] public class ItemFittingModel extends ItemFittingModelBase implements IItemFittingModelBase, ItemFitting { public function ItemFittingModel() { super(); } public function fit() : void { server.fit(); } } }
package services.buttonbar { import flash.events.IEventDispatcher; public interface IButtonBarService extends IEventDispatcher { function change(param1:int) : void; } }
package forms.friends.list.renderer.background { import mx.core.BitmapAsset; [ExcludeClass] public class UserOfflineCellSelected_leftIconClass extends BitmapAsset { public function UserOfflineCellSelected_leftIconClass() { super(); } } }
package alternativa.tanks.controllers.battleinfo { import alternativa.tanks.view.battleinfo.dm.BattleInfoDMView; import alternativa.tanks.view.battleinfo.dm.BattleInfoDmParams; import alternativa.types.Long; import projects.tanks.client.battleselect.model.battle.entrance.user.BattleInfoUser; public class BattleInfoDMController extends AbstractBattleInfoController { public function BattleInfoDMController() { super(); view = new BattleInfoDMView(); } override protected function updateUserLists() : void { this.dmView.userList.update(maxPeopleCount,BattleInfoDmParams(initParams).users); this.updateAvailableEnterInBattle(); } override protected function updateAvailableEnterInBattle() : void { this.dmView.fightButton.enabled = availableByRank && initParams.createParams.proBattle && this.dmView.userList.usersCount < maxPeopleCount; } public function addUser(param1:BattleInfoUser) : void { this.dmView.userList.addUser(param1); this.updateAvailableEnterInBattle(); } override public function removeUser(param1:Long) : void { this.dmView.userList.removeUser(param1); this.updateAvailableEnterInBattle(); } override public function updateUserScore(param1:Long, param2:int) : void { this.dmView.userList.updateUserScore(param1,param2); this.dmView.invalidateUserList(); } override public function updateUserSuspiciousState(param1:Long, param2:Boolean) : void { this.dmView.userList.updateUserSuspiciousState(param1,param2); this.dmView.invalidateUserList(); } private function get dmView() : BattleInfoDMView { return BattleInfoDMView(view); } } }
package platform.client.fp10.core.resource { public interface ILockableResource { function unlockResourceLoading() : void; } }
package alternativa.tanks.models.weapon.gauss { public class GaussEventType { public static const RESET:GaussEventType = new GaussEventType("RESET"); public static const STUNNED:GaussEventType = new GaussEventType("STUNNED"); public static const STUN_EXPIRED:GaussEventType = new GaussEventType("STUN_EXPIRED"); public static const BUFFED:GaussEventType = new GaussEventType("BUFFED"); public static const BUFF_EXPIRED:GaussEventType = new GaussEventType("BUFF_EXPIRED"); public static const ACTIVATED:GaussEventType = new GaussEventType("ACTIVATION"); public static const DEACTIVATED:GaussEventType = new GaussEventType("DEACTIVATION"); public static const RELOAD_COMPLETED:GaussEventType = new GaussEventType("RELOAD_COMPLETED"); public static const SIMPLE_SHOT:GaussEventType = new GaussEventType("SIMPLE_SHOT"); public static const TARGET_SEARCH_STARTED:GaussEventType = new GaussEventType("TARGET_SEARCH_STARTED"); public static const TARGET_LOCKED:GaussEventType = new GaussEventType("TARGET_LOCKED"); public static const RELOAD:GaussEventType = new GaussEventType("RELOAD"); private var value:String; public function GaussEventType(param1:String) { super(); this.value = param1; } [Obfuscation(rename="false")] public function toString() : String { return this.value; } } }
package alternativa.tanks.models.sfx.shoot.ricochet { import alternativa.engine3d.materials.Material; import alternativa.tanks.engine3d.TextureAnimation; import flash.geom.ColorTransform; import flash.media.Sound; public class RicochetSFXData { public var shotMaterials:Vector.<Material>; public var shotFlashMaterial:Material; public var ricochetFlashMaterials:Vector.<Material>; public var explosionMaterials:Vector.<Material>; public var tailTrailMaterial:Material; public var shotSound:Sound; public var ricochetSound:Sound; public var explosionSound:Sound; public var colorTransform:ColorTransform; public var dataFlash:TextureAnimation; public var dataExplosion:TextureAnimation; public var dataShot:TextureAnimation; public function RicochetSFXData() { super(); } } }
package mx.core { public interface IBorder { function get borderMetrics() : EdgeMetrics; } }
package _codec.projects.tanks.client.users.services.chatmoderator { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.EnumCodecInfo; import projects.tanks.client.users.services.chatmoderator.ChatModeratorLevel; public class VectorCodecChatModeratorLevelLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecChatModeratorLevelLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new EnumCodecInfo(ChatModeratorLevel,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.<ChatModeratorLevel> = new Vector.<ChatModeratorLevel>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ChatModeratorLevel(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ChatModeratorLevel = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ChatModeratorLevel> = Vector.<ChatModeratorLevel>(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 _codec.projects.tanks.client.tanksservices.model.notifier.uid { 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.Long; import projects.tanks.client.tanksservices.model.notifier.uid.UidNotifierData; public class CodecUidNotifierData implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_uid:ICodec; private var codec_userId:ICodec; public function CodecUidNotifierData() { super(); } public function init(param1:IProtocol) : void { this.codec_uid = param1.getCodec(new TypeCodecInfo(String,false)); this.codec_userId = param1.getCodec(new TypeCodecInfo(Long,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:UidNotifierData = new UidNotifierData(); local2.uid = this.codec_uid.decode(param1) as String; local2.userId = this.codec_userId.decode(param1) as Long; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:UidNotifierData = UidNotifierData(param2); this.codec_uid.encode(param1,local3.uid); this.codec_userId.encode(param1,local3.userId); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.battle { import alternativa.types.Long; import flash.events.EventDispatcher; import projects.tanks.clients.fp10.libraries.tanksservices.model.notifier.battle.BattleLinkData; public class BattleNotifierService extends EventDispatcher implements IBattleNotifierService { public function BattleNotifierService() { super(); } public function setBattle(param1:Vector.<BattleLinkData>) : void { dispatchEvent(new SetBattleNotifierServiceEvent(SetBattleNotifierServiceEvent.SET_BATTLE,param1)); } public function leaveBattle(param1:Long) : void { dispatchEvent(new LeaveBattleNotifierServiceEvent(LeaveBattleNotifierServiceEvent.LEAVE,param1)); } } }
package alternativa.physics { import alternativa.math.Matrix3; import alternativa.math.Vector3; public class PhysicsUtils { public function PhysicsUtils() { super(); } public static function setBoxInvInertia(param1:Number, param2:Vector3, param3:Matrix3) : void { if(param1 <= 0) { throw new ArgumentError(); } param3.copy(Matrix3.ZERO); if(param1 == Infinity) { return; } var local4:Number = param2.x * param2.x; var local5:Number = param2.y * param2.y; var local6:Number = param2.z * param2.z; param3.m00 = 3 / (param1 * (local5 + local6)); param3.m11 = 3 / (param1 * (local6 + local4)); param3.m22 = 3 / (param1 * (local4 + local5)); } public static function getCylinderInvInertia(param1:Number, param2:Number, param3:Number, param4:Matrix3) : void { if(param1 <= 0) { throw new ArgumentError(); } param4.copy(Matrix3.ZERO); if(param1 == Infinity) { return; } param4.m00 = param4.m11 = 1 / (param1 * (param3 * param3 / 12 + param2 * param2 / 4)); param4.m22 = 2 / (param1 * param2 * param2); } } }
package forms.friends { import mx.core.BitmapAsset; [ExcludeClass] public class FriendsWindowStateBigButton_ButtonLeft extends BitmapAsset { public function FriendsWindowStateBigButton_ButtonLeft() { super(); } } }
package alternativa.tanks.models.weapon.railgun { import alternativa.tanks.utils.EncryptedInt; import alternativa.tanks.utils.EncryptedIntImpl; import alternativa.tanks.utils.EncryptedNumber; import alternativa.tanks.utils.EncryptedNumberImpl; public class RailgunData { private var chargingTime:EncryptedInt; private var weakeningCoeff:EncryptedNumber; public function RailgunData(param1:int, param2:Number) { super(); this.chargingTime = new EncryptedIntImpl(param1); this.weakeningCoeff = new EncryptedNumberImpl(param2); } public function getChargingTime() : int { return this.chargingTime.getInt(); } public function getWeakeningCoeff() : Number { return this.weakeningCoeff.getNumber(); } public function setChargingTime(param1:int) : void { this.chargingTime.setInt(param1); } } }
package alternativa.tanks.models.effects.activeafetrdeath { import projects.tanks.client.battlefield.models.effects.activeafterdeath.ActiveAfterDeathModelBase; import projects.tanks.client.battlefield.models.effects.activeafterdeath.IActiveAfterDeathModelBase; [ModelInfo] public class ActiveAfterDeathModel extends ActiveAfterDeathModelBase implements IActiveAfterDeathModelBase, IActiveAfterDeath { public function ActiveAfterDeathModel() { super(); } public function isEnabled() : Boolean { return getInitParam().enabled; } } }
package alternativa.tanks.model.news { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.locale.constants.TextConst; import controls.DefaultButton; import controls.TankWindow; import controls.TankWindowHeader; import controls.TankWindowInner; import flash.display.Sprite; public class NewsWindow extends Sprite { public static const MAX_HEIGHT:int = 400; private var window:TankWindow; private var inner:TankWindowInner; private var items:NewsOutput; public var closeBtn:DefaultButton; private var itemsSpriteHeight:int; public function NewsWindow() { this.window = new TankWindow(); this.inner = new TankWindowInner(0,0,TankWindowInner.GREEN); this.items = new NewsOutput(); this.closeBtn = new DefaultButton(); super(); this.x = 100; this.y = 100; this.window.width = 500; this.window.height = 250; this.window.headerLang = ILocaleService(Main.osgi.getService(ILocaleService)).language; this.window.header = TankWindowHeader.ATTANTION; addChild(this.window); this.inner.x = 10; this.inner.y = 10; this.inner.width = this.window.width - 20; this.inner.height = this.window.height - 60; this.window.addChild(this.inner); addChild(this.items); this.items.move(15,30); addChild(this.closeBtn); this.closeBtn.label = ILocaleService(Main.osgi.getService(ILocaleService)).getText(TextConst.FREE_BONUSES_WINDOW_BUTTON_CLOSE_TEXT); this.closeBtn.y = this.window.height + 106; this.closeBtn.x = this.window.width - this.closeBtn.width >> 1; } public function setItems(array:Array) : void { var item:NewsItem = null; var prevItem:NewsItem = null; item = null; for each(item in array) { if(prevItem == null) { this.items.addItem(item); prevItem = item; } else { item.y = prevItem.y + prevItem.height + 10; this.items.addItem(item); prevItem = item; } this.itemsSpriteHeight += item.heigth; } this.redraw(); } public function getHeigth() : Number { return this.window.height; } private function redraw() : void { this.window.height = Math.min(this.itemsSpriteHeight + 130,MAX_HEIGHT); this.inner.height = Math.min(this.window.height - 60,MAX_HEIGHT); this.items.height = Math.min(this.window.height - 100,MAX_HEIGHT); this.closeBtn.y = this.window.height - 44; } } }
package alternativa.tanks.gui { import alternativa.osgi.service.locale.ILocaleService; import controls.TankWindowInner; import controls.base.DefaultButtonBase; import controls.base.LabelBase; import flash.events.MouseEvent; import flash.text.TextFieldAutoSize; import forms.TankWindowWithHeader; import projects.tanks.clients.fp10.libraries.TanksLocale; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.gui.DialogWindow; public class RulesUpdateAlert extends DialogWindow { [Inject] public static var localeService:ILocaleService; private const INNER_MARGIN:int = 12; private const TEXT_X:int = 20; private const TEXT_Y:int = 15; private const WINDOW_WIDTH:int = 495; private var okButton:DefaultButtonBase; private var onAcceptFunction:Function; public function RulesUpdateAlert(param1:String, param2:String, param3:Function) { var local4:LabelBase = null; this.okButton = new DefaultButtonBase(); super(); this.onAcceptFunction = param3; local4 = new LabelBase(); local4.multiline = true; local4.wordWrap = true; local4.width = this.WINDOW_WIDTH - 2 * (this.INNER_MARGIN + this.TEXT_X); local4.autoSize = TextFieldAutoSize.LEFT; local4.x = this.INNER_MARGIN + this.TEXT_X; local4.y = this.INNER_MARGIN + this.TEXT_Y; local4.text = param1; var local5:LabelBase = new LabelBase(); local5.multiline = true; local5.autoSize = TextFieldAutoSize.LEFT; local5.x = local4.x; local5.y = local4.y + local4.height + 20; local5.htmlText = param2; var local6:int = local5.y + local5.height + this.TEXT_Y; var local7:TankWindowInner = new TankWindowInner(this.WINDOW_WIDTH - this.INNER_MARGIN * 2,local6,TankWindowInner.GREEN); local7.x = this.INNER_MARGIN; local7.y = this.INNER_MARGIN; this.okButton.label = localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_OK); this.okButton.x = (this.WINDOW_WIDTH - this.okButton.width) / 2; this.okButton.y = local7.y + local6 + 5; this.okButton.addEventListener(MouseEvent.CLICK,this.onOkButtonClick); var local8:TankWindowWithHeader = TankWindowWithHeader.createWindow(TanksLocale.TEXT_HEADER_NEWS,this.WINDOW_WIDTH,this.INNER_MARGIN + local6 + 5 + this.okButton.height + 15); addChild(local8); local8.addChild(local7); local8.addChild(local4); local8.addChild(local5); local8.addChild(this.okButton); } private function onOkButtonClick(param1:MouseEvent) : void { this.okButton.removeEventListener(MouseEvent.CLICK,this.onOkButtonClick); this.onAcceptFunction(); } override protected function confirmationKeyPressed() : void { this.okButton.removeEventListener(MouseEvent.CLICK,this.onOkButtonClick); this.onAcceptFunction(); } } }
package alternativa.tanks.gui.shop.forms { import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.gui.payment.controls.ProceedButton; import alternativa.tanks.gui.payment.forms.PayModeForm; import alternativa.tanks.gui.shop.payment.event.ApproveFormEvent; import alternativa.tanks.gui.shop.shopitems.item.utils.FormatUtils; import assets.Diamond; import controls.base.LabelBase; import controls.checkbox.CheckBoxEvent; import controls.checkbox.MultilineCheckBox; import controls.labels.MouseDisabledLabel; import flash.events.MouseEvent; import platform.client.fp10.core.type.IGameObject; import projects.tanks.clients.fp10.libraries.TanksLocale; public class ApproveOneTimePurchaseForm extends PayModeForm { [Inject] public static var localeService:ILocaleService; private static const PROCEED_BUTTON_WIDTH:int = 100; private static const WIDTH:int = 550; private static const GAP_BETWEEN_ELEMENTS:int = 10; private var warningLabel:LabelBase; private var idemnityLabel:MouseDisabledLabel; private var checkBox:MultilineCheckBox; private var proceedButton:ProceedButton; public function ApproveOneTimePurchaseForm(param1:IGameObject, param2:int, param3:String) { super(param1); this.addWarningLabel(param3); this.addIdemnityLabel(param2); this.addApprovingCheckBox(); this.addProceedButton(); } private function addWarningLabel(param1:String) : void { this.warningLabel = new LabelBase(); this.warningLabel.htmlText = param1; this.warningLabel.x = -7; this.warningLabel.y = -11; this.warningLabel.multiline = true; this.warningLabel.wordWrap = true; this.warningLabel.width = WIDTH; this.warningLabel.size = 12; addChild(this.warningLabel); } private function addIdemnityLabel(param1:int) : void { this.idemnityLabel = new MouseDisabledLabel(); this.idemnityLabel.y = this.warningLabel.y + this.warningLabel.textHeight + GAP_BETWEEN_ELEMENTS; this.idemnityLabel.x = this.warningLabel.x; this.idemnityLabel.text = localeService.getText(TanksLocale.TEXT_SHOP_ONE_TIME_PURCHASE_CONDITIONS_COMPENSATION) + " " + FormatUtils.valueToString(param1,0,false); addChild(this.idemnityLabel); var local2:Diamond = new Diamond(); local2.y = this.idemnityLabel.y + 3; local2.x = this.idemnityLabel.x + this.idemnityLabel.textWidth + 5; addChild(local2); } private function addApprovingCheckBox() : void { this.checkBox = new MultilineCheckBox(); this.checkBox.labelWidth = WIDTH; this.checkBox.label = localeService.getText(TanksLocale.TEXT_SHOP_ONE_TIME_PURCHASE_CONDITIONS_AGREEMENT); this.checkBox.verticalLabelCorrectionBy(5); this.checkBox.y = this.idemnityLabel.y + this.idemnityLabel.textHeight + GAP_BETWEEN_ELEMENTS; this.checkBox.x = this.idemnityLabel.x; this.checkBox.addEventListener(CheckBoxEvent.STATE_CHANGED,this.checkBoxStateChanged); addChild(this.checkBox); } private function checkBoxStateChanged(param1:CheckBoxEvent) : void { this.proceedButton.enable = this.checkBox.checked; } private function addProceedButton() : void { this.proceedButton = new ProceedButton(); this.proceedButton.label = localeService.getText(TanksLocale.TEXT_PAYMENT_BUTTON_PROCEED_TEXT); this.proceedButton.addEventListener(MouseEvent.CLICK,this.onProceedClick); this.proceedButton.width = PROCEED_BUTTON_WIDTH; this.proceedButton.enable = false; this.proceedButton.y = this.checkBox.y + this.checkBox.height + (GAP_BETWEEN_ELEMENTS >> 1); this.proceedButton.x = this.width - this.proceedButton.width >> 1; addChild(this.proceedButton); } private function onProceedClick(param1:MouseEvent) : void { dispatchEvent(new ApproveFormEvent()); } override public function get width() : Number { return WIDTH; } override public function get height() : Number { return this.proceedButton.y + this.proceedButton.height - 7; } } }
package alternativa.tanks.model.payment.modes.braintree { [ModelInterface] public interface BraintreePayment { function isPayPal() : Boolean; } }
package alternativa.tanks.gui.tankpreview { public class NewStateMissingError extends Error { public function NewStateMissingError() { super(); } } }
package _codec.projects.tanks.client.users.model.userbattlestatistics.rank { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.users.model.userbattlestatistics.rank.RankBounds; public class CodecRankBounds implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_lowBound:ICodec; private var codec_topBound:ICodec; public function CodecRankBounds() { super(); } public function init(param1:IProtocol) : void { this.codec_lowBound = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_topBound = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:RankBounds = new RankBounds(); local2.lowBound = this.codec_lowBound.decode(param1) as int; local2.topBound = this.codec_topBound.decode(param1) as int; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:RankBounds = RankBounds(param2); this.codec_lowBound.encode(param1,local3.lowBound); this.codec_topBound.encode(param1,local3.topBound); } } }
package projects.tanks.client.partners.impl.rambler.payment { public interface IRamblerPaymentModelBase { function receivePaymentTransaction(param1:String) : void; } }
package alternativa.console { public class ConsoleVarFloat extends ConsoleVar { public var value:Number; private var minValue:Number; private var maxValue:Number; public function ConsoleVarFloat(consoleVarName:String, initialValue:Number, minValue:Number, maxValue:Number, changeListener:Function = null) { super(consoleVarName,changeListener); this.value = initialValue; this.minValue = minValue; this.maxValue = maxValue; } override protected function acceptInput(value:String) : String { var f:Number = Number(value); if(isNaN(f)) { return "Incorrect number"; } if(f < this.minValue || f > this.maxValue) { return "Value is out of bounds [" + this.minValue + ", " + this.maxValue + "]"; } this.value = f; return null; } override public function toString() : String { return this.value.toString(); } } }
package projects.tanks.clients.fp10.Prelauncher { import flash.display.DisplayObject; import flash.display.Sprite; public class LauncherContainer extends Sprite { private var prelauncher:Prelauncher; public function LauncherContainer(tanksLauncher:DisplayObject, prelauncher:Prelauncher) { super(); this.prelauncher = prelauncher; addChild(tanksLauncher); } public function isUserFromTutorial() : Boolean { return this.prelauncher.isUserFromTutorial(); } public function closeLauncher() : void { this.prelauncher.closeLauncher(); } public function get serverStored() : Boolean { return this.prelauncher.serverStored; } } }
package alternativa.tanks.model.mobilequest { import projects.tanks.client.panel.model.mobilequest.profile.IMobileQuestProfileModelBase; import projects.tanks.client.panel.model.mobilequest.profile.MobileQuestProfileModelBase; [ModelInfo] public class MobileQuestProfileModel extends MobileQuestProfileModelBase implements IMobileQuestProfileModelBase { public function MobileQuestProfileModel() { super(); } public function changeProgress(param1:int) : void { } } }
package alternativa.engine3d.loaders.collada { import alternativa.engine3d.animation.AnimationClip; import alternativa.engine3d.core.Object3D; public class DaeObject { public var object:Object3D; public var animation:AnimationClip; public var jointNode:DaeNode; public var isSplitter:Boolean = false; public var isStaticGeometry:Boolean = false; public var lodDistance:Number = 0; public function DaeObject(param1:Object3D, param2:AnimationClip = null) { super(); this.object = param1; this.animation = param2; } } }
package alternativa.tanks.servermodels.registartion.email { [ModelInterface] public interface IEmailRegistration { function checkEmail(param1:String) : void; function register(param1:String, param2:String, param3:String, param4:String, param5:String, param6:String) : void; } }
package projects.tanks.client.panel.model.shop.quantityrestriction { 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 QuantityRestrictionModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function QuantityRestrictionModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package controls.buttons.h71px { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.buttons.h71px.GreyHugeButtonSkin_middleOverClass.png")] public class GreyHugeButtonSkin_middleOverClass extends BitmapAsset { public function GreyHugeButtonSkin_middleOverClass() { super(); } } }
package forms.ranks { import flash.display.Bitmap; import flash.display.BitmapData; public class PremiumRankBitmaps { private static const bitmapSmallRank01:Class = PremiumRankBitmaps_bitmapSmallRank01; private static const bitmapBigRank01:Class = PremiumRankBitmaps_bitmapBigRank01; private static const bitmapSmallRank02:Class = PremiumRankBitmaps_bitmapSmallRank02; private static const bitmapBigRank02:Class = PremiumRankBitmaps_bitmapBigRank02; private static const bitmapSmallRank03:Class = PremiumRankBitmaps_bitmapSmallRank03; private static const bitmapBigRank03:Class = PremiumRankBitmaps_bitmapBigRank03; private static const bitmapSmallRank04:Class = PremiumRankBitmaps_bitmapSmallRank04; private static const bitmapBigRank04:Class = PremiumRankBitmaps_bitmapBigRank04; private static const bitmapSmallRank05:Class = PremiumRankBitmaps_bitmapSmallRank05; private static const bitmapBigRank05:Class = PremiumRankBitmaps_bitmapBigRank05; private static const bitmapSmallRank06:Class = PremiumRankBitmaps_bitmapSmallRank06; private static const bitmapBigRank06:Class = PremiumRankBitmaps_bitmapBigRank06; private static const bitmapSmallRank07:Class = PremiumRankBitmaps_bitmapSmallRank07; private static const bitmapBigRank07:Class = PremiumRankBitmaps_bitmapBigRank07; private static const bitmapSmallRank08:Class = PremiumRankBitmaps_bitmapSmallRank08; private static const bitmapBigRank08:Class = PremiumRankBitmaps_bitmapBigRank08; private static const bitmapSmallRank09:Class = PremiumRankBitmaps_bitmapSmallRank09; private static const bitmapBigRank09:Class = PremiumRankBitmaps_bitmapBigRank09; private static const bitmapSmallRank10:Class = PremiumRankBitmaps_bitmapSmallRank10; private static const bitmapBigRank10:Class = PremiumRankBitmaps_bitmapBigRank10; private static const bitmapSmallRank11:Class = PremiumRankBitmaps_bitmapSmallRank11; private static const bitmapBigRank11:Class = PremiumRankBitmaps_bitmapBigRank11; private static const bitmapSmallRank12:Class = PremiumRankBitmaps_bitmapSmallRank12; private static const bitmapBigRank12:Class = PremiumRankBitmaps_bitmapBigRank12; private static const bitmapSmallRank13:Class = PremiumRankBitmaps_bitmapSmallRank13; private static const bitmapBigRank13:Class = PremiumRankBitmaps_bitmapBigRank13; private static const bitmapSmallRank14:Class = PremiumRankBitmaps_bitmapSmallRank14; private static const bitmapBigRank14:Class = PremiumRankBitmaps_bitmapBigRank14; private static const bitmapSmallRank15:Class = PremiumRankBitmaps_bitmapSmallRank15; private static const bitmapBigRank15:Class = PremiumRankBitmaps_bitmapBigRank15; private static const bitmapSmallRank16:Class = PremiumRankBitmaps_bitmapSmallRank16; private static const bitmapBigRank16:Class = PremiumRankBitmaps_bitmapBigRank16; private static const bitmapSmallRank17:Class = PremiumRankBitmaps_bitmapSmallRank17; private static const bitmapBigRank17:Class = PremiumRankBitmaps_bitmapBigRank17; private static const bitmapSmallRank18:Class = PremiumRankBitmaps_bitmapSmallRank18; private static const bitmapBigRank18:Class = PremiumRankBitmaps_bitmapBigRank18; private static const bitmapSmallRank19:Class = PremiumRankBitmaps_bitmapSmallRank19; private static const bitmapBigRank19:Class = PremiumRankBitmaps_bitmapBigRank19; private static const bitmapSmallRank20:Class = PremiumRankBitmaps_bitmapSmallRank20; private static const bitmapBigRank20:Class = PremiumRankBitmaps_bitmapBigRank20; private static const bitmapSmallRank21:Class = PremiumRankBitmaps_bitmapSmallRank21; private static const bitmapBigRank21:Class = PremiumRankBitmaps_bitmapBigRank21; private static const bitmapSmallRank22:Class = PremiumRankBitmaps_bitmapSmallRank22; private static const bitmapBigRank22:Class = PremiumRankBitmaps_bitmapBigRank22; private static const bitmapSmallRank23:Class = PremiumRankBitmaps_bitmapSmallRank23; private static const bitmapBigRank23:Class = PremiumRankBitmaps_bitmapBigRank23; private static const bitmapSmallRank24:Class = PremiumRankBitmaps_bitmapSmallRank24; private static const bitmapBigRank24:Class = PremiumRankBitmaps_bitmapBigRank24; private static const bitmapSmallRank25:Class = PremiumRankBitmaps_bitmapSmallRank25; private static const bitmapBigRank25:Class = PremiumRankBitmaps_bitmapBigRank25; private static const bitmapSmallRank26:Class = PremiumRankBitmaps_bitmapSmallRank26; private static const bitmapBigRank26:Class = PremiumRankBitmaps_bitmapBigRank26; private static const bitmapSmallRank27:Class = PremiumRankBitmaps_bitmapSmallRank27; private static const bitmapBigRank27:Class = PremiumRankBitmaps_bitmapBigRank27; private static const bitmapSmallRank28:Class = PremiumRankBitmaps_bitmapSmallRank28; private static const bitmapBigRank28:Class = PremiumRankBitmaps_bitmapBigRank28; private static const bitmapSmallRank29:Class = PremiumRankBitmaps_bitmapSmallRank29; private static const bitmapBigRank29:Class = PremiumRankBitmaps_bitmapBigRank29; private static const bitmapSmallRank30:Class = PremiumRankBitmaps_bitmapSmallRank30; private static const bitmapBigRank30:Class = PremiumRankBitmaps_bitmapBigRank30; private static const bitmapSmallRank31:Class = PremiumRankBitmaps_bitmapSmallRank31; private static const bitmapBigRank31:Class = PremiumRankBitmaps_bitmapBigRank31; public static const smallRanks:Vector.<BitmapData> = new Vector.<BitmapData>(); public static const bigRanks:Vector.<BitmapData> = new Vector.<BitmapData>(); smallRanks.push(Bitmap(new bitmapSmallRank01()).bitmapData,Bitmap(new bitmapSmallRank02()).bitmapData,Bitmap(new bitmapSmallRank03()).bitmapData,Bitmap(new bitmapSmallRank04()).bitmapData,Bitmap(new bitmapSmallRank05()).bitmapData,Bitmap(new bitmapSmallRank06()).bitmapData,Bitmap(new bitmapSmallRank07()).bitmapData,Bitmap(new bitmapSmallRank08()).bitmapData,Bitmap(new bitmapSmallRank09()).bitmapData,Bitmap(new bitmapSmallRank10()).bitmapData,Bitmap(new bitmapSmallRank11()).bitmapData,Bitmap(new bitmapSmallRank12()).bitmapData,Bitmap(new bitmapSmallRank13()).bitmapData,Bitmap(new bitmapSmallRank14()).bitmapData,Bitmap(new bitmapSmallRank15()).bitmapData,Bitmap(new bitmapSmallRank16()).bitmapData,Bitmap(new bitmapSmallRank17()).bitmapData,Bitmap(new bitmapSmallRank18()).bitmapData,Bitmap(new bitmapSmallRank19()).bitmapData,Bitmap(new bitmapSmallRank20()).bitmapData,Bitmap(new bitmapSmallRank21()).bitmapData,Bitmap(new bitmapSmallRank22()).bitmapData,Bitmap(new bitmapSmallRank23()).bitmapData ,Bitmap(new bitmapSmallRank24()).bitmapData,Bitmap(new bitmapSmallRank25()).bitmapData,Bitmap(new bitmapSmallRank26()).bitmapData,Bitmap(new bitmapSmallRank27()).bitmapData,Bitmap(new bitmapSmallRank28()).bitmapData,Bitmap(new bitmapSmallRank29()).bitmapData,Bitmap(new bitmapSmallRank30()).bitmapData,Bitmap(new bitmapSmallRank31()).bitmapData); bigRanks.push(Bitmap(new bitmapBigRank01()).bitmapData,Bitmap(new bitmapBigRank02()).bitmapData,Bitmap(new bitmapBigRank03()).bitmapData,Bitmap(new bitmapBigRank04()).bitmapData,Bitmap(new bitmapBigRank05()).bitmapData,Bitmap(new bitmapBigRank06()).bitmapData,Bitmap(new bitmapBigRank07()).bitmapData,Bitmap(new bitmapBigRank08()).bitmapData,Bitmap(new bitmapBigRank09()).bitmapData,Bitmap(new bitmapBigRank10()).bitmapData,Bitmap(new bitmapBigRank11()).bitmapData,Bitmap(new bitmapBigRank12()).bitmapData,Bitmap(new bitmapBigRank13()).bitmapData,Bitmap(new bitmapBigRank14()).bitmapData,Bitmap(new bitmapBigRank15()).bitmapData,Bitmap(new bitmapBigRank16()).bitmapData,Bitmap(new bitmapBigRank17()).bitmapData,Bitmap(new bitmapBigRank18()).bitmapData,Bitmap(new bitmapBigRank19()).bitmapData,Bitmap(new bitmapBigRank20()).bitmapData,Bitmap(new bitmapBigRank21()).bitmapData,Bitmap(new bitmapBigRank22()).bitmapData,Bitmap(new bitmapBigRank23()).bitmapData,Bitmap(new bitmapBigRank24()).bitmapData,Bitmap(new bitmapBigRank25()) .bitmapData,Bitmap(new bitmapBigRank26()).bitmapData,Bitmap(new bitmapBigRank27()).bitmapData,Bitmap(new bitmapBigRank28()).bitmapData,Bitmap(new bitmapBigRank29()).bitmapData,Bitmap(new bitmapBigRank30()).bitmapData,Bitmap(new bitmapBigRank31()).bitmapData); public function PremiumRankBitmaps() { super(); } } }
package controls.resultassets { import assets.resultwindow.bres_HEADER_BLUE_PIXEL; import assets.resultwindow.bres_HEADER_BLUE_TL; import controls.statassets.StatLineBase; public class ResultWindowBlueHeader extends StatLineBase { public function ResultWindowBlueHeader() { super(); tl = new bres_HEADER_BLUE_TL(1,1); px = new bres_HEADER_BLUE_PIXEL(1,1); } } }
package _codec.projects.tanks.client.panel.model.payment.modes.pricerange { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.payment.modes.pricerange.PriceRangeCC; public class CodecPriceRangeCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_enabled:ICodec; private var codec_minimum:ICodec; public function CodecPriceRangeCC() { super(); } public function init(param1:IProtocol) : void { this.codec_enabled = param1.getCodec(new TypeCodecInfo(Boolean,false)); this.codec_minimum = param1.getCodec(new TypeCodecInfo(Number,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:PriceRangeCC = new PriceRangeCC(); local2.enabled = this.codec_enabled.decode(param1) as Boolean; local2.minimum = this.codec_minimum.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:PriceRangeCC = PriceRangeCC(param2); this.codec_enabled.encode(param1,local3.enabled); this.codec_minimum.encode(param1,local3.minimum); } } }
package alternativa.tanks.servermodels.emailandpasswordchanger { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IPasswordRecoveryAdapt implements IPasswordRecovery { private var object:IGameObject; private var impl:IPasswordRecovery; public function IPasswordRecoveryAdapt(param1:IGameObject, param2:IPasswordRecovery) { super(); this.object = param1; this.impl = param2; } public function startEmailAndPasswordChangeProcess(param1:String) : void { var passwordChangeHash:String = param1; try { Model.object = this.object; this.impl.startEmailAndPasswordChangeProcess(passwordChangeHash); } finally { Model.popObject(); } } public function sendUsersRestorePasswordLink(param1:String) : void { var email:String = param1; try { Model.object = this.object; this.impl.sendUsersRestorePasswordLink(email); } finally { Model.popObject(); } } public function changePasswordAndEmail(param1:String, param2:String) : void { var newPassword:String = param1; var newEmail:String = param2; try { Model.object = this.object; this.impl.changePasswordAndEmail(newPassword,newEmail); } finally { Model.popObject(); } } } }
package projects.tanks.client.battlefield.models.tankparts.armor.simple { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class SimpleArmorModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:SimpleArmorModelServer; private var client:ISimpleArmorModelBase = ISimpleArmorModelBase(this); private var modelId:Long = Long.getLong(1842275960,1015636683); public function SimpleArmorModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new SimpleArmorModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(SimpleArmorCC,false))); } protected function getInitParam() : SimpleArmorCC { return SimpleArmorCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package alternativa.engine3d.objects { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.core.Camera3D; import alternativa.engine3d.core.Canvas; import alternativa.engine3d.core.Debug; import alternativa.engine3d.core.Face; import alternativa.engine3d.core.Object3D; import alternativa.engine3d.core.Vertex; import alternativa.engine3d.core.Wrapper; use namespace alternativa3d; public class Occluder extends Object3D { alternativa3d var faceList:Face; alternativa3d var edgeList:Edge; alternativa3d var vertexList:Vertex; public var minSize:Number = 0; public function Occluder() { super(); } public function createForm(param1:Mesh, param2:Boolean = false) : void { this.destroyForm(); if(!param2) { param1 = param1.clone() as Mesh; } this.alternativa3d::faceList = param1.alternativa3d::faceList; this.alternativa3d::vertexList = param1.alternativa3d::vertexList; param1.alternativa3d::faceList = null; param1.alternativa3d::vertexList = null; var local3:Vertex = this.alternativa3d::vertexList; while(local3 != null) { local3.alternativa3d::transformId = 0; local3.id = null; local3 = local3.alternativa3d::next; } var local4:Face = this.alternativa3d::faceList; while(local4 != null) { local4.id = null; local4 = local4.alternativa3d::next; } var local5:String = this.calculateEdges(); if(local5 != null) { this.destroyForm(); throw new ArgumentError(local5); } calculateBounds(); } public function destroyForm() : void { this.alternativa3d::faceList = null; this.alternativa3d::edgeList = null; this.alternativa3d::vertexList = null; } override public function clone() : Object3D { var local1:Occluder = new Occluder(); local1.clonePropertiesFrom(this); return local1; } override protected function clonePropertiesFrom(param1:Object3D) : void { var local3:Vertex = null; var local4:Face = null; var local5:Vertex = null; var local6:Face = null; var local7:Edge = null; var local9:Vertex = null; var local10:Face = null; var local11:Wrapper = null; var local12:Wrapper = null; var local13:Wrapper = null; var local14:Edge = null; super.clonePropertiesFrom(param1); var local2:Occluder = param1 as Occluder; this.minSize = local2.minSize; local3 = local2.alternativa3d::vertexList; while(local3 != null) { local9 = new Vertex(); local9.x = local3.x; local9.y = local3.y; local9.z = local3.z; local9.u = local3.u; local9.v = local3.v; local9.normalX = local3.normalX; local9.normalY = local3.normalY; local9.normalZ = local3.normalZ; local3.alternativa3d::value = local9; if(local5 != null) { local5.alternativa3d::next = local9; } else { this.alternativa3d::vertexList = local9; } local5 = local9; local3 = local3.alternativa3d::next; } local4 = local2.alternativa3d::faceList; while(local4 != null) { local10 = new Face(); local10.material = local4.material; local10.alternativa3d::normalX = local4.alternativa3d::normalX; local10.alternativa3d::normalY = local4.alternativa3d::normalY; local10.alternativa3d::normalZ = local4.alternativa3d::normalZ; local10.alternativa3d::offset = local4.alternativa3d::offset; local4.alternativa3d::processNext = local10; local11 = null; local12 = local4.alternativa3d::wrapper; while(local12 != null) { local13 = new Wrapper(); local13.alternativa3d::vertex = local12.alternativa3d::vertex.alternativa3d::value; if(local11 != null) { local11.alternativa3d::next = local13; } else { local10.alternativa3d::wrapper = local13; } local11 = local13; local12 = local12.alternativa3d::next; } if(local6 != null) { local6.alternativa3d::next = local10; } else { this.alternativa3d::faceList = local10; } local6 = local10; local4 = local4.alternativa3d::next; } var local8:Edge = local2.alternativa3d::edgeList; while(local8 != null) { local14 = new Edge(); local14.a = local8.a.alternativa3d::value; local14.b = local8.b.alternativa3d::value; local14.left = local8.left.alternativa3d::processNext; local14.right = local8.right.alternativa3d::processNext; if(local7 != null) { local7.next = local14; } else { this.alternativa3d::edgeList = local14; } local7 = local14; local8 = local8.next; } local3 = local2.alternativa3d::vertexList; while(local3 != null) { local3.alternativa3d::value = null; local3 = local3.alternativa3d::next; } local4 = local2.alternativa3d::faceList; while(local4 != null) { local4.alternativa3d::processNext = null; local4 = local4.alternativa3d::next; } } private function calculateEdges() : String { var local1:Face = null; var local2:Wrapper = null; var local3:Edge = null; var local4:Vertex = null; var local5:Vertex = null; var local6:Number = NaN; var local7:Number = NaN; var local8:Number = NaN; var local9:Number = NaN; var local10:Number = NaN; var local11:Number = NaN; local1 = this.alternativa3d::faceList; while(local1 != null) { local1.alternativa3d::calculateBestSequenceAndNormal(); local2 = local1.alternativa3d::wrapper; while(local2 != null) { local4 = local2.alternativa3d::vertex; local5 = local2.alternativa3d::next != null ? local2.alternativa3d::next.alternativa3d::vertex : local1.alternativa3d::wrapper.alternativa3d::vertex; local3 = this.alternativa3d::edgeList; while(local3 != null) { if(local3.a == local4 && local3.b == local5) { return "The supplied geometry is not valid."; } if(local3.a == local5 && local3.b == local4) { break; } local3 = local3.next; } if(local3 != null) { local3.right = local1; } else { local3 = new Edge(); local3.a = local4; local3.b = local5; local3.left = local1; local3.next = this.alternativa3d::edgeList; this.alternativa3d::edgeList = local3; } local2 = local2.alternativa3d::next; local4 = local5; } local1 = local1.alternativa3d::next; } local3 = this.alternativa3d::edgeList; while(local3 != null) { if(local3.left == null || local3.right == null) { return "The supplied geometry is non whole."; } local6 = local3.b.x - local3.a.x; local7 = local3.b.y - local3.a.y; local8 = local3.b.z - local3.a.z; local9 = local3.right.alternativa3d::normalZ * local3.left.alternativa3d::normalY - local3.right.alternativa3d::normalY * local3.left.alternativa3d::normalZ; local10 = local3.right.alternativa3d::normalX * local3.left.alternativa3d::normalZ - local3.right.alternativa3d::normalZ * local3.left.alternativa3d::normalX; local11 = local3.right.alternativa3d::normalY * local3.left.alternativa3d::normalX - local3.right.alternativa3d::normalX * local3.left.alternativa3d::normalY; if(local6 * local9 + local7 * local10 + local8 * local11 < 0) { } local3 = local3.next; } return null; } override alternativa3d function draw(param1:Camera3D, param2:Canvas) : void { var local3:Canvas = null; var local4:int = 0; var local7:Vertex = null; var local12:Vertex = null; var local13:Vertex = null; var local14:Number = NaN; var local15:Number = NaN; var local16:Number = NaN; var local17:Number = NaN; var local18:Number = NaN; var local19:Number = NaN; var local20:Number = NaN; var local22:Vertex = null; var local23:Vertex = null; var local24:Number = NaN; if(this.alternativa3d::faceList == null || this.alternativa3d::edgeList == null) { return; } alternativa3d::calculateInverseMatrix(); var local5:Boolean = true; var local6:Face = this.alternativa3d::faceList; while(local6 != null) { if(local6.alternativa3d::normalX * alternativa3d::imd + local6.alternativa3d::normalY * alternativa3d::imh + local6.alternativa3d::normalZ * alternativa3d::iml > local6.alternativa3d::offset) { local6.alternativa3d::distance = 1; local5 = false; } else { local6.alternativa3d::distance = 0; } local6 = local6.alternativa3d::next; } if(local5) { return; } var local8:int = 0; var local9:Boolean = true; var local10:Number = Number(param1.alternativa3d::viewSizeX); var local11:Number = Number(param1.alternativa3d::viewSizeY); var local21:Edge = this.alternativa3d::edgeList; for(; local21 != null; local21 = local21.next) { if(local21.left.alternativa3d::distance != local21.right.alternativa3d::distance) { if(local21.left.alternativa3d::distance > 0) { local12 = local21.a; local13 = local21.b; } else { local12 = local21.b; local13 = local21.a; } local14 = alternativa3d::ma * local12.x + alternativa3d::mb * local12.y + alternativa3d::mc * local12.z + alternativa3d::md; local15 = alternativa3d::me * local12.x + alternativa3d::mf * local12.y + alternativa3d::mg * local12.z + alternativa3d::mh; local16 = alternativa3d::mi * local12.x + alternativa3d::mj * local12.y + alternativa3d::mk * local12.z + alternativa3d::ml; local17 = alternativa3d::ma * local13.x + alternativa3d::mb * local13.y + alternativa3d::mc * local13.z + alternativa3d::md; local18 = alternativa3d::me * local13.x + alternativa3d::mf * local13.y + alternativa3d::mg * local13.z + alternativa3d::mh; local19 = alternativa3d::mi * local13.x + alternativa3d::mj * local13.y + alternativa3d::mk * local13.z + alternativa3d::ml; if(alternativa3d::culling > 0) { if(local16 <= -local14 && local19 <= -local17) { if(local9 && local18 * local14 - local17 * local15 > 0) { local9 = false; } continue; } if(local19 > -local17 && local16 <= -local14) { local20 = (local14 + local16) / (local14 + local16 - local17 - local19); local14 += (local17 - local14) * local20; local15 += (local18 - local15) * local20; local16 += (local19 - local16) * local20; } else if(local19 <= -local17 && local16 > -local14) { local20 = (local14 + local16) / (local14 + local16 - local17 - local19); local17 = local14 + (local17 - local14) * local20; local18 = local15 + (local18 - local15) * local20; local19 = local16 + (local19 - local16) * local20; } if(local16 <= local14 && local19 <= local17) { if(local9 && local18 * local14 - local17 * local15 > 0) { local9 = false; } continue; } if(local19 > local17 && local16 <= local14) { local20 = (local16 - local14) / (local16 - local14 + local17 - local19); local14 += (local17 - local14) * local20; local15 += (local18 - local15) * local20; local16 += (local19 - local16) * local20; } else if(local19 <= local17 && local16 > local14) { local20 = (local16 - local14) / (local16 - local14 + local17 - local19); local17 = local14 + (local17 - local14) * local20; local18 = local15 + (local18 - local15) * local20; local19 = local16 + (local19 - local16) * local20; } if(local16 <= -local15 && local19 <= -local18) { if(local9 && local18 * local14 - local17 * local15 > 0) { local9 = false; } continue; } if(local19 > -local18 && local16 <= -local15) { local20 = (local15 + local16) / (local15 + local16 - local18 - local19); local14 += (local17 - local14) * local20; local15 += (local18 - local15) * local20; local16 += (local19 - local16) * local20; } else if(local19 <= -local18 && local16 > -local15) { local20 = (local15 + local16) / (local15 + local16 - local18 - local19); local17 = local14 + (local17 - local14) * local20; local18 = local15 + (local18 - local15) * local20; local19 = local16 + (local19 - local16) * local20; } if(local16 <= local15 && local19 <= local18) { if(local9 && local18 * local14 - local17 * local15 > 0) { local9 = false; } continue; } if(local19 > local18 && local16 <= local15) { local20 = (local16 - local15) / (local16 - local15 + local18 - local19); local14 += (local17 - local14) * local20; local15 += (local18 - local15) * local20; local16 += (local19 - local16) * local20; } else if(local19 <= local18 && local16 > local15) { local20 = (local16 - local15) / (local16 - local15 + local18 - local19); local17 = local14 + (local17 - local14) * local20; local18 = local15 + (local18 - local15) * local20; local19 = local16 + (local19 - local16) * local20; } local9 = false; } local12 = local12.alternativa3d::create(); local12.alternativa3d::next = local7; local8++; local7 = local12; local7.alternativa3d::cameraX = local19 * local15 - local18 * local16; local7.alternativa3d::cameraY = local17 * local16 - local19 * local14; local7.alternativa3d::cameraZ = local18 * local14 - local17 * local15; local7.x = local14; local7.y = local15; local7.z = local16; local7.u = local17; local7.v = local18; local7.alternativa3d::offset = local19; } } if(local7 != null) { if(this.minSize > 0) { local22 = Vertex.alternativa3d::createList(local8); local12 = local7; local13 = local22; while(local12 != null) { local13.x = local12.x * local10 / local12.z; local13.y = local12.y * local11 / local12.z; local13.u = local12.u * local10 / local12.alternativa3d::offset; local13.v = local12.v * local11 / local12.alternativa3d::offset; local13.alternativa3d::cameraX = local13.y - local13.v; local13.alternativa3d::cameraY = local13.u - local13.x; local13.alternativa3d::offset = local13.alternativa3d::cameraX * local13.x + local13.alternativa3d::cameraY * local13.y; local12 = local12.alternativa3d::next; local13 = local13.alternativa3d::next; } if(alternativa3d::culling > 0) { if(Boolean(alternativa3d::culling & 4)) { local14 = -param1.alternativa3d::viewSizeX; local15 = -param1.alternativa3d::viewSizeY; local17 = -param1.alternativa3d::viewSizeX; local18 = Number(param1.alternativa3d::viewSizeY); local12 = local22; while(local12 != null) { local16 = local14 * local12.alternativa3d::cameraX + local15 * local12.alternativa3d::cameraY - local12.alternativa3d::offset; local19 = local17 * local12.alternativa3d::cameraX + local18 * local12.alternativa3d::cameraY - local12.alternativa3d::offset; if(!(local16 < 0 || local19 < 0)) { break; } if(local16 >= 0 && local19 < 0) { local20 = local16 / (local16 - local19); local14 += (local17 - local14) * local20; local15 += (local18 - local15) * local20; } else if(local16 < 0 && local19 >= 0) { local20 = local16 / (local16 - local19); local17 = local14 + (local17 - local14) * local20; local18 = local15 + (local18 - local15) * local20; } local12 = local12.alternativa3d::next; } if(local12 == null) { local13 = local7.alternativa3d::create(); local13.alternativa3d::next = local23; local23 = local13; local23.x = local14; local23.y = local15; local23.u = local17; local23.v = local18; } } if(Boolean(alternativa3d::culling & 8)) { local14 = Number(param1.alternativa3d::viewSizeX); local15 = Number(param1.alternativa3d::viewSizeY); local17 = Number(param1.alternativa3d::viewSizeX); local18 = -param1.alternativa3d::viewSizeY; local12 = local22; while(local12 != null) { local16 = local14 * local12.alternativa3d::cameraX + local15 * local12.alternativa3d::cameraY - local12.alternativa3d::offset; local19 = local17 * local12.alternativa3d::cameraX + local18 * local12.alternativa3d::cameraY - local12.alternativa3d::offset; if(!(local16 < 0 || local19 < 0)) { break; } if(local16 >= 0 && local19 < 0) { local20 = local16 / (local16 - local19); local14 += (local17 - local14) * local20; local15 += (local18 - local15) * local20; } else if(local16 < 0 && local19 >= 0) { local20 = local16 / (local16 - local19); local17 = local14 + (local17 - local14) * local20; local18 = local15 + (local18 - local15) * local20; } local12 = local12.alternativa3d::next; } if(local12 == null) { local13 = local7.alternativa3d::create(); local13.alternativa3d::next = local23; local23 = local13; local23.x = local14; local23.y = local15; local23.u = local17; local23.v = local18; } } if(Boolean(alternativa3d::culling & 0x10)) { local14 = Number(param1.alternativa3d::viewSizeX); local15 = -param1.alternativa3d::viewSizeY; local17 = -param1.alternativa3d::viewSizeX; local18 = -param1.alternativa3d::viewSizeY; local12 = local22; while(local12 != null) { local16 = local14 * local12.alternativa3d::cameraX + local15 * local12.alternativa3d::cameraY - local12.alternativa3d::offset; local19 = local17 * local12.alternativa3d::cameraX + local18 * local12.alternativa3d::cameraY - local12.alternativa3d::offset; if(!(local16 < 0 || local19 < 0)) { break; } if(local16 >= 0 && local19 < 0) { local20 = local16 / (local16 - local19); local14 += (local17 - local14) * local20; local15 += (local18 - local15) * local20; } else if(local16 < 0 && local19 >= 0) { local20 = local16 / (local16 - local19); local17 = local14 + (local17 - local14) * local20; local18 = local15 + (local18 - local15) * local20; } local12 = local12.alternativa3d::next; } if(local12 == null) { local13 = local7.alternativa3d::create(); local13.alternativa3d::next = local23; local23 = local13; local23.x = local14; local23.y = local15; local23.u = local17; local23.v = local18; } } if(Boolean(alternativa3d::culling & 0x20)) { local14 = -param1.alternativa3d::viewSizeX; local15 = Number(param1.alternativa3d::viewSizeY); local17 = Number(param1.alternativa3d::viewSizeX); local18 = Number(param1.alternativa3d::viewSizeY); local12 = local22; while(local12 != null) { local16 = local14 * local12.alternativa3d::cameraX + local15 * local12.alternativa3d::cameraY - local12.alternativa3d::offset; local19 = local17 * local12.alternativa3d::cameraX + local18 * local12.alternativa3d::cameraY - local12.alternativa3d::offset; if(!(local16 < 0 || local19 < 0)) { break; } if(local16 >= 0 && local19 < 0) { local20 = local16 / (local16 - local19); local14 += (local17 - local14) * local20; local15 += (local18 - local15) * local20; } else if(local16 < 0 && local19 >= 0) { local20 = local16 / (local16 - local19); local17 = local14 + (local17 - local14) * local20; local18 = local15 + (local18 - local15) * local20; } local12 = local12.alternativa3d::next; } if(local12 == null) { local13 = local7.alternativa3d::create(); local13.alternativa3d::next = local23; local23 = local13; local23.x = local14; local23.y = local15; local23.u = local17; local23.v = local18; } } } local24 = 0; local16 = local22.x; local19 = local22.y; local12 = local22; while(local12.alternativa3d::next != null) { local12 = local12.alternativa3d::next; } local12.alternativa3d::next = local23; local12 = local22; while(local12 != null) { local24 += (local12.u - local16) * (local12.y - local19) - (local12.v - local19) * (local12.x - local16); if(local12.alternativa3d::next == null) { break; } local12 = local12.alternativa3d::next; } local12.alternativa3d::next = Vertex.alternativa3d::collector; Vertex.alternativa3d::collector = local22; if(local24 / (param1.alternativa3d::viewSizeX * param1.alternativa3d::viewSizeY * 8) < this.minSize) { local12 = local7; while(local12.alternativa3d::next != null) { local12 = local12.alternativa3d::next; } local12.alternativa3d::next = Vertex.alternativa3d::collector; Vertex.alternativa3d::collector = local7; return; } } if(param1.debug && (local4 = int(param1.alternativa3d::checkInDebug(this))) > 0) { local3 = param2.alternativa3d::getChildCanvas(true,false); if(Boolean(local4 & Debug.EDGES)) { local12 = local7; while(local12 != null) { local14 = local12.x * local10 / local12.z; local15 = local12.y * local11 / local12.z; local17 = local12.u * local10 / local12.alternativa3d::offset; local18 = local12.v * local11 / local12.alternativa3d::offset; local3.alternativa3d::gfx.moveTo(local14,local15); local3.alternativa3d::gfx.lineStyle(3,255); local3.alternativa3d::gfx.lineTo(local14 + (local17 - local14) * 0.8,local15 + (local18 - local15) * 0.8); local3.alternativa3d::gfx.lineStyle(3,16711680); local3.alternativa3d::gfx.lineTo(local17,local18); local12 = local12.alternativa3d::next; } } if(Boolean(local4 & Debug.BOUNDS)) { Debug.alternativa3d::drawBounds(param1,local3,this,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ); } } param1.alternativa3d::occluders[param1.alternativa3d::numOccluders] = local7; ++param1.alternativa3d::numOccluders; } else if(local9) { if(param1.debug && (local4 = int(param1.alternativa3d::checkInDebug(this))) > 0) { local3 = param2.alternativa3d::getChildCanvas(true,false); if(Boolean(local4 & Debug.EDGES)) { local20 = 1.5; local3.alternativa3d::gfx.moveTo(-local10 + local20,-local11 + local20); local3.alternativa3d::gfx.lineStyle(3,255); local3.alternativa3d::gfx.lineTo(-local10 + local20,local11 * 0.6); local3.alternativa3d::gfx.lineStyle(3,16711680); local3.alternativa3d::gfx.lineTo(-local10 + local20,local11 - local20); local3.alternativa3d::gfx.lineStyle(3,255); local3.alternativa3d::gfx.lineTo(local10 * 0.6,local11 - local20); local3.alternativa3d::gfx.lineStyle(3,16711680); local3.alternativa3d::gfx.lineTo(local10 - local20,local11 - local20); local3.alternativa3d::gfx.lineStyle(3,255); local3.alternativa3d::gfx.lineTo(local10 - local20,-local11 * 0.6); local3.alternativa3d::gfx.lineStyle(3,16711680); local3.alternativa3d::gfx.lineTo(local10 - local20,-local11 + local20); local3.alternativa3d::gfx.lineStyle(3,255); local3.alternativa3d::gfx.lineTo(-local10 * 0.6,-local11 + local20); local3.alternativa3d::gfx.lineStyle(3,16711680); local3.alternativa3d::gfx.lineTo(-local10 + local20,-local11 + local20); } if(Boolean(local4 & Debug.BOUNDS)) { Debug.alternativa3d::drawBounds(param1,local3,this,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ); } } param1.alternativa3d::clearOccluders(); param1.alternativa3d::occludedAll = true; } } override alternativa3d function updateBounds(param1:Object3D, param2:Object3D = null) : void { var local3:Vertex = this.alternativa3d::vertexList; while(local3 != null) { if(param2 != null) { local3.alternativa3d::cameraX = param2.alternativa3d::ma * local3.x + param2.alternativa3d::mb * local3.y + param2.alternativa3d::mc * local3.z + param2.alternativa3d::md; local3.alternativa3d::cameraY = param2.alternativa3d::me * local3.x + param2.alternativa3d::mf * local3.y + param2.alternativa3d::mg * local3.z + param2.alternativa3d::mh; local3.alternativa3d::cameraZ = param2.alternativa3d::mi * local3.x + param2.alternativa3d::mj * local3.y + param2.alternativa3d::mk * local3.z + param2.alternativa3d::ml; } else { local3.alternativa3d::cameraX = local3.x; local3.alternativa3d::cameraY = local3.y; local3.alternativa3d::cameraZ = local3.z; } if(local3.alternativa3d::cameraX < param1.boundMinX) { param1.boundMinX = local3.alternativa3d::cameraX; } if(local3.alternativa3d::cameraX > param1.boundMaxX) { param1.boundMaxX = local3.alternativa3d::cameraX; } if(local3.alternativa3d::cameraY < param1.boundMinY) { param1.boundMinY = local3.alternativa3d::cameraY; } if(local3.alternativa3d::cameraY > param1.boundMaxY) { param1.boundMaxY = local3.alternativa3d::cameraY; } if(local3.alternativa3d::cameraZ < param1.boundMinZ) { param1.boundMinZ = local3.alternativa3d::cameraZ; } if(local3.alternativa3d::cameraZ > param1.boundMaxZ) { param1.boundMaxZ = local3.alternativa3d::cameraZ; } local3 = local3.alternativa3d::next; } } } } import alternativa.engine3d.core.Face; import alternativa.engine3d.core.Vertex; class Edge { public var next:Edge; public var a:Vertex; public var b:Vertex; public var left:Face; public var right:Face; public function Edge() { super(); } }
package alternativa.tanks.model.payment.modes { [ModelInterface] public interface CrystalsOnlyPaymentMode { } }
package alternativa.protocol.impl { import flash.utils.ByteArray; public class DebugHelper { public function DebugHelper() { super(); } public static function bytesToString(param1:ByteArray, param2:int, param3:int, param4:int) : String { var local7:int = 0; var local8:int = 0; var local9:int = 0; var local10:String = null; var local5:String = ""; var local6:int = int(param1.position); param1.position = param2; while(param1.bytesAvailable > 0 && local9 < param3) { local9++; local10 = param1.readUnsignedByte().toString(16); if(local10.length == 1) { local10 = "0" + local10; } local5 += local10; local8++; if(local8 == 4) { local8 = 0; local7++; if(local7 == param4) { local7 = 0; local5 += "\n"; } else { local5 += " "; } } else { local5 += " "; } } if(local9 < param3) { local5 += "\nOnly " + local9 + " of " + param3 + " bytes have been read"; } param1.position = local6; return local5; } } }
package alternativa.tanks.model.quest.challenge.stars { import alternativa.tanks.service.panel.IPanelView; import platform.client.fp10.core.model.ObjectLoadListener; import projects.tanks.client.panel.model.challenge.stars.IStarsInfoModelBase; import projects.tanks.client.panel.model.challenge.stars.StarsInfoModelBase; [ModelInfo] public class StarsInfoModel extends StarsInfoModelBase implements IStarsInfoModelBase, ObjectLoadListener { [Inject] public static var starsInfoService:StarsInfoService; [Inject] public static var panelView:IPanelView; public function StarsInfoModel() { super(); } public function objectLoaded() : void { starsInfoService.setStars(getInitParam().stars); } public function setStars(param1:int) : void { starsInfoService.setStars(param1); } } }
package projects.tanks.client.tanksservices.model.clientrestarttime { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class OnceADayActionModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:OnceADayActionModelServer; private var client:IOnceADayActionModelBase = IOnceADayActionModelBase(this); private var modelId:Long = Long.getLong(121239387,-1441001284); public function OnceADayActionModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new OnceADayActionModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(OnceADayActionCC,false))); } protected function getInitParam() : OnceADayActionCC { return OnceADayActionCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class ItemInfoPanel_bitmapRailResistance extends BitmapAsset { public function ItemInfoPanel_bitmapRailResistance() { super(); } } }
package alternativa.tanks.model.gift.opened { import flash.display.BitmapData; public class GivenItem { public var preview:BitmapData; public var itemName:String; public var rarity:int; public function GivenItem(preview:BitmapData, itemName:String, rarity:int) { super(); this.preview = preview; this.itemName = itemName; this.rarity = rarity; } } }
package controls.base { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.base.TankBaseButton_Button.png")] public class TankBaseButton_Button extends BitmapAsset { public function TankBaseButton_Button() { super(); } } }
package controls.buttons.h30px { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.buttons.h30px.OrangeMediumButtonSkin_middleUpClass.png")] public class OrangeMediumButtonSkin_middleUpClass extends BitmapAsset { public function OrangeMediumButtonSkin_middleUpClass() { super(); } } }
package alternativa.tanks.model.profile.server { public class UserGiftServerItem { public var userid:String; public var giftid:String; public var image:String; public var name:String; public var status:String; public var message:String; public var date:String; public function UserGiftServerItem(userid:String, giftid:String, image:String, name:String, status:String, message:String, date:String) { super(); this.userid = userid; this.giftid = giftid; this.image = image; this.name = name; this.status = status; this.message = message; this.date = date; } } }
package projects.tanks.client.commons.models.coloring { 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 ColoringModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function ColoringModelServer(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 assets { import flash.display.MovieClip; [Embed(source="/_assets/assets.swf", symbol="symbol472")] public dynamic class DiamondGray extends MovieClip { public function DiamondGray() { super(); } } }
package alternativa.tanks.models.battlefield.effects.levelup.rangs { import mx.core.BitmapAsset; [ExcludeClass] public class BigRangIcon_rang_25 extends BitmapAsset { public function BigRangIcon_rang_25() { super(); } } }
package alternativa.tanks.model.challenge.greenpanel.gray { import mx.core.BitmapAsset; [ExcludeClass] public class GrayPacket_top_line extends BitmapAsset { public function GrayPacket_top_line() { super(); } } }
package alternativa.protocol.codec.primitive { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; public class UByteCodec implements ICodec { public function UByteCodec() { super(); } public function encode(param1:ProtocolBuffer, param2:Object) : void { param1.writer.writeUnsignedInt(uint(param2)); } public function decode(param1:ProtocolBuffer) : Object { return param1.reader.readUnsignedByte(); } public function init(param1:IProtocol) : void { } } }
package alternativa.protocol.codec.primitive { import alternativa.protocol.codec.AbstractCodec; import alternativa.protocol.codec.NullMap; import flash.utils.IDataInput; import flash.utils.IDataOutput; public class ByteCodec extends AbstractCodec { public function ByteCodec() { super(); nullValue = int.MIN_VALUE; } override protected function doDecode(reader:IDataInput, nullmap:NullMap, notnull:Boolean) : Object { return reader.readByte(); } override protected function doEncode(dest:IDataOutput, object:Object, nullmap:NullMap, notnull:Boolean) : void { dest.writeByte(int(object)); } } }
package alternativa.tanks.model.socialnetwork.notification { import alternativa.tanks.gui.socialnetwork.AbstractSNGroupEnteringWindow; import alternativa.tanks.gui.socialnetwork.ok.OkGroupReminderWindow; import alternativa.tanks.gui.socialnetwork.ok.OkGroupThanksForEnteringWindow; import alternativa.tanks.gui.socialnetwork.vk.VkGroupReminderWindow; import alternativa.tanks.gui.socialnetwork.vk.VkGroupThanksForEnteringWindow; import flash.external.ExternalInterface; import flash.system.Security; import projects.tanks.client.commons.socialnetwork.SocialNetworkEnum; import projects.tanks.client.panel.model.socialnetwork.notification.ISNGroupReminderModelBase; import projects.tanks.client.panel.model.socialnetwork.notification.SNGroupReminderModelBase; [ModelInfo] public class SNGroupReminderModel extends SNGroupReminderModelBase implements ISNGroupReminderModelBase { private var snId:String; public function SNGroupReminderModel() { super(); } public function checkIsInGroup(param1:String, param2:String) : void { this.snId = param2; this.checkGroup(param1); } private function checkGroup(param1:String) : void { if(ExternalInterface.available) { Security.allowDomain("*"); ExternalInterface.addCallback("onReceiveIsInTOGroup",getFunctionWrapper(this.onReceiveIsInTOGroup)); ExternalInterface.call("isMemberOfTOGroup",param1); } } private function onReceiveIsInTOGroup(param1:Boolean) : void { if(param1) { server.giveBonus(); } else { this.showReminderWindow(); } } private function showReminderWindow() : void { var local1:AbstractSNGroupEnteringWindow = null; switch(this.snId) { case SocialNetworkEnum.VKONTAKTE_INTERNAL.name.toLocaleLowerCase(): local1 = new VkGroupReminderWindow(); break; case SocialNetworkEnum.ODNOKLASSNIKI_INTERNAL.name.toLocaleLowerCase(): local1 = new OkGroupReminderWindow(); } local1.show(); } public function showCongratulationsWindow() : void { var local1:AbstractSNGroupEnteringWindow = null; switch(this.snId) { case SocialNetworkEnum.VKONTAKTE_INTERNAL.name.toLocaleLowerCase(): local1 = new VkGroupThanksForEnteringWindow(); break; case SocialNetworkEnum.ODNOKLASSNIKI_INTERNAL.name.toLocaleLowerCase(): local1 = new OkGroupThanksForEnteringWindow(); } local1.show(); } } }
package alternativa.tanks.gui.shopitems.item.kits.description { import assets.Diamond; import controls.Money; import controls.base.LabelBase; import flash.display.Sprite; import flash.text.TextFormatAlign; import forms.ColorConstants; import projects.tanks.client.panel.model.shop.kitpackage.KitPackageItemInfo; public class KitPackageDescriptionRow extends Sprite { public function KitPackageDescriptionRow(param1:KitPackageItemInfo) { super(); var _loc2_:LabelBase = new LabelBase(); _loc2_.textColor = ColorConstants.WHITE; _loc2_.align = TextFormatAlign.LEFT; _loc2_.text = param1.itemName + (param1.count <= 1 ? "" : " ×" + String(param1.count)); _loc2_.x = KitPackageDescriptionView.LEFT_TOP_MARGIN; addChild(_loc2_); var _loc3_:Diamond = new Diamond(); _loc3_.x = KitPackageDescriptionView.WIDTH - _loc2_.x - _loc3_.width; _loc3_.y = 4; addChild(_loc3_); var _loc4_:int = param1.crystalPrice * param1.count; var _loc5_:LabelBase = new LabelBase(); _loc5_.color = ColorConstants.WHITE; _loc5_.align = TextFormatAlign.RIGHT; _loc5_.text = Money.numToString(_loc4_,false); _loc5_.x = _loc3_.x - _loc5_.width - 1; addChild(_loc5_); } } }
package alternativa.engine3d.loaders.collada { public namespace collada = "http://www.collada.org/2005/11/COLLADASchema"; }
package alternativa.tanks.service.battlelist { import flash.events.Event; import projects.tanks.client.battleselect.model.matchmaking.queue.MatchmakingMode; public class FindRandomBattleEvent extends Event { public static const EVENT:String = "FindRandomBattleEvent.EVENT"; private var mode:MatchmakingMode; public function FindRandomBattleEvent(param1:MatchmakingMode) { super(EVENT); this.mode = param1; } public function getMode() : MatchmakingMode { return this.mode; } } }
package platform.client.fp10.core.service.errormessage.errors { import alternativa.types.Long; public class SpaceObjectDestructionError implements ErrorType { private var e:Error; private var objectId:Long; private var spaceId:Long; public function SpaceObjectDestructionError(param1:Long, param2:Long, param3:Error) { super(); this.e = param3; this.objectId = param2; this.spaceId = param1; } public function getMessage() : String { return "Space [" + this.spaceId + "]: Object destruction error. Object id: " + this.objectId + ", error: " + this.e.getStackTrace(); } } }
package platform.client.fp10.core.network.connection { public class ConnectionConnectParameters { private var _host:String; private var _ports:Vector.<int>; public function ConnectionConnectParameters(param1:String, param2:Vector.<int>) { super(); this._host = param1; this._ports = param2; } public function get host() : String { return this._host; } public function get ports() : Vector.<int> { return this._ports; } public function toString() : String { return "[host=" + String(this._host) + " ports=" + String(this._ports) + "]"; } } }
package projects.tanks.client.battlefield.models.coloradjust { 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 ColorAdjustModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function ColorAdjustModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package _codec.projects.tanks.client.garage.models.item.view { 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.garage.models.item.view.ItemViewCategoryCC; public class VectorCodecItemViewCategoryCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecItemViewCategoryCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ItemViewCategoryCC,false)); if(this.optionalElement) { this.elementCodec = new OptionalCodecDecorator(this.elementCodec); } } public function decode(param1:ProtocolBuffer) : Object { var local2:int = int(LengthCodecHelper.decodeLength(param1)); var local3:Vector.<ItemViewCategoryCC> = new Vector.<ItemViewCategoryCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ItemViewCategoryCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ItemViewCategoryCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ItemViewCategoryCC> = Vector.<ItemViewCategoryCC>(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 controls.buttons.h30px { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.buttons.h30px.OrangeMediumButtonSkin_rightDownClass.png")] public class OrangeMediumButtonSkin_rightDownClass extends BitmapAsset { public function OrangeMediumButtonSkin_rightDownClass() { super(); } } }
package alternativa.tanks.models.weapon.rocketlauncher { import mx.core.ByteArrayAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.weapon.rocketlauncher.Rocket_rocket3dsClass.bin", mimeType="application/octet-stream")] public class Rocket_rocket3dsClass extends ByteArrayAsset { public function Rocket_rocket3dsClass() { super(); } } }
package _codec.projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.sfx { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import platform.client.fp10.core.resource.types.MultiframeTextureResource; import platform.client.fp10.core.resource.types.SoundResource; import platform.client.fp10.core.resource.types.TextureResource; import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingSFXEntity; import projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.sfx.RocketLauncherSfxCC; public class CodecRocketLauncherSfxCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_aimingCompleteSound:ICodec; private var codec_aimingSound:ICodec; private var codec_explosionMarkTexture:ICodec; private var codec_explosionTexture:ICodec; private var codec_leftHitSounds:ICodec; private var codec_leftShotSounds:ICodec; private var codec_lightingSFXEntity:ICodec; private var codec_rightHitSounds:ICodec; private var codec_rightShotSounds:ICodec; private var codec_rocketFlameTexture:ICodec; private var codec_rocketFlightSound:ICodec; private var codec_rocketSmokeTexture:ICodec; private var codec_rocketTexture:ICodec; private var codec_targetLostSound:ICodec; public function CodecRocketLauncherSfxCC() { super(); } public function init(param1:IProtocol) : void { this.codec_aimingCompleteSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_aimingSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_explosionMarkTexture = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_explosionTexture = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false)); this.codec_leftHitSounds = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_leftShotSounds = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_lightingSFXEntity = param1.getCodec(new TypeCodecInfo(LightingSFXEntity,false)); this.codec_rightHitSounds = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_rightShotSounds = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_rocketFlameTexture = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_rocketFlightSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_rocketSmokeTexture = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_rocketTexture = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_targetLostSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:RocketLauncherSfxCC = new RocketLauncherSfxCC(); local2.aimingCompleteSound = this.codec_aimingCompleteSound.decode(param1) as SoundResource; local2.aimingSound = this.codec_aimingSound.decode(param1) as SoundResource; local2.explosionMarkTexture = this.codec_explosionMarkTexture.decode(param1) as TextureResource; local2.explosionTexture = this.codec_explosionTexture.decode(param1) as MultiframeTextureResource; local2.leftHitSounds = this.codec_leftHitSounds.decode(param1) as SoundResource; local2.leftShotSounds = this.codec_leftShotSounds.decode(param1) as SoundResource; local2.lightingSFXEntity = this.codec_lightingSFXEntity.decode(param1) as LightingSFXEntity; local2.rightHitSounds = this.codec_rightHitSounds.decode(param1) as SoundResource; local2.rightShotSounds = this.codec_rightShotSounds.decode(param1) as SoundResource; local2.rocketFlameTexture = this.codec_rocketFlameTexture.decode(param1) as TextureResource; local2.rocketFlightSound = this.codec_rocketFlightSound.decode(param1) as SoundResource; local2.rocketSmokeTexture = this.codec_rocketSmokeTexture.decode(param1) as TextureResource; local2.rocketTexture = this.codec_rocketTexture.decode(param1) as TextureResource; local2.targetLostSound = this.codec_targetLostSound.decode(param1) as SoundResource; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:RocketLauncherSfxCC = RocketLauncherSfxCC(param2); this.codec_aimingCompleteSound.encode(param1,local3.aimingCompleteSound); this.codec_aimingSound.encode(param1,local3.aimingSound); this.codec_explosionMarkTexture.encode(param1,local3.explosionMarkTexture); this.codec_explosionTexture.encode(param1,local3.explosionTexture); this.codec_leftHitSounds.encode(param1,local3.leftHitSounds); this.codec_leftShotSounds.encode(param1,local3.leftShotSounds); this.codec_lightingSFXEntity.encode(param1,local3.lightingSFXEntity); this.codec_rightHitSounds.encode(param1,local3.rightHitSounds); this.codec_rightShotSounds.encode(param1,local3.rightShotSounds); this.codec_rocketFlameTexture.encode(param1,local3.rocketFlameTexture); this.codec_rocketFlightSound.encode(param1,local3.rocketFlightSound); this.codec_rocketSmokeTexture.encode(param1,local3.rocketSmokeTexture); this.codec_rocketTexture.encode(param1,local3.rocketTexture); this.codec_targetLostSound.encode(param1,local3.targetLostSound); } } }
package alternativa.tanks.model.item.rename { import flash.events.Event; public class RenameEvent extends Event { public static const RENAME_EVENT:String = "REANAME_EVENT"; private var nickname:String; public function RenameEvent(param1:String) { super(RENAME_EVENT); this.nickname = param1; } public function getNickname() : String { return this.nickname; } } }
package alternativa.tanks.models.weapon.shared.shot { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IShotModelEvents implements IShotModel { private var object:IGameObject; private var impl:Vector.<Object>; public function IShotModelEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getReloadMS() : int { var result:int = 0; var i:int = 0; var m:IShotModel = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IShotModel(this.impl[i]); result = int(m.getReloadMS()); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.gui.friends { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.friends.FriendsWindowStateSmallButton_normalStateClass.png")] public class FriendsWindowStateSmallButton_normalStateClass extends BitmapAsset { public function FriendsWindowStateSmallButton_normalStateClass() { super(); } } }
package controls { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.FBButton_pressedBitmapFB.png")] public class FBButton_pressedBitmapFB extends BitmapAsset { public function FBButton_pressedBitmapFB() { super(); } } }
package alternativa.engine3d.loaders.collada { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.core.Face; import alternativa.engine3d.core.Vertex; import alternativa.engine3d.core.Wrapper; import alternativa.engine3d.materials.Material; import alternativa.engine3d.objects.Mesh; use namespace alternativa3d; use namespace collada; public class DaePrimitive extends DaeElement { private var verticesInput:DaeInput; private var texCoordsInputs:Vector.<DaeInput>; private var inputsStride:int; public function DaePrimitive(param1:XML, param2:DaeDocument) { super(param1,param2); } override protected function parseImplementation() : Boolean { this.parseInputs(); return true; } private function parseInputs() : void { var local5:DaeInput = null; var local6:String = null; var local7:int = 0; this.texCoordsInputs = new Vector.<DaeInput>(); var local1:XMLList = data.input; var local2:int = 0; var local3:int = 0; var local4:int = int(local1.length()); for(; local3 < local4; local7 = local5.offset,local2 = local7 > local2 ? local7 : local2,local3++) { local5 = new DaeInput(local1[local3],document); local6 = local5.semantic; if(local6 == null) { continue; } switch(local6) { case "VERTEX": if(this.verticesInput == null) { this.verticesInput = local5; } break; case "TEXCOORD": this.texCoordsInputs.push(local5); break; } } this.inputsStride = local2 + 1; } private function findTexCoordsInput(param1:int) : DaeInput { var local4:DaeInput = null; var local2:int = 0; var local3:int = int(this.texCoordsInputs.length); while(local2 < local3) { local4 = this.texCoordsInputs[local2]; if(local4.setNum == param1) { return local4; } local2++; } return this.texCoordsInputs.length > 0 ? this.texCoordsInputs[0] : null; } private function get type() : String { return data.localName() as String; } public function fillInMesh(param1:Mesh, param2:Vector.<Vertex>, param3:DaeInstanceMaterial = null) : void { var local6:DaeInput = null; var local7:Material = null; var local8:Vector.<Number> = null; var local11:XML = null; var local12:Array = null; var local13:DaeMaterial = null; var local14:Vertex = null; var local15:DaeSource = null; var local16:XMLList = null; var local17:int = 0; var local18:int = 0; var local19:XML = null; var local20:Array = null; var local4:XML = data.@count[0]; if(local4 == null) { document.logger.logNotEnoughDataError(data); return; } var local5:int = parseInt(local4.toString(),10); if(param3 != null) { local13 = param3.material; local13.parse(); if(local13.diffuseTexCoords != null) { local6 = this.findTexCoordsInput(param3.getBindVertexInputSetNum(local13.diffuseTexCoords)); } else { local6 = this.findTexCoordsInput(-1); } local13.used = true; local7 = local13.material; } else { local6 = this.findTexCoordsInput(-1); } if(local6 != null) { for each(local14 in param2) { while(local14 != null && local14.alternativa3d::index != -1) { local14.alternativa3d::index = -2; local14 = local14.alternativa3d::value; } } } var local9:int = 1; var local10:int = 0; if(local6 != null) { local15 = local6.prepareSource(2); if(local15 != null) { local8 = local15.numbers; local9 = local15.stride; local10 = local6.offset; } } switch(this.type) { case "polygons": if(data.ph.length() > 0) { } local16 = data.p; local17 = 0; local18 = int(local16.length()); while(local17 < local18) { local12 = parseIntsArray(local16[local17]); this.fillInPolygon(param1,local7,param2,this.verticesInput.offset,local12.length / this.inputsStride,local12,local8,local9,local10); local17++; } break; case "polylist": local11 = data.p[0]; if(local11 == null) { document.logger.logNotEnoughDataError(data); return; } local12 = parseIntsArray(local11); local19 = data.vcount[0]; if(local19 != null) { local20 = parseIntsArray(local19); if(local20.length < local5) { return; } this.fillInPolylist(param1,local7,param2,this.verticesInput.offset,local5,local12,local20,local8,local9,local10); } else { this.fillInPolygon(param1,local7,param2,this.verticesInput.offset,local5,local12,local8,local9,local10); } break; case "triangles": local11 = data.p[0]; if(local11 == null) { document.logger.logNotEnoughDataError(data); return; } local12 = parseIntsArray(local11); this.fillInTriangles(param1,local7,param2,this.verticesInput.offset,local5,local12,local8,local9,local10); break; } } private function applyUV(param1:Mesh, param2:Vertex, param3:Vector.<Number>, param4:int) : Vertex { var local7:Vertex = null; var local5:Number = param3[param4]; var local6:Number = 1 - param3[int(param4 + 1)]; if(param2.alternativa3d::index == -1) { param2.u = local5; param2.v = local6; param2.alternativa3d::index = param4; return param2; } if(param2.alternativa3d::index == param4) { return param2; } while(param2.alternativa3d::value != null) { param2 = param2.alternativa3d::value; if(param2.alternativa3d::index == param4) { return param2; } } local7 = new Vertex(); local7.alternativa3d::next = param1.alternativa3d::vertexList; param1.alternativa3d::vertexList = local7; local7.x = param2.x; local7.y = param2.y; local7.z = param2.z; local7.u = local5; local7.v = local6; param2.alternativa3d::value = local7; local7.alternativa3d::index = param4; return local7; } private function fillInPolygon(param1:Mesh, param2:Material, param3:Vector.<Vertex>, param4:int, param5:int, param6:Array, param7:Vector.<Number>, param8:int = 1, param9:int = 0) : void { var local11:Wrapper = null; var local13:Vertex = null; var local14:Wrapper = null; var local10:Face = new Face(); local10.material = param2; local10.alternativa3d::next = param1.alternativa3d::faceList; param1.alternativa3d::faceList = local10; var local12:int = 0; while(local12 < param5) { local13 = param3[param6[int(this.inputsStride * local12 + param4)]]; if(param7 != null) { local13 = this.applyUV(param1,local13,param7,param8 * param6[int(this.inputsStride * local12 + param9)]); } local14 = new Wrapper(); local14.alternativa3d::vertex = local13; if(local11 != null) { local11.alternativa3d::next = local14; } else { local10.alternativa3d::wrapper = local14; } local11 = local14; local12++; } } private function fillInPolylist(param1:Mesh, param2:Material, param3:Vector.<Vertex>, param4:int, param5:int, param6:Array, param7:Array, param8:Vector.<Number> = null, param9:int = 1, param10:int = 0) : void { var local13:int = 0; var local14:Face = null; var local15:Wrapper = null; var local16:int = 0; var local17:int = 0; var local18:Vertex = null; var local19:Wrapper = null; var local11:int = 0; var local12:int = 0; while(local12 < param5) { local13 = int(param7[local12]); if(local13 >= 3) { local14 = new Face(); local14.material = param2; local14.alternativa3d::next = param1.alternativa3d::faceList; param1.alternativa3d::faceList = local14; local15 = null; local16 = 0; while(local16 < local13) { local17 = this.inputsStride * (local11 + local16); local18 = param3[param6[int(local17 + param4)]]; if(param8 != null) { local18 = this.applyUV(param1,local18,param8,param9 * param6[int(local17 + param10)]); } local19 = new Wrapper(); local19.alternativa3d::vertex = local18; if(local15 != null) { local15.alternativa3d::next = local19; } else { local14.alternativa3d::wrapper = local19; } local15 = local19; local16++; } local11 += local13; } local12++; } } private function fillInTriangles(param1:Mesh, param2:Material, param3:Vector.<Vertex>, param4:int, param5:int, param6:Array, param7:Vector.<Number> = null, param8:int = 1, param9:int = 0) : void { var local11:int = 0; var local12:int = 0; var local13:Vertex = null; var local14:Vertex = null; var local15:Vertex = null; var local16:Face = null; var local17:int = 0; var local10:int = 0; while(local10 < param5) { local11 = 3 * this.inputsStride * local10; local12 = local11 + param4; local13 = param3[param6[int(local12)]]; local14 = param3[param6[int(local12 + this.inputsStride)]]; local15 = param3[param6[int(local12 + 2 * this.inputsStride)]]; if(param7 != null) { local17 = local11 + param9; local13 = this.applyUV(param1,local13,param7,param8 * param6[int(local17)]); local14 = this.applyUV(param1,local14,param7,param8 * param6[int(local17 + this.inputsStride)]); local15 = this.applyUV(param1,local15,param7,param8 * param6[int(local17 + 2 * this.inputsStride)]); } local16 = new Face(); local16.material = param2; local16.alternativa3d::next = param1.alternativa3d::faceList; param1.alternativa3d::faceList = local16; local16.alternativa3d::wrapper = new Wrapper(); local16.alternativa3d::wrapper.alternativa3d::vertex = local13; local16.alternativa3d::wrapper.alternativa3d::next = new Wrapper(); local16.alternativa3d::wrapper.alternativa3d::next.alternativa3d::vertex = local14; local16.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next = new Wrapper(); local16.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::vertex = local15; local10++; } } public function verticesEquals(param1:DaeVertices) : Boolean { var local2:DaeVertices = document.findVertices(this.verticesInput.source); if(local2 == null) { document.logger.logNotFoundError(this.verticesInput.source); } return local2 == param1; } public function get materialSymbol() : String { var local1:XML = data.@material[0]; return local1 == null ? null : local1.toString(); } } }
package projects.tanks.client.battleselect.model.map { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class MapInfoModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:MapInfoModelServer; private var client:IMapInfoModelBase = IMapInfoModelBase(this); private var modelId:Long = Long.getLong(1260204725,-1362969538); public function MapInfoModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new MapInfoModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(MapInfoCC,false))); } protected function getInitParam() : MapInfoCC { return MapInfoCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package projects.tanks.client.commons.models.captcha { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.EnumCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.network.command.SpaceCommand; import platform.client.fp10.core.type.IGameObject; import platform.client.fp10.core.type.ISpace; public class CaptchaModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _checkCaptchaId:Long = Long.getLong(771266099,2094988130); private var _checkCaptcha_locationCodec:ICodec; private var _checkCaptcha_answerCodec:ICodec; private var _getNewCaptchaId:Long = Long.getLong(1715859709,2034952732); private var _getNewCaptcha_locationCodec:ICodec; private var model:IModel; public function CaptchaModelServer(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._checkCaptcha_locationCodec = this.protocol.getCodec(new EnumCodecInfo(CaptchaLocation,false)); this._checkCaptcha_answerCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._getNewCaptcha_locationCodec = this.protocol.getCodec(new EnumCodecInfo(CaptchaLocation,false)); } public function checkCaptcha(param1:CaptchaLocation, param2:String) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._checkCaptcha_locationCodec.encode(this.protocolBuffer,param1); this._checkCaptcha_answerCodec.encode(this.protocolBuffer,param2); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local3:SpaceCommand = new SpaceCommand(Model.object.id,this._checkCaptchaId,this.protocolBuffer); var local4:IGameObject = Model.object; var local5:ISpace = local4.space; local5.commandSender.sendCommand(local3); this.protocolBuffer.optionalMap.clear(); } public function getNewCaptcha(param1:CaptchaLocation) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._getNewCaptcha_locationCodec.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._getNewCaptchaId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } } }
package projects.tanks.client.garage.models.item.resistance { 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 ResistanceModuleModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:ResistanceModuleModelServer; private var client:IResistanceModuleModelBase = IResistanceModuleModelBase(this); private var modelId:Long = Long.getLong(422480254,471726203); public function ResistanceModuleModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new ResistanceModuleModelServer(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 alternativa.tanks.models.weapon.splash { import alternativa.math.Vector3; import alternativa.physics.Body; [ModelInterface] public interface Splash { function applySplashForce(param1:Vector3, param2:Number, param3:Body, param4:SplashParams = null) : Boolean; } }
package _codec.projects.tanks.client.panel.model.shop.challenges.toclient { 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.Long; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.panel.model.shop.challenges.toclient.ChallengeShopItemsCC; public class CodecChallengeShopItemsCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_shopBattlePass:ICodec; private var codec_shopBattlePassId:ICodec; private var codec_starsBundle:ICodec; private var codec_starsBundleId:ICodec; public function CodecChallengeShopItemsCC() { super(); } public function init(param1:IProtocol) : void { this.codec_shopBattlePass = param1.getCodec(new TypeCodecInfo(IGameObject,false)); this.codec_shopBattlePassId = param1.getCodec(new TypeCodecInfo(Long,false)); this.codec_starsBundle = param1.getCodec(new TypeCodecInfo(IGameObject,false)); this.codec_starsBundleId = param1.getCodec(new TypeCodecInfo(Long,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:ChallengeShopItemsCC = new ChallengeShopItemsCC(); local2.shopBattlePass = this.codec_shopBattlePass.decode(param1) as IGameObject; local2.shopBattlePassId = this.codec_shopBattlePassId.decode(param1) as Long; local2.starsBundle = this.codec_starsBundle.decode(param1) as IGameObject; local2.starsBundleId = this.codec_starsBundleId.decode(param1) as Long; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:ChallengeShopItemsCC = ChallengeShopItemsCC(param2); this.codec_shopBattlePass.encode(param1,local3.shopBattlePass); this.codec_shopBattlePassId.encode(param1,local3.shopBattlePassId); this.codec_starsBundle.encode(param1,local3.starsBundle); this.codec_starsBundleId.encode(param1,local3.starsBundleId); } } }
package projects.tanks.client.battleselect.model.matchmaking.group.notify { import alternativa.types.Long; public class MatchmakingUserData { private var _armorModification:int; private var _armorName:String; private var _armorUpgradeLevel:int; private var _id:Long; private var _leader:Boolean; private var _local:Boolean; private var _rank:int; private var _uid:String; private var _userIsReady:Boolean; private var _weaponModification:int; private var _weaponName:String; private var _weaponUpgradeLevel:int; public function MatchmakingUserData(param1:int = 0, param2:String = null, param3:int = 0, param4:Long = null, param5:Boolean = false, param6:Boolean = false, param7:int = 0, param8:String = null, param9:Boolean = false, param10:int = 0, param11:String = null, param12:int = 0) { super(); this._armorModification = param1; this._armorName = param2; this._armorUpgradeLevel = param3; this._id = param4; this._leader = param5; this._local = param6; this._rank = param7; this._uid = param8; this._userIsReady = param9; this._weaponModification = param10; this._weaponName = param11; this._weaponUpgradeLevel = param12; } public function get armorModification() : int { return this._armorModification; } public function set armorModification(param1:int) : void { this._armorModification = param1; } public function get armorName() : String { return this._armorName; } public function set armorName(param1:String) : void { this._armorName = param1; } public function get armorUpgradeLevel() : int { return this._armorUpgradeLevel; } public function set armorUpgradeLevel(param1:int) : void { this._armorUpgradeLevel = param1; } public function get id() : Long { return this._id; } public function set id(param1:Long) : void { this._id = param1; } public function get leader() : Boolean { return this._leader; } public function set leader(param1:Boolean) : void { this._leader = param1; } public function get local() : Boolean { return this._local; } public function set local(param1:Boolean) : void { this._local = param1; } public function get rank() : int { return this._rank; } public function set rank(param1:int) : void { this._rank = param1; } public function get uid() : String { return this._uid; } public function set uid(param1:String) : void { this._uid = param1; } public function get userIsReady() : Boolean { return this._userIsReady; } public function set userIsReady(param1:Boolean) : void { this._userIsReady = param1; } public function get weaponModification() : int { return this._weaponModification; } public function set weaponModification(param1:int) : void { this._weaponModification = param1; } public function get weaponName() : String { return this._weaponName; } public function set weaponName(param1:String) : void { this._weaponName = param1; } public function get weaponUpgradeLevel() : int { return this._weaponUpgradeLevel; } public function set weaponUpgradeLevel(param1:int) : void { this._weaponUpgradeLevel = param1; } public function toString() : String { var local1:String = "MatchmakingUserData ["; local1 += "armorModification = " + this.armorModification + " "; local1 += "armorName = " + this.armorName + " "; local1 += "armorUpgradeLevel = " + this.armorUpgradeLevel + " "; local1 += "id = " + this.id + " "; local1 += "leader = " + this.leader + " "; local1 += "local = " + this.local + " "; local1 += "rank = " + this.rank + " "; local1 += "uid = " + this.uid + " "; local1 += "userIsReady = " + this.userIsReady + " "; local1 += "weaponModification = " + this.weaponModification + " "; local1 += "weaponName = " + this.weaponName + " "; local1 += "weaponUpgradeLevel = " + this.weaponUpgradeLevel + " "; return local1 + "]"; } } }
package alternativa.tanks.loader { import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; public class ProgressBar extends Sprite { [Embed(source="1016.png")] private static const bitmapBar:Class; public static const barBd:BitmapData = new bitmapBar().bitmapData; [Embed(source="1077.png")] private static const bitmapLampOn:Class; private static const lampOnBd:BitmapData = new bitmapLampOn().bitmapData; [Embed(source="1167.png")] private static const bitmapLampOff:Class; private static const lampOffBd:BitmapData = new bitmapLampOff().bitmapData; private var bar:Bitmap; private var lamps:Array; private const lampsNum:int = 20; private const margin:int = 6; private const space:int = -2; public function ProgressBar() { var lamp:Bitmap = null; super(); this.bar = new Bitmap(barBd); addChild(this.bar); this.lamps = new Array(); for(var i:int = 0; i < this.lampsNum; i++) { lamp = new Bitmap(lampOffBd); addChild(lamp); this.lamps.push(lamp); lamp.x = this.margin + (lampOffBd.width + this.space) * i; lamp.y = Math.round((this.bar.height - lampOffBd.height) * 0.5); } } public function set progress(value:Number) : void { var lamp:Bitmap = null; var n:int = Math.floor(this.lampsNum * value); for(var i:int = 0; i < this.lampsNum; i++) { lamp = this.lamps[i] as Bitmap; if(i < n) { lamp.bitmapData = lampOnBd; } else { lamp.bitmapData = lampOffBd; } } } } }
package projects.tanks.clients.flash.resources.resource.loaders { public class TextureInfo { public var diffuseMapFileName:String; public var opacityMapFileName:String; public function TextureInfo(param1:String = null, param2:String = null) { super(); this.diffuseMapFileName = param1; this.opacityMapFileName = param2; } public function toString() : String { return "[TextureInfo diffuseMapFileName=" + this.diffuseMapFileName + ", opacityMapFileName=" + this.opacityMapFileName + "]"; } } }
package assets.resultwindow { import flash.display.BitmapData; [Embed(source="/_assets/assets.resultwindow.bres_HEADER_GREEN_TL.png")] public dynamic class bres_HEADER_GREEN_TL extends BitmapData { public function bres_HEADER_GREEN_TL(param1:int = 4, param2:int = 4) { super(param1,param2); } } }
package alternativa.tanks.models.battle.gui.indicators { import alternativa.osgi.service.display.IDisplay; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.services.battlegui.BattleGUIService; import alternativa.utils.removeDisplayObject; import controls.Label; import controls.statassets.BlackRoundRect; import flash.display.Bitmap; import flash.events.Event; import projects.tanks.clients.fp10.libraries.TanksLocale; public class TurnOverIndicator extends BlackRoundRect { [Inject] public static var display:IDisplay; [Inject] public static var battleGUIService:BattleGUIService; [Inject] public static var localeService:ILocaleService; private static const turnOverIconClass:Class = TurnOverIndicator_turnOverIconClass; private var _show:Boolean; public function TurnOverIndicator() { var local8:int = 0; var local10:Label = null; var local11:Bitmap = null; super(); var local1:String = localeService.getText(TanksLocale.TEXT_TURNOVER_HINT_1); var local2:String = localeService.getText(TanksLocale.TEXT_TURNOVER_HINT_2); var local3:int = 30; var local4:int = 30; var local5:int = 5; var local6:int = 16; var local7:Bitmap = new Bitmap(new turnOverIconClass().bitmapData); addChild(local7); local7.y = local3; local8 = local7.y + local7.height + 2 * local5; var local9:Label = new Label(); local9.size = local6; local9.text = local1; local9.y = local8; addChild(local9); width = local9.textWidth; local8 += local9.height + local5; local10 = new Label(); local10.size = local6; local10.text = local2; local10.y = local8; addChild(local10); if(width < local10.textWidth) { width = local10.textWidth; } local8 += local10.height + 2 * local5; local11 = new Bitmap(localeService.getImage(TanksLocale.IMAGE_TURNOVER_HINT_DELETE_BUTTON)); local11.y = local8; addChild(local11); if(width < local11.width) { width = local11.width; } local8 += local11.height; width += 2 * local4; local7.x = width - local7.width >> 1; local11.x = width - local11.width >> 1; local9.x = width - local9.width >> 1; local10.x = width - local10.width >> 1; height = local8 + local3; this._show = false; } public function show() : void { if(this._show) { return; } this._show = true; battleGUIService.getViewportContainer().addChild(this); this.onResize(); display.stage.addEventListener(Event.RESIZE,this.onResize); } public function hide() : void { if(!this._show) { return; } this._show = false; removeDisplayObject(this); display.stage.removeEventListener(Event.RESIZE,this.onResize); } private function onResize(param1:Event = null) : void { this.x = display.stage.stageWidth - this.width >> 1; this.y = display.stage.stageHeight - this.height >> 1; } public function destroy() : void { this.hide(); } } }
package alternativa.tanks.model.payment.shop.crystal { [ModelInterface] public interface CrystalPackage { function getPremiumDurationInDays() : int; } }
package projects.tanks.client.panel.model.shop.onetimepurchase { public class ShopItemOneTimePurchaseCC { private var _oneTimePurchase:Boolean; private var _triedToBuy:Boolean; public function ShopItemOneTimePurchaseCC(param1:Boolean = false, param2:Boolean = false) { super(); this._oneTimePurchase = param1; this._triedToBuy = param2; } public function get oneTimePurchase() : Boolean { return this._oneTimePurchase; } public function set oneTimePurchase(param1:Boolean) : void { this._oneTimePurchase = param1; } public function get triedToBuy() : Boolean { return this._triedToBuy; } public function set triedToBuy(param1:Boolean) : void { this._triedToBuy = param1; } public function toString() : String { var local1:String = "ShopItemOneTimePurchaseCC ["; local1 += "oneTimePurchase = " + this.oneTimePurchase + " "; local1 += "triedToBuy = " + this.triedToBuy + " "; return local1 + "]"; } } }
package alternativa.tanks.battle.objects.tank { public class TankConst { public static const RAY_OFFSET:Number = 10; public static const NUM_RAYS_PER_TRACK:int = 5; public static const MAX_SLOPE_ANGLE:Number = Math.PI / 3; public static const MAX_SLOPE_ANGLE_COS:Number = Math.cos(MAX_SLOPE_ANGLE); public function TankConst() { super(); } } }