code
stringlengths
57
237k
package alternativa.tanks.sfx.drone { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class DroneSFXAdapt implements DroneSFX { private var object:IGameObject; private var impl:DroneSFX; public function DroneSFXAdapt(param1:IGameObject, param2:DroneSFX) { super(); this.object = param1; this.impl = param2; } public function getSfxData() : DroneSFXData { var result:DroneSFXData = null; try { Model.object = this.object; result = this.impl.getSfxData(); } finally { Model.popObject(); } return result; } } }
package projects.tanks.client.panel.model.bonus { public class BonusItem { public var resource:Object; public var count:int; public function BonusItem(resource:Object) { super(); this.resource = resource; } } }
package _codec.projects.tanks.client.battlefield.models.ultimate.effects.wasp.bomb { 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.ultimate.effects.wasp.bomb.WaspUltimateBombCC; public class CodecWaspUltimateBombCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_bombBeepSound:ICodec; private var codec_bombPlacedSound:ICodec; private var codec_countdown:ICodec; private var codec_craterDecal:ICodec; private var codec_farCountdown:ICodec; private var codec_nuclearBangFlame:ICodec; private var codec_nuclearBangLight:ICodec; private var codec_nuclearBangSmoke:ICodec; private var codec_nuclearBangSound:ICodec; private var codec_nuclearBangWave:ICodec; private var codec_timeLeft:ICodec; public function CodecWaspUltimateBombCC() { super(); } public function init(param1:IProtocol) : void { this.codec_bombBeepSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_bombPlacedSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_countdown = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false)); this.codec_craterDecal = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_farCountdown = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false)); this.codec_nuclearBangFlame = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_nuclearBangLight = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_nuclearBangSmoke = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_nuclearBangSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_nuclearBangWave = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_timeLeft = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:WaspUltimateBombCC = new WaspUltimateBombCC(); local2.bombBeepSound = this.codec_bombBeepSound.decode(param1) as SoundResource; local2.bombPlacedSound = this.codec_bombPlacedSound.decode(param1) as SoundResource; local2.countdown = this.codec_countdown.decode(param1) as MultiframeTextureResource; local2.craterDecal = this.codec_craterDecal.decode(param1) as TextureResource; local2.farCountdown = this.codec_farCountdown.decode(param1) as MultiframeTextureResource; local2.nuclearBangFlame = this.codec_nuclearBangFlame.decode(param1) as TextureResource; local2.nuclearBangLight = this.codec_nuclearBangLight.decode(param1) as TextureResource; local2.nuclearBangSmoke = this.codec_nuclearBangSmoke.decode(param1) as TextureResource; local2.nuclearBangSound = this.codec_nuclearBangSound.decode(param1) as SoundResource; local2.nuclearBangWave = this.codec_nuclearBangWave.decode(param1) as TextureResource; local2.timeLeft = this.codec_timeLeft.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:WaspUltimateBombCC = WaspUltimateBombCC(param2); this.codec_bombBeepSound.encode(param1,local3.bombBeepSound); this.codec_bombPlacedSound.encode(param1,local3.bombPlacedSound); this.codec_countdown.encode(param1,local3.countdown); this.codec_craterDecal.encode(param1,local3.craterDecal); this.codec_farCountdown.encode(param1,local3.farCountdown); this.codec_nuclearBangFlame.encode(param1,local3.nuclearBangFlame); this.codec_nuclearBangLight.encode(param1,local3.nuclearBangLight); this.codec_nuclearBangSmoke.encode(param1,local3.nuclearBangSmoke); this.codec_nuclearBangSound.encode(param1,local3.nuclearBangSound); this.codec_nuclearBangWave.encode(param1,local3.nuclearBangWave); this.codec_timeLeft.encode(param1,local3.timeLeft); } } }
package _codec.projects.tanks.client.panel.model.shop.androidspecialoffer.offers { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.shop.androidspecialoffer.offers.MediumTimeOfferCC; public class VectorCodecMediumTimeOfferCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecMediumTimeOfferCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(MediumTimeOfferCC,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.<MediumTimeOfferCC> = new Vector.<MediumTimeOfferCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = MediumTimeOfferCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:MediumTimeOfferCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<MediumTimeOfferCC> = Vector.<MediumTimeOfferCC>(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 forms.ranks { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/forms.ranks.PremiumRankBitmaps_bitmapSmallRank18.png")] public class PremiumRankBitmaps_bitmapSmallRank18 extends BitmapAsset { public function PremiumRankBitmaps_bitmapSmallRank18() { super(); } } }
package projects.tanks.client.panel.model.presents { public interface IPresentsSettingsModelBase { } }
package projects.tanks.client.panel.model.profile.useremailpassword { public class UserEmailCC { private var _email:String; private var _emailConfirmed:Boolean; public function UserEmailCC(param1:String = null, param2:Boolean = false) { super(); this._email = param1; this._emailConfirmed = param2; } public function get email() : String { return this._email; } public function set email(param1:String) : void { this._email = param1; } public function get emailConfirmed() : Boolean { return this._emailConfirmed; } public function set emailConfirmed(param1:Boolean) : void { this._emailConfirmed = param1; } public function toString() : String { var local1:String = "UserEmailCC ["; local1 += "email = " + this.email + " "; local1 += "emailConfirmed = " + this.emailConfirmed + " "; return local1 + "]"; } } }
package alternativa.tanks.models.tank { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class RemoveFromBattleListenerAdapt implements RemoveFromBattleListener { private var object:IGameObject; private var impl:RemoveFromBattleListener; public function RemoveFromBattleListenerAdapt(param1:IGameObject, param2:RemoveFromBattleListener) { super(); this.object = param1; this.impl = param2; } public function onRemoveFromBattle() : void { try { Model.object = this.object; this.impl.onRemoveFromBattle(); } finally { Model.popObject(); } } } }
package forms.ranks { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapBigRank31.png")] public class DefaultRanksBitmaps_bitmapBigRank31 extends BitmapAsset { public function DefaultRanksBitmaps_bitmapBigRank31() { super(); } } }
package alternativa.tanks.gui.chat { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.chat.ChatLineHighlightPrivate_cornerBitmapClass.png")] public class ChatLineHighlightPrivate_cornerBitmapClass extends BitmapAsset { public function ChatLineHighlightPrivate_cornerBitmapClass() { super(); } } }
package com.alternativaplatform.projects.tanks.client.warfare.models.sfx.healing { import scpacker.Base; public class HealingSFXModelBase extends Base { public function HealingSFXModelBase() { super(); } } }
package _codec.projects.tanks.client.panel.model.shop.specialkit { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.shop.specialkit.SpecialKitPackageCC; public class VectorCodecSpecialKitPackageCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecSpecialKitPackageCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(SpecialKitPackageCC,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.<SpecialKitPackageCC> = new Vector.<SpecialKitPackageCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = SpecialKitPackageCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:SpecialKitPackageCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<SpecialKitPackageCC> = Vector.<SpecialKitPackageCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.models.weapon.railgun { import alternativa.math.Vector3; public class RailgunUtils { private static const BIG_DISTANCE:Number = 100000; public function RailgunUtils() { super(); } public static function getDistantPoint(param1:Vector3, param2:Vector3) : Vector3 { var local3:Vector3 = param1.clone(); local3.addScaled(RailgunUtils.BIG_DISTANCE,param2); return local3; } } }
package alternativa.tanks.models.clan.accepted { import alternativa.types.Long; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IClanAcceptedModelEvents implements IClanAcceptedModel { private var object:IGameObject; private var impl:Vector.<Object>; public function IClanAcceptedModelEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getAcceptedUsers() : Vector.<Long> { var result:Vector.<Long> = null; var i:int = 0; var m:IClanAcceptedModel = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IClanAcceptedModel(this.impl[i]); result = m.getAcceptedUsers(); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.models.battle.battlefield.keyboard { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.keyboard.DeviceIcons_incendiaryshotIconClass.png")] public class DeviceIcons_incendiaryshotIconClass extends BitmapAsset { public function DeviceIcons_incendiaryshotIconClass() { super(); } } }
package platform.client.fp10.core.registry { import alternativa.types.Long; import platform.client.fp10.core.resource.ILockableResource; import platform.client.fp10.core.resource.IResourceLoadingListener; import platform.client.fp10.core.resource.Resource; public interface ResourceRegistry { function registerTypeClasses(param1:int, param2:Class) : void; function getResourceClass(param1:int) : Class; function isTypeClassRegistered(param1:int) : Boolean; function registerResource(param1:Resource) : void; function unregisterResource(param1:Long) : void; function getResource(param1:Long) : Resource; function get resources() : Vector.<Resource>; function loadLazyResource(param1:Resource, param2:IResourceLoadingListener) : void; function removeLazyListener(param1:Resource, param2:IResourceLoadingListener) : void; function addLazyListener(param1:Resource, param2:IResourceLoadingListener) : void; function onPacketLoadingStart() : void; function onPacketLoadingStop() : void; function isLocked() : Boolean; function addLockedResource(param1:ILockableResource) : void; function stopLoadingResources() : void; function continueLoadingResources() : void; function isRegistered(param1:Long) : Boolean; } }
package alternativa.tanks.models.coloradjust { import flash.geom.ColorTransform; [ModelInterface] public interface IColorAdjust { function getHWHeat() : ColorTransform; function getHWFrost() : ColorTransform; function getSoftHeat() : ColorTransform; function getSoftFrost() : ColorTransform; } }
package _codec.projects.tanks.client.panel.model.donationalert.user.donation { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.donationalert.user.donation.DonationProfileCC; public class VectorCodecDonationProfileCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecDonationProfileCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(DonationProfileCC,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.<DonationProfileCC> = new Vector.<DonationProfileCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = DonationProfileCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:DonationProfileCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<DonationProfileCC> = Vector.<DonationProfileCC>(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 assets.button { import flash.display.BitmapData; [Embed(source="/_assets/assets.button.button_def_UP_CENTER.png")] public dynamic class button_def_UP_CENTER extends BitmapData { public function button_def_UP_CENTER(param1:int = 201, param2:int = 30) { super(param1,param2); } } }
package controls.scroller.blue { public class ScrollSkinBlue { [Embed(source="906.png")] public static const thumbTop:Class; [Embed(source="837.png")] public static const thumbMiddle:Class; [Embed(source="1173.png")] public static const track:Class; [Embed(source="788.png")] public static const trackTop:Class; [Embed(source="803.png")] public static const trackBottom:Class; public function ScrollSkinBlue() { super(); } } }
package projects.tanks.client.battlefield.models.tankparts.weapons.artillery.sfx { 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 ArtillerySfxModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:ArtillerySfxModelServer; private var client:IArtillerySfxModelBase = IArtillerySfxModelBase(this); private var modelId:Long = Long.getLong(1047583544,1567719516); public function ArtillerySfxModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new ArtillerySfxModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(ArtillerySfxCC,false))); } protected function getInitParam() : ArtillerySfxCC { return ArtillerySfxCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.models.tank.bosstate { import projects.tanks.client.battlefield.models.user.bossstate.BossRelationRole; [ModelInterface] public interface IBossState { function role() : BossRelationRole; } }
package _codec.projects.tanks.client.battlefield.models.tankparts.weapon.gauss.sfx { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.battlefield.models.tankparts.weapon.gauss.sfx.GaussSFXCC; public class VectorCodecGaussSFXCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecGaussSFXCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(GaussSFXCC,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.<GaussSFXCC> = new Vector.<GaussSFXCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = GaussSFXCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:GaussSFXCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<GaussSFXCC> = Vector.<GaussSFXCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.ItemInfoPanelBitmaps_cooldownDoubleArmorClass.png")] public class ItemInfoPanelBitmaps_cooldownDoubleArmorClass extends BitmapAsset { public function ItemInfoPanelBitmaps_cooldownDoubleArmorClass() { super(); } } }
package alternativa.tanks.models.tank { import alternativa.math.Vector3; import alternativa.osgi.service.display.IDisplay; import alternativa.tanks.battle.objects.tank.Tank; import flash.events.KeyboardEvent; import flash.ui.Keyboard; public class PositionBookmarks { [Inject] public static var display:IDisplay; private var tank:Tank; private var bookmarks:Vector.<Vector3>; private var keyCodes:Vector.<uint>; public function PositionBookmarks(param1:Tank) { super(); this.tank = param1; this.bookmarks = new Vector.<Vector3>(10); this.keyCodes = Vector.<uint>([Keyboard.NUMBER_1,Keyboard.NUMBER_2,Keyboard.NUMBER_3,Keyboard.NUMBER_4,Keyboard.NUMBER_5,Keyboard.NUMBER_6,Keyboard.NUMBER_7,Keyboard.NUMBER_8,Keyboard.NUMBER_9,Keyboard.NUMBER_0]); } public function enable() : void { display.stage.addEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown); } public function disable() : void { display.stage.removeEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown); } private function onKeyDown(param1:KeyboardEvent) : void { var local2:int = int(this.keyCodes.indexOf(param1.keyCode)); if(local2 >= 0) { if(param1.ctrlKey) { this.storePosition(local2); } else { this.restorePosition(local2); } } } private function storePosition(param1:int) : void { this.bookmarks[param1] = this.tank.getBody().state.position.clone(); } private function restorePosition(param1:int) : void { var local2:Vector3 = this.bookmarks[param1]; if(local2 != null) { this.tank.getBody().setPosition(local2); } } } }
package alternativa.tanks.models.weapon.shotgun.sfx { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ShotgunSFXEvents implements ShotgunSFX { private var object:IGameObject; private var impl:Vector.<Object>; public function ShotgunSFXEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getEffects() : ShotgunEffects { var result:ShotgunEffects = null; var i:int = 0; var m:ShotgunSFX = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = ShotgunSFX(this.impl[i]); result = m.getEffects(); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.view.icons { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.view.icons.BattleParamsBattleInfoIcons_ctfClass.png")] public class BattleParamsBattleInfoIcons_ctfClass extends BitmapAsset { public function BattleParamsBattleInfoIcons_ctfClass() { super(); } } }
package controls.lifeindicator { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.lifeindicator.LineLife_bitmapLeft.png")] public class LineLife_bitmapLeft extends BitmapAsset { public function LineLife_bitmapLeft() { super(); } } }
package alternativa.tanks.gui.frames { public class YellowFrameSkin extends FrameSkin { public static const corner_frame:Class = YellowFrameSkin_corner_frame; public static const frame:Class = YellowFrameSkin_frame; public function YellowFrameSkin() { super(corner_frame,frame); } } }
package alternativa.tanks.model.payment.modes.terminal { import platform.client.fp10.core.type.IGameObject; public class TerminalPayModeEvents implements TerminalPayMode { private var object:IGameObject; private var impl:Vector.<Object>; public function TerminalPayModeEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } } }
package alternativa.tanks.view.battlelist.modefilter { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.view.battlelist.modefilter.BattleModeIcons_ctfIconClass.png")] public class BattleModeIcons_ctfIconClass extends BitmapAsset { public function BattleModeIcons_ctfIconClass() { super(); } } }
package alternativa.tanks.battle.events { public class InventorySlotReadyToUseEvent { public var slotIndex:int; public function InventorySlotReadyToUseEvent(param1:int) { super(); this.slotIndex = param1; } } }
package alternativa.engine3d.loaders.collada { import alternativa.engine3d.alternativa3d; use namespace collada; use namespace alternativa3d; use namespace daeAlternativa3DLibrary; public class DaeDocument { public var scene:DaeVisualScene; private var data:XML; internal var sources:Object; internal var arrays:Object; internal var vertices:Object; internal var geometries:Object; internal var nodes:Object; internal var lights:Object; internal var images:Object; internal var effects:Object; internal var controllers:Object; internal var samplers:Object; internal var alternativa3DObjects:Object; public var materials:Object; internal var logger:DaeLogger; public var versionMajor:uint; public var versionMinor:uint; public var alternativa3DExtensionVersionMajor:uint = 0; public var alternativa3DExtensionVersionMinor:uint = 0; public function DaeDocument(param1:XML) { super(); this.data = param1; var local2:Array = this.data.@version[0].toString().split(/[.,]/); this.versionMajor = parseInt(local2[1],10); this.versionMinor = parseInt(local2[2],10); this.logger = new DaeLogger(); this.constructStructures(); this.constructScenes(); this.registerInstanceControllers(); this.constructAnimations(); this.constructAlternativa3DObjects(); } private function getLocalID(param1:XML) : String { var local2:String = param1.toString(); if(local2.charAt(0) == "#") { return local2.substr(1); } this.logger.logExternalError(param1); return null; } private function constructStructures() : void { var local1:XML = null; var local2:DaeSource = null; var local3:DaeLight = null; var local4:DaeImage = null; var local5:DaeEffect = null; var local6:DaeMaterial = null; var local7:DaeGeometry = null; var local8:DaeController = null; var local9:DaeNode = null; this.sources = new Object(); this.arrays = new Object(); for each(local1 in this.data..source) { local2 = new DaeSource(local1,this); if(local2.id != null) { this.sources[local2.id] = local2; } } this.lights = new Object(); for each(local1 in this.data.library_lights.light) { local3 = new DaeLight(local1,this); if(local3.id != null) { this.lights[local3.id] = local3; } } this.images = new Object(); for each(local1 in this.data.library_images.image) { local4 = new DaeImage(local1,this); if(local4.id != null) { this.images[local4.id] = local4; } } this.effects = new Object(); for each(local1 in this.data.library_effects.effect) { local5 = new DaeEffect(local1,this); if(local5.id != null) { this.effects[local5.id] = local5; } } this.materials = new Object(); for each(local1 in this.data.library_materials.material) { local6 = new DaeMaterial(local1,this); if(local6.id != null) { this.materials[local6.id] = local6; } } this.geometries = new Object(); this.vertices = new Object(); for each(local1 in this.data.library_geometries.geometry) { local7 = new DaeGeometry(local1,this); if(local7.id != null) { this.geometries[local7.id] = local7; } } this.controllers = new Object(); for each(local1 in this.data.library_controllers.controller) { local8 = new DaeController(local1,this); if(local8.id != null) { this.controllers[local8.id] = local8; } } this.nodes = new Object(); for each(local1 in this.data.library_nodes.node) { local9 = new DaeNode(local1,this); if(local9.id != null) { this.nodes[local9.id] = local9; } } } private function constructScenes() : void { var local3:XML = null; var local4:DaeVisualScene = null; var local1:XML = this.data.scene.instance_visual_scene.@url[0]; var local2:String = this.getLocalID(local1); for each(local3 in this.data.library_visual_scenes.visual_scene) { local4 = new DaeVisualScene(local3,this); if(local4.id == local2) { this.scene = local4; } } if(local2 != null && this.scene == null) { this.logger.logNotFoundError(local1); } } private function registerInstanceControllers() : void { var local1:int = 0; var local2:int = 0; if(this.scene != null) { local1 = 0; local2 = int(this.scene.nodes.length); while(local1 < local2) { this.scene.nodes[local1].registerInstanceControllers(); local1++; } } } private function constructAnimations() : void { var local1:XML = null; var local2:DaeSampler = null; var local3:DaeChannel = null; var local4:DaeNode = null; this.samplers = new Object(); for each(local1 in this.data.library_animations..sampler) { local2 = new DaeSampler(local1,this); if(local2.id != null) { this.samplers[local2.id] = local2; } } for each(local1 in this.data.library_animations..channel) { local3 = new DaeChannel(local1,this); local4 = local3.node; if(local4 != null) { local4.addChannel(local3); } } } private function constructAlternativa3DObjects() : void { var alternativa3dXML:XML = null; var versionComponents:Array = null; var element:XML = null; var object:DaeAlternativa3DObject = null; this.alternativa3DObjects = new Object(); alternativa3dXML = this.data.extra.technique.(@profile = "Alternativa3D").library[0]; if(alternativa3dXML != null) { versionComponents = alternativa3dXML.version[0].text().toString().split(/[.,]/); this.alternativa3DExtensionVersionMajor = parseInt(versionComponents[0],10); this.alternativa3DExtensionVersionMinor = parseInt(versionComponents[1],10); for each(element in alternativa3dXML.library_containers.children()) { object = new DaeAlternativa3DObject(element,this); if(object.id != null) { this.alternativa3DObjects[object.id] = object; } } for each(element in alternativa3dXML.library_sprites.sprite) { object = new DaeAlternativa3DObject(element,this); if(object.id != null) { this.alternativa3DObjects[object.id] = object; } } for each(element in alternativa3dXML.library_lods.lod) { object = new DaeAlternativa3DObject(element,this); if(object.id != null) { this.alternativa3DObjects[object.id] = object; } } for each(element in alternativa3dXML.library_meshes.mesh) { object = new DaeAlternativa3DObject(element,this); if(object.id != null) { this.alternativa3DObjects[object.id] = object; } } } else { this.alternativa3DExtensionVersionMajor = this.alternativa3DExtensionVersionMinor = 0; } } public function findArray(param1:XML) : DaeArray { return this.arrays[this.getLocalID(param1)]; } public function findSource(param1:XML) : DaeSource { return this.sources[this.getLocalID(param1)]; } public function findLight(param1:XML) : DaeLight { return this.lights[this.getLocalID(param1)]; } public function findImage(param1:XML) : DaeImage { return this.images[this.getLocalID(param1)]; } public function findImageByID(param1:String) : DaeImage { return this.images[param1]; } public function findEffect(param1:XML) : DaeEffect { return this.effects[this.getLocalID(param1)]; } public function findMaterial(param1:XML) : DaeMaterial { return this.materials[this.getLocalID(param1)]; } public function findVertices(param1:XML) : DaeVertices { return this.vertices[this.getLocalID(param1)]; } public function findGeometry(param1:XML) : DaeGeometry { return this.geometries[this.getLocalID(param1)]; } public function findNode(param1:XML) : DaeNode { return this.nodes[this.getLocalID(param1)]; } public function findNodeByID(param1:String) : DaeNode { return this.nodes[param1]; } public function findController(param1:XML) : DaeController { return this.controllers[this.getLocalID(param1)]; } public function findSampler(param1:XML) : DaeSampler { return this.samplers[this.getLocalID(param1)]; } public function findAlternativa3DObject(param1:XML) : DaeAlternativa3DObject { return this.alternativa3DObjects[this.getLocalID(param1)]; } } }
package alternativa.tanks.service.garage { import alternativa.tanks.gui.IGarageWindow; public interface GarageService { function getView() : IGarageWindow; function registerView(param1:IGarageWindow) : void; function init(param1:Number, param2:Number, param3:Number, param4:Number) : void; function unregisterView() : void; function getCameraPitch() : Number; function getCameraAltitude() : Number; function getCameraDistance() : Number; function getCameraFieldOfView() : Number; } }
package projects.tanks.client.garage.models.item.itempersonaldiscount { public class ItemPersonalDiscountCC { private var _discounts:Vector.<DiscountData>; public function ItemPersonalDiscountCC(param1:Vector.<DiscountData> = null) { super(); this._discounts = param1; } public function get discounts() : Vector.<DiscountData> { return this._discounts; } public function set discounts(param1:Vector.<DiscountData>) : void { this._discounts = param1; } public function toString() : String { var local1:String = "ItemPersonalDiscountCC ["; local1 += "discounts = " + this.discounts + " "; return local1 + "]"; } } }
package projects.tanks.client.users.model.friends.container { import alternativa.types.Long; public class UserContainerCC { private var _users:Vector.<Long>; public function UserContainerCC(param1:Vector.<Long> = null) { super(); this._users = param1; } public function get users() : Vector.<Long> { return this._users; } public function set users(param1:Vector.<Long>) : void { this._users = param1; } public function toString() : String { var local1:String = "UserContainerCC ["; local1 += "users = " + this.users + " "; return local1 + "]"; } } }
package controls.rangicons { import mx.core.BitmapAsset; [ExcludeClass] public class RangsIcon_p30 extends BitmapAsset { public function RangsIcon_p30() { super(); } } }
package projects.tanks.client.panel.model.shop.quantityrestriction { public interface IQuantityRestrictionModelBase { function reservationAbort() : void; } }
package com.lorentz.SVG.display { import com.lorentz.SVG.display.base.SVGContainer; import flash.events.MouseEvent; import flash.net.URLRequest; import flash.net.navigateToURL; public class SVGA extends SVGContainer { public function SVGA(){ super("a"); } public var svgHref:String; override protected function initialize():void { super.initialize(); this.buttonMode = true; this.addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true); } protected function clickHandler(e:MouseEvent):void { if(svgHref!=null && svgHref!="") navigateToURL(new URLRequest(svgHref)); } override public function clone():Object { var c:SVGA = super.clone() as SVGA; c.svgHref = svgHref; return c; } } }
package alternativa.tanks.battle.events.suicide { public class SuicideActivationEvent { public function SuicideActivationEvent() { super(); } } }
package alternativa.tanks.model.item.upgradable.calculators { public interface PropertyValueCalculator { function getNumberValue(param1:int) : Number; } }
package projects.tanks.client.panel.model.newbiesabonement { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; public class NewbiesAbonementShowInfoModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:NewbiesAbonementShowInfoModelServer; private var client:INewbiesAbonementShowInfoModelBase = INewbiesAbonementShowInfoModelBase(this); private var modelId:Long = Long.getLong(1118509469,-35521391); private var _showInfoWindowId:Long = Long.getLong(523922434,-1392224255); private var _showInfoWindow_lifeTimeInSecondsFromCurrentDateTimeCodec:ICodec; private var _showInfoWindow_crystalBonusInPersentCodec:ICodec; private var _showInfoWindow_scoreBonusInPercentCodec:ICodec; public function NewbiesAbonementShowInfoModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new NewbiesAbonementShowInfoModelServer(IModel(this)); this._showInfoWindow_lifeTimeInSecondsFromCurrentDateTimeCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); this._showInfoWindow_crystalBonusInPersentCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); this._showInfoWindow_scoreBonusInPercentCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._showInfoWindowId: this.client.showInfoWindow(int(this._showInfoWindow_lifeTimeInSecondsFromCurrentDateTimeCodec.decode(param2)),int(this._showInfoWindow_crystalBonusInPersentCodec.decode(param2)),int(this._showInfoWindow_scoreBonusInPercentCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package projects.tanks.client.battlefield.models.ultimate.effects.juggernaut { import platform.client.fp10.core.type.IGameObject; public interface IJuggernautUltimateModelBase { function showUltimateUsed(param1:Vector.<IGameObject>) : void; } }
package alternativa.tanks.camera { import alternativa.engine3d.core.Camera3D; import alternativa.math.Matrix3; import alternativa.math.Quaternion; import alternativa.math.Vector3; import alternativa.tanks.battle.scene3d.CameraFovCalculator; public class GameCamera extends Camera3D { private static const m:Matrix3 = new Matrix3(); private static const eulerAngles:Vector3 = new Vector3(); public var position:Vector3 = new Vector3(); public var xAxis:Vector3 = new Vector3(); public var yAxis:Vector3 = new Vector3(); public var zAxis:Vector3 = new Vector3(); public function GameCamera() { super(); nearClipping = 40; farClipping = 200000; z = 10000; rotationX = -0.01; diagramVerticalMargin = 35; } public function calculateAdditionalData() : void { var local4:Number = NaN; var local5:Number = NaN; var local8:Number = NaN; var local1:Number = Math.cos(rotationX); var local2:Number = Math.sin(rotationX); var local3:Number = Math.cos(rotationY); local4 = Math.sin(rotationY); local5 = Math.cos(rotationZ); var local6:Number = Math.sin(rotationZ); var local7:Number = local5 * local4; local8 = local6 * local4; this.xAxis.x = local5 * local3; this.yAxis.x = local7 * local2 - local6 * local1; this.zAxis.x = local7 * local1 + local6 * local2; this.xAxis.y = local6 * local3; this.yAxis.y = local8 * local2 + local5 * local1; this.zAxis.y = local8 * local1 - local5 * local2; this.xAxis.z = -local4; this.yAxis.z = local3 * local2; this.zAxis.z = local3 * local1; this.position.x = x; this.position.y = y; this.position.z = z; } public function getGlobalVector(param1:Vector3, param2:Vector3) : void { m.setRotationMatrix(rotationX,rotationY,rotationZ); m.transformVector(param1,param2); } public function getLocalVector(param1:Vector3, param2:Vector3) : void { m.setRotationMatrix(rotationX,rotationY,rotationZ); m.transformVectorInverse(param1,param2); } public function setPosition(param1:Vector3) : void { x = param1.x; y = param1.y; z = param1.z; } public function setRotation(param1:Vector3) : void { rotationX = param1.x; rotationY = param1.y; rotationZ = param1.z; } public function setQRotation(param1:Quaternion) : void { param1.getEulerAngles(eulerAngles); this.setRotation(eulerAngles); } public function readPosition(param1:Vector3) : void { param1.x = x; param1.y = y; param1.z = z; } public function readRotation(param1:Vector3) : void { param1.x = rotationX; param1.y = rotationY; param1.z = rotationZ; } public function readQRotation(param1:Quaternion) : void { param1.setFromEulerAnglesXYZ(rotationX,rotationY,rotationZ); } public function updateFov() : void { fov = CameraFovCalculator.getCameraFov(view.width,view.height); } public function rotateBy(param1:Number, param2:Number, param3:Number) : void { rotationX += param1; rotationY += param2; rotationZ += param3; } } }
package controls.rangicons { import mx.core.BitmapAsset; [ExcludeClass] public class RangIcon_p20 extends BitmapAsset { public function RangIcon_p20() { super(); } } }
package alternativa.tanks.models.weapon.terminator.sfx { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class TerminatorSFXEvents implements TerminatorSFX { private var object:IGameObject; private var impl:Vector.<Object>; public function TerminatorSFXEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getSfxData() : TerminatorSFXData { var result:TerminatorSFXData = null; var i:int = 0; var m:TerminatorSFX = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = TerminatorSFX(this.impl[i]); result = m.getSfxData(); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.engine3d.core { import alternativa.gfx.agal.VertexShader; public class DepthRendererSSAOVertexShader extends VertexShader { public function DepthRendererSSAOVertexShader() { super(); mov(op,va0); mov(v0,va1); mul(v1,va1,vc[0]); mul(vt1,va1,vc[1]); sub(v2,vt1,vc[2]); } } }
package _codec.projects.tanks.client.panel.model.garage { 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.EnumCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.resource.types.ImageResource; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.commons.types.ItemCategoryEnum; import projects.tanks.client.commons.types.ItemViewCategoryEnum; import projects.tanks.client.panel.model.garage.GarageItemInfo; public class CodecGarageItemInfo implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_category:ICodec; private var codec_garageItemId:ICodec; private var codec_item:ICodec; private var codec_itemViewCategory:ICodec; private var codec_modificationIndex:ICodec; private var codec_mounted:ICodec; private var codec_name:ICodec; private var codec_position:ICodec; private var codec_premiumItem:ICodec; private var codec_preview:ICodec; private var codec_remaingTimeInMS:ICodec; public function CodecGarageItemInfo() { super(); } public function init(param1:IProtocol) : void { this.codec_category = param1.getCodec(new EnumCodecInfo(ItemCategoryEnum,false)); this.codec_garageItemId = param1.getCodec(new TypeCodecInfo(Long,false)); this.codec_item = param1.getCodec(new TypeCodecInfo(IGameObject,false)); this.codec_itemViewCategory = param1.getCodec(new EnumCodecInfo(ItemViewCategoryEnum,false)); this.codec_modificationIndex = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_mounted = param1.getCodec(new TypeCodecInfo(Boolean,false)); this.codec_name = param1.getCodec(new TypeCodecInfo(String,false)); this.codec_position = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_premiumItem = param1.getCodec(new TypeCodecInfo(Boolean,false)); this.codec_preview = param1.getCodec(new TypeCodecInfo(ImageResource,false)); this.codec_remaingTimeInMS = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:GarageItemInfo = new GarageItemInfo(); local2.category = this.codec_category.decode(param1) as ItemCategoryEnum; local2.garageItemId = this.codec_garageItemId.decode(param1) as Long; local2.item = this.codec_item.decode(param1) as IGameObject; local2.itemViewCategory = this.codec_itemViewCategory.decode(param1) as ItemViewCategoryEnum; local2.modificationIndex = this.codec_modificationIndex.decode(param1) as int; local2.mounted = this.codec_mounted.decode(param1) as Boolean; local2.name = this.codec_name.decode(param1) as String; local2.position = this.codec_position.decode(param1) as int; local2.premiumItem = this.codec_premiumItem.decode(param1) as Boolean; local2.preview = this.codec_preview.decode(param1) as ImageResource; local2.remaingTimeInMS = this.codec_remaingTimeInMS.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:GarageItemInfo = GarageItemInfo(param2); this.codec_category.encode(param1,local3.category); this.codec_garageItemId.encode(param1,local3.garageItemId); this.codec_item.encode(param1,local3.item); this.codec_itemViewCategory.encode(param1,local3.itemViewCategory); this.codec_modificationIndex.encode(param1,local3.modificationIndex); this.codec_mounted.encode(param1,local3.mounted); this.codec_name.encode(param1,local3.name); this.codec_position.encode(param1,local3.position); this.codec_premiumItem.encode(param1,local3.premiumItem); this.codec_preview.encode(param1,local3.preview); this.codec_remaingTimeInMS.encode(param1,local3.remaingTimeInMS); } } }
package alternativa.tanks.view.battlelist.battleitem { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.view.battlelist.battleitem.BattleTypeIcon_privateDisableClass.png")] public class BattleTypeIcon_privateDisableClass extends BitmapAsset { public function BattleTypeIcon_privateDisableClass() { super(); } } }
package alternativa.tanks.models.weapon.smoky.sfx { import alternativa.engine3d.core.Object3D; import alternativa.math.Vector3; import alternativa.tanks.battle.BattleService; import alternativa.tanks.models.weapon.smoky.ISmokyEffects; import alternativa.tanks.models.weapon.smoky.SmokyEffectsParams; import alternativa.tanks.sfx.AnimatedLightEffect; import alternativa.tanks.sfx.AnimatedSpriteEffect; import alternativa.tanks.sfx.MuzzlePositionProvider; import alternativa.tanks.sfx.PlaneMuzzleFlashEffect; import alternativa.tanks.sfx.Sound3D; import alternativa.tanks.sfx.Sound3DEffect; import alternativa.tanks.sfx.StaticObject3DPositionProvider; import alternativa.tanks.sound.ISoundManager; import alternativa.tanks.utils.objectpool.ObjectPool; import flash.display.BlendMode; public class SmokyEffects implements ISmokyEffects { [Inject] public static var battleService:BattleService; private var soundManager:ISoundManager; private var objectPool:ObjectPool; private var sfxData:SmokySFXData; public function SmokyEffects(param1:ISoundManager, param2:ObjectPool, param3:SmokySFXData) { super(); this.soundManager = param1; this.objectPool = param2; this.sfxData = param3; } public function createShotEffects(param1:Vector3, param2:Object3D) : void { this.createShotSoundEffect(param2); this.createMuzzleFlashEffect(param1,param2); this.createMuzzleFlashLightEffect(param1,param2); } private function createShotSoundEffect(param1:Object3D) : void { var local2:Sound3D = Sound3D.create(this.sfxData.shotSound,SmokyEffectsParams.SHOT_SOUND_VOLUME); this.soundManager.addEffect(Sound3DEffect.create(new Vector3(param1.x,param1.y,param1.z),local2)); } private function createMuzzleFlashEffect(param1:Vector3, param2:Object3D) : void { var local3:PlaneMuzzleFlashEffect = PlaneMuzzleFlashEffect(this.objectPool.getObject(PlaneMuzzleFlashEffect)); local3.init(param1,param2,this.sfxData.muzzleFlashMaterial,SmokyEffectsParams.SHOT_GRAPHIC_EFFECT_LIFE_TIME,SmokyEffectsParams.PLANE_WIDTH,SmokyEffectsParams.PLANE_LENGTH); battleService.getBattleScene3D().addGraphicEffect(local3); } private function createMuzzleFlashLightEffect(param1:Vector3, param2:Object3D) : void { var local3:AnimatedLightEffect = AnimatedLightEffect(this.objectPool.getObject(AnimatedLightEffect)); var local4:MuzzlePositionProvider = MuzzlePositionProvider(this.objectPool.getObject(MuzzlePositionProvider)); local4.init(param2,param1); local3.init(local4,this.sfxData.shotLightAnimation); battleService.getBattleScene3D().addGraphicEffect(local3); } public function createExplosionEffects(param1:Vector3) : void { this.createExplosionSoundEffect(param1); this.createExplosionGraphicEffect(param1); this.createExplosionLightEffect(param1); } private function createExplosionLightEffect(param1:Vector3) : void { var local2:AnimatedLightEffect = AnimatedLightEffect(this.objectPool.getObject(AnimatedLightEffect)); var local3:StaticObject3DPositionProvider = StaticObject3DPositionProvider(this.objectPool.getObject(StaticObject3DPositionProvider)); local3.init(param1,SmokyEffectsParams.EXPLOSION_OFFSET_TO_CAMERA); local2.init(local3,this.sfxData.hitLightAnimation); battleService.getBattleScene3D().addGraphicEffect(local2); } private function createExplosionSoundEffect(param1:Vector3) : void { var local2:Sound3D = Sound3D.create(this.sfxData.explosionSound,1); this.soundManager.addEffect(Sound3DEffect.create(param1,local2,SmokyEffectsParams.EXPLOSION_SOUND_DELAY)); } private function createExplosionGraphicEffect(param1:Vector3) : void { var local2:StaticObject3DPositionProvider = StaticObject3DPositionProvider(this.objectPool.getObject(StaticObject3DPositionProvider)); local2.init(param1,SmokyEffectsParams.EXPLOSION_OFFSET_TO_CAMERA); var local3:AnimatedSpriteEffect = AnimatedSpriteEffect(this.objectPool.getObject(AnimatedSpriteEffect)); local3.init(this.sfxData.explosionSize,this.sfxData.explosionSize,this.sfxData.explosionAnimation,0,local2); battleService.getBattleScene3D().addGraphicEffect(local3); } public function createExplosionMark(param1:Vector3, param2:Vector3) : void { battleService.getBattleScene3D().addDecal(param2,param1,SmokyEffectsParams.DECAL_RADIUS,this.sfxData.explosionMarkMaterial); } public function createCriticalHitEffects(param1:Vector3) : void { var local2:StaticObject3DPositionProvider = StaticObject3DPositionProvider(this.objectPool.getObject(StaticObject3DPositionProvider)); local2.init(param1,SmokyEffectsParams.EXPLOSION_OFFSET_TO_CAMERA + 50); var local3:AnimatedSpriteEffect = AnimatedSpriteEffect(this.objectPool.getObject(AnimatedSpriteEffect)); local3.initLooped(this.sfxData.criticalHitSize,this.sfxData.criticalHitSize,this.sfxData.criticalHitAnimation,0,local2,0.5,0.5,null,70,BlendMode.NORMAL,2); battleService.getBattleScene3D().addGraphicEffect(local3); } } }
package controls.statassets { import controls.resultassets.ResultWindowBase; import flash.display.Graphics; public class StatLineBase extends ResultWindowBase { protected var frameColor:uint = 0; public function StatLineBase() { super(); } override protected function draw() : void { var g:Graphics = null; super.draw(); if(this.frameColor != 0) { g = this.graphics; g.beginFill(this.frameColor); g.drawRect(4,0,_width - 8,1); g.drawRect(4,_height - 1,_width - 8,1); g.drawRect(0,4,1,_height - 8); g.drawRect(_width - 1,4,1,_height - 8); g.endFill(); } } } }
package alternativa.tanks.model.challenge { import mx.core.BitmapAsset; [ExcludeClass] public class ChallengeCongratulationWindow_impulseBitmap extends BitmapAsset { public function ChallengeCongratulationWindow_impulseBitmap() { super(); } } }
package alternativa.tanks.models.weapons.discrete { import alternativa.math.Vector3; import alternativa.tanks.battle.objects.tank.Tank; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class DiscreteWeaponEvents implements DiscreteWeapon { private var object:IGameObject; private var impl:Vector.<Object>; public function DiscreteWeaponEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function tryToShoot(param1:int, param2:Vector3, param3:Vector.<Tank>) : void { var i:int = 0; var m:DiscreteWeapon = null; var clientTime:int = param1; var direction:Vector3 = param2; var targets:Vector.<Tank> = param3; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = DiscreteWeapon(this.impl[i]); m.tryToShoot(clientTime,direction,targets); i++; } } finally { Model.popObject(); } } public function tryToDummyShoot(param1:int, param2:Vector3) : void { var i:int = 0; var m:DiscreteWeapon = null; var clientTime:int = param1; var direction:Vector3 = param2; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = DiscreteWeapon(this.impl[i]); m.tryToDummyShoot(clientTime,direction); i++; } } finally { Model.popObject(); } } } }
package alternativa.tanks.display.usertitle { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.display.usertitle.ProgressBarSkin_hpLeftBgBlueCls.png")] public class ProgressBarSkin_hpLeftBgBlueCls extends BitmapAsset { public function ProgressBarSkin_hpLeftBgBlueCls() { super(); } } }
package alternativa.tanks.gui.premiumaccount { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.premiumaccount.PremiumAccountIcons_premiumIconForDonateAlertClass.png")] public class PremiumAccountIcons_premiumIconForDonateAlertClass extends BitmapAsset { public function PremiumAccountIcons_premiumIconForDonateAlertClass() { super(); } } }
package alternativa.tanks.models.sfx.shoot.pumpkingun { import alternativa.engine3d.materials.Material; import alternativa.tanks.engine3d.TextureAnimation; import flash.geom.ColorTransform; import flash.media.Sound; public class PumpkingunSFXData { 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 PumpkingunSFXData() { super(); } } }
package forms.stat { import controls.Money; import controls.base.LabelBase; import controls.statassets.StatLineBackgroundNormal; import controls.statassets.StatLineBackgroundSelected; import fl.controls.listClasses.CellRenderer; import fl.controls.listClasses.ListData; import flash.display.DisplayObject; import flash.display.Sprite; import flash.text.TextFieldAutoSize; import flash.text.TextFormatAlign; import forms.ranks.SmallRankIcon; import projects.tanks.clients.fp10.libraries.tanksservices.service.rank.RankService; public class StatListRenderer extends CellRenderer { [Inject] public static var rankService:RankService; protected var nicon:DisplayObject; public function StatListRenderer() { super(); } override public function set data(param1:Object) : void { _data = param1; var local2:DisplayObject = new StatLineBackgroundNormal(); var local3:DisplayObject = new StatLineBackgroundSelected(); this.nicon = this.myIcon(_data); setStyle("upSkin",local2); setStyle("downSkin",local2); setStyle("overSkin",local2); setStyle("selectedUpSkin",local3); setStyle("selectedOverSkin",local3); setStyle("selectedDownSkin",local3); } override public function set listData(param1:ListData) : void { _listData = param1; label = _listData.label; if(this.nicon != null) { setStyle("icon",this.nicon); } } protected function bg(param1:Boolean) : DisplayObject { return new Sprite(); } protected function myIcon(param1:Object) : Sprite { var local2:Sprite = null; var local3:LabelBase = null; var local6:LabelBase = null; var local7:LabelBase = null; var local8:int = 0; local2 = new Sprite(); local3 = new LabelBase(); var local4:SmallRankIcon = new SmallRankIcon(_data.rank); var local5:LabelBase = new LabelBase(); local6 = new LabelBase(); local3.autoSize = TextFieldAutoSize.NONE; local3.align = TextFormatAlign.RIGHT; local3.width = 45; local3.text = _data.pos < 0 ? " " : _data.pos; local2.addChild(local3); if(_data.rank > 0) { local4.y = 3; local4.x = 53; local2.addChild(local4); local5.text = rankService.getRankName(int(_data.rank)); local5.x = 63; local2.addChild(local5); } local6.autoSize = TextFieldAutoSize.NONE; local6.height = 18; local6.text = _data.callsign; local6.selectable = true; local6.x = 178; local6.width = _width - 520; local2.addChild(local6); local8 = int(_width - 375); local7 = new LabelBase(); local7.autoSize = TextFieldAutoSize.NONE; local7.align = TextFormatAlign.RIGHT; local7.width = 60; local7.x = local8; local7.text = _data.score > -1 ? Money.numToString(_data.score,false) : " "; local2.addChild(local7); local8 += 60; local7 = new LabelBase(); local7.autoSize = TextFieldAutoSize.NONE; local7.align = TextFormatAlign.RIGHT; local7.width = 70; local7.x = local8; local7.text = _data.kills > -1 ? Money.numToString(_data.kills,false) : " "; local2.addChild(local7); local8 += 70; local7 = new LabelBase(); local7.autoSize = TextFieldAutoSize.NONE; local7.align = TextFormatAlign.RIGHT; local7.width = 50; local7.x = local8; local7.text = _data.deaths > -1 ? Money.numToString(_data.deaths,false) : " "; local2.addChild(local7); local8 += 50; local7 = new LabelBase(); local7.autoSize = TextFieldAutoSize.NONE; local7.align = TextFormatAlign.RIGHT; local7.width = 40; local7.x = local8; local7.text = _data.ratio > -1 ? Money.numToString(_data.ratio) : (_data.ratio == -11 ? " " : "—"); local2.addChild(local7); local8 += 40; local7 = new LabelBase(); local7.autoSize = TextFieldAutoSize.NONE; local7.align = TextFormatAlign.RIGHT; local7.width = 65; local7.x = local8; local7.htmlText = _data.wealth > -1 ? Money.numToString(_data.wealth,false) : " "; local2.addChild(local7); local8 += 75; local7 = new LabelBase(); local7.autoSize = TextFieldAutoSize.NONE; local7.align = TextFormatAlign.RIGHT; local7.width = 69; local7.x = local8; local7.text = _data.rating > -1 ? Money.numToString(_data.rating) : " "; local2.addChild(local7); return local2; } override protected function drawBackground() : void { var local1:String = enabled ? mouseState : "disabled"; if(selected) { local1 = "selected" + local1.substr(0,1).toUpperCase() + local1.substr(1); } local1 += "Skin"; var local2:DisplayObject = background; background = getDisplayObjectInstance(getStyleValue(local1)); addChildAt(background,0); if(local2 != null && local2 != background) { removeChild(local2); } } override protected function drawLayout() : void { super.drawLayout(); } override protected function drawIcon() : void { var local1:DisplayObject = icon; var local2:String = enabled ? mouseState : "disabled"; if(selected) { local2 = "selected" + local2.substr(0,1).toUpperCase() + local2.substr(1); } local2 += "Icon"; var local3:Object = getStyleValue(local2); if(local3 == null) { local3 = getStyleValue("icon"); } if(local3 != null) { icon = getDisplayObjectInstance(local3); } if(icon != null) { addChildAt(icon,1); } if(local1 != null && local1 != icon && local1.parent == this) { removeChild(local1); } } } }
package platform.loading.errors { import alternativa.types.Long; public class ModelNotFoundError extends Error { public function ModelNotFoundError(param1:Long, param2:Long, param3:Long) { super(); message = "Model not found. Space id: " + param1 + ". Object id: " + param2 + ". Model id: " + param3; } } }
package alternativa.tanks.model.item.dm { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IBattleDMItemEvents implements IBattleDMItem { private var object:IGameObject; private var impl:Vector.<Object>; public function IBattleDMItemEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getUsersCount() : int { var result:int = 0; var i:int = 0; var m:IBattleDMItem = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IBattleDMItem(this.impl[i]); result = int(m.getUsersCount()); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.models.weapons.shell.states { import alternativa.math.Vector3; import alternativa.tanks.battle.BattleRunner; import alternativa.tanks.battle.BattleService; import alternativa.tanks.models.weapon.shared.MarginalCollider; import alternativa.tanks.utils.objectpool.Pool; import alternativa.tanks.utils.objectpool.PooledObject; import projects.tanks.client.battlefield.models.tankparts.weapons.common.shell.ShellState; public class ShellStates extends PooledObject { [Inject] public static var battleService:BattleService; private var states:Vector.<ShellState> = new Vector.<ShellState>(); private var lastControlPosition:Vector3 = new Vector3(); private var lastControlDirection:Vector3 = new Vector3(); private var prevPosition:Vector3 = new Vector3(); private var prevDirection:Vector3 = new Vector3(); private var prevStateTime:int; private var startTime:int; private var lastControlTime:int; private var prevPositionAlreadyAdded:Boolean; public function ShellStates(param1:Pool) { super(param1); } public function getLastControlPosition() : Vector3 { return this.lastControlPosition; } public function getLastControlDirection() : Vector3 { return this.lastControlDirection; } public function getLastControlTime() : int { return this.lastControlTime; } public function getTimeSinceLastControlState() : int { return battleService.getPhysicsTime() + BattleRunner.PHYSICS_STEP_IN_MS - this.startTime - this.lastControlTime; } public function start(param1:Vector3, param2:Vector3) : void { this.states.length = 0; this.lastControlPosition.copy(param1); this.lastControlDirection.copy(param2); this.startTime = battleService.getPhysicsTime(); this.lastControlTime = 0; this.prevPositionAlreadyAdded = true; } public function updateState(param1:Vector3, param2:Vector3, param3:int = 666666) : void { if(MarginalCollider.segmentWithStaticIntersection(this.lastControlPosition,param1)) { this.savePrevPosition(); } this.prevPosition.copy(param1); this.prevDirection.copy(param2); this.prevStateTime = battleService.getPhysicsTime() + Math.min(param3,BattleRunner.PHYSICS_STEP_IN_MS) - this.startTime; this.prevPositionAlreadyAdded = false; } public function getControlStates() : Vector.<ShellState> { this.savePrevPosition(); return this.states; } public function savePrevPosition() : void { if(!this.prevPositionAlreadyAdded) { this.states.push(new ShellState(this.prevStateTime,this.prevDirection.toVector3d(),this.prevPosition.toVector3d())); this.lastControlTime = this.prevStateTime; this.lastControlPosition.copy(this.prevPosition); this.lastControlDirection.copy(this.prevDirection); this.prevPositionAlreadyAdded = true; } } public function destroy() : void { this.states.length = 0; recycle(); } } }
package _codec.projects.tanks.client.tanksservices.model.clientrestarttime { 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.tanksservices.model.clientrestarttime.OnceADayActionCC; public class CodecOnceADayActionCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_todayRestartTime:ICodec; public function CodecOnceADayActionCC() { super(); } public function init(param1:IProtocol) : void { this.codec_todayRestartTime = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:OnceADayActionCC = new OnceADayActionCC(); local2.todayRestartTime = this.codec_todayRestartTime.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:OnceADayActionCC = OnceADayActionCC(param2); this.codec_todayRestartTime.encode(param1,local3.todayRestartTime); } } }
package alternativa.tanks.models.battle.gui.statistics { import alternativa.types.Long; import projects.tanks.client.battleservice.model.battle.team.BattleTeam; import projects.tanks.client.users.services.chatmoderator.ChatModeratorLevel; public class ClientUserInfo { private var _userId:Long; private var _uid:String; private var _rank:int; private var _loaded:Boolean; private var _suspicious:Boolean; private var _teamType:BattleTeam; private var _chatModeratorLevel:ChatModeratorLevel; private var _hasPremium:Boolean; public function ClientUserInfo(param1:Long, param2:String, param3:int, param4:Boolean, param5:Boolean, param6:BattleTeam, param7:ChatModeratorLevel, param8:Boolean) { super(); this._userId = param1; this._uid = param2; this._rank = param3; this._loaded = param4; this._suspicious = param5; this._teamType = param6; this._chatModeratorLevel = param7; this._hasPremium = param8; } public function get userId() : Long { return this._userId; } public function set userId(param1:Long) : void { this._userId = param1; } public function get uid() : String { return this._uid; } public function set uid(param1:String) : void { this._uid = param1; } public function get rank() : int { return this._rank; } public function set rank(param1:int) : void { this._rank = param1; } public function get loaded() : Boolean { return this._loaded; } public function set loaded(param1:Boolean) : void { this._loaded = param1; } public function get suspicious() : Boolean { return this._suspicious; } public function set suspicious(param1:Boolean) : void { this._suspicious = param1; } public function get teamType() : BattleTeam { return this._teamType; } public function set teamType(param1:BattleTeam) : void { this._teamType = param1; } public function get chatModeratorLevel() : ChatModeratorLevel { return this._chatModeratorLevel; } public function set chatModeratorLevel(param1:ChatModeratorLevel) : void { this._chatModeratorLevel = param1; } public function getShortUserInfo() : ShortUserInfo { var local1:ShortUserInfo = new ShortUserInfo(); local1.userId = this._userId; local1.uid = this._uid; local1.rank = this._rank; local1.suspicious = this._suspicious; local1.teamType = this._teamType; local1.chatModeratorLevel = this._chatModeratorLevel; local1.hasPremium = this._hasPremium; return local1; } } }
package projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.shot { public class ShotgunShotCC { private var _magazineReloadTime:int; private var _magazineSize:int; public function ShotgunShotCC(param1:int = 0, param2:int = 0) { super(); this._magazineReloadTime = param1; this._magazineSize = param2; } public function get magazineReloadTime() : int { return this._magazineReloadTime; } public function set magazineReloadTime(param1:int) : void { this._magazineReloadTime = param1; } public function get magazineSize() : int { return this._magazineSize; } public function set magazineSize(param1:int) : void { this._magazineSize = param1; } public function toString() : String { var local1:String = "ShotgunShotCC ["; local1 += "magazineReloadTime = " + this.magazineReloadTime + " "; local1 += "magazineSize = " + this.magazineSize + " "; return local1 + "]"; } } }
package platform.client.models.commons.types { public class Timestamp { private var _day:int; private var _hours:int; private var _minutes:int; private var _month:int; private var _seconds:int; private var _year:int; public function Timestamp(param1:int = 0, param2:int = 0, param3:int = 0, param4:int = 0, param5:int = 0, param6:int = 0) { super(); this._day = param1; this._hours = param2; this._minutes = param3; this._month = param4; this._seconds = param5; this._year = param6; } public function get day() : int { return this._day; } public function set day(param1:int) : void { this._day = param1; } public function get hours() : int { return this._hours; } public function set hours(param1:int) : void { this._hours = param1; } public function get minutes() : int { return this._minutes; } public function set minutes(param1:int) : void { this._minutes = param1; } public function get month() : int { return this._month; } public function set month(param1:int) : void { this._month = param1; } public function get seconds() : int { return this._seconds; } public function set seconds(param1:int) : void { this._seconds = param1; } public function get year() : int { return this._year; } public function set year(param1:int) : void { this._year = param1; } public function toString() : String { var local1:String = "Timestamp ["; local1 += "day = " + this.day + " "; local1 += "hours = " + this.hours + " "; local1 += "minutes = " + this.minutes + " "; local1 += "month = " + this.month + " "; local1 += "seconds = " + this.seconds + " "; local1 += "year = " + this.year + " "; return local1 + "]"; } } }
package alternativa.tanks.models.effects.activeafetrdeath { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IActiveAfterDeathAdapt implements IActiveAfterDeath { private var object:IGameObject; private var impl:IActiveAfterDeath; public function IActiveAfterDeathAdapt(param1:IGameObject, param2:IActiveAfterDeath) { super(); this.object = param1; this.impl = param2; } public function isEnabled() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.isEnabled()); } finally { Model.popObject(); } return result; } } }
package forms.garage { import fl.controls.listClasses.CellRenderer; import fl.controls.listClasses.ListData; import flash.display.DisplayObject; public class PartsListRenderer extends CellRenderer { private static var defaultStyles:Object = { "upSkin":null, "downSkin":null, "overSkin":null, "disabledSkin":null, "selectedDisabledSkin":null, "selectedUpSkin":null, "selectedDownSkin":null, "selectedOverSkin":null, "textFormat":null, "disabledTextFormat":null, "embedFonts":null, "textPadding":5 }; private var nicon:DisplayObject; private var sicon:DisplayObject; public function PartsListRenderer() { super(); this.buttonMode = true; this.useHandCursor = true; } override public function set data(value:Object) : void { _data = value; this.nicon = value.iconNormal; this.sicon = value.iconSelected; } override public function set listData(value:ListData) : void { _listData = value; label = _listData.label; if(this.nicon != null && this.sicon != null) { setStyle("icon",this.nicon); setStyle("selectedUpIcon",this.sicon); setStyle("selectedOverIcon",this.sicon); setStyle("selectedDownIcon",this.sicon); } } override protected function drawBackground() : void { } override protected function drawLayout() : void { } override protected function drawIcon() : void { var oldIcon:DisplayObject = icon; var styleName:String = !!enabled ? mouseState : "disabled"; if(selected) { styleName = "selected" + styleName.substr(0,1).toUpperCase() + styleName.substr(1); } styleName += "Icon"; var iconStyle:Object = getStyleValue(styleName); if(iconStyle == null) { iconStyle = getStyleValue("icon"); } if(iconStyle != null) { icon = getDisplayObjectInstance(iconStyle); } if(icon != null) { addChildAt(icon,1); } if(oldIcon != null && oldIcon != icon && oldIcon.parent == this) { removeChild(oldIcon); } } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class AntiAddictionWindow_Watches3Hours extends BitmapAsset { public function AntiAddictionWindow_Watches3Hours() { super(); } } }
package alternativa.tanks.services.performance { public interface PerformanceDataService { function getQualityFPSThreshold() : Number; function setQualityFPSThreshold(param1:Number) : void; function getQualityRatioThreshold() : Number; function setQualityRatioThreshold(param1:Number) : void; function getQualityIdleTime() : Number; function setQualityIdleTime(param1:Number) : void; function getQualityTestTime() : Number; function setQualityTestTime(param1:Number) : void; function getQualityVisualizationSpeed() : Number; function setQualityVisualizationSpeed(param1:Number) : void; function getQualityMaxAttempts() : int; function setQualityMaxAttempts(param1:int) : void; function getAlertFPSThreshold() : Number; function setAlertFPSThreshold(param1:Number) : void; function getAlertFPSRatioThreshold() : Number; function setAlertFPSRatioThreshold(param1:Number) : void; function getAlertPingThreshold() : Number; function setAlertPingThreshold(param1:Number) : void; function getAlertPingRatioThreshold() : Number; function setAlertPingRatioThreshold(param1:Number) : void; function getAlertMinTestTime() : Number; function setAlertMinTestTime(param1:Number) : void; function getIndicatorVeryLowFPS() : int; function setIndicatorVeryLowFPS(param1:int) : void; function getIndicatorVeryLowFPSColor() : String; function setIndicatorVeryLowFPSColor(param1:String) : void; function getIndicatorLowFPS() : int; function setIndicatorLowFPS(param1:int) : void; function getIndicatorLowFPSColor() : String; function setIndicatorLowFPSColor(param1:String) : void; function getIndicatorHighFPS() : int; function setIndicatorHighFPS(param1:int) : void; function getIndicatorHighFPSColor() : String; function setIndicatorHighFPSColor(param1:String) : void; function getIndicatorLowPing() : int; function setIndicatorLowPing(param1:int) : void; function getIndicatorLowPingColor() : String; function setIndicatorLowPingColor(param1:String) : void; function getIndicatorHighPing() : int; function setIndicatorHighPing(param1:int) : void; function getIndicatorHighPingColor() : String; function setIndicatorHighPingColor(param1:String) : void; function getIndicatorVeryHighPing() : int; function setIndicatorVeryHighPing(param1:int) : void; function getIndicatorVeryHighPingColor() : String; function setIndicatorVeryHighPingColor(param1:String) : void; } }
package alternativa.tanks.models.battle.battlefield.billboard { import alternativa.tanks.battle.BattleService; import platform.client.fp10.core.model.ObjectLoadPostListener; import platform.client.fp10.core.resource.types.TextureResource; import projects.tanks.client.battlefield.models.battle.battlefield.billboard.BillboardsModelBase; import projects.tanks.client.battlefield.models.battle.battlefield.billboard.IBillboardsModelBase; [ModelInfo] public class BillboardsModel extends BillboardsModelBase implements IBillboardsModelBase, ObjectLoadPostListener { [Inject] public static var battleService:BattleService; public function BillboardsModel() { super(); } [Obfuscation(rename="false")] public function objectLoadedPost() : void { var local1:TextureResource = getInitParam().defaultBillboardImage; battleService.setBillboardImage(local1.data); } } }
package controls.checkbox { public class MultilineCheckBox extends CheckBoxBase { public function MultilineCheckBox() { super(); labelInfo.y = 0; labelInfo.wordWrap = true; labelInfo.multiline = true; } public function set labelWidth(param1:int) : void { labelInfo.width = param1; } } }
package alternativa.tanks.camera { public class AngleData { public var angle:Number = 0; public var speed:Number = 0; public function AngleData() { super(); } } }
package forms.ranks { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapBigRank27.png")] public class DefaultRanksBitmaps_bitmapBigRank27 extends BitmapAsset { public function DefaultRanksBitmaps_bitmapBigRank27() { super(); } } }
package alternativa.engine3d.core { import alternativa.gfx.agal.VertexShader; public class ShadowMapVertexShader extends VertexShader { public function ShadowMapVertexShader(param1:Boolean, param2:Boolean) { super(); if(param2) { mov(vt0,cc.rel(va0.x,0)); mov(v0,vt0); mul(vt0.z,vt0,vc[8]); mov(op,vt0); if(param1) { mov(vt0,vc[10]); mul(v1,cc.rel(va0.x,1),vt0); } } else { mov(vt0,vc[3]); dp4(vt0.x,va0,vc[0]); dp4(vt0.y,va0,vc[1]); dp4(vt0.z,va0,vc[2]); mov(v0,vt0); mul(vt0.z,vt0,vc[3]); mov(op,vt0); if(param1) { mul(v1,va1,vc[10]); } } } } }
package swfaddress { import flash.events.Event; public class SWFAddressEvent extends Event { public static const INIT:String = "init"; public static const CHANGE:String = "change"; private var _value:String; private var _path:String; private var _pathNames:Array; private var _parameters:Object; private var _parametersNames:Array; public function SWFAddressEvent(type:String) { super(type,false,false); } override public function get currentTarget() : Object { return SWFAddress; } override public function get type() : String { return super.type; } override public function get target() : Object { return SWFAddress; } public function get value() : String { if(this._value == null) { this._value = SWFAddress.getValue(); } return this._value; } public function get path() : String { if(this._path == null) { this._path = SWFAddress.getPath(); } return this._path; } public function get pathNames() : Array { if(this._pathNames == null) { this._pathNames = SWFAddress.getPathNames(); } return this._pathNames; } public function get parameters() : Object { var i:int = 0; if(this._parameters == null) { this._parameters = new Object(); for(i = 0; i < this.parametersNames.length; i++) { this._parameters[this.parametersNames[i]] = SWFAddress.getParameter(this.parametersNames[i]); } } return this._parameters; } public function get parametersNames() : Array { if(this._parametersNames == null) { this._parametersNames = SWFAddress.getParameterNames(); } return this._parametersNames; } override public function clone() : Event { return new SWFAddressEvent(this.type); } override public function toString() : String { return formatToString("SWFAddressEvent","type","bubbles","cancelable","eventPhase","value","path","pathNames","parameters","parametersNames"); } } }
package projects.tanks.client.battlefield.models.user.tank { 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.Byte; import alternativa.types.Float; 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; import projects.tanks.client.battlefield.models.user.tank.commands.MoveCommand; import projects.tanks.client.battlefield.types.DamageType; import projects.tanks.client.battlefield.types.Vector3d; public class TankModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:TankModelServer; private var client:ITankModelBase = ITankModelBase(this); private var modelId:Long = Long.getLong(500772743,-1275562344); private var _activateTankId:Long = Long.getLong(1132148565,-1228176022); private var _deathConfirmedId:Long = Long.getLong(1500025148,-1072265992); private var _killId:Long = Long.getLong(815803475,677498549); private var _kill_killerTankIdCodec:ICodec; private var _kill_respawnDelayCodec:ICodec; private var _kill_damageTypeCodec:ICodec; private var _moveId:Long = Long.getLong(815803475,677432898); private var _move_moveCommandCodec:ICodec; private var _movementControlId:Long = Long.getLong(1056545941,1597681057); private var _movementControl_controlCodec:ICodec; private var _movementControl_turnSpeedNumberCodec:ICodec; private var _pushId:Long = Long.getLong(815803475,677337849); private var _push_hitPointCodec:ICodec; private var _push_forceCodec:ICodec; private var _resetConfigurationId:Long = Long.getLong(1453923431,-1281454868); private var _resetConfiguration_hullIdCodec:ICodec; private var _resetConfiguration_weaponIdCodec:ICodec; private var _resetConfiguration_droneIdCodec:ICodec; private var _resetConfiguration_fullHealthHitsCodec:ICodec; private var _setHealthId:Long = Long.getLong(696094159,-894234735); private var _setHealth_newHealthCodec:ICodec; public function TankModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new TankModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(TankCC,false))); this._kill_killerTankIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false)); this._kill_respawnDelayCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); this._kill_damageTypeCodec = this._protocol.getCodec(new EnumCodecInfo(DamageType,false)); this._move_moveCommandCodec = this._protocol.getCodec(new TypeCodecInfo(MoveCommand,false)); this._movementControl_controlCodec = this._protocol.getCodec(new TypeCodecInfo(Byte,false)); this._movementControl_turnSpeedNumberCodec = this._protocol.getCodec(new TypeCodecInfo(Byte,false)); this._push_hitPointCodec = this._protocol.getCodec(new TypeCodecInfo(Vector3d,false)); this._push_forceCodec = this._protocol.getCodec(new TypeCodecInfo(Vector3d,false)); this._resetConfiguration_hullIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false)); this._resetConfiguration_weaponIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false)); this._resetConfiguration_droneIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false)); this._resetConfiguration_fullHealthHitsCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); this._setHealth_newHealthCodec = this._protocol.getCodec(new TypeCodecInfo(Float,false)); } protected function getInitParam() : TankCC { return TankCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._activateTankId: this.client.activateTank(); break; case this._deathConfirmedId: this.client.deathConfirmed(); break; case this._killId: this.client.kill(Long(this._kill_killerTankIdCodec.decode(param2)),int(this._kill_respawnDelayCodec.decode(param2)),DamageType(this._kill_damageTypeCodec.decode(param2))); break; case this._moveId: this.client.move(MoveCommand(this._move_moveCommandCodec.decode(param2))); break; case this._movementControlId: this.client.movementControl(int(this._movementControl_controlCodec.decode(param2)),int(this._movementControl_turnSpeedNumberCodec.decode(param2))); break; case this._pushId: this.client.push(Vector3d(this._push_hitPointCodec.decode(param2)),Vector3d(this._push_forceCodec.decode(param2))); break; case this._resetConfigurationId: this.client.resetConfiguration(Long(this._resetConfiguration_hullIdCodec.decode(param2)),Long(this._resetConfiguration_weaponIdCodec.decode(param2)),Long(this._resetConfiguration_droneIdCodec.decode(param2)),int(this._resetConfiguration_fullHealthHitsCodec.decode(param2))); break; case this._setHealthId: this.client.setHealth(Number(this._setHealth_newHealthCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package controls.base { import controls.Label; import flash.events.MouseEvent; import flash.text.TextFieldAutoSize; import flash.ui.Mouse; import flash.ui.MouseCursor; import utils.FontParamsUtil; public class LabelBase extends Label { private var _autoSize:String; private var _correctCursorBehaviour:Boolean; private var isButtonMode:Boolean = false; public function LabelBase() { super(); sharpness = FontParamsUtil.SHARPNESS_LABEL_BASE; thickness = FontParamsUtil.THICKNESS_LABEL_BASE; this._autoSize = super.autoSize; this._correctCursorBehaviour = true; } override public function set autoSize(param1:String) : void { super.autoSize = param1; this._autoSize = super.autoSize; } override public function set htmlText(param1:String) : void { var local2:Number = NaN; super.autoSize = this._autoSize; super.htmlText = param1; if(super.autoSize == TextFieldAutoSize.CENTER) { local2 = super.width; super.autoSize = TextFieldAutoSize.NONE; super.width = Math.ceil(local2) + 1; } } public function set buttonMode(param1:Boolean) : void { this.isButtonMode = param1; this.selectable = param1; } override public function set selectable(param1:Boolean) : void { super.selectable = param1; this.arrangeEventListeners(); } public function get correctCursorBehaviour() : Boolean { return this._correctCursorBehaviour; } public function set correctCursorBehaviour(param1:Boolean) : void { this._correctCursorBehaviour = param1; this.arrangeEventListeners(); } private function arrangeEventListeners() : void { if(super.selectable && this._correctCursorBehaviour) { addEventListener(MouseEvent.ROLL_OVER,this.onMouseOver); addEventListener(MouseEvent.ROLL_OUT,this.onMouseOut); } else { removeEventListener(MouseEvent.ROLL_OVER,this.onMouseOver); removeEventListener(MouseEvent.ROLL_OUT,this.onMouseOut); } } private function onMouseOver(param1:MouseEvent) : void { Mouse.cursor = this.isButtonMode ? MouseCursor.BUTTON : MouseCursor.IBEAM; } private function onMouseOut(param1:MouseEvent) : void { Mouse.cursor = MouseCursor.AUTO; } } }
package projects.tanks.client.battlefield.models.tankparts.weapon.splash { public interface ISplashModelBase { } }
package alternativa.init { import alternativa.osgi.bundle.IBundleActivator; import alternativa.service.IModelService; import alternativa.tanks.model.TimeCheckerModel; import alternativa.tanks.model.UserModel; public class UserModelActivator implements IBundleActivator { public static var osgi:OSGi; public var userModel:UserModel; private var timeCheckerModel:TimeCheckerModel; public function UserModelActivator() { super(); } public function start(osgi:OSGi) : void { UserModelActivator.osgi = osgi; var modelRegister:IModelService = osgi.getService(IModelService) as IModelService; this.userModel = new UserModel(); modelRegister.add(this.userModel); this.timeCheckerModel = new TimeCheckerModel(); modelRegister.add(this.timeCheckerModel); } public function stop(osgi:OSGi) : void { var modelRegister:IModelService = osgi.getService(IModelService) as IModelService; modelRegister.remove(this.userModel.id); modelRegister.remove(this.timeCheckerModel.id); this.userModel = null; this.timeCheckerModel = null; UserModelActivator.osgi = null; } } }
package resources.windowheaders.background { import mx.core.BitmapAsset; [ExcludeClass] public class BackgroundHeader_shortBackgroundHeaderClass extends BitmapAsset { public function BackgroundHeader_shortBackgroundHeaderClass() { super(); } } }
package alternativa.tanks.bonuses { import alternativa.math.Quaternion; import alternativa.math.Vector3; public class LandingState { public const position:Vector3 = new Vector3(); public const orientation:Quaternion = new Quaternion(); public function LandingState() { super(); } public function interpolate(param1:LandingState, param2:LandingState, param3:Number) : void { this.position.interpolate(param3,param1.position,param2.position); this.orientation.slerp(param1.orientation,param2.orientation,param3); } public function copy(param1:LandingState) : void { this.position.copy(param1.position); this.orientation.copy(param1.orientation); } } }
package _codec.projects.tanks.client.garage.models.item.object3ds { 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.object3ds.Object3DSCC; public class VectorCodecObject3DSCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecObject3DSCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(Object3DSCC,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.<Object3DSCC> = new Vector.<Object3DSCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = Object3DSCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:Object3DSCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<Object3DSCC> = Vector.<Object3DSCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.model.item.resistance.view { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.model.item.resistance.view.ResistanceButton_mountHoverIconClass.png")] public class ResistanceButton_mountHoverIconClass extends BitmapAsset { public function ResistanceButton_mountHoverIconClass() { super(); } } }
package alternativa.tanks.sfx { import alternativa.math.Vector3; import alternativa.tanks.battle.BattleService; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.utils.objectpool.Pool; import alternativa.tanks.utils.objectpool.PooledObject; import flash.events.Event; import flash.media.SoundChannel; public class Sound3DEffect extends PooledObject implements ISound3DEffect { [Inject] public static var battleService:BattleService; private var position:Vector3 = new Vector3(); private var sound:Sound3D; private var playbackDelay:int; private var startTime:int; private var channel:SoundChannel; private var _enabled:Boolean = false; private var _playing:Boolean = false; private var listener:ISoundEffectDestructionListener; public function Sound3DEffect(param1:Pool) { super(param1); } public static function create(param1:Vector3, param2:Sound3D, param3:int = 0, param4:int = 0, param5:ISoundEffectDestructionListener = null) : Sound3DEffect { var local6:Sound3DEffect = Sound3DEffect(battleService.getObjectPool().getObject(Sound3DEffect)); local6.init(param1,param2,param3,param4,param5); return local6; } public function init(param1:Vector3, param2:Sound3D, param3:int = 0, param4:int = 0, param5:ISoundEffectDestructionListener = null) : void { this.position.copy(param1); this.sound = param2; this.playbackDelay = param3; this.startTime = param4; this.listener = param5; this._enabled = false; this._playing = false; } public function play(param1:int, param2:GameCamera) : void { this.playbackDelay -= param1; if(this.playbackDelay > 0) { return; } if(!this._playing) { this._playing = true; this.channel = this.sound.play(this.startTime,1); if(this.channel == null) { return; } this.channel.addEventListener(Event.SOUND_COMPLETE,this.onSoundComplete); } this.sound.checkVolume(param2.position,this.position,param2.xAxis); } public function destroy() : void { Sound3D.destroy(this.sound); this.sound = null; this.onSoundComplete(null); if(this.listener != null) { this.listener.onSoundEffectDestroyed(this); this.listener = null; } recycle(); } public function kill() : void { this._enabled = false; } public function set enabled(param1:Boolean) : void { if(this._enabled == param1) { return; } if(!(this._enabled = param1)) { this.onSoundComplete(null); } } public function readPosition(param1:Vector3) : void { param1.x = this.position.x; param1.y = this.position.y; param1.z = this.position.z; } public function get numSounds() : int { return this._enabled ? 1 : 0; } private function onSoundComplete(param1:Event) : void { if(this.channel != null) { this.channel.removeEventListener(Event.SOUND_COMPLETE,this.onSoundComplete); } this._enabled = false; this.channel = null; } } }
package controls.slider { import controls.rangicons.RangIconSmall; import flash.display.BitmapData; import flash.display.Graphics; import flash.display.Sprite; import flash.geom.Matrix; public class SelectRankThumb extends SliderThumb { [Embed(source="763.png")] private static const bitmapArrow:Class; private static const arrow:BitmapData = new bitmapArrow().bitmapData; private var iconMin:RangIconSmall; private var iconMax:RangIconSmall; private var _minRang:int = 0; private var _maxRang:int = 0; public var leftDrag:Sprite; public var centerDrag:Sprite; public var rightDrag:Sprite; public function SelectRankThumb() { var g:Graphics = null; this.iconMin = new RangIconSmall(); this.iconMax = new RangIconSmall(); super(); addChild(this.iconMax); addChild(this.iconMin); this.iconMax.y = 9; this.iconMin.y = 9; this.leftDrag = new Sprite(); g = this.leftDrag.graphics; g.beginFill(0,0); g.drawRect(0,0,10,30); g.endFill(); this.centerDrag = new Sprite(); this.centerDrag.x = 10; this.rightDrag = new Sprite(); g = this.rightDrag.graphics; g.beginFill(0,0); g.drawRect(0,0,10,30); g.endFill(); addChild(this.leftDrag); addChild(this.centerDrag); addChild(this.rightDrag); this.leftDrag.buttonMode = true; this.centerDrag.buttonMode = true; this.rightDrag.buttonMode = true; } override protected function draw() : void { var g:Graphics = null; var matrix:Matrix = null; super.draw(); var rz:int = this._maxRang - this._minRang; this.iconMin.rang = this._minRang; this.iconMax.rang = this._maxRang; this.iconMax.visible = rz > 0; if(rz == 0) { this.iconMax.x = this.iconMin.x = int((_width - this.iconMin.width) / 2); } else { this.iconMin.x = 11; this.iconMax.x = _width - this.iconMax.width - 11; g = this.graphics; matrix = new Matrix(); matrix.translate(5,12); g.beginBitmapFill(arrow,matrix); g.drawRect(5,12,4,7); g.endFill(); matrix = new Matrix(); matrix.rotate(Math.PI); matrix.translate(_width - 9,12); g.beginBitmapFill(arrow,matrix); g.drawRect(_width - 9,12,4,7); g.endFill(); } g = this.centerDrag.graphics; g.clear(); g.beginFill(0,0); g.drawRect(0,0,_width - 20,30); g.endFill(); this.rightDrag.x = _width - 10; } public function set minRang(minRang:int) : void { this._minRang = minRang; this.draw(); } public function set maxRang(maxRang:int) : void { this._maxRang = maxRang; this.draw(); } } }
package alternativa.tanks.battle.events { public class LocalTankKilledEvent { public static const EVENT:LocalTankKilledEvent = new LocalTankKilledEvent(); public function LocalTankKilledEvent() { super(); } } }
package alternativa.tanks.models.battlefield.gui.statistics.field { import mx.core.BitmapAsset; [ExcludeClass] public class CTFScoreIndicator_flagRedLostClass extends BitmapAsset { public function CTFScoreIndicator_flagRedLostClass() { super(); } } }
package { import flash.display.MovieClip; [Embed(source="/_assets/assets.swf", symbol="symbol642")] public dynamic class SliderThumb_overSkin extends MovieClip { public function SliderThumb_overSkin() { super(); } } }
package alternativa.tanks.models.weapon.shared { import alternativa.tanks.battle.objects.tank.LocalWeapon; import alternativa.tanks.service.settings.keybinding.GameActionEnum; import alternativa.tanks.services.battleinput.BattleInputService; import alternativa.tanks.services.battleinput.GameActionListener; public class SimpleWeaponController implements GameActionListener { [Inject] public static var battleInputService:BattleInputService; private var weapon:LocalWeapon; private var triggerPulled:Boolean; private var wasTriggerPulled:Boolean; public function SimpleWeaponController() { super(); } public function init() : void { battleInputService.addGameActionListener(this); } public function destroy() : void { battleInputService.removeGameActionListener(this); } public function setWeapon(param1:LocalWeapon) : void { this.weapon = param1; } public function wasActive() : Boolean { return this.triggerPulled || this.wasTriggerPulled; } public function isTriggerPulled() : Boolean { return this.triggerPulled; } public function discardStoredAction() : void { this.wasTriggerPulled = false; } public function onGameAction(param1:GameActionEnum, param2:Boolean) : void { if(param1 == GameActionEnum.SHOT) { if(param2) { this.pullTrigger(); } else { this.releaseTrigger(); } } } private function pullTrigger() : void { if(!this.triggerPulled) { this.triggerPulled = true; this.wasTriggerPulled = true; if(this.weapon != null) { this.weapon.pullTrigger(); } } } private function releaseTrigger() : void { if(this.triggerPulled) { this.triggerPulled = false; if(this.weapon != null) { this.weapon.releaseTrigger(); } } } } }
package _codec.unsigned { 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 alternativa.types.UByte; public class VectorCodecshortLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecshortLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(UByte,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.<uint> = new Vector.<uint>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = uint(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:uint = 0; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<uint> = Vector.<uint>(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.engine3d.lights { import alternativa.engine3d.alternativa3d; import alternativa.engine3d.core.Camera3D; import alternativa.engine3d.core.Debug; import alternativa.engine3d.core.Light3D; import alternativa.engine3d.core.Object3D; import flash.display.Sprite; use namespace alternativa3d; public class DirectionalLight extends Light3D { public function DirectionalLight(param1:uint) { super(); this.color = param1; calculateBounds(); } public function lookAt(param1:Number, param2:Number, param3:Number) : void { var _loc4_:Number = param1 - this.x; var _loc5_:Number = param2 - this.y; var _loc6_:Number = param3 - this.z; rotationX = Math.atan2(_loc6_,Math.sqrt(_loc4_ * _loc4_ + _loc5_ * _loc5_)) - Math.PI / 2; rotationY = 0; rotationZ = -Math.atan2(_loc4_,_loc5_); } override public function clone() : Object3D { var _loc1_:DirectionalLight = new DirectionalLight(color); _loc1_.clonePropertiesFrom(this); return _loc1_; } override alternativa3d function drawDebug(param1:Camera3D) : void { var _loc3_:Sprite = null; var _loc4_:Number = NaN; var _loc5_:Number = NaN; var _loc6_:Number = NaN; var _loc7_:int = 0; var _loc8_:Number = NaN; var _loc9_:Number = NaN; var _loc10_:Number = NaN; var _loc11_:Number = NaN; var _loc12_:Number = NaN; var _loc13_:Number = NaN; var _loc14_:Number = NaN; var _loc15_:Number = NaN; var _loc16_:Number = NaN; var _loc17_:Number = NaN; var _loc18_:Number = NaN; var _loc19_:Number = NaN; var _loc20_:Number = NaN; var _loc21_:Number = NaN; var _loc22_:Number = NaN; var _loc23_:Number = NaN; var _loc24_:Number = NaN; var _loc25_:Number = NaN; var _loc26_:Number = NaN; var _loc27_:Number = NaN; var _loc28_:Number = NaN; var _loc29_:Number = NaN; var _loc30_:Number = NaN; var _loc31_:Number = NaN; var _loc32_:Number = NaN; var _loc33_:Number = NaN; var _loc34_:Number = NaN; var _loc35_:Number = NaN; var _loc36_:Number = NaN; var _loc37_:Number = NaN; var _loc38_:Number = NaN; var _loc39_:Number = NaN; var _loc40_:Number = NaN; var _loc41_:Number = NaN; var _loc42_:Number = NaN; var _loc43_:Number = NaN; var _loc44_:Number = NaN; var _loc45_:Number = NaN; var _loc46_:Number = NaN; var _loc47_:Number = NaN; var _loc48_:Number = NaN; var _loc49_:Number = NaN; var _loc50_:Number = NaN; var _loc51_:Number = NaN; var _loc52_:Number = NaN; var _loc53_:Number = NaN; var _loc54_:Number = NaN; var _loc55_:Number = NaN; var _loc56_:Number = NaN; var _loc57_:Number = NaN; var _loc58_:Number = NaN; var _loc59_:Number = NaN; var _loc60_:Number = NaN; var _loc61_:Number = NaN; var _loc62_:Number = NaN; var _loc63_:Number = NaN; var _loc64_:Number = NaN; var _loc2_:int = param1.checkInDebug(this); if(_loc2_ > 0) { _loc3_ = param1.view.canvas; if(_loc2_ & Debug.LIGHTS && ml > param1.nearClipping) { _loc4_ = (color >> 16 & 255) * intensity; _loc5_ = (color >> 8 & 255) * intensity; _loc6_ = (color & 255) * intensity; _loc7_ = ((_loc4_ > 255 ? 255 : _loc4_) << 16) + ((_loc5_ > 255 ? 255 : _loc5_) << 8) + (_loc6_ > 255 ? 255 : _loc6_); _loc8_ = md * param1.viewSizeX / param1.focalLength; _loc9_ = mh * param1.viewSizeY / param1.focalLength; _loc10_ = ml; _loc11_ = mc * param1.viewSizeX / param1.focalLength; _loc12_ = mg * param1.viewSizeY / param1.focalLength; _loc13_ = mk; _loc14_ = Math.sqrt(_loc11_ * _loc11_ + _loc12_ * _loc12_ + _loc13_ * _loc13_); _loc11_ /= _loc14_; _loc12_ /= _loc14_; _loc13_ /= _loc14_; _loc15_ = ma * param1.viewSizeX / param1.focalLength; _loc16_ = me * param1.viewSizeY / param1.focalLength; _loc17_ = mi; _loc18_ = _loc17_ * _loc12_ - _loc16_ * _loc13_; _loc19_ = _loc15_ * _loc13_ - _loc17_ * _loc11_; _loc20_ = _loc16_ * _loc11_ - _loc15_ * _loc12_; _loc14_ = Math.sqrt(_loc18_ * _loc18_ + _loc19_ * _loc19_ + _loc20_ * _loc20_); _loc18_ /= _loc14_; _loc19_ /= _loc14_; _loc20_ /= _loc14_; _loc15_ = mb * param1.viewSizeX / param1.focalLength; _loc16_ = mf * param1.viewSizeY / param1.focalLength; _loc17_ = mj; _loc15_ = _loc20_ * _loc12_ - _loc19_ * _loc13_; _loc16_ = _loc18_ * _loc13_ - _loc20_ * _loc11_; _loc17_ = _loc19_ * _loc11_ - _loc18_ * _loc12_; _loc21_ = ml / param1.focalLength; _loc11_ *= _loc21_; _loc12_ *= _loc21_; _loc13_ *= _loc21_; _loc15_ *= _loc21_; _loc16_ *= _loc21_; _loc17_ *= _loc21_; _loc18_ *= _loc21_; _loc19_ *= _loc21_; _loc20_ *= _loc21_; _loc22_ = 16; _loc23_ = 24; _loc24_ = 4; _loc25_ = 8; _loc26_ = _loc8_ + _loc11_ * _loc23_; _loc27_ = _loc9_ + _loc12_ * _loc23_; _loc28_ = _loc10_ + _loc13_ * _loc23_; _loc29_ = _loc8_ + _loc15_ * _loc24_ + _loc18_ * _loc24_; _loc30_ = _loc9_ + _loc16_ * _loc24_ + _loc19_ * _loc24_; _loc31_ = _loc10_ + _loc17_ * _loc24_ + _loc20_ * _loc24_; _loc32_ = _loc8_ - _loc15_ * _loc24_ + _loc18_ * _loc24_; _loc33_ = _loc9_ - _loc16_ * _loc24_ + _loc19_ * _loc24_; _loc34_ = _loc10_ - _loc17_ * _loc24_ + _loc20_ * _loc24_; _loc35_ = _loc8_ - _loc15_ * _loc24_ - _loc18_ * _loc24_; _loc36_ = _loc9_ - _loc16_ * _loc24_ - _loc19_ * _loc24_; _loc37_ = _loc10_ - _loc17_ * _loc24_ - _loc20_ * _loc24_; _loc38_ = _loc8_ + _loc15_ * _loc24_ - _loc18_ * _loc24_; _loc39_ = _loc9_ + _loc16_ * _loc24_ - _loc19_ * _loc24_; _loc40_ = _loc10_ + _loc17_ * _loc24_ - _loc20_ * _loc24_; _loc41_ = _loc8_ + _loc11_ * _loc22_ + _loc15_ * _loc24_ + _loc18_ * _loc24_; _loc42_ = _loc9_ + _loc12_ * _loc22_ + _loc16_ * _loc24_ + _loc19_ * _loc24_; _loc43_ = _loc10_ + _loc13_ * _loc22_ + _loc17_ * _loc24_ + _loc20_ * _loc24_; _loc44_ = _loc8_ + _loc11_ * _loc22_ - _loc15_ * _loc24_ + _loc18_ * _loc24_; _loc45_ = _loc9_ + _loc12_ * _loc22_ - _loc16_ * _loc24_ + _loc19_ * _loc24_; _loc46_ = _loc10_ + _loc13_ * _loc22_ - _loc17_ * _loc24_ + _loc20_ * _loc24_; _loc47_ = _loc8_ + _loc11_ * _loc22_ - _loc15_ * _loc24_ - _loc18_ * _loc24_; _loc48_ = _loc9_ + _loc12_ * _loc22_ - _loc16_ * _loc24_ - _loc19_ * _loc24_; _loc49_ = _loc10_ + _loc13_ * _loc22_ - _loc17_ * _loc24_ - _loc20_ * _loc24_; _loc50_ = _loc8_ + _loc11_ * _loc22_ + _loc15_ * _loc24_ - _loc18_ * _loc24_; _loc51_ = _loc9_ + _loc12_ * _loc22_ + _loc16_ * _loc24_ - _loc19_ * _loc24_; _loc52_ = _loc10_ + _loc13_ * _loc22_ + _loc17_ * _loc24_ - _loc20_ * _loc24_; _loc53_ = _loc8_ + _loc11_ * _loc22_ + _loc15_ * _loc25_ + _loc18_ * _loc25_; _loc54_ = _loc9_ + _loc12_ * _loc22_ + _loc16_ * _loc25_ + _loc19_ * _loc25_; _loc55_ = _loc10_ + _loc13_ * _loc22_ + _loc17_ * _loc25_ + _loc20_ * _loc25_; _loc56_ = _loc8_ + _loc11_ * _loc22_ - _loc15_ * _loc25_ + _loc18_ * _loc25_; _loc57_ = _loc9_ + _loc12_ * _loc22_ - _loc16_ * _loc25_ + _loc19_ * _loc25_; _loc58_ = _loc10_ + _loc13_ * _loc22_ - _loc17_ * _loc25_ + _loc20_ * _loc25_; _loc59_ = _loc8_ + _loc11_ * _loc22_ - _loc15_ * _loc25_ - _loc18_ * _loc25_; _loc60_ = _loc9_ + _loc12_ * _loc22_ - _loc16_ * _loc25_ - _loc19_ * _loc25_; _loc61_ = _loc10_ + _loc13_ * _loc22_ - _loc17_ * _loc25_ - _loc20_ * _loc25_; _loc62_ = _loc8_ + _loc11_ * _loc22_ + _loc15_ * _loc25_ - _loc18_ * _loc25_; _loc63_ = _loc9_ + _loc12_ * _loc22_ + _loc16_ * _loc25_ - _loc19_ * _loc25_; _loc64_ = _loc10_ + _loc13_ * _loc22_ + _loc17_ * _loc25_ - _loc20_ * _loc25_; if(_loc28_ > param1.nearClipping && _loc31_ > param1.nearClipping && _loc34_ > param1.nearClipping && _loc37_ > param1.nearClipping && _loc40_ > param1.nearClipping && _loc43_ > param1.nearClipping && _loc46_ > param1.nearClipping && _loc49_ > param1.nearClipping && _loc52_ > param1.nearClipping && _loc55_ > param1.nearClipping && _loc58_ > param1.nearClipping && _loc61_ > param1.nearClipping && _loc64_ > param1.nearClipping) { _loc3_.graphics.lineStyle(1,_loc7_); _loc3_.graphics.moveTo(_loc29_ * param1.focalLength / _loc31_,_loc30_ * param1.focalLength / _loc31_); _loc3_.graphics.lineTo(_loc32_ * param1.focalLength / _loc34_,_loc33_ * param1.focalLength / _loc34_); _loc3_.graphics.lineTo(_loc35_ * param1.focalLength / _loc37_,_loc36_ * param1.focalLength / _loc37_); _loc3_.graphics.lineTo(_loc38_ * param1.focalLength / _loc40_,_loc39_ * param1.focalLength / _loc40_); _loc3_.graphics.lineTo(_loc29_ * param1.focalLength / _loc31_,_loc30_ * param1.focalLength / _loc31_); _loc3_.graphics.moveTo(_loc41_ * param1.focalLength / _loc43_,_loc42_ * param1.focalLength / _loc43_); _loc3_.graphics.lineTo(_loc44_ * param1.focalLength / _loc46_,_loc45_ * param1.focalLength / _loc46_); _loc3_.graphics.lineTo(_loc47_ * param1.focalLength / _loc49_,_loc48_ * param1.focalLength / _loc49_); _loc3_.graphics.lineTo(_loc50_ * param1.focalLength / _loc52_,_loc51_ * param1.focalLength / _loc52_); _loc3_.graphics.lineTo(_loc41_ * param1.focalLength / _loc43_,_loc42_ * param1.focalLength / _loc43_); _loc3_.graphics.moveTo(_loc53_ * param1.focalLength / _loc55_,_loc54_ * param1.focalLength / _loc55_); _loc3_.graphics.lineTo(_loc56_ * param1.focalLength / _loc58_,_loc57_ * param1.focalLength / _loc58_); _loc3_.graphics.lineTo(_loc59_ * param1.focalLength / _loc61_,_loc60_ * param1.focalLength / _loc61_); _loc3_.graphics.lineTo(_loc62_ * param1.focalLength / _loc64_,_loc63_ * param1.focalLength / _loc64_); _loc3_.graphics.lineTo(_loc53_ * param1.focalLength / _loc55_,_loc54_ * param1.focalLength / _loc55_); _loc3_.graphics.moveTo(_loc26_ * param1.focalLength / _loc28_,_loc27_ * param1.focalLength / _loc28_); _loc3_.graphics.lineTo(_loc53_ * param1.focalLength / _loc55_,_loc54_ * param1.focalLength / _loc55_); _loc3_.graphics.moveTo(_loc26_ * param1.focalLength / _loc28_,_loc27_ * param1.focalLength / _loc28_); _loc3_.graphics.lineTo(_loc56_ * param1.focalLength / _loc58_,_loc57_ * param1.focalLength / _loc58_); _loc3_.graphics.moveTo(_loc26_ * param1.focalLength / _loc28_,_loc27_ * param1.focalLength / _loc28_); _loc3_.graphics.lineTo(_loc59_ * param1.focalLength / _loc61_,_loc60_ * param1.focalLength / _loc61_); _loc3_.graphics.moveTo(_loc26_ * param1.focalLength / _loc28_,_loc27_ * param1.focalLength / _loc28_); _loc3_.graphics.lineTo(_loc62_ * param1.focalLength / _loc64_,_loc63_ * param1.focalLength / _loc64_); _loc3_.graphics.moveTo(_loc29_ * param1.focalLength / _loc31_,_loc30_ * param1.focalLength / _loc31_); _loc3_.graphics.lineTo(_loc41_ * param1.focalLength / _loc43_,_loc42_ * param1.focalLength / _loc43_); _loc3_.graphics.moveTo(_loc32_ * param1.focalLength / _loc34_,_loc33_ * param1.focalLength / _loc34_); _loc3_.graphics.lineTo(_loc44_ * param1.focalLength / _loc46_,_loc45_ * param1.focalLength / _loc46_); _loc3_.graphics.moveTo(_loc35_ * param1.focalLength / _loc37_,_loc36_ * param1.focalLength / _loc37_); _loc3_.graphics.lineTo(_loc47_ * param1.focalLength / _loc49_,_loc48_ * param1.focalLength / _loc49_); _loc3_.graphics.moveTo(_loc38_ * param1.focalLength / _loc40_,_loc39_ * param1.focalLength / _loc40_); _loc3_.graphics.lineTo(_loc50_ * param1.focalLength / _loc52_,_loc51_ * param1.focalLength / _loc52_); } } if(_loc2_ & Debug.BOUNDS) { Debug.drawBounds(param1,this,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ,10092288); } } } } }
package projects.tanks.client.panel.model.payment.panel { 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 PaymentButtonModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:PaymentButtonModelServer; private var client:IPaymentButtonModelBase = IPaymentButtonModelBase(this); private var modelId:Long = Long.getLong(735308238,-192682652); public function PaymentButtonModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new PaymentButtonModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(PaymentButtonCC,false))); } protected function getInitParam() : PaymentButtonCC { return PaymentButtonCC(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 org1.osflash.signals { public interface ISlot { function getListener() : Function; function setListener(param1:Function) : void; function getParams() : Array; function setParams(param1:Array) : void; function getOnce() : Boolean; function getPriority() : int; function getEnabled() : Boolean; function setEnabled(param1:Boolean) : void; function execute0() : void; function execute1(param1:Object) : void; function execute(param1:Array) : void; function remove() : void; } }
package com.alternativaplatform.projects.tanks.client.warfare.models.sfx.flame { import scpacker.Base; public class FlameThrowingSFXModelBase extends Base { public function FlameThrowingSFXModelBase() { super(); } } }
package alternativa.tanks.model.payment.shop.licenseclan { import alternativa.tanks.gui.shop.shopitems.item.base.ShopButton; import alternativa.tanks.gui.shop.shopitems.item.licenseclan.LicenseClanButton; import alternativa.tanks.model.payment.shop.ShopItemView; import projects.tanks.client.panel.model.shop.garageitem.licenseclan.ILicenseClanShopItemModelBase; import projects.tanks.client.panel.model.shop.garageitem.licenseclan.LicenseClanShopItemModelBase; [ModelInfo] public class LicenseClanShopItemModel extends LicenseClanShopItemModelBase implements ILicenseClanShopItemModelBase, ShopItemView { public function LicenseClanShopItemModel() { super(); } public function getButtonView() : ShopButton { return new LicenseClanButton(object); } } }
package projects.tanks.client.panel.model.challenge.rewarding { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.CollectionCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class ChallengesRewardingModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:ChallengesRewardingModelServer; private var client:IChallengesRewardingModelBase = IChallengesRewardingModelBase(this); private var modelId:Long = Long.getLong(1504901702,408311149); private var _sendTiersInfoId:Long = Long.getLong(139084535,228510069); private var _sendTiersInfo_tiersCodec:ICodec; public function ChallengesRewardingModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new ChallengesRewardingModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(ChallengeRewardsCC,false))); this._sendTiersInfo_tiersCodec = this._protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Tier,false),false,1)); } protected function getInitParam() : ChallengeRewardsCC { return ChallengeRewardsCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._sendTiersInfoId: this.client.sendTiersInfo(this._sendTiersInfo_tiersCodec.decode(param2) as Vector.<Tier>); } } override public function get id() : Long { return this.modelId; } } }
package projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation { 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 alternativa.types.Short; 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 ArtilleryElevatingBarrelModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _updateId:Long = Long.getLong(1501768212,293551899); private var _update_clientTimeCodec:ICodec; private var _update_incarnationIdCodec:ICodec; private var _update_barrelStateCodec:ICodec; private var model:IModel; public function ArtilleryElevatingBarrelModelServer(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._update_clientTimeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); this._update_incarnationIdCodec = this.protocol.getCodec(new TypeCodecInfo(Short,false)); this._update_barrelStateCodec = this.protocol.getCodec(new TypeCodecInfo(BarrelElevationCommand,false)); } public function update(param1:int, param2:int, param3:BarrelElevationCommand) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._update_clientTimeCodec.encode(this.protocolBuffer,param1); this._update_incarnationIdCodec.encode(this.protocolBuffer,param2); this._update_barrelStateCodec.encode(this.protocolBuffer,param3); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local4:SpaceCommand = new SpaceCommand(Model.object.id,this._updateId,this.protocolBuffer); var local5:IGameObject = Model.object; var local6:ISpace = local5.space; local6.commandSender.sendCommand(local4); this.protocolBuffer.optionalMap.clear(); } } }
package alternativa.tanks.model.payment.shop.paint { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class PaintPackageEvents implements PaintPackage { private var object:IGameObject; private var impl:Vector.<Object>; public function PaintPackageEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getName() : String { var result:String = null; var i:int = 0; var m:PaintPackage = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = PaintPackage(this.impl[i]); result = m.getName(); i++; } } finally { Model.popObject(); } return result; } public function getDescription() : String { var result:String = null; var i:int = 0; var m:PaintPackage = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = PaintPackage(this.impl[i]); result = m.getDescription(); i++; } } finally { Model.popObject(); } return result; } } }
package projects.tanks.client.garage.models.item.countable { 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 CountableItemModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:CountableItemModelServer; private var client:ICountableItemModelBase = ICountableItemModelBase(this); private var modelId:Long = Long.getLong(28163628,1959753058); public function CountableItemModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new CountableItemModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(CountableItemCC,false))); } protected function getInitParam() : CountableItemCC { return CountableItemCC(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 _codec.projects.tanks.client.garage.models.item.countable { 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.garage.models.item.countable.CountableItemCC; public class CodecCountableItemCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_count:ICodec; public function CodecCountableItemCC() { super(); } public function init(param1:IProtocol) : void { this.codec_count = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:CountableItemCC = new CountableItemCC(); local2.count = this.codec_count.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:CountableItemCC = CountableItemCC(param2); this.codec_count.encode(param1,local3.count); } } }
package _codec.projects.tanks.client.battlefield.models.ultimate.effects.hunter { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.battlefield.models.ultimate.effects.hunter.TankStunCC; public class VectorCodecTankStunCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecTankStunCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(TankStunCC,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.<TankStunCC> = new Vector.<TankStunCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = TankStunCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:TankStunCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<TankStunCC> = Vector.<TankStunCC>(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++; } } } }