code
stringlengths
57
237k
package alternativa.tanks.display.usertitle { import mx.core.BitmapAsset; [ExcludeClass] public class EffectIndicator_iconArmorCls extends BitmapAsset { public function EffectIndicator_iconArmorCls() { super(); } } }
package assets.combo { import controls.ButtonState; import flash.display.Graphics; public class ComboListOverState extends ButtonState { public function ComboListOverState() { super(); bmpLeft = new combolist_OVER_LEFT(1,1); bmpCenter = new combolist_OVER_CENTER(1,1); bmpRight = new combolist_OVER_RIGHT(1,1); } override public function draw() : void { var local1:Graphics = null; local1 = l.graphics; local1.clear(); local1.beginBitmapFill(bmpLeft); local1.drawRect(0,0,5,20); local1.endFill(); l.x = 0; l.y = 0; local1 = c.graphics; local1.clear(); local1.beginBitmapFill(bmpCenter); local1.drawRect(0,0,_width - 10,20); local1.endFill(); c.x = 5; c.y = 0; local1 = r.graphics; local1.clear(); local1.beginBitmapFill(bmpRight); local1.drawRect(0,0,5,20); local1.endFill(); r.x = _width - 5; r.y = 0; } } }
package com.lorentz.SVG.data.path { public class SVGLineToCommand extends SVGPathCommand { public var x:Number = 0; public var y:Number = 0; public var absolute:Boolean = false; public function SVGLineToCommand(absolute:Boolean, x:Number = 0, y:Number = 0) { super(); this.absolute = absolute; this.x = x; this.y = y; } override public function get type():String { return absolute ? "L" : "l"; } override public function clone():Object { var copy:SVGLineToCommand = new SVGLineToCommand(absolute); copy.x = x; copy.y = y; return copy; } } }
package alternativa.tanks.gui { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.gui.payment.controls.OrderingLine; import controls.TankWindow; import controls.TankWindowInner; import controls.base.DefaultButtonBase; import flash.display.Bitmap; import flash.display.DisplayObject; import flash.display.Shape; import flash.display.Sprite; public class ThanksForPurchaseWindow extends Sprite { [Inject] public static var localeService:ILocaleService = Main.osgi.getService(ILocaleService) as ILocaleService; [Embed(source="1140.png")] private var bitmap:Class; public var closeButton:DefaultButtonBase; public var donationCrystals:int; private const windowMargin:int = 12; private const margin:int = 9; private var inner:Sprite; public function ThanksForPurchaseWindow(param2:int, param3:int, param4:int) { super(); this.donationCrystals = param2; var _loc5_:int = this.windowMargin * 2 + this.margin * 2 + new this.bitmap().bitmapData.width; var _loc6_:TankWindow = new TankWindow(); addChild(_loc6_); var _loc7_:TankWindowInner = new TankWindowInner(_loc5_ - this.windowMargin * 2,0,TankWindowInner.GREEN); this.inner = _loc7_; _loc6_.addChild(_loc7_); _loc7_.x = this.windowMargin; _loc7_.y = this.windowMargin; var _loc8_:Bitmap = new Bitmap(new this.bitmap().bitmapData); _loc8_.x = (_loc7_.width - _loc8_.width) / 2; this.addLine(_loc8_,this.windowMargin); var _loc9_:int = _loc7_.width * 0.8; var _loc10_:OrderingLine = new OrderingLine("Куплено кристаллов:",param2); _loc10_.width = _loc9_; this.centerAlign(_loc10_,_loc7_.width); this.addLine(_loc10_,0); if(param3 > 0) { _loc10_ = new OrderingLine("Бонус покупки пакета:",param3); _loc10_.width = _loc9_; this.centerAlign(_loc10_,_loc7_.width); this.addLine(_loc10_,-7); } if(param4 > 0) { _loc10_ = new OrderingLine("Карта «Двойной кристалл»:",param4); _loc10_.width = _loc9_; this.centerAlign(_loc10_,_loc7_.width); this.addLine(_loc10_,-7); } var _loc11_:Shape = new Shape(); _loc11_.graphics.beginFill(5898034); for(var _loc12_:int = 0; _loc12_ < _loc9_ - 5; ) { _loc11_.graphics.drawRect(_loc12_,0,1,1); _loc12_ += 3; } this.centerAlign(_loc11_,_loc7_.width); this.addLine(_loc11_,4); _loc10_ = new OrderingLine("Всего начислено кристаллов:",param4 + param2 + param3); _loc10_.width = _loc9_; this.centerAlign(_loc10_,_loc7_.width); this.addLine(_loc10_,1); _loc7_.height += this.windowMargin; this.closeButton = new DefaultButtonBase(); if(localeService != null) { this.closeButton.label = "Закрыть"; } this.closeButton.y = _loc7_.x + _loc7_.height + this.windowMargin; this.centerAlign(this.closeButton,_loc5_); _loc6_.addChild(this.closeButton); _loc6_.height = this.closeButton.y + this.closeButton.height + this.windowMargin; _loc6_.width = _loc5_; addChild(_loc6_); } private function centerAlign(param1:DisplayObject, param2:Number) : void { param1.x = (param2 - param1.width) / 2; } private function addLine(param1:DisplayObject, param2:int) : void { param1.y = this.inner.height + param2; this.inner.addChild(param1); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.friend { import alternativa.types.Long; import flash.events.IEventDispatcher; public interface IFriendActionService extends IEventDispatcher { function add(param1:Long) : void; function addByUid(param1:String) : void; function accept(param1:Long) : void; function breakItOff(param1:Long) : void; function reject(param1:Long) : void; function rejectAllIncoming() : void; function alreadyInIncomingFriends(param1:String, param2:Long) : void; function alreadyInAcceptedFriends(param1:String) : void; function alreadyInOutgoingFriends(param1:String) : void; function incomingLimitExceeded() : void; function acceptedLimitExceeded(param1:String) : void; function requestAccepted(param1:Long) : void; function yourAcceptedLimitExceeded() : void; } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class ItemInfoPanel_bitmapArmor extends BitmapAsset { public function ItemInfoPanel_bitmapArmor() { super(); } } }
package projects.tanks.client.garage.models.item.view { import projects.tanks.client.commons.types.ItemViewCategoryEnum; public class ItemViewCategoryCC { private var _category:ItemViewCategoryEnum; public function ItemViewCategoryCC(param1:ItemViewCategoryEnum = null) { super(); this._category = param1; } public function get category() : ItemViewCategoryEnum { return this._category; } public function set category(param1:ItemViewCategoryEnum) : void { this._category = param1; } public function toString() : String { var local1:String = "ItemViewCategoryCC ["; local1 += "category = " + this.category + " "; return local1 + "]"; } } }
package alternativa.utils.textureutils { import alternativa.utils.BitmapUtils; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Loader; import flash.events.Event; import flash.utils.ByteArray; public class TextureConstructor { private var _texture:BitmapData; private var listener:ITextureConstructorListener; private var loader:Loader; private var textureData:TextureByteData; private var cancelled:Boolean; public function TextureConstructor() { super(); } public function get texture() : BitmapData { return this._texture; } public function cancel() : void { this.cancelled = true; } public function createTexture(textureData:TextureByteData, listener:ITextureConstructorListener) : void { if(this.loader != null) { throw new Error("Construction in progress"); } if(textureData == null) { throw new ArgumentError("Parameter textureData is null"); } if(textureData.diffuseData == null) { throw new ArgumentError("Diffuse data is null"); } this.cancelled = false; this.textureData = textureData; this.listener = listener; this.loadBytes(textureData.diffuseData,this.onDiffuseTextureLoadingComplete); } private function loadBytes(data:ByteArray, callback:Function) : void { data.position = 0; this.loader = new Loader(); this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE,callback); this.loader.loadBytes(data); } private function onDiffuseTextureLoadingComplete(e:Event) : void { if(this.cancelled) { Bitmap(this.loader.content).bitmapData.dispose(); this.loader.unload(); this.loader = null; } else { this._texture = Bitmap(this.loader.content).bitmapData; this.loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,this.onDiffuseTextureLoadingComplete); this.loader.unload(); if(this.textureData.opacityData != null) { this.loadBytes(this.textureData.opacityData,this.onAlphaTextureLoadingComplete); } else { this.complete(); } } } private function onAlphaTextureLoadingComplete(e:Event) : void { var alpha:BitmapData = null; if(this.cancelled) { Bitmap(this.loader.content).bitmapData.dispose(); this.loader.unload(); this.loader = null; } else { alpha = Bitmap(this.loader.content).bitmapData; this.loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,this.onAlphaTextureLoadingComplete); this.loader.unload(); this._texture = BitmapUtils.mergeBitmapAlpha(this._texture,alpha,true); this.complete(); } } private function complete() : void { this.loader = null; this.textureData = null; var listener:ITextureConstructorListener = this.listener; this.listener = null; listener.onTextureReady(this); } } }
package alternativa.tanks.models.weapon.common { import alternativa.engine3d.core.Camera3D; import alternativa.math.Vector3; import alternativa.object.ClientObject; import alternativa.tanks.models.tank.TankData; import alternativa.tanks.vehicles.tanks.Tank; public interface IWeaponCommonModel { function getCommonData(param1:ClientObject) : WeaponCommonData; function createShotEffects(param1:ClientObject, param2:Tank, param3:int, param4:Vector3, param5:Vector3) : void; function createExplosionEffects(param1:ClientObject, param2:Camera3D, param3:Boolean, param4:Vector3, param5:Vector3, param6:TankData, param7:Number) : void; } }
package assets.button { import flash.display.BitmapData; [Embed(source="/_assets/assets.button.button_blue_DOWN_CENTER.png")] public dynamic class button_blue_DOWN_CENTER extends BitmapData { public function button_blue_DOWN_CENTER(param1:int = 201, param2:int = 30) { super(param1,param2); } } }
package alternativa.tanks.models.battle.battlefield { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class BattlefieldEventsAdapt implements BattlefieldEvents { private var object:IGameObject; private var impl:BattlefieldEvents; public function BattlefieldEventsAdapt(param1:IGameObject, param2:BattlefieldEvents) { super(); this.object = param1; this.impl = param2; } public function onBattleLoaded() : void { try { Model.object = this.object; this.impl.onBattleLoaded(); } finally { Model.popObject(); } } } }
package _codec.projects.tanks.client.panel.model.garage.resistance { 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.garage.resistance.ResistancesCC; public class VectorCodecResistancesCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecResistancesCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ResistancesCC,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.<ResistancesCC> = new Vector.<ResistancesCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ResistancesCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ResistancesCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ResistancesCC> = Vector.<ResistancesCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package _codec.projects.tanks.client.battleselect.model.matchmaking.modes { 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 projects.tanks.client.battleselect.model.matchmaking.modes.MatchmakingModeRank; import projects.tanks.client.battleselect.model.matchmaking.queue.MatchmakingMode; public class CodecMatchmakingModeRank implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_matchmakingMode:ICodec; private var codec_rank:ICodec; public function CodecMatchmakingModeRank() { super(); } public function init(param1:IProtocol) : void { this.codec_matchmakingMode = param1.getCodec(new EnumCodecInfo(MatchmakingMode,false)); this.codec_rank = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:MatchmakingModeRank = new MatchmakingModeRank(); local2.matchmakingMode = this.codec_matchmakingMode.decode(param1) as MatchmakingMode; local2.rank = this.codec_rank.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:MatchmakingModeRank = MatchmakingModeRank(param2); this.codec_matchmakingMode.encode(param1,local3.matchmakingMode); this.codec_rank.encode(param1,local3.rank); } } }
package alternativa.engine3d.core { import alternativa.gfx.agal.FragmentShader; import alternativa.gfx.agal.SamplerDim; import alternativa.gfx.agal.SamplerFilter; import alternativa.gfx.agal.SamplerMipMap; import alternativa.gfx.agal.SamplerRepeat; public class DepthRendererBlurFragmentShader extends FragmentShader { public function DepthRendererBlurFragmentShader() { super(); mov(ft1,v0); tex(ft0,ft1,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); sub(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); sub(ft1.x,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); add(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); add(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); add(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); add(ft1.x,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); add(ft1.x,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); add(ft1.x,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); sub(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); sub(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); sub(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); sub(ft1.x,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); add(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); add(ft1.y,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); sub(ft1.x,ft1,fc[0]); min(ft2,ft1,fc[1]); tex(ft2,ft2,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE)); add(ft0.w,ft0,ft2); mul(ft0.w,ft0,fc[0]); mov(oc,ft0); } } }
package alternativa.tanks.model.shop { import flash.display.Sprite; public class ItemBase extends Sprite { private var _gridPosition:int; public function ItemBase() { super(); } public function destroy() : void { } public function get gridPosition() : int { return this._gridPosition; } public function set gridPosition(param1:int) : void { this._gridPosition = param1; } } }
package projects.tanks.client.users.model.friends.incomingnotificator { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.network.command.SpaceCommand; import platform.client.fp10.core.type.IGameObject; import platform.client.fp10.core.type.ISpace; public class FriendsIncomingNotificatorModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _removeId:Long = Long.getLong(848767568,-2110445115); private var _remove_userIdCodec:ICodec; private var model:IModel; public function FriendsIncomingNotificatorModelServer(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._remove_userIdCodec = this.protocol.getCodec(new TypeCodecInfo(Long,false)); } public function remove(param1:Long) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._remove_userIdCodec.encode(this.protocolBuffer,param1); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local2:SpaceCommand = new SpaceCommand(Model.object.id,this._removeId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } } }
package controls.windowinner { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.windowinner.WindowInner_bottomRightClass.png")] public class WindowInner_bottomRightClass extends BitmapAsset { public function WindowInner_bottomRightClass() { super(); } } }
package controls { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.TankWindowInner_topLeftClass.png")] public class TankWindowInner_topLeftClass extends BitmapAsset { public function TankWindowInner_topLeftClass() { super(); } } }
package controls.lifeindicator { import mx.core.BitmapAsset; [ExcludeClass] public class LineCharge_bitmapCenter extends BitmapAsset { public function LineCharge_bitmapCenter() { super(); } } }
package com.alternativaplatform.client.models.core.users.model.entrance { public class ConfirmEmailStatus { public static var ERROR:ConfirmEmailStatus = new ConfirmEmailStatus(); public static var OK:ConfirmEmailStatus = new ConfirmEmailStatus(); public static var OK_EXISTS:ConfirmEmailStatus = new ConfirmEmailStatus(); public function ConfirmEmailStatus() { super(); } } }
package alternativa.tanks.models.weapon.artillery.sfx { import alternativa.math.Vector3; import alternativa.tanks.battle.BattleService; import alternativa.tanks.models.weapon.AllGlobalGunParams; public class ArtilleryShotEffect { [Inject] public static var battleService:BattleService; private var flameLeft:ArtilleryFlame; private var flameCenter:ArtilleryFlame; private var flameRight:ArtilleryFlame; private var sfxData:ArtillerySfxData; public function ArtilleryShotEffect(param1:ArtillerySfxData) { super(); this.sfxData = param1; } public function run(param1:AllGlobalGunParams) : void { this.flameLeft = ArtilleryFlame(battleService.getObjectPool().getObject(ArtilleryFlame)); this.flameCenter = ArtilleryFlame(battleService.getObjectPool().getObject(ArtilleryFlame)); this.flameRight = ArtilleryFlame(battleService.getObjectPool().getObject(ArtilleryFlame)); var local2:Vector3 = param1.elevationAxis.clone().scale(-1); this.flameLeft.init(param1.muzzlePosition,local2,this.sfxData); this.flameCenter.init(param1.muzzlePosition,param1.direction,this.sfxData,true); this.flameRight.init(param1.muzzlePosition,param1.elevationAxis,this.sfxData); } } }
package alternativa.tanks.models.battle.gui.gui.statistics.field.score.ctf.flagindicator { import alternativa.tanks.models.battle.gui.gui.statistics.field.score.ctf.CTFScoreIndicatorBlinker; import flash.display.Bitmap; import flash.display.Sprite; import flash.utils.Dictionary; public class FlagIndicator extends Sprite { public static const STATE_DEFAULT:int = 1; public static const STATE_BLINK:int = 2; public static const STATE_EMPTY:int = 3; public static const STATE_FLASHING:int = 4; public var normalBitmap:Bitmap; public var lostBitmap:Bitmap; public var flashBitmap:Bitmap; private var states:Dictionary = new Dictionary(); private var currentState:IFlagIndicatorState; public function FlagIndicator(param1:Bitmap, param2:Bitmap, param3:Bitmap, param4:CTFScoreIndicatorBlinker) { super(); this.normalBitmap = param1; this.lostBitmap = param2; this.flashBitmap = param3; addChild(param1); addChild(param2); addChild(param3); this.states[STATE_DEFAULT] = new StateAtBase(STATE_DEFAULT,this); this.states[STATE_FLASHING] = new StateFlash(STATE_FLASHING,this,10 / 1000,1 / 1000,300); this.states[STATE_BLINK] = new StateLost(STATE_BLINK,this,param4,0); this.states[STATE_EMPTY] = new StateLost(STATE_EMPTY,this,param4,1); this.currentState = this.states[STATE_DEFAULT]; this.currentState.start(); } public function setState(param1:int) : void { if(this.currentState.getType() == param1) { return; } this.currentState.stop(); this.currentState = this.states[param1]; this.currentState.start(); } public function update(param1:int, param2:int) : void { this.currentState.update(param1,param2); } } }
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 alternativa.engine3d.core.Vertex; import flash.display.Sprite; use namespace alternativa3d; public class OmniLight extends Light3D { public var attenuationBegin:Number; public var attenuationEnd:Number; public function OmniLight(param1:uint, param2:Number, param3:Number) { super(); this.color = param1; this.attenuationBegin = param2; this.attenuationEnd = param3; calculateBounds(); } override public function clone() : Object3D { var local1:OmniLight = new OmniLight(color,this.attenuationBegin,this.attenuationEnd); local1.clonePropertiesFrom(this); return local1; } override alternativa3d function drawDebug(param1:Camera3D) : void { var local3:Sprite = null; var local4:Number = NaN; var local5:Number = NaN; var local6:Number = NaN; var local7:int = 0; var local8:Number = NaN; var local9:Number = NaN; var local10:Number = NaN; var local11:Number = NaN; var local12:Number = NaN; var local13:Number = NaN; var local2:int = int(param1.alternativa3d::checkInDebug(this)); if(local2 > 0) { local3 = param1.view.alternativa3d::canvas; if(Boolean(local2 & Debug.LIGHTS) && alternativa3d::ml > param1.nearClipping) { local4 = (color >> 16 & 0xFF) * intensity; local5 = (color >> 8 & 0xFF) * intensity; local6 = (color & 0xFF) * intensity; local7 = ((local4 > 255 ? 255 : local4) << 16) + ((local5 > 255 ? 255 : local5) << 8) + (local6 > 255 ? 255 : local6); local8 = alternativa3d::ma * param1.alternativa3d::viewSizeX / param1.alternativa3d::focalLength; local9 = alternativa3d::me * param1.alternativa3d::viewSizeY / param1.alternativa3d::focalLength; local10 = Math.sqrt(local8 * local8 + local9 * local9 + alternativa3d::mi * alternativa3d::mi); local8 = alternativa3d::mb * param1.alternativa3d::viewSizeX / param1.alternativa3d::focalLength; local9 = alternativa3d::mf * param1.alternativa3d::viewSizeY / param1.alternativa3d::focalLength; local10 += Math.sqrt(local8 * local8 + local9 * local9 + alternativa3d::mj * alternativa3d::mj); local8 = alternativa3d::mc * param1.alternativa3d::viewSizeX / param1.alternativa3d::focalLength; local9 = alternativa3d::mg * param1.alternativa3d::viewSizeY / param1.alternativa3d::focalLength; local10 += Math.sqrt(local8 * local8 + local9 * local9 + alternativa3d::mk * alternativa3d::mk); local10 /= 3; local11 = Math.round(alternativa3d::md * param1.alternativa3d::viewSizeX / alternativa3d::ml); local12 = Math.round(alternativa3d::mh * param1.alternativa3d::viewSizeY / alternativa3d::ml); local13 = 8; local3.graphics.lineStyle(1,local7); local3.graphics.moveTo(local11 - local13,local12); local3.graphics.lineTo(local11 + local13,local12); local3.graphics.moveTo(local11,local12 - local13); local3.graphics.lineTo(local11,local12 + local13); local3.graphics.moveTo(local11 - local13 * 0.7,local12 - local13 * 0.7); local3.graphics.lineTo(local11 + local13 * 0.7,local12 + local13 * 0.7); local3.graphics.moveTo(local11 - local13 * 0.7,local12 + local13 * 0.7); local3.graphics.lineTo(local11 + local13 * 0.7,local12 - local13 * 0.7); local3.graphics.drawCircle(local11,local12,this.attenuationBegin * local10 * param1.alternativa3d::focalLength / alternativa3d::ml); local3.graphics.lineStyle(1,local7,0.5); local3.graphics.drawCircle(local11,local12,this.attenuationEnd * local10 * param1.alternativa3d::focalLength / alternativa3d::ml); } if(Boolean(local2 & Debug.BOUNDS)) { Debug.alternativa3d::drawBounds(param1,this,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ,10092288); } } } override alternativa3d function updateBounds(param1:Object3D, param2:Object3D = null) : void { var local3:Vertex = null; if(param2 != null) { local3 = alternativa3d::boundVertexList; local3.x = -this.attenuationEnd; local3.y = -this.attenuationEnd; local3.z = -this.attenuationEnd; local3 = local3.alternativa3d::next; local3.x = this.attenuationEnd; local3.y = -this.attenuationEnd; local3.z = -this.attenuationEnd; local3 = local3.alternativa3d::next; local3.x = -this.attenuationEnd; local3.y = this.attenuationEnd; local3.z = -this.attenuationEnd; local3 = local3.alternativa3d::next; local3.x = this.attenuationEnd; local3.y = this.attenuationEnd; local3.z = -this.attenuationEnd; local3 = local3.alternativa3d::next; local3.x = -this.attenuationEnd; local3.y = -this.attenuationEnd; local3.z = this.attenuationEnd; local3 = local3.alternativa3d::next; local3.x = this.attenuationEnd; local3.y = -this.attenuationEnd; local3.z = this.attenuationEnd; local3 = local3.alternativa3d::next; local3.x = -this.attenuationEnd; local3.y = this.attenuationEnd; local3.z = this.attenuationEnd; local3 = local3.alternativa3d::next; local3.x = this.attenuationEnd; local3.y = this.attenuationEnd; local3.z = this.attenuationEnd; local3 = alternativa3d::boundVertexList; while(local3 != null) { local3.alternativa3d::cameraX = param2.alternativa3d::ma * local3.x + param2.alternativa3d::mb * local3.y + param2.alternativa3d::mc * local3.z + param2.alternativa3d::md; local3.alternativa3d::cameraY = param2.alternativa3d::me * local3.x + param2.alternativa3d::mf * local3.y + param2.alternativa3d::mg * local3.z + param2.alternativa3d::mh; local3.alternativa3d::cameraZ = param2.alternativa3d::mi * local3.x + param2.alternativa3d::mj * local3.y + param2.alternativa3d::mk * local3.z + param2.alternativa3d::ml; if(local3.alternativa3d::cameraX < param1.boundMinX) { param1.boundMinX = local3.alternativa3d::cameraX; } if(local3.alternativa3d::cameraX > param1.boundMaxX) { param1.boundMaxX = local3.alternativa3d::cameraX; } if(local3.alternativa3d::cameraY < param1.boundMinY) { param1.boundMinY = local3.alternativa3d::cameraY; } if(local3.alternativa3d::cameraY > param1.boundMaxY) { param1.boundMaxY = local3.alternativa3d::cameraY; } if(local3.alternativa3d::cameraZ < param1.boundMinZ) { param1.boundMinZ = local3.alternativa3d::cameraZ; } if(local3.alternativa3d::cameraZ > param1.boundMaxZ) { param1.boundMaxZ = local3.alternativa3d::cameraZ; } local3 = local3.alternativa3d::next; } } else { if(-this.attenuationEnd < param1.boundMinX) { param1.boundMinX = -this.attenuationEnd; } if(this.attenuationEnd > param1.boundMaxX) { param1.boundMaxX = this.attenuationEnd; } if(-this.attenuationEnd < param1.boundMinY) { param1.boundMinY = -this.attenuationEnd; } if(this.attenuationEnd > param1.boundMaxY) { param1.boundMaxY = this.attenuationEnd; } if(-this.attenuationEnd < param1.boundMinZ) { param1.boundMinZ = -this.attenuationEnd; } if(this.attenuationEnd > param1.boundMaxZ) { param1.boundMaxZ = this.attenuationEnd; } } } } }
package alternativa.tanks.view.forms { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.view.forms.ChangeUidForm_changeUidBitmapDataClass.png")] public class ChangeUidForm_changeUidBitmapDataClass extends BitmapAsset { public function ChangeUidForm_changeUidBitmapDataClass() { super(); } } }
package controls.buttons.skins { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/controls.buttons.skins.GoldBigButtonSkin_rightOverClass.png")] public class GoldBigButtonSkin_rightOverClass extends BitmapAsset { public function GoldBigButtonSkin_rightOverClass() { super(); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.battle.activator { import alternativa.types.Long; import flash.events.IEventDispatcher; import projects.tanks.client.tanksservices.types.battle.BattleInfoData; public interface IBattleLinkActivatorService extends IEventDispatcher { function activateBattle(param1:BattleInfoData) : void; function activateBattleById(param1:Long) : void; function navigateToBattleUrl(param1:BattleInfoData) : void; function navigate(param1:BattleInfoData) : void; function navigateToBattleUrlWithoutAvailableBattle(param1:BattleInfoData) : void; function isAlive(param1:Long) : void; function alive(param1:Long) : void; function dead(param1:Long) : void; } }
package alternativa.models.coloring { import alternativa.object.ClientObject; import alternativa.resource.ImageResource; public interface IColoring { function getResource(param1:ClientObject) : ImageResource; } }
package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; use namespace alternativa3d; public class Vertex { alternativa3d static var collector:Vertex; public var x:Number = 0; public var y:Number = 0; public var z:Number = 0; public var u:Number = 0; public var v:Number = 0; public var normalX:Number; public var normalY:Number; public var normalZ:Number; alternativa3d var cameraX:Number; alternativa3d var cameraY:Number; alternativa3d var cameraZ:Number; alternativa3d var offset:Number = 1; alternativa3d var transformId:int = 0; alternativa3d var drawId:int = 0; alternativa3d var index:int; alternativa3d var next:Vertex; alternativa3d var value:Vertex; public var id:Object; public function Vertex() { super(); } alternativa3d static function createList(param1:int) : Vertex { var local3:Vertex = null; var local2:Vertex = alternativa3d::collector; if(local2 != null) { local3 = local2; while(param1 > 1) { local3.alternativa3d::transformId = 0; local3.alternativa3d::drawId = 0; if(local3.alternativa3d::next == null) { while(param1 > 1) { local3.alternativa3d::next = new Vertex(); local3 = local3.alternativa3d::next; param1--; } break; } local3 = local3.alternativa3d::next; param1--; } alternativa3d::collector = local3.alternativa3d::next; local3.alternativa3d::transformId = 0; local3.alternativa3d::drawId = 0; local3.alternativa3d::next = null; } else { local2 = new Vertex(); local3 = local2; while(param1 > 1) { local3.alternativa3d::next = new Vertex(); local3 = local3.alternativa3d::next; param1--; } } return local2; } alternativa3d function create() : Vertex { var local1:Vertex = null; if(alternativa3d::collector != null) { local1 = alternativa3d::collector; alternativa3d::collector = local1.alternativa3d::next; local1.alternativa3d::next = null; local1.alternativa3d::transformId = 0; local1.alternativa3d::drawId = 0; return local1; } return new Vertex(); } public function toString() : String { return "[Vertex " + this.id + " " + this.x.toFixed(2) + ", " + this.y.toFixed(2) + ", " + this.z.toFixed(2) + ", " + this.u.toFixed(3) + ", " + this.v.toFixed(3) + "]"; } } }
package forms { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.osgi.service.storage.IStorageService; import alternativa.tanks.locale.constants.TextConst; import alternativa.tanks.model.news.NewsItem; import alternativa.tanks.model.news.NewsOutput; import assets.scroller.color.ScrollThumbSkinGreen; import assets.scroller.color.ScrollTrackGreen; import controls.DefaultButton; import controls.Label; import controls.TankInput; import controls.TankWindow; import controls.TankWindowHeader; import controls.TankWindowInner; import controls.chat.ChatOutput; import controls.chat.ChatOutputLine; import fl.events.ScrollEvent; import flash.display.Sprite; import flash.events.Event; import flash.events.KeyboardEvent; import flash.events.MouseEvent; import flash.events.TimerEvent; import flash.net.SharedObject; import flash.text.TextField; import flash.text.TextFormat; import flash.ui.Keyboard; import flash.utils.Timer; import forms.buttons.NewsButton; import forms.events.ChatFormEvent; import forms.events.LoginFormEvent; public class LobbyChat extends Sprite { public static var so:SharedObject; private var bg:Sprite; private var mainBackground:TankWindow; private var inner:TankWindowInner; private var inputControl:TankInput; private var input:TextField; private var format:TextFormat; private var chatSource:Sprite; private var addressed:Boolean; private var oldTarget:ChatOutputLine; private var _rangTo:int; private var _nameTo:String; private var _oldNameTo:String; private var oldSelect:Boolean = true; private var delayTimer:Timer; private var lang:String; private var localeService:ILocaleService; private var CtrlPressed:Boolean = false; private var htmlFlag:Boolean = false; public var output:ChatOutput; public var sendButton:DefaultButton; private var newsButton:NewsButton; private var chatButton:DefaultButton; private var newsOutput:NewsOutput; private var _selfName:String; private var sharpLinks:Array; public function LobbyChat() { this.bg = new Sprite(); this.mainBackground = new TankWindow(); this.inner = new TankWindowInner(100,100,TankWindowInner.GREEN); this.inputControl = new TankInput(); this.chatSource = new Sprite(); this.output = new ChatOutput(); this.sendButton = new DefaultButton(); super(); addEventListener(Event.ADDED_TO_STAGE,this.ConfigUI); addEventListener(Event.ADDED_TO_STAGE,this.addResizeListener); addEventListener(Event.REMOVED_FROM_STAGE,this.removeResizeListener); } public static function get blockList() : Array { var list:Array = null; if(so == null) { so = IStorageService(Main.osgi.getService(IStorageService)).getStorage(); } list = so.data.blocklist; if(list == null) { list = new Array(); } return list; } public static function blockUser(name:String) : Boolean { var list:Array = null; var index:int = -1; so = IStorageService(Main.osgi.getService(IStorageService)).getStorage(); list = so.data.blocklist; if(list == null) { list = new Array(); } index = list.indexOf(name); if(index > -1) { list.splice(index,1); } list.push(name); so.data.blocklist = list; so.flush(); return true; } public static function unblockUser(name:String) : Boolean { var list:Array = null; var index:int = -1; so = IStorageService(Main.osgi.getService(IStorageService)).getStorage(); list = so.data.blocklist; if(list == null) { list = new Array(); } index = list.indexOf(name); if(index > -1) { list.splice(index,1); } so.data.blocklist = list; so.flush(); return true; } public static function unblockall() : Boolean { so = IStorageService(Main.osgi.getService(IStorageService)).getStorage(); so.data.blocklist = new Array(); so.flush(); return true; } public static function blocked(name:String) : Boolean { var list:Array = null; var index:int = 0; so = IStorageService(Main.osgi.getService(IStorageService)).getStorage(); list = so.data.blocklist; if(list == null) { list = new Array(); so.data.blocklist = list; so.flush(); } index = list.indexOf(name); return index > -1; } public function set selfName(name:String) : void { this._selfName = name; this.output.selfName = this._selfName; } public function get inputText() : String { return this.input.text; } public function set inputText(text:String) : void { this.input.text = text; } private function addResizeListener(e:Event) : void { stage.addEventListener(Event.RESIZE,this.onResize); this.onResize(null); } private function removeResizeListener(e:Event) : void { stage.removeEventListener(Event.RESIZE,this.onResize); } public function ConfigUI(e:Event) : void { this.localeService = Main.osgi.getService(ILocaleService) as ILocaleService; this.input = this.inputControl.textField; this.input.maxChars = 299; removeEventListener(Event.ADDED_TO_STAGE,this.ConfigUI); addChild(this.mainBackground); addChild(this.inner); this.inner.x = 11; this.inner.y = 45; this.inner.showBlink = true; this.lang = this.localeService.getText(TextConst.GUI_LANG); this.mainBackground.headerLang = this.lang; this.mainBackground.header = TankWindowHeader.CHAT; this.input.addEventListener(KeyboardEvent.KEY_DOWN,this.sendMessageKey); this.input.addEventListener(KeyboardEvent.KEY_UP,this.clearCtrlPressed); this.sendButton.addEventListener(MouseEvent.CLICK,this.sendMessage); addChild(this.inputControl); addChild(this.output); this.output.move(15,this.inner.y + 4); this.confScroll(); this.output.addEventListener(MouseEvent.CLICK,this.addUserName); this.output.addEventListener(ScrollEvent.SCROLL,this.onScroll); this.inputControl.addEventListener(LoginFormEvent.TEXT_CHANGED,this.checkName); this.sendButton.x = 272; this.sendButton.width = 80; this.sendButton.label = this.localeService.getText(TextConst.CHAT_PANEL_BUTTON_SEND); addChild(this.sendButton); this.prepareSharpLink(); this.newsButton = new NewsButton(this.localeService.getText(TextConst.LOBBY_NEWS_BUTTON)); addChild(this.newsButton); this.newsButton.y = 11; this.newsButton.x = 11; this.chatButton = new DefaultButton(); this.chatButton.label = this.localeService.getText(TextConst.LOBBY_CHAT_BUTTON); addChild(this.chatButton); this.chatButton.x = this.newsButton.width + this.newsButton.x + 5; this.chatButton.y = 11; this.newsButton.addEventListener(MouseEvent.CLICK,this.onNewsButtonClick); this.chatButton.addEventListener(MouseEvent.CLICK,this.onChatButtonClick); this.newsOutput = new NewsOutput(); this.newsOutput.x = 15; this.newsOutput.y = this.inner.y + 4; this.newsOutput.visible = false; addChild(this.newsOutput); this.onChatButtonClick(null); } public function initNews(news:Array) : void { var prevItem:NewsItem = null; var item:NewsItem = null; for each(item in news) { if(prevItem == null) { this.newsOutput.addItem(item); prevItem = item; } else { item.y = prevItem.y + prevItem.height + 10; this.newsOutput.addItem(item); prevItem = item; } } } private function onNewsButtonClick(e:MouseEvent) : void { this.newsButton.enable = false; this.chatButton.enable = true; this.output.visible = false; this.sendButton.visible = false; this.inputControl.visible = false; this.newsOutput.visible = true; this.onResize(null); } private function onChatButtonClick(e:MouseEvent) : void { this.sendButton.visible = true; this.onResize(null); this.newsButton.enable = true; this.chatButton.enable = false; this.output.visible = true; this.newsOutput.visible = false; this.inputControl.visible = true; } private function clearCtrlPressed(event:KeyboardEvent) : void { this.CtrlPressed = false; } private function onScroll(e:ScrollEvent) : void { this.output.deltaWidth = 18; this.output.setSize(this.inner.width + 1,this.inner.height - 8); this.output.removeEventListener(ScrollEvent.SCROLL,this.onScroll); this.output.firstFill = false; } private function checkName(e:Event) : void { var pattern:RegExp = /^[a-z0-9](([\.\-\w](?!(-|_|\.){2,}))*[a-z0-9])\: /i; var result:int = this.input.text.search(pattern); var str:String = this.input.text.slice(0,this.input.text.indexOf(": ")); if(result == 0) { if(!this.addressed || str != this._oldNameTo) { this._oldNameTo = this._nameTo = str; this.addressed = true; this.output.selectUser(this._nameTo); } } else if(this.addressed) { this.addressed = false; this.output.selectUser(""); } } private function confScroll() : void { this.output.setStyle("downArrowUpSkin",ScrollArrowDownGreen); this.output.setStyle("downArrowDownSkin",ScrollArrowDownGreen); this.output.setStyle("downArrowOverSkin",ScrollArrowDownGreen); this.output.setStyle("downArrowDisabledSkin",ScrollArrowDownGreen); this.output.setStyle("upArrowUpSkin",ScrollArrowUpGreen); this.output.setStyle("upArrowDownSkin",ScrollArrowUpGreen); this.output.setStyle("upArrowOverSkin",ScrollArrowUpGreen); this.output.setStyle("upArrowDisabledSkin",ScrollArrowUpGreen); this.output.setStyle("trackUpSkin",ScrollTrackGreen); this.output.setStyle("trackDownSkin",ScrollTrackGreen); this.output.setStyle("trackOverSkin",ScrollTrackGreen); this.output.setStyle("trackDisabledSkin",ScrollTrackGreen); this.output.setStyle("thumbUpSkin",ScrollThumbSkinGreen); this.output.setStyle("thumbDownSkin",ScrollThumbSkinGreen); this.output.setStyle("thumbOverSkin",ScrollThumbSkinGreen); this.output.setStyle("thumbDisabledSkin",ScrollThumbSkinGreen); } private function addUserName(e:MouseEvent) : void { var str:String = null; var strName:String = null; var target:Label = null; var Line:ChatOutputLine = null; if(e.target is Label) { target = e.target as Label; Line = target.parent as ChatOutputLine; if(target == Line._nameFrom || target == Line._nameTo) { strName = target == Line._nameFrom ? Line._userName : Line._userNameTo; this.output.selectUser(strName); str = this.input.text; if(str.indexOf(": ") > 0) { str = strName + ": " + str.slice(str.indexOf(": ") + 2,str.length); } else { str = strName + ": " + str.slice(str.indexOf(": ") + 1,str.length); } this.input.text = str; this.input.setSelection(this.input.length,this.input.length); this.addressed = true; this._nameTo = strName; } if(this.CtrlPressed) { str = "/ban " + strName + " "; this.input.text = str; this.input.setSelection(this.input.length,this.input.length); this.addressed = true; this._nameTo = strName; } } } private function sendMessageKey(e:KeyboardEvent) : void { if(e.keyCode == Keyboard.ENTER) { this.send(); } this.CtrlPressed = e.ctrlKey && e.shiftKey; } private function sendMessage(e:MouseEvent) : void { this.send(); } private function systemMessage(str:String) : Boolean { var pattern:RegExp = /(can write to chat again|was banned for a)/; return str.search(pattern) > -1; } private function send() : void { var command:String = null; var commandName:String = null; var msg:String = null; var htmlFlag:Boolean = false; var list:Array = null; var i:int = 0; var str:String = this.input.text; var str1:String = str; var pattern1:RegExp = /(^(\/block|\/unblock) ([a-z0-9](([\.\-\w](?!(-|_|\.){2,}))*[a-z0-9])))$/i; var pattern2:RegExp = /^(\/unblockall|\/blocklist)$/; var result1:int = str1.search(pattern1); var result2:int = str1.search(pattern2); if(result1 > -1) { command = str1.replace(pattern1,"$2"); commandName = str1.replace(pattern1,"$3"); if(command == "/block") { LobbyChat.blockUser(commandName); msg = TextConst.setVarsInString(this.localeService.getText(TextConst.CHAT_PANEL_COMMAND_BLOCK,commandName)); this.addMessage("System",0,0,msg,0,0,"",true); } else { LobbyChat.unblockUser(commandName); msg = TextConst.setVarsInString(this.localeService.getText(TextConst.CHAT_PANEL_COMMAND_UNBLOCK,commandName)); this.addMessage("System",0,0,msg,0,0,"",true); } this.input.text = command + " "; return; } if(result2 > -1) { command = str1.replace(pattern1,"$1"); if(command == "/unblockall") { LobbyChat.unblockall(); msg = this.localeService.getText(TextConst.CHAT_PANEL_COMMAND_UNBLOCK_ALL); this.addMessage("System",0,0,msg,0,0,"",true); } else { list = LobbyChat.blockList; if(list.length > 0) { msg = this.localeService.getText(TextConst.CHAT_PANEL_COMMAND_BLOCK_LIST); for(str = "\n" + msg + "\n—————————————\n"; i < list.length; ) { str += String(i + 1) + ": " + list[i] + "\n"; i++; } } else { str = "..."; } this.addMessage("System",0,0,str,0,0,"",true); } htmlFlag = false; this.input.text = ""; return; } if(str != "") { if(this.addressed) { str = str.slice(str.indexOf(": ") + 2,str.length); this.input.text = str; dispatchEvent(new ChatFormEvent(this._rangTo,this._nameTo)); this.input.text = this._nameTo + ": "; } else { dispatchEvent(new ChatFormEvent()); this.input.text = ""; } this.input.setSelection(0,0); this.input.setSelection(this.input.length,this.input.length); this.output.scrollDown(); } } private function onResize(e:Event) : void { var minWidth:int = int(Math.max(1000,stage.stageWidth)); this.mainBackground.width = minWidth / 3; this.mainBackground.height = Math.max(stage.stageHeight - 60,530); x = 0; y = 60; this.inner.width = this.mainBackground.width - 22; this.inner.height = !!this.sendButton.visible ? Number(this.mainBackground.height - 90) : Number(this.mainBackground.height - 57); this.sendButton.y = this.mainBackground.height - 42; this.sendButton.x = this.mainBackground.width - this.sendButton.width - 11; this.inputControl.x = 11; this.inputControl.y = this.mainBackground.height - 42; this.inputControl.width = this.sendButton.x - 16; this.output.setSize(this.inner.width + 1,this.inner.height - 8); this.newsOutput.width = this.inner.width + 1; this.newsOutput.height = this.inner.height - 8; if(this.delayTimer == null) { this.delayTimer = new Timer(200,1); this.delayTimer.addEventListener(TimerEvent.TIMER,this.correctResize); } this.delayTimer.reset(); this.delayTimer.start(); } private function correctResize(e:TimerEvent = null) : void { this.output.setSize(this.inner.width + 1,this.inner.height - 8); this.delayTimer.removeEventListener(TimerEvent.TIMER,this.correctResize); this.delayTimer = null; } private function prepareSharpLink() : void { this.sharpLinks = [this.localeService.getText(TextConst.CHAT_SHARP_FAQ).split("|"),this.localeService.getText(TextConst.CHAT_SHARP_RULES).split("|"),this.localeService.getText(TextConst.CHAT_SHARP_PLANS).split("|"),this.localeService.getText(TextConst.CHAT_SHARP_RANKS).split("|"),this.localeService.getText(TextConst.CHAT_SHARP_CLANS).split("|"),this.localeService.getText(TextConst.CHAT_SHARP_FORUM).split("|"),this.localeService.getText(TextConst.CHAT_SHARP_UPDATES).split("|"),this.localeService.getText(TextConst.CHAT_SHARP_FEEDBACK).split("|"),this.localeService.getText(TextConst.CHAT_SHARP_THEFT).split("|")]; for(var i:int = 0; i < this.sharpLinks.length; i++) { this.sharpLinks[i][0] = new RegExp("#" + this.sharpLinks[i][0],"gi"); } } private function replaceSharpLinks(message:String) : String { var currentPattern:RegExp = null; var result:int = 0; var text:String = message; for(var i:int = 0; i < this.sharpLinks.length; i++) { currentPattern = this.sharpLinks[i][0]; result = text.search(currentPattern); if(result > -1) { text = text.replace(currentPattern,"<u><a href=\'" + this.sharpLinks[i][2] + "\' target=\'_blank\'>" + this.sharpLinks[i][1] + "</a></u>"); this.htmlFlag = true; } } return text; } private function maskMyLinks(text:String) : String { var result:int = 0; var forumLinkPattern:RegExp = /((http:\/\/)?(forum.tankionline.com)([-a-zA-Z0-9@:%_\+.~#?&\/]+)?(;jsessionid=([A-F0-9]+))?)/g; var blogLinkPattern:RegExp = /((http:\/\/)?(blog.tankionline.com)((\/[-a-zA-Z0-9@:%_\+.~#?&]+){1,3}([-a-zA-Z0-9@:%_\+.~#?&\/]+)))/g; result = text.search(forumLinkPattern); if(result > -1) { text = text.replace(forumLinkPattern,"$2forumlink$4"); this.htmlFlag = true; } result = text.search(blogLinkPattern); if(result > -1) { text = text.replace(blogLinkPattern,"$2bloglink$4"); this.htmlFlag = true; } return text; } public function addMessage(username:String, rang:int, chatPermissions:int, text:String, rangTo:int = 0, chatPermissionsTo:int = 0, nameTo:String = "", system:Boolean = false, _systemColor:uint = 8454016) : void { var htmlPattern:RegExp = /(<)(.*?)(>)/gi; var externalLink2:RegExp = /((^|\s)(http(s)?:\/\/)?(www\.)?((([a-z0-9]+)\.){1,4})([a-z]{2,10})(\/[a-z0-9\.\%\-\/\?=\:&]*)?(#([a-z0-9\.\%\-\/\?=\:&]*))?($|\s))/gi; var mailLink:RegExp = /((mailto: ?)?(([\w\-\.]+)@((?:[\w]+\.)+)([a-zA-Z]{2,4})))/gi; var forumLinkPattern:RegExp = /((http:\/\/)?(forumlink)([-a-zA-Z0-9@:%_\+.~#?&\/]+)?(;jsessionid=([A-F0-9]+))?)/g; var blogLinkPattern:RegExp = /((http:\/\/)?(bloglink)((\/[-a-zA-Z0-9@:%_\+.~#?&]+){1,3}([-a-zA-Z0-9@:%_\+.~#?&\/]+)))/g; var battlePattern:RegExp = /#battle\d+@[\w\W]+@#\d+/gi; var result:int = 0; this.htmlFlag = false; result = text.search(htmlPattern); if(result > -1) { text = text.replace(htmlPattern,"&lt;$2&gt;"); this.htmlFlag = true; } text = this.maskMyLinks(text); result = text.search(externalLink2); if(result > -1) { text = text.replace(externalLink2," <u><a href=\'event:http$4://$6$9$10$11\'>$&</a></u> "); this.htmlFlag = true; } result = text.search(mailLink); if(result > -1) { text = text.replace(mailLink," <u><a href=\'mailto:$3\'>$3</a></u> "); this.htmlFlag = true; } result = text.search(battlePattern); if(result > -1) { text = text.replace(battlePattern,"<u><a href=\'event:" + text + "\'>" + text.split("@")[1] + "</a></u>"); this.htmlFlag = true; } result = text.search(forumLinkPattern); if(result > -1) { text = text.replace(forumLinkPattern,"<u><a href=\'http://forum.tankionline.com$4\' target=\'_blank\'>http://forum...$4</a></u>"); this.htmlFlag = true; } result = text.search(blogLinkPattern); if(result > -1) { text = text.replace(blogLinkPattern,"<u><a href=\'http://blog.tankionline.com$4\' target=\'_blank\'>http://blog/...$6</a></u>"); this.htmlFlag = true; } text = this.replaceSharpLinks(text); if(!blocked(username)) { this.output.addLine(rang,chatPermissions,username,text,rangTo,chatPermissionsTo,nameTo,system,this.htmlFlag,_systemColor); if(this.addressed) { this.output.selectUser(this._nameTo); } } } public function hide() : void { } public function cleanOutUsersMessages(uid:String) : void { this.output.cleanOutUsersMessages(uid); } public function cleanOutMessages(msg:String) : void { this.output.cleanOutMessages(msg); } } }
package assets.button { import flash.display.BitmapData; [Embed(source="/_assets/assets.button.button_red_OVER_LEFT.png")] public dynamic class button_red_OVER_LEFT extends BitmapData { public function button_red_OVER_LEFT(param1:int = 7, param2:int = 30) { super(param1,param2); } } }
package alternativa.tanks.view.icons { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.view.icons.BattleParamsBattleInfoIcons_cpClass.png")] public class BattleParamsBattleInfoIcons_cpClass extends BitmapAsset { public function BattleParamsBattleInfoIcons_cpClass() { super(); } } }
package alternativa.tanks.model.garage.resistance { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.model.garage.resistance.ResistancesIcons_bitmapPlasmaResistance.png")] public class ResistancesIcons_bitmapPlasmaResistance extends BitmapAsset { public function ResistancesIcons_bitmapPlasmaResistance() { super(); } } }
package projects.tanks.clients.fp10.models.tankspartnersmodel.partners.kongregate { import alternativa.tanks.gui.payment.forms.PayModeForm; import alternativa.tanks.gui.shop.forms.GoToUrlForm; import alternativa.tanks.model.payment.category.PayModeView; import alternativa.tanks.model.payment.modes.asyncurl.AsyncUrlPayMode; import alternativa.tanks.model.payment.paymentstate.PaymentWindowService; import platform.client.fp10.core.model.ObjectLoadListener; import platform.client.fp10.core.model.ObjectUnloadListener; import projects.tanks.client.partners.impl.kongregate.IKongregatePaymentModelBase; import projects.tanks.client.partners.impl.kongregate.KongregatePaymentModelBase; [ModelInfo] public class KongregatePaymentModel extends KongregatePaymentModelBase implements IKongregatePaymentModelBase, PayModeView, AsyncUrlPayMode, ObjectLoadListener, ObjectUnloadListener { [Inject] public static var paymentWindowService:PaymentWindowService; public function KongregatePaymentModel() { super(); } public function requestAsyncUrl() : void { server.getPaymentTransaction(paymentWindowService.getChosenItem().id); } public function receivePaymentTransaction(param1:String) : void { KongregateInstanceWrapper.kongregate.mtx.purchaseItemsRemote(param1,this.onPurchaseResult); paymentWindowService.switchToBeginning(); } private function onPurchaseResult(param1:Object) : void { } public function getView() : PayModeForm { return PayModeForm(getData(PayModeForm)); } public function objectLoaded() : void { putData(PayModeForm,new GoToUrlForm(object)); } public function objectUnloaded() : void { this.getView().destroy(); clearData(PayModeForm); } } }
package alternativa.tanks.model.payment.androidspecialoffer { import projects.tanks.client.panel.model.shop.androidspecialoffer.offers.IMediumTimeOfferModelBase; import projects.tanks.client.panel.model.shop.androidspecialoffer.offers.MediumTimeOfferModelBase; [ModelInfo] public class MediumTimeOfferModel extends MediumTimeOfferModelBase implements IMediumTimeOfferModelBase { public function MediumTimeOfferModel() { super(); } } }
package alternativa.tanks.service.payment { import flash.events.IEventDispatcher; import projects.tanks.client.panel.model.payment.CrystalsPaymentCC; public interface IPaymentPackagesService extends IEventDispatcher { function getPackageCrystals(param1:int, param2:String) : int; function getBonusCrystals(param1:int, param2:String) : int; function getPrice(param1:int, param2:String) : Number; function getPremiumDuration(param1:int, param2:String) : int; function hasPremium(param1:int, param2:String) : Boolean; function numPackages(param1:String) : int; function hasPackagesInCurrency(param1:String) : Boolean; function getPackagePrice(param1:String, param2:int) : Number; function get calculatorEnabled() : Boolean; function init(param1:CrystalsPaymentCC) : void; function isInitialized() : Boolean; } }
package alternativa.tanks.models.mapbonuslight { import flash.geom.ColorTransform; [ModelInterface] public interface IMapBonusLight { function getBonusLightIntensity() : Number; function getHWBonusColorAdjust() : ColorTransform; function getSoftBonusColorAdjust() : ColorTransform; } }
package alternativa.tanks.model.item.container.gui.opening { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.model.item.container.gui.opening.ContainerOpenDialog_Highlight.png")] public class ContainerOpenDialog_Highlight extends BitmapAsset { public function ContainerOpenDialog_Highlight() { super(); } } }
package _codec.projects.tanks.client.clans.notifier { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.clans.notifier.ClanNotifierData; public class VectorCodecClanNotifierDataLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecClanNotifierDataLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ClanNotifierData,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.<ClanNotifierData> = new Vector.<ClanNotifierData>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ClanNotifierData(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ClanNotifierData = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ClanNotifierData> = Vector.<ClanNotifierData>(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 { public namespace alternativa3d = "http://alternativaplatform.com/en/alternativa3d"; }
package alternativa.tanks.models.battle.battlefield { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.ViewportBorder_bmpClassCorner2.png")] public class ViewportBorder_bmpClassCorner2 extends BitmapAsset { public function ViewportBorder_bmpClassCorner2() { super(); } } }
package alternativa.tanks.models.battle.gui.inventory { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.gui.inventory.HudInventoryIcon_firstAidWhiteIconClass.png")] public class HudInventoryIcon_firstAidWhiteIconClass extends BitmapAsset { public function HudInventoryIcon_firstAidWhiteIconClass() { super(); } } }
package _codec.projects.tanks.client.battleservice.model.statistics.team { 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.battleservice.model.statistics.team.StatisticsTeamCC; public class VectorCodecStatisticsTeamCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecStatisticsTeamCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(StatisticsTeamCC,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.<StatisticsTeamCC> = new Vector.<StatisticsTeamCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = StatisticsTeamCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:StatisticsTeamCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<StatisticsTeamCC> = Vector.<StatisticsTeamCC>(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.news { import mx.core.BitmapAsset; [ExcludeClass] public class NewsIcons_helm_space extends BitmapAsset { public function NewsIcons_helm_space() { super(); } } }
package forms.battlelist { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.locale.constants.TextConst; import assets.icons.play_icons_BLUE; import assets.icons.play_icons_RED; import assets.scroller.color.ScrollThumbSkinBlue; import assets.scroller.color.ScrollThumbSkinRed; import assets.scroller.color.ScrollTrackBlue; import assets.scroller.color.ScrollTrackRed; import controls.Label; import controls.TankWindow; import controls.TankWindowHeader; import controls.TankWindowInner; import controls.rangicons.RangIconSmall; import fl.controls.List; import fl.data.DataProvider; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.events.TimerEvent; import flash.filters.GlowFilter; import flash.text.AntiAliasType; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; import flash.utils.Timer; import forms.events.BattleListEvent; public class ViewTDM extends Sprite { public static const RED_TEAM:Boolean = true; public static const BLUE_TEAM:Boolean = false; private var _gameName:String; private var _clanName:String; private var _sizeTeam:int; private var _minRang:int; private var _maxRang:int; private var _img:BitmapData; private var _inviteOnly:Boolean; private var _lifeTime:Number; private var _currentTime:Number; private var _killsLimit:int; private var _autoBalance:Boolean; private var _friendlyFire:Boolean; private var _available:Boolean; private var _ctf:Boolean; private var mainBackground:TankWindow; private var listInnerRed:TankWindowInner; private var listInnerBlue:TankWindowInner; private var format:TextFormat; private var fightButtonRed:BattleBigButton; private var fightButtonBlue:BattleBigButton; private var fightRed:play_icons_RED; private var fightBlue:play_icons_BLUE; private var countRed:int = 0; private var countBlue:int = 0; public var info:BattleInfo; public var listRed:List; public var listBlue:List; private var dpRed:DataProvider; private var dpBlue:DataProvider; private var redScore:Label; private var blueScore:Label; private var score:MovieClip; private var firstStart:Boolean = true; private var delayTimer:Timer; private var noNameText:String; private var _redScore:int; private var _blueScore:int; private var _haveSubscribe:Boolean; private var noSubscribeAlert:NoSubScribeAlert; private var _payBattle:Boolean = false; private var _fullCash:Boolean = false; private var _userAlreadyPaid:Boolean = false; public function ViewTDM(haveSubscribe:Boolean) { var w:Label = null; this.mainBackground = new TankWindow(); this.listInnerRed = new TankWindowInner(100,100,TankWindowInner.RED); this.listInnerBlue = new TankWindowInner(100,100,TankWindowInner.BLUE); this.format = new TextFormat("MyriadPro",13); this.fightButtonRed = new BattleBigButton(); this.fightButtonBlue = new BattleBigButton(); this.fightRed = new play_icons_RED(0,0); this.fightBlue = new play_icons_BLUE(0,0); this.info = new BattleInfo(); this.listRed = new List(); this.listBlue = new List(); this.dpRed = new DataProvider(); this.dpBlue = new DataProvider(); this.redScore = new Label(); this.blueScore = new Label(); this.score = new MovieClip(); this.noSubscribeAlert = new NoSubScribeAlert(); super(); addEventListener(Event.ADDED_TO_STAGE,this.ConfigUI); addEventListener(Event.ADDED_TO_STAGE,this.addResizeListener); addEventListener(Event.REMOVED_FROM_STAGE,this.removeResizeListener); this._haveSubscribe = haveSubscribe; w = new Label(); this.redScore.size = 22; this.redScore.color = TankWindowInner.RED; this.redScore.x = -6; this.redScore.autoSize = TextFieldAutoSize.RIGHT; this.blueScore.size = 22; this.blueScore.color = TankWindowInner.BLUE; this.blueScore.x = 5; w.size = 22; w.text = ":"; w.x = -3; w.y = -2; this.score.addChild(this.redScore); this.score.addChild(this.blueScore); this.score.addChild(w); this.score.filters = [new GlowFilter(13434828,0.5)]; } public function get haveSubscribe() : Boolean { return this._haveSubscribe; } public function set haveSubscribe(value:Boolean) : void { this._haveSubscribe = value; } private function addResizeListener(e:Event) : void { stage.addEventListener(Event.RESIZE,this.onResize); this.onResize(null); } private function removeResizeListener(e:Event) : void { stage.removeEventListener(Event.RESIZE,this.onResize); } private function ConfigUI(e:Event) : void { var localeService:ILocaleService = Main.osgi.getService(ILocaleService) as ILocaleService; removeEventListener(Event.ADDED_TO_STAGE,this.ConfigUI); this.confScroll(); addChild(this.mainBackground); addChild(this.listInnerRed); addChild(this.listInnerBlue); addChild(this.fightButtonBlue); addChild(this.fightButtonRed); addChild(this.noSubscribeAlert); this.listInnerBlue.showBlink = this.listInnerRed.showBlink = true; this.mainBackground.headerLang = localeService.getText(TextConst.GUI_LANG); this.mainBackground.header = TankWindowHeader.BATTLE_INFO; this.fightButtonBlue.x = 322; this.fightButtonRed.x = 25; addChild(this.info); addChild(this.listRed); addChild(this.listBlue); this.listRed.rowHeight = 20; this.listRed.setStyle("cellRenderer",TeamListRenderer); this.listRed.dataProvider = this.dpRed; this.listBlue.rowHeight = 20; this.listBlue.setStyle("cellRenderer",TeamListRenderer); this.listBlue.dataProvider = this.dpBlue; this.fightButtonBlue.label = localeService.getText(TextConst.BATTLEINFO_PANEL_BUTTON_PLAY); this.fightButtonBlue.icon = this.fightBlue; this.fightButtonRed.label = localeService.getText(TextConst.BATTLEINFO_PANEL_BUTTON_PLAY); this.fightButtonRed.icon = this.fightRed; this.fightButtonBlue.width = this.fightButtonRed.width = 130; this.fightButtonBlue.addEventListener(MouseEvent.CLICK,this.goFight); this.fightButtonRed.addEventListener(MouseEvent.CLICK,this.goFight); this.noSubscribeAlert.visible = false; addChild(this.score); this.fillTeam(); } public function Init(gameName:String, clanName:String, sizeTeam:int, minRang:int, maxRang:int, scoreRed:int, scoreBlue:int, img:BitmapData = null, lifeTime:Number = 0, currentTime:int = 0, killsLimit:int = 0, inviteOnly:Boolean = false, autoBalance:Boolean = false, friendlyFire:Boolean = false, url:String = "", available:Boolean = true, ctf:Boolean = false, dom:Boolean = false, payBattle:Boolean = false, inventoryOn:Boolean = false, userAlreadyPaid:Boolean = false, fullCash:Boolean = false) : void { this.dpRed = new DataProvider(); this.dpBlue = new DataProvider(); this._payBattle = payBattle; this._fullCash = fullCash; this._userAlreadyPaid = userAlreadyPaid; this.listRed.dataProvider = this.dpRed; this.listBlue.dataProvider = this.dpBlue; this._gameName = gameName; this._clanName = clanName; this._sizeTeam = sizeTeam; this._minRang = minRang; this._maxRang = maxRang; this._img = img; this._ctf = ctf; this._lifeTime = lifeTime; this._currentTime = currentTime; this._killsLimit = killsLimit; this._inviteOnly = inviteOnly; this._autoBalance = autoBalance; this._friendlyFire = friendlyFire; this.countRed = this.countBlue = 0; this.info.setUp(this._gameName,this._clanName,this._minRang,this._maxRang,this._killsLimit,this._lifeTime,this._currentTime,this._img,this._inviteOnly,this._autoBalance,this._friendlyFire,url,this._ctf,dom,payBattle,inventoryOn); this.info.setPreview(this._img); this._available = available; this.fightButtonBlue.enable = this.fightButtonRed.enable = available && (this._fullCash || !this._payBattle || this._userAlreadyPaid || this._haveSubscribe); this.updateScore(RED_TEAM,scoreRed); this.updateScore(BLUE_TEAM,scoreBlue); this.fightButtonBlue.cost = this._haveSubscribe || !payBattle || this._userAlreadyPaid ? int(0) : int(5); this.fightButtonRed.cost = this._haveSubscribe || !payBattle || this._userAlreadyPaid ? int(0) : int(5); this.noSubscribeAlert.visible = !this._haveSubscribe && payBattle; this.fillTeam(); this.onResize(null); } public function updateScore(team:Boolean, score:int) : void { if(team && this.redScore != null && this.blueScore != null) { this.redScore.text = String(score); this._redScore = score; } else { this.blueScore.text = String(score); this._blueScore = score; } } public function dropKills() : void { var item:Object = null; var i:int = 0; for(i = 0; i < this.dpRed.length; i++) { item = this.dpRed.getItemAt(i); item.kills = 0; this.dpRed.replaceItemAt(item,i); item = this.dpBlue.getItemAt(i); item.kills = 0; this.dpBlue.replaceItemAt(item,i); } this.dpRed.sortOn(["kills","rang"],[Array.DESCENDING | Array.NUMERIC,Array.DESCENDING | Array.NUMERIC]); this.dpRed.invalidate(); this.dpBlue.sortOn(["kills","rang"],[Array.DESCENDING | Array.NUMERIC,Array.DESCENDING | Array.NUMERIC]); this.dpBlue.invalidate(); this.updateScore(RED_TEAM,0); this.updateScore(BLUE_TEAM,0); } public function updatePlayer(team:Boolean = true, id:Object = null, name:String = "", rang:int = 0, kills:int = 0) : void { var index:int = 0; var i:int = 0; var item:Object = new Object(); var data:Object = new Object(); var dp:DataProvider = team == RED_TEAM ? this.dpRed : this.dpBlue; item.playerName = name; item.style = team == RED_TEAM ? "red" : "blue"; data.rang = rang; item.kills = kills; item.id = id; item.rang = rang; index = id == null ? int(-1) : int(this.indexById(team,id)); if(index < 0) { dp.addItem(item); } else { dp.replaceItemAt(item,index); } this.countRed = 0; this.countBlue = 0; for(i = 0; i < this.dpRed.length; i++) { this.countRed += this.dpRed.getItemAt(i).id != null ? 1 : 0; } for(i = 0; i < this.dpBlue.length; i++) { this.countBlue += this.dpBlue.getItemAt(i).id != null ? 1 : 0; } this.dpRed.sortOn(["kills","rang"],[Array.DESCENDING | Array.NUMERIC,Array.DESCENDING | Array.NUMERIC]); this.dpBlue.sortOn(["kills","rang"],[Array.DESCENDING | Array.NUMERIC,Array.DESCENDING | Array.NUMERIC]); if(dp.length > this._sizeTeam && dp.getItemAt(dp.length - 1).id == null) { dp.removeItemAt(dp.length - 1); } this.fightButtonRed.enable = !!this._available ? Boolean(this.countRed <= this.countBlue || !this._autoBalance) : Boolean(false); this.fightButtonBlue.enable = !!this._available ? Boolean(this.countBlue <= this.countRed || !this._autoBalance) : Boolean(false); if(this.delayTimer == null) { this.delayTimer = new Timer(500,1); this.delayTimer.addEventListener(TimerEvent.TIMER,this.resizeList); } this.delayTimer.stop(); this.delayTimer.start(); } public function removePlayer(id:Object) : void { var index:int = 0; var i:int = 0; index = this.indexById(RED_TEAM,id); if(index >= 0) { this.dpRed.removeItemAt(index); this.updatePlayer(RED_TEAM); } index = this.indexById(BLUE_TEAM,id); if(index >= 0) { this.dpBlue.removeItemAt(index); this.updatePlayer(BLUE_TEAM); } this.countRed = 0; this.countBlue = 0; for(i = 0; i < this.dpRed.length; i++) { this.countRed += this.dpRed.getItemAt(i).id != null ? 1 : 0; } for(i = 0; i < this.dpBlue.length; i++) { this.countBlue += this.dpBlue.getItemAt(i).id != null ? 1 : 0; } this.fightButtonRed.enable = !!this._available ? Boolean(this.countRed - this.countBlue < 2) : Boolean(false); this.fightButtonBlue.enable = !!this._available ? Boolean(this.countBlue - this.countRed < 2) : Boolean(false); if(this.delayTimer == null) { this.delayTimer = new Timer(500,1); this.delayTimer.addEventListener(TimerEvent.TIMER,this.resizeList); } this.delayTimer.stop(); this.delayTimer.start(); } private function indexById(team:Boolean, id:Object) : int { var obj:Object = null; var dp:DataProvider = team == RED_TEAM ? this.dpRed : this.dpBlue; for(var i:int = 0; i < dp.length; i++) { obj = dp.getItemAt(i); if(obj.id == id) { return i; } } return -1; } private function goFight(e:MouseEvent) : void { var trgt:BattleBigButton = e.currentTarget as BattleBigButton; if(trgt == this.fightButtonBlue) { dispatchEvent(new BattleListEvent(BattleListEvent.START_TDM_BLUE)); } else { dispatchEvent(new BattleListEvent(BattleListEvent.START_TDM_RED)); } } private function onResize(e:Event) : void { var minWidth:int = int(Math.max(1000,stage.stageWidth)); this.mainBackground.width = minWidth / 3; this.mainBackground.height = Math.max(stage.stageHeight - 60,530); this.x = this.mainBackground.width * 2; this.y = 60; this.info.x = this.info.y = 11; this.info.width = this.mainBackground.width - 22; this.info.height = int(this.mainBackground.height * 0.4); this.listInnerRed.x = 11; this.listInnerRed.y = this.info.height + 14; this.listInnerRed.width = int(this.mainBackground.width - 25) / 2; this.listInnerRed.height = this.mainBackground.height - this.info.height - (this._haveSubscribe || !this._payBattle ? 80 : 164); this.listInnerBlue.x = 14 + this.listInnerRed.width; this.listInnerBlue.y = this.info.height + 14; this.listInnerBlue.width = this.mainBackground.width - this.listInnerRed.width - 22; this.listInnerBlue.height = this.mainBackground.height - this.info.height - (this._haveSubscribe || !this._payBattle ? 80 : 164); this.listRed.x = this.listInnerRed.x + 4; this.listRed.y = this.listInnerRed.y + 4; this.listRed.setSize(this.listInnerRed.width - (this.listRed.maxVerticalScrollPosition > 0 ? 1 : 4),this.listInnerRed.height - 8); this.listBlue.x = this.listInnerBlue.x + 4; this.listBlue.y = this.listInnerBlue.y + 4; this.listBlue.setSize(this.listInnerBlue.width - (this.listBlue.maxVerticalScrollPosition > 0 ? 1 : 4),this.listInnerBlue.height - 8); this.fightButtonBlue.width = this.fightButtonRed.width = Math.min(130,int((this.mainBackground.width - 110) / 2)); this.fightButtonRed.x = 11; this.fightButtonRed.y = this.mainBackground.height - 61; this.fightButtonBlue.x = this.mainBackground.width - this.fightButtonBlue.width - 11; this.fightButtonBlue.y = this.mainBackground.height - 61; this.score.x = this.listInnerBlue.x - 3; this.score.y = this.mainBackground.height - 51; this.noSubscribeAlert.x = 15; this.noSubscribeAlert.y = this.mainBackground.height - 85 - 55; this.noSubscribeAlert.width = this.mainBackground.width - 30; if(this.delayTimer == null) { this.delayTimer = new Timer(200,1); this.delayTimer.addEventListener(TimerEvent.TIMER,this.resizeList); } this.delayTimer.reset(); this.delayTimer.start(); } private function resizeList(e:TimerEvent) : void { this.info.width = this.mainBackground.width - 22; this.info.height = int(this.mainBackground.height * 0.4); this.listInnerRed.y = this.info.height + 14; this.listInnerRed.width = int(this.mainBackground.width - 25) / 2; this.listInnerRed.height = this.mainBackground.height - this.info.height - (this._haveSubscribe || !this._payBattle ? 80 : 164); this.listInnerBlue.x = 14 + this.listInnerRed.width; this.listInnerBlue.y = this.info.height + 14; this.listInnerBlue.width = this.mainBackground.width - this.listInnerRed.width - 22; this.listInnerBlue.height = this.mainBackground.height - this.info.height - (this._haveSubscribe || !this._payBattle ? 80 : 164); this.listRed.x = this.listInnerRed.x + 4; this.listRed.y = this.listInnerRed.y + 4; this.listRed.setSize(this.listInnerRed.width - (this.listRed.maxVerticalScrollPosition > 0 ? 1 : 4),this.listInnerRed.height - 8); this.dpRed.invalidate(); this.listBlue.x = this.listInnerBlue.x + 4; this.listBlue.y = this.listInnerBlue.y + 4; this.listBlue.setSize(this.listInnerBlue.width - (this.listBlue.maxVerticalScrollPosition > 0 ? 1 : 4),this.listInnerBlue.height - 8); this.dpBlue.invalidate(); this.fightButtonBlue.width = this.fightButtonRed.width = Math.min(130,int((this.mainBackground.width - 110) / 2)); this.fightButtonRed.y = this.mainBackground.height - 61; this.fightButtonBlue.x = this.mainBackground.width - this.fightButtonBlue.width - 11; this.fightButtonBlue.y = this.mainBackground.height - 61; this.score.x = this.listInnerBlue.x - 3; this.score.y = this.mainBackground.height - 51; this.noSubscribeAlert.x = 15; this.noSubscribeAlert.y = this.mainBackground.height - 85 - 55; this.noSubscribeAlert.width = this.mainBackground.width - 30; this.delayTimer.removeEventListener(TimerEvent.TIMER,this.resizeList); this.delayTimer = null; } public function fillTeam() : void { var i:int = 0; this.dpRed.removeAll(); this.dpBlue.removeAll(); for(i = 0; i < this._sizeTeam; i++) { this.updatePlayer(RED_TEAM); this.updatePlayer(BLUE_TEAM); } this.countBlue = 0; this.countRed = 0; } public function hide() : void { stage.removeEventListener(Event.RESIZE,this.onResize); this.fightButtonBlue.removeEventListener(MouseEvent.CLICK,this.goFight); this.fightButtonRed.removeEventListener(MouseEvent.CLICK,this.goFight); } private function myIcon(data:Object) : Bitmap { var icon:Bitmap = null; var name:TextField = null; var kills:TextField = null; var rangIcon:RangIconSmall = null; var bmp:BitmapData = new BitmapData(360,20,true,0); var cont:Sprite = new Sprite(); this.format.color = 16777215; name = new TextField(); name.embedFonts = true; name.antiAliasType = AntiAliasType.ADVANCED; name.sharpness = -200; name.defaultTextFormat = this.format; name.text = data.playerName == "" ? "none" : data.playerName; name.autoSize = TextFieldAutoSize.LEFT; name.height = 20; name.x = 26; name.y = 0; kills = new TextField(); kills.embedFonts = true; kills.antiAliasType = AntiAliasType.ADVANCED; kills.sharpness = -200; kills.defaultTextFormat = this.format; kills.text = data.kills == 0 ? "-" : String(data.kills); kills.autoSize = TextFieldAutoSize.CENTER; kills.height = 20; kills.width = 20; kills.x = 160; kills.y = 0; if(data.rang > 0) { rangIcon = new RangIconSmall(data.rang); rangIcon.x = 13; rangIcon.y = 4; cont.addChild(rangIcon); } cont.addChild(name); cont.addChild(kills); bmp.draw(cont,null,null,null,null,true); return new Bitmap(bmp); } private function confScroll() : void { this.listRed.setStyle("downArrowUpSkin",ScrollArrowDownRed); this.listRed.setStyle("downArrowDownSkin",ScrollArrowDownRed); this.listRed.setStyle("downArrowOverSkin",ScrollArrowDownRed); this.listRed.setStyle("downArrowDisabledSkin",ScrollArrowDownRed); this.listRed.setStyle("upArrowUpSkin",ScrollArrowUpRed); this.listRed.setStyle("upArrowDownSkin",ScrollArrowUpRed); this.listRed.setStyle("upArrowOverSkin",ScrollArrowUpRed); this.listRed.setStyle("upArrowDisabledSkin",ScrollArrowUpRed); this.listRed.setStyle("trackUpSkin",ScrollTrackRed); this.listRed.setStyle("trackDownSkin",ScrollTrackRed); this.listRed.setStyle("trackOverSkin",ScrollTrackRed); this.listRed.setStyle("trackDisabledSkin",ScrollTrackRed); this.listRed.setStyle("thumbUpSkin",ScrollThumbSkinRed); this.listRed.setStyle("thumbDownSkin",ScrollThumbSkinRed); this.listRed.setStyle("thumbOverSkin",ScrollThumbSkinRed); this.listRed.setStyle("thumbDisabledSkin",ScrollThumbSkinRed); this.listBlue.setStyle("downArrowUpSkin",ScrollArrowDownBlue); this.listBlue.setStyle("downArrowDownSkin",ScrollArrowDownBlue); this.listBlue.setStyle("downArrowOverSkin",ScrollArrowDownBlue); this.listBlue.setStyle("downArrowDisabledSkin",ScrollArrowDownBlue); this.listBlue.setStyle("upArrowUpSkin",ScrollArrowUpBlue); this.listBlue.setStyle("upArrowDownSkin",ScrollArrowUpBlue); this.listBlue.setStyle("upArrowOverSkin",ScrollArrowUpBlue); this.listBlue.setStyle("upArrowDisabledSkin",ScrollArrowUpBlue); this.listBlue.setStyle("trackUpSkin",ScrollTrackBlue); this.listBlue.setStyle("trackDownSkin",ScrollTrackBlue); this.listBlue.setStyle("trackOverSkin",ScrollTrackBlue); this.listBlue.setStyle("trackDisabledSkin",ScrollTrackBlue); this.listBlue.setStyle("thumbUpSkin",ScrollThumbSkinBlue); this.listBlue.setStyle("thumbDownSkin",ScrollThumbSkinBlue); this.listBlue.setStyle("thumbOverSkin",ScrollThumbSkinBlue); this.listBlue.setStyle("thumbDisabledSkin",ScrollThumbSkinBlue); } } }
package alternativa.tanks.service.battleinfo { public class BattleInfoState { public static const NONE:BattleInfoState = new BattleInfoState(-1); public static const DM_FORM:BattleInfoState = new BattleInfoState(1); public static const TEAM_FORM:BattleInfoState = new BattleInfoState(2); private var stateId:int; public function BattleInfoState(param1:int) { super(); this.stateId = param1; } } }
package _codec.projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.shot { 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.battlefield.models.tankparts.weapons.shotgun.shot.ShotgunShotCC; public class CodecShotgunShotCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_magazineReloadTime:ICodec; private var codec_magazineSize:ICodec; public function CodecShotgunShotCC() { super(); } public function init(param1:IProtocol) : void { this.codec_magazineReloadTime = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_magazineSize = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:ShotgunShotCC = new ShotgunShotCC(); local2.magazineReloadTime = this.codec_magazineReloadTime.decode(param1) as int; local2.magazineSize = this.codec_magazineSize.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:ShotgunShotCC = ShotgunShotCC(param2); this.codec_magazineReloadTime.encode(param1,local3.magazineReloadTime); this.codec_magazineSize.encode(param1,local3.magazineSize); } } }
package com.alternativaplatform.projects.tanks.client.warfare.models.colortransform.struct { public class ColorTransformStruct { public var t:Number = 0; public var redMultiplier:Number = 0; public var greenMultiplier:Number = 0; public var blueMultiplier:Number = 0; public var alphaMultiplier:Number = 0; public var redOffset:int = 0; public var greenOffset:int = 0; public var blueOffset:int = 0; public var alphaOffset:int = 0; public function ColorTransformStruct(t:Number, redMultiplier:Number, greenMultiplier:Number, blueMultiplier:Number, alphaMultiplier:Number, redOffset:int, greenOffset:int, blueOffset:int, alphaOffset:int) { super(); this.t = t; this.redMultiplier = redMultiplier; this.greenMultiplier = greenMultiplier; this.blueMultiplier = blueMultiplier; this.alphaMultiplier = alphaMultiplier; this.redOffset = redOffset; this.greenOffset = greenOffset; this.blueOffset = blueOffset; this.alphaOffset = alphaOffset; } } }
package alternativa.gfx.agal { public class SamplerFilter extends SamplerOption { private static const SAMPLER_FILTER_SHIFT:uint = 28; public static const NEAREST:SamplerFilter = new SamplerFilter(0); public static const LINEAR:SamplerFilter = new SamplerFilter(1); public function SamplerFilter(param1:uint) { super(param1,SAMPLER_FILTER_SHIFT); } } }
package alternativa.tanks.model.item.item { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.resource.types.ImageResource; import platform.client.fp10.core.type.IGameObject; public class IItemEvents implements IItem { private var object:IGameObject; private var impl:Vector.<Object>; public function IItemEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getPosition() : int { var result:int = 0; var i:int = 0; var m:IItem = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IItem(this.impl[i]); result = int(m.getPosition()); i++; } } finally { Model.popObject(); } return result; } public function getPreviewResource() : ImageResource { var result:ImageResource = null; var i:int = 0; var m:IItem = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IItem(this.impl[i]); result = m.getPreviewResource(); i++; } } finally { Model.popObject(); } return result; } public function getMaxRank() : int { var result:int = 0; var i:int = 0; var m:IItem = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IItem(this.impl[i]); result = int(m.getMaxRank()); i++; } } finally { Model.popObject(); } return result; } public function getMinRank() : int { var result:int = 0; var i:int = 0; var m:IItem = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IItem(this.impl[i]); result = int(m.getMinRank()); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class ItemInfoPanel_bitmapTurnSpeed extends BitmapAsset { public function ItemInfoPanel_bitmapTurnSpeed() { super(); } } }
package projects.tanks.clients.fp10.Prelauncher.makeup { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/projects.tanks.clients.fp10.Prelauncher.makeup.MakeUp_materialsActiveIconMakeUp.png")] public class MakeUp_materialsActiveIconMakeUp extends BitmapAsset { public function MakeUp_materialsActiveIconMakeUp() { super(); } } }
package projects.tanks.client.battlefield.models.coloradjust { public class ColorAdjustCC { private var _frostParamsHW:ColorAdjustParams; private var _frostParamsSoft:ColorAdjustParams; private var _heatParamsHW:ColorAdjustParams; private var _heatParamsSoft:ColorAdjustParams; public function ColorAdjustCC(param1:ColorAdjustParams = null, param2:ColorAdjustParams = null, param3:ColorAdjustParams = null, param4:ColorAdjustParams = null) { super(); this._frostParamsHW = param1; this._frostParamsSoft = param2; this._heatParamsHW = param3; this._heatParamsSoft = param4; } public function get frostParamsHW() : ColorAdjustParams { return this._frostParamsHW; } public function set frostParamsHW(param1:ColorAdjustParams) : void { this._frostParamsHW = param1; } public function get frostParamsSoft() : ColorAdjustParams { return this._frostParamsSoft; } public function set frostParamsSoft(param1:ColorAdjustParams) : void { this._frostParamsSoft = param1; } public function get heatParamsHW() : ColorAdjustParams { return this._heatParamsHW; } public function set heatParamsHW(param1:ColorAdjustParams) : void { this._heatParamsHW = param1; } public function get heatParamsSoft() : ColorAdjustParams { return this._heatParamsSoft; } public function set heatParamsSoft(param1:ColorAdjustParams) : void { this._heatParamsSoft = param1; } public function toString() : String { var local1:String = "ColorAdjustCC ["; local1 += "frostParamsHW = " + this.frostParamsHW + " "; local1 += "frostParamsSoft = " + this.frostParamsSoft + " "; local1 += "heatParamsHW = " + this.heatParamsHW + " "; local1 += "heatParamsSoft = " + this.heatParamsSoft + " "; return local1 + "]"; } } }
package controls { import assets.button.button_OFF_CENTER; import assets.button.button_OFF_LEFT; import assets.button.button_OFF_RIGHT; import assets.input.*; import controls.base.LabelBase; import controls.base.TextFieldUtf8Base; import flash.display.BitmapData; import flash.display.Graphics; import flash.display.Shape; import flash.display.Sprite; import flash.events.Event; import flash.events.KeyboardEvent; import flash.events.TextEvent; import flash.events.TimerEvent; import flash.system.Capabilities; import flash.text.AntiAliasType; import flash.text.GridFitType; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFieldType; import flash.text.TextFormat; import flash.utils.Timer; import flash.utils.getTimer; import fonts.TanksFontService; import forms.events.LoginFormEvent; import utils.FontParamsUtil; public class TankInputL extends Sprite { private var _timeout:int = 0; private var _valide:Boolean = true; private var _value:String = ""; public var _label:LabelBase; private const format:TextFormat = TanksFontService.getTextFormat(12); private const bg:Sprite = new Sprite(); private const l:Shape = new Shape(); private const c:Shape = new Shape(); private const r:Shape = new Shape(); private const bmpLeft:InputLeft = new InputLeft(0,0); private const bmpCenter:InputCenter = new InputCenter(0,0); private const bmpRight:InputRight = new InputRight(0,0); private const bmpLeftO:button_OFF_LEFT = new button_OFF_LEFT(0,0); private const bmpCenterO:button_OFF_CENTER = new button_OFF_CENTER(0,0); private const bmpRightO:button_OFF_RIGHT = new button_OFF_RIGHT(0,0); private const bmpLeftWrong:InputLeftWrong = new InputLeftWrong(0,0); private const bmpCenterWrong:InputCenterWrong = new InputCenterWrong(0,0); private const bmpRightWrong:InputRightWrong = new InputRightWrong(0,0); private var _width:int; private var _height:int; public var textField:TextField; private var oldtime:int = 0; private var oldvalue:String = ""; private var timer:Timer; private var _hidden:Boolean; private var _locked:Boolean = false; public function TankInputL() { super(); addChild(this.bg); this.bg.addChild(this.l); this.bg.addChild(this.c); this.bg.addChild(this.r); this._label = new LabelBase(); this._label.x = -10; this._label.y = 7; this._label.gridFitType = GridFitType.SUBPIXEL; addChild(this._label); this.oldtime = getTimer(); var local1:String = Capabilities.version; var local2:RegExp = /^(\w*) (\d*),(\d*),(\d*),(\d*)$/; var local3:Object = local2.exec(local1); if(local3 != null && Number(local3[2] + "." + local3[3]) < 10.1) { this.textField = new TextFieldUtf8Base(); } else { this.textField = new TextField(); } addChild(this.textField); this.format.color = 16777215; this.textField.defaultTextFormat = this.format; this.textField.antiAliasType = AntiAliasType.ADVANCED; this.textField.gridFitType = GridFitType.PIXEL; this.textField.embedFonts = TanksFontService.isEmbedFonts(); this.textField.sharpness = FontParamsUtil.SHARPNESS_TANK_INPUT_BASE; this.textField.thickness = FontParamsUtil.THICKNESS_TANK_INPUT_BASE; this.textField.type = TextFieldType.INPUT; this.textField.x = 3; this.textField.y = 7; this.textField.height = 20; this.textField.addEventListener(Event.CHANGE,this.sendTextChangedEvent); this.width = 212; } override public function set width(param1:Number) : void { this._width = int(param1); this.textField.width = this._width - 6; this.draw(); } override public function set height(param1:Number) : void { this._height = int(param1); this.draw(); } public function set label(param1:String) : void { this._label.text = param1; this._label.autoSize = TextFieldAutoSize.RIGHT; } public function set align(param1:String) : void { this.format.align = param1; this.updateformat(); } private function updateformat() : void { this.textField.defaultTextFormat = this.format; this.textField.setTextFormat(this.format); } public function clear() : void { this.textField.text = ""; this.validValue = true; } override public function set tabIndex(param1:int) : void { this.textField.tabIndex = param1; } public function set timeout(param1:int) : void { this._timeout = param1; this.textField.addEventListener(KeyboardEvent.KEY_UP,this.listener); this.timer = new Timer(this._timeout); this.timer.addEventListener(TimerEvent.TIMER,this.onTimeOut); this.textField.removeEventListener(TextEvent.TEXT_INPUT,this.sendTextChangedEvent); this.timer.start(); } public function set restrict(param1:String) : void { this.textField.restrict = param1; } public function set maxChars(param1:int) : void { this.textField.maxChars = param1; } public function get value() : String { return this._value; } public function set value(param1:String) : void { this.textField.text = this._value = param1; } public function set hidden(param1:Boolean) : void { this._hidden = param1; this.textField.displayAsPassword = this._hidden; this.textField.defaultTextFormat = this.format; this.textField.setTextFormat(this.format); } public function set validValue(param1:Boolean) : void { this._valide = param1; this.draw(); } public function get validValue() : Boolean { return this._valide; } private function listener(param1:KeyboardEvent) : void { var local2:int = getTimer(); this.oldtime = local2; } private function sendTextChangedEvent(param1:Event) : void { this._value = this.textField.text; dispatchEvent(new LoginFormEvent(LoginFormEvent.TEXT_CHANGED)); } private function onTimeOut(param1:TimerEvent) : void { var local2:int = getTimer(); if(local2 - this.oldtime > this._timeout && this.oldvalue != this.value) { this.oldvalue = this.value; dispatchEvent(new LoginFormEvent(LoginFormEvent.TEXT_CHANGED)); } this.oldtime = local2; } public function hide(param1:Event) : void { removeEventListener(Event.REMOVED_FROM_STAGE,this.hide); this.textField.removeEventListener(TextEvent.TEXT_INPUT,this.sendTextChangedEvent); this.textField.removeEventListener(KeyboardEvent.KEY_UP,this.listener); } public function get locked() : Boolean { return this._locked; } public function set locked(param1:Boolean) : void { this._locked = param1; this.textField.tabEnabled = !this._locked; this.textField.mouseEnabled = !this._locked; this.textField.selectable = !this._locked; this.textField.type = this._locked ? TextFieldType.DYNAMIC : TextFieldType.INPUT; if(this._locked) { this.validValue = true; } this.draw(); } private function draw() : void { var local1:Graphics = null; local1 = this.l.graphics; local1.clear(); local1.beginBitmapFill(this._valide ? (this._locked ? this.bmpLeftO : this.bmpLeft) : this.bmpLeftWrong); local1.drawRect(0,0,5,30); local1.endFill(); this.l.x = 0; this.l.y = 0; local1 = this.c.graphics; local1.clear(); local1.beginBitmapFill(this._valide ? (this._locked ? this.bmpCenterO : this.bmpCenter) : this.bmpCenterWrong); local1.drawRect(0,0,this._width - 10,30); local1.endFill(); this.c.x = 5; this.c.y = 0; local1 = this.r.graphics; local1.clear(); local1.beginBitmapFill(this._valide ? (this._locked ? this.bmpRightO : this.bmpRight) : this.bmpRightWrong); local1.drawRect(0,0,5,30); local1.endFill(); this.r.x = this._width - 5; this.r.y = 0; } } }
package _codec.projects.tanks.client.panel.model.payment.modes { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.payment.modes.PayModeCC; public class VectorCodecPayModeCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecPayModeCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(PayModeCC,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.<PayModeCC> = new Vector.<PayModeCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = PayModeCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:PayModeCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<PayModeCC> = Vector.<PayModeCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package _codec.projects.tanks.client.panel.model.referrals { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import projects.tanks.client.panel.model.referrals.ReferralIncomeData; public class CodecReferralIncomeData implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_income:ICodec; private var codec_user:ICodec; public function CodecReferralIncomeData() { super(); } public function init(param1:IProtocol) : void { this.codec_income = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_user = param1.getCodec(new TypeCodecInfo(Long,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:ReferralIncomeData = new ReferralIncomeData(); local2.income = this.codec_income.decode(param1) as int; local2.user = this.codec_user.decode(param1) as Long; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:ReferralIncomeData = ReferralIncomeData(param2); this.codec_income.encode(param1,local3.income); this.codec_user.encode(param1,local3.user); } } }
package forms.friends { import mx.core.BitmapAsset; [ExcludeClass] public class FriendActionIndicator_yesIconClass extends BitmapAsset { public function FriendActionIndicator_yesIconClass() { super(); } } }
package alternativa.tanks.models.sfx.smoke { import alternativa.math.Matrix3; import alternativa.math.Vector3; import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.objects.tank.ClientTankState; import alternativa.tanks.battle.objects.tank.Tank; import alternativa.tanks.battle.objects.tank.tankchassis.Track; import alternativa.tanks.battle.scene3d.Renderer; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.engine3d.TextureAnimation; import alternativa.tanks.sfx.LimitedDistanceAnimatedSpriteEffect; import alternativa.tanks.sfx.ScalingObject3DPositionProvider; import alternativa.tanks.utils.GraphicsUtils; import alternativa.utils.TextureMaterialRegistry; import flash.display.BlendMode; import flash.utils.getTimer; import projects.tanks.client.battlefield.models.tankparts.sfx.smoke.HullSmokeCC; public class HullSmokeRenderer implements Renderer { [Inject] public static var battleService:BattleService; [Inject] public static var materialRegistry:TextureMaterialRegistry; private static const bias:Vector3 = new Vector3(50,-1000,0); private static const particleVelocity:Vector3 = new Vector3(); private static const particlePosition:Vector3 = new Vector3(); private var enabled:Boolean; private var started:Boolean; private var camera:GameCamera; private var animation:TextureAnimation; private var smokeSize:Number; private var nearDistance:Number; private var farDistance:Number; private var intensity:Number; private var density:Number; private var tank:Tank; private var scale:Number; private var startTime:Number; private var fadeTime:Number; public function HullSmokeRenderer(param1:Tank, param2:HullSmokeCC) { super(); this.camera = battleService.getBattleScene3D().getCamera(); this.tank = param1; this.scale = param1.getBoundSphereRadius() / 600; this.animation = GraphicsUtils.getTextureAnimationFromResource(materialRegistry,param2.particle); this.farDistance = param2.farDistance; this.nearDistance = param2.nearDistance; this.smokeSize = param2.size; this.intensity = param2.alpha; this.density = param2.density; this.fadeTime = param2.fadeTime; this.enabled = param2.enabled; } private static function addJitter(param1:Vector3, param2:Number) : void { param1.x += getJitter(param2); param1.y += getJitter(param2); param1.z += getJitter(param2); } private static function getJitter(param1:Number) : Number { return (Math.random() - 0.5) * 2 * param1; } public function start() : void { this.started = true; this.startTime = getTimer(); } public function stop() : void { this.started = false; } public function changeDirection() : void { if(this.started) { this.startTime = getTimer() - this.fadeTime * 0.75; } } public function render(param1:int, param2:int) : void { if(this.enabled && this.started && this.camera.softTransparency && this.camera.softTransparencyStrength > 0 && this.tank && this.tank.state == ClientTankState.ACTIVE && param1 - this.startTime < this.fadeTime && Math.random() < this.density) { this.addTankDust(param1 - this.startTime); } } private function addTankDust(param1:Number) : void { var local5:Vector3 = null; var local7:Matrix3 = null; var local2:Track = this.tank.getLeftTrack(); var local3:Track = this.tank.getRightTrack(); var local4:Vector3 = local2.rays[local2.rays.length - 1].getGlobalOrigin(); local5 = local3.rays[local3.rays.length - 1].getGlobalOrigin(); var local6:Vector3 = new Vector3(); local6.x = (local4.x + local5.x) / 2; local6.y = (local4.y + local5.y) / 2; local6.z = (local4.z + local5.z) / 2; local7 = this.tank.getBody().baseMatrix; bias.x *= -1; local7.transformVector(bias,particleVelocity); particlePosition.copy(local6); addJitter(local6,50); particleVelocity.z = 500; addJitter(particleVelocity,20); this.createSmokeParticle(this.scale,particlePosition,particleVelocity,1 - param1 / this.fadeTime); } private function createSmokeParticle(param1:Number, param2:Vector3, param3:Vector3, param4:Number) : void { var local5:ScalingObject3DPositionProvider = ScalingObject3DPositionProvider(battleService.getObjectPool().getObject(ScalingObject3DPositionProvider)); local5.init(param2,param3,0.01); var local6:LimitedDistanceAnimatedSpriteEffect = LimitedDistanceAnimatedSpriteEffect(battleService.getObjectPool().getObject(LimitedDistanceAnimatedSpriteEffect)); var local7:Number = this.smokeSize * param1 * (1 + Math.random()); local6.init(local7,local7,this.animation,Math.random() * 2 * Math.PI,local5,0.5,0.5,null,130,BlendMode.NORMAL,this.nearDistance,this.farDistance,this.intensity * param4 * this.camera.softTransparencyStrength,true); battleService.addGraphicEffect(local6); } } }
package alternativa.tanks.service.impl { import alternativa.tanks.service.IPasswordParamsService; public class PasswordParamsService implements IPasswordParamsService { private var _minPasswordLength:int; private var _maxPasswordLength:int; private var _forbiddenPasswords:Array; public function PasswordParamsService() { super(); this._forbiddenPasswords = ["1234567890","123456789","12345678","1234567","123456","12345","1234","0123","01234","012345","0123456","01234567","012345678","0123456789","9876","98765","987654","9876543","98765432","987654321","9876543210","8765","87654","876543","8765432","87654321","876543210","7654","76543","765432","7654321","76543210","6543","65432","654321","6543210","5432","54321","543210","4321","43210","3210","1111","2222","3333","4444","5555","6666","7777","8888","9999","0000","11111","22222","33333","44444","55555","66666","77777","88888","99999","00000","111111","222222","333333","444444","555555","666666","777777","888888","999999","000000","1111111","2222222","3333333","4444444","5555555","6666666","7777777","8888888","9999999","0000000","11111111","22222222","33333333","44444444","55555555","66666666","77777777","88888888","99999999","00000000","111111111","222222222","333333333","444444444","555555555","666666666","777777777","888888888","999999999","000000000","abcd","Jack" ,"1234","snoopy","suzy","spike","1012","1234","pepper ","shelby","12345 ","54321 ","pass ","wolf","john","qqqq","aaaa","ZZZz","asdf","zxcv","asdf","zxcv","asdfgh","zxcvbn","1111","!!!!","4321","$#@!","1234","!@#$","12345","!@#$%","123456","!@#$%^","abcd","ABCD","qwerty1","QWERTY!","1q2w3e4r","1q2w3e","q1w2e3","q1w2e3r4","qweasd","QWEASD","asdzxc","ASDZXC","qweqwe","QWEQWE","asdasd","ASDASD","zxczxc","qwaszx","elite","ELITE","1qwerty","!QWERTY","black","blue","green","grey","yellow","orange","brown","support","Support","Topgun","topgun","help","Lame","hack","hunter","ranger","lamer","Lamer","hacker","Hacker","hack","summer","spring","autumn","winter","sunday","monday","tuesday","wednesda","thursday","friday","saturday","january","february","march","april","june","july","august","september","october","november","december","cool","lucky","korn ","fuck","Honda","mustang","pentium","mouse","stan","soccer","password","diablo","zoom","joker","nofear","unix","home","apache","holly","q3rulez","pass123" ,"magnum","mother","father","lisa","janet","helen","chocolate","Matrix","Gold","dollar","pussy","eminem","personal","zippo","jennifer","pepsi","clock","time","good","super","friend","angel","qwer","qwert","qwerty","homer","angle","johan","love","test","1q2w3e4r5t6y","31337","loll","gggg"]; } public function get forbiddenPasswords() : Array { return this._forbiddenPasswords; } public function set forbiddenPasswords(param1:Array) : void { this._forbiddenPasswords = param1; } public function get maxPasswordLength() : int { return this._maxPasswordLength; } public function set maxPasswordLength(param1:int) : void { this._maxPasswordLength = param1; } public function get minPasswordLength() : int { return this._minPasswordLength; } public function set minPasswordLength(param1:int) : void { this._minPasswordLength = param1; } public function isPasswordForbidden(param1:String) : Boolean { return param1.length < this._minPasswordLength || this._forbiddenPasswords.indexOf(param1.toLowerCase()) != -1; } } }
package alternativa.tanks.servermodels.registartion.email { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IEmailRegistrationAdapt implements IEmailRegistration { private var object:IGameObject; private var impl:IEmailRegistration; public function IEmailRegistrationAdapt(param1:IGameObject, param2:IEmailRegistration) { super(); this.object = param1; this.impl = param2; } public function checkEmail(param1:String) : void { var email:String = param1; try { Model.object = this.object; this.impl.checkEmail(email); } finally { Model.popObject(); } } public function register(param1:String, param2:String, param3:String, param4:String, param5:String, param6:String) : void { var uid:String = param1; var email:String = param2; var registeredUrl:String = param3; var referralHash:String = param4; var realName:String = param5; var idNumber:String = param6; try { Model.object = this.object; this.impl.register(uid,email,registeredUrl,referralHash,realName,idNumber); } finally { Model.popObject(); } } } }
package alternativa.tanks.models.weapon.flamethrower { import alternativa.tanks.models.weapon.shared.streamweapon.StreamWeaponEffects; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IFlamethrowerSFXModelEvents implements IFlamethrowerSFXModel { private var object:IGameObject; private var impl:Vector.<Object>; public function IFlamethrowerSFXModelEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getFlamethrowerEffects(param1:Number, param2:Number) : StreamWeaponEffects { var result:StreamWeaponEffects = null; var i:int = 0; var m:IFlamethrowerSFXModel = null; var range:Number = param1; var coneAngle:Number = param2; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = IFlamethrowerSFXModel(this.impl[i]); result = m.getFlamethrowerEffects(range,coneAngle); i++; } } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.model.captcha { import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; import flash.events.MouseEvent; public class CaptchaRefreshButton extends Sprite { [Embed(source="1024.png")] private static const _bitmapData:Class; private static const bitmapData:BitmapData = new _bitmapData().bitmapData; private var bitmap:Bitmap; public function CaptchaRefreshButton() { super(); this.bitmap = new Bitmap(bitmapData); addChild(this.bitmap); addEventListener(MouseEvent.MOUSE_DOWN,this.mouseHandler); addEventListener(MouseEvent.MOUSE_UP,this.mouseHandler); } private function mouseHandler(event:MouseEvent) : void { this.bitmap.y = event.type == MouseEvent.MOUSE_DOWN ? Number(Number(1)) : Number(Number(0)); } } }
package alternativa.tanks.models.user { import alternativa.tanks.models.clan.info.IClanInfoModel; import alternativa.tanks.models.user.incoming.IClanUserIncomingModel; import alternativa.tanks.models.user.outgoing.IClanUserOutgoingModel; import alternativa.types.Long; import flash.events.EventDispatcher; import platform.client.fp10.core.type.IGameObject; import platform.client.fp10.core.type.ISpace; public class ClanUserServiceImpl extends EventDispatcher implements ClanUserService { private var _userObject:IGameObject; private var _hasClanLicense:Boolean; private var _licenseGarageObject:IGameObject; private var _otherClan:Boolean; private var _showBuyLicenseButton:Boolean; public function ClanUserServiceImpl() { super(); } public function get userObject() : IGameObject { return this._userObject; } public function set userObject(param1:IGameObject) : void { this._userObject = param1; } public function getObjectById(param1:Long) : IGameObject { return this.userObject.space.getObject(param1); } public function get hasClanLicense() : Boolean { return this._hasClanLicense; } public function set hasClanLicense(param1:Boolean) : void { this._hasClanLicense = param1; } public function get licenseGarageObject() : IGameObject { return this._licenseGarageObject; } public function set licenseGarageObject(param1:IGameObject) : void { this._licenseGarageObject = param1; } public function get otherClan() : Boolean { return this._otherClan; } public function set otherClan(param1:Boolean) : void { this._otherClan = param1; } public function get showBuyLicenseButton() : Boolean { return this._showBuyLicenseButton; } public function set showBuyLicenseButton(param1:Boolean) : void { this._showBuyLicenseButton = param1; } public function containsClanInOutgoing(param1:String) : Boolean { var local2:Vector.<Long> = IClanUserOutgoingModel(this._userObject.adapt(IClanUserOutgoingModel)).getOutgoingClans(); return this.containsClan(local2,param1); } public function getIncomingClanNames(param1:String) : Boolean { var local2:Vector.<Long> = IClanUserIncomingModel(this._userObject.adapt(IClanUserIncomingModel)).getIncomingClans(); return this.containsClan(local2,param1); } private function containsClan(param1:Vector.<Long>, param2:String) : Boolean { var local4:Long = null; var local5:String = null; var local3:ISpace = this._userObject.space; for each(local4 in param1) { local5 = IClanInfoModel(local3.getObject(local4).adapt(IClanInfoModel)).getClanName(); if(param2 == local5) { return true; } } return false; } public function hideNotInClanPanel() : void { dispatchEvent(new ClanUserServiceEvent(ClanUserServiceEvent.HIDE_CLAN_WINDOW)); } } }
package alternativa.tanks.service.country.event { import flash.events.Event; public class ChooseCountryForPaymentEvent extends Event { public static const EVENT_TYPE:String = "ChooseCountryForPaymentEvent"; public function ChooseCountryForPaymentEvent() { super(EVENT_TYPE); } } }
package alternativa.tanks.model.item.container.resource { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.garage.models.item.container.resources.ContainerResourceCC; public class ContainerResourceAdapt implements ContainerResource { private var object:IGameObject; private var impl:ContainerResource; public function ContainerResourceAdapt(param1:IGameObject, param2:ContainerResource) { super(); this.object = param1; this.impl = param2; } public function getResources() : ContainerResourceCC { var result:ContainerResourceCC = null; try { Model.object = this.object; result = this.impl.getResources(); } 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_armorpiercingammoIconClass.png")] public class DeviceIcons_armorpiercingammoIconClass extends BitmapAsset { public function DeviceIcons_armorpiercingammoIconClass() { super(); } } }
package forms.battlelist { import flash.display.BitmapData; public class BattleMap { private var _id:Object; private var _gameName:String; private var _minRank:int; private var _maxRank:int; private var _maxPeople:int; private var _preview:BitmapData; private var _ctf:Boolean; private var _tdm:Boolean; private var _dom:Boolean; private var _hr:Boolean; private var _themeName:String; public function BattleMap() { super(); } public function get id() : Object { return this._id; } public function set id(id:Object) : void { this._id = id; } public function get gameName() : String { return this._gameName; } public function set gameName(gameName:String) : void { this._gameName = gameName; } public function get minRank() : int { return this._minRank; } public function set minRank(minRank:int) : void { this._minRank = minRank; } public function get maxRank() : int { return this._maxRank; } public function set maxRank(maxRank:int) : void { this._maxRank = maxRank; } public function get maxPeople() : int { return this._maxPeople; } public function set maxPeople(maxPeople:int) : void { this._maxPeople = maxPeople; } public function get preview() : BitmapData { return this._preview; } public function set preview(preview:BitmapData) : void { this._preview = preview; } public function get ctf() : Boolean { return this._ctf; } public function set ctf(ctf:Boolean) : void { this._ctf = ctf; } public function get tdm() : Boolean { return this._tdm; } public function set tdm(value:Boolean) : void { this._tdm = value; } public function get dom() : Boolean { return this._dom; } public function set dom(value:Boolean) : void { this._dom = value; } public function get hr() : Boolean { return this._hr; } public function set hr(value:Boolean) : void { this._hr = value; } public function set themeName(themeName:String) : void { this._themeName = themeName; } public function get themeName() : String { return this._themeName; } public function draw() : void { } } }
package projects.tanks.client.panel.model.quest.showing { import projects.tanks.client.panel.model.quest.common.specification.QuestLevel; public class QuestInfoWithLevel extends CommonQuestInfo { private var _level:QuestLevel; public function QuestInfoWithLevel(param1:QuestLevel = null) { super(); this._level = param1; } public function get level() : QuestLevel { return this._level; } public function set level(param1:QuestLevel) : void { this._level = param1; } override public function toString() : String { var local1:String = "QuestInfoWithLevel ["; local1 += "level = " + this.level + " "; local1 += super.toString(); return local1 + "]"; } } }
package alternativa.tanks.models.weapon.shaft.sfx { import alternativa.engine3d.materials.Material; import alternativa.math.Vector3; import alternativa.tanks.battle.scene3d.scene3dcontainer.Scene3DContainer; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.sfx.SFXUtils; import alternativa.tanks.utils.objectpool.Pool; import alternativa.tanks.utils.objectpool.PooledObject; public class TrailEffect2 extends PooledObject implements ShaftTrailEffect { private static const BASE_WIDTH:Number = 48; private var position:Vector3 = new Vector3(); private var direction:Vector3 = new Vector3(); private var alphaSpeed:Number; private var timeToLive:int; private var beam:Trail2; private var container:Scene3DContainer; public function TrailEffect2(param1:Pool) { super(param1); this.beam = new Trail2(); } public function init(param1:Vector3, param2:Vector3, param3:Number, param4:Number, param5:Material, param6:int) : void { this.position.copy(param1); this.direction.copy(param2); this.timeToLive = param6; this.alphaSpeed = 1 / param6; this.beam.init(BASE_WIDTH,param3,param4,param5); } public function play(param1:int, param2:GameCamera) : Boolean { if(this.timeToLive < 0) { return false; } this.timeToLive -= param1; this.beam.alpha -= this.alphaSpeed * param1; SFXUtils.alignObjectPlaneToView(this.beam,this.position,this.direction,param2.position); return true; } public function addedToScene(param1:Scene3DContainer) : void { this.container = param1; param1.addChild(this.beam); } public function destroy() : void { this.container.removeChild(this.beam); this.container = null; recycle(); } public function kill() : void { this.timeToLive = -1; } } }
package projects.tanks.client.battlefield.models.tankparts.weapon.thunder { 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; import projects.tanks.client.battlefield.types.Vector3d; public class ThunderModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _shootCommandId:Long = Long.getLong(304771021,-505618508); private var _shootCommand_shotTimeCodec:ICodec; private var _shootStaticCommandId:Long = Long.getLong(119662358,318565694); private var _shootStaticCommand_shotTimeCodec:ICodec; private var _shootStaticCommand_directionCodec:ICodec; private var _shootTargetCommandId:Long = Long.getLong(193816297,2141719739); private var _shootTargetCommand_shotTimeCodec:ICodec; private var _shootTargetCommand_relativeHitPointCodec:ICodec; private var _shootTargetCommand_targetCodec:ICodec; private var _shootTargetCommand_targetIncarnationCodec:ICodec; private var _shootTargetCommand_targetPositionCodec:ICodec; private var _shootTargetCommand_hitPointWorldCodec:ICodec; private var model:IModel; public function ThunderModelServer(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._shootCommand_shotTimeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); this._shootStaticCommand_shotTimeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); this._shootStaticCommand_directionCodec = this.protocol.getCodec(new TypeCodecInfo(Vector3d,false)); this._shootTargetCommand_shotTimeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); this._shootTargetCommand_relativeHitPointCodec = this.protocol.getCodec(new TypeCodecInfo(Vector3d,false)); this._shootTargetCommand_targetCodec = this.protocol.getCodec(new TypeCodecInfo(IGameObject,false)); this._shootTargetCommand_targetIncarnationCodec = this.protocol.getCodec(new TypeCodecInfo(Short,false)); this._shootTargetCommand_targetPositionCodec = this.protocol.getCodec(new TypeCodecInfo(Vector3d,false)); this._shootTargetCommand_hitPointWorldCodec = this.protocol.getCodec(new TypeCodecInfo(Vector3d,false)); } public function shootCommand(param1:int) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._shootCommand_shotTimeCodec.encode(this.protocolBuffer,param1); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local2:SpaceCommand = new SpaceCommand(Model.object.id,this._shootCommandId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } public function shootStaticCommand(param1:int, param2:Vector3d) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._shootStaticCommand_shotTimeCodec.encode(this.protocolBuffer,param1); this._shootStaticCommand_directionCodec.encode(this.protocolBuffer,param2); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local3:SpaceCommand = new SpaceCommand(Model.object.id,this._shootStaticCommandId,this.protocolBuffer); var local4:IGameObject = Model.object; var local5:ISpace = local4.space; local5.commandSender.sendCommand(local3); this.protocolBuffer.optionalMap.clear(); } public function shootTargetCommand(param1:int, param2:Vector3d, param3:IGameObject, param4:int, param5:Vector3d, param6:Vector3d) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._shootTargetCommand_shotTimeCodec.encode(this.protocolBuffer,param1); this._shootTargetCommand_relativeHitPointCodec.encode(this.protocolBuffer,param2); this._shootTargetCommand_targetCodec.encode(this.protocolBuffer,param3); this._shootTargetCommand_targetIncarnationCodec.encode(this.protocolBuffer,param4); this._shootTargetCommand_targetPositionCodec.encode(this.protocolBuffer,param5); this._shootTargetCommand_hitPointWorldCodec.encode(this.protocolBuffer,param6); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local7:SpaceCommand = new SpaceCommand(Model.object.id,this._shootTargetCommandId,this.protocolBuffer); var local8:IGameObject = Model.object; var local9:ISpace = local8.space; local9.commandSender.sendCommand(local7); this.protocolBuffer.optionalMap.clear(); } } }
package _codec.projects.tanks.client.battlefield.models.ultimate.effects.hornet { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import platform.client.fp10.core.resource.types.SoundResource; import platform.client.fp10.core.resource.types.TextureResource; import projects.tanks.client.battlefield.models.ultimate.effects.hornet.HornetUltimateCC; public class CodecHornetUltimateCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_effectEnabled:ICodec; private var codec_effectStartSound:ICodec; private var codec_ring:ICodec; private var codec_sonarSound:ICodec; public function CodecHornetUltimateCC() { super(); } public function init(param1:IProtocol) : void { this.codec_effectEnabled = param1.getCodec(new TypeCodecInfo(Boolean,false)); this.codec_effectStartSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_ring = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_sonarSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:HornetUltimateCC = new HornetUltimateCC(); local2.effectEnabled = this.codec_effectEnabled.decode(param1) as Boolean; local2.effectStartSound = this.codec_effectStartSound.decode(param1) as SoundResource; local2.ring = this.codec_ring.decode(param1) as TextureResource; local2.sonarSound = this.codec_sonarSound.decode(param1) as SoundResource; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:HornetUltimateCC = HornetUltimateCC(param2); this.codec_effectEnabled.encode(param1,local3.effectEnabled); this.codec_effectStartSound.encode(param1,local3.effectStartSound); this.codec_ring.encode(param1,local3.ring); this.codec_sonarSound.encode(param1,local3.sonarSound); } } }
package controls.buttons.h30px { import controls.buttons.FixedHeightButton; public class GreenMediumButton extends FixedHeightButton { public function GreenMediumButton() { super(new GreenMediumButtonSkin()); labelSize = H30ButtonSkin.DEFAULT_LABEL_SIZE; labelHeight = H30ButtonSkin.DEFAULT_LABEL_HEIGHT; labelPositionY = H30ButtonSkin.DEFAULT_LABEL_Y; width = H30ButtonSkin.DEFAULT_BUTTON_WIDTH; enabled = true; } } }
package alternativa.tanks.sfx { import alternativa.math.Vector3; import flash.events.Event; import flash.media.Sound; import flash.media.SoundChannel; public class EngineSounds { public static const SILENT:int = 0; public static const IDLE:int = 1; public static const ACCELERATING:int = 2; public static const MOVING:int = 3; public static const TURNING:int = 4; private static const FADE_SPEED:Number = 0.001; private static const MP3_BEGINNING_GAP:int = 80; private var mode:int = 0; private var currentSound3D:Sound3D; private var idleSound3D:Sound3D; private var accelerationSound3D:Sound3D; private var movingSound3D:Sound3D; private var channel:SoundChannel; private var fading:Boolean; private var fadeLimit:Number = 1; public function EngineSounds(param1:Sound, param2:Sound, param3:Sound) { super(); var local4:Number = 1; this.idleSound3D = Sound3D.create(param1,2); this.accelerationSound3D = Sound3D.create(param2,local4); this.movingSound3D = Sound3D.create(param3,local4); this.currentSound3D = this.idleSound3D; } public function update(param1:int, param2:Vector3, param3:Vector3, param4:Vector3) : void { if(this.mode != SILENT) { if(this.fading) { this.currentSound3D.volume -= FADE_SPEED * param1; if(this.currentSound3D.volume < this.fadeLimit) { this.fading = false; this.stop(); this.currentSound3D = this.idleSound3D; this.currentSound3D.volume = this.mode == IDLE ? 2 : 3; this.currentSound3D.play(MP3_BEGINNING_GAP,10000); } } this.currentSound3D.checkVolume(param2,param3,param4); } } public function setSilentMode() : void { if(this.mode != SILENT) { this.mode = SILENT; this.stop(); } } public function setIdleMode() : void { if(this.mode != IDLE) { if(this.mode == SILENT) { this.currentSound3D = this.idleSound3D; this.currentSound3D.volume = 1; this.currentSound3D.play(MP3_BEGINNING_GAP,1000); } else if(this.currentSound3D != this.idleSound3D) { this.fading = true; this.fadeLimit = 0.2; } this.mode = IDLE; } } public function setAccelerationMode() : void { if(this.mode == ACCELERATING || this.mode == MOVING) { return; } this.fading = false; this.mode = ACCELERATING; this.currentSound3D.stop(); this.currentSound3D = this.accelerationSound3D; this.currentSound3D.volume = 1; this.channel = this.currentSound3D.play(0,0); if(this.channel != null) { this.channel.addEventListener(Event.SOUND_COMPLETE,this.soundComplete); } } public function setTurningMode() : void { if(this.mode != TURNING) { if(this.mode == IDLE) { if(!this.fading) { this.currentSound3D.volume = 3; } } else { this.fading = true; } this.fadeLimit = 0.6; this.mode = TURNING; } } public function stop() : void { if(this.channel != null) { this.channel.removeEventListener(Event.SOUND_COMPLETE,this.soundComplete); this.channel = null; } this.currentSound3D.stop(); } public function destroy() : void { this.stop(); Sound3D.destroy(this.idleSound3D); this.idleSound3D = null; Sound3D.destroy(this.accelerationSound3D); this.accelerationSound3D = null; Sound3D.destroy(this.movingSound3D); this.movingSound3D = null; } private function soundComplete(param1:Event) : void { if(this.channel == null || this.mode != ACCELERATING) { return; } this.channel.removeEventListener(Event.SOUND_COMPLETE,this.soundComplete); this.mode = MOVING; this.movingSound3D.volume = this.accelerationSound3D.volume; this.currentSound3D = this.movingSound3D; this.currentSound3D.play(MP3_BEGINNING_GAP,1000); } } }
package _codec.projects.tanks.client.panel.model.quest.weekly { 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.quest.weekly.WeeklyQuestShowingCC; public class VectorCodecWeeklyQuestShowingCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecWeeklyQuestShowingCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(WeeklyQuestShowingCC,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.<WeeklyQuestShowingCC> = new Vector.<WeeklyQuestShowingCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = WeeklyQuestShowingCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:WeeklyQuestShowingCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<WeeklyQuestShowingCC> = Vector.<WeeklyQuestShowingCC>(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.ricochet { import alternativa.physics.Body; import alternativa.tanks.battle.TeamDMTargetEvaluator; import alternativa.tanks.battle.objects.tank.Tank; import projects.tanks.client.battleservice.model.battle.team.BattleTeam; public class TeamDMRicochetTargetEvaluator extends BaseRicochetTargeEvaluator implements RicochetTargetEvaluator, TeamDMTargetEvaluator { private var teamType:BattleTeam; public function TeamDMRicochetTargetEvaluator() { super(); } public function setLocalTeamType(param1:BattleTeam) : void { this.teamType = param1; } public function getTargetPriority(param1:Body, param2:int, param3:Number, param4:Number, param5:Number, param6:Number) : Number { var local7:Tank = param1.tank; if(!local7.isSameTeam(this.teamType)) { return getBasePriority(local7,param2,param3,param4,param5,param6); } return 0; } } }
package alternativa.tanks.models.battle.battlefield.map { import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.BSP; import alternativa.proplib.objects.PropMesh; import alternativa.utils.textureutils.TextureByteData; public class TexturedBSPsCollection implements TexturedPropsCollection { private var propMesh:PropMesh; private var textureName:String; private var bsps:Vector.<BSP> = new Vector.<BSP>(); public function TexturedBSPsCollection(param1:PropMesh, param2:String) { super(); this.propMesh = param1; this.textureName = param2; } public function addBsp(param1:BSP) : void { this.bsps.push(param1); } public function setMaterial(param1:TextureMaterial) : void { var local2:BSP = null; for each(local2 in this.bsps) { local2.setMaterialToAllFaces(param1); } } public function getTextureData() : TextureByteData { return this.propMesh.textures.getValue(this.textureName); } } }
package alternativa.tanks.service.socialnetwork { import flash.events.IEventDispatcher; public interface ISocialNetworkPanelService extends IEventDispatcher { function get passwordCreated() : Boolean; function set passwordCreated(param1:Boolean) : void; function setSnLinkExists(param1:String, param2:Boolean) : void; function setSnEnabledInCurrentLocale(param1:String, param2:Boolean) : void; function snEnabledInCurrentLocale(param1:String) : Boolean; function snLinkExists(param1:String) : Boolean; function createLink(param1:String) : void; function unlink(param1:String) : void; function linkSuccess(param1:String) : void; function unlinkSucces(param1:String) : void; } }
package alternativa.tanks.gui.premiumaccount { import flash.display.BitmapData; public class PremiumAccountIcons { private static const premiumIconForWelcomeAlertClass:Class = PremiumAccountIcons_premiumIconForWelcomeAlertClass; public static const premiumIconForWelcomeAlert:BitmapData = new premiumIconForWelcomeAlertClass().bitmapData; private static const premiumIconForDonateAlertClass:Class = PremiumAccountIcons_premiumIconForDonateAlertClass; public static const premiumIconForDonateAlert:BitmapData = new premiumIconForDonateAlertClass().bitmapData; public function PremiumAccountIcons() { super(); } } }
/** * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. * If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. * You may add additional accurate notices of copyright ownership. * * It is desirable to notify that Covered Software was "Powered by AlternativaPlatform" with link to http://www.alternativaplatform.com/ * */ package alternativa.osgi.service.clientlog { /** * @private */ public interface IClientLog extends IClientLogBase { /** * Adds record in specified log, duplicating its into the "error" channel. * * @param channelName Name of channel. * @param text Text, that can contain expressions like %i, i=1..n. These expressions will be changed by values, that is passed as subsequent parameters. * @param vars Values of variables in text. */ function logError(channelName:String, text:String, ...vars):void; /** * Returns list of strings at specified channel. If channel is not exists, null is returned. * * @param channelName Name of channel * @return List of string in specified channel. */ function getChannelStrings(channelName:String):Vector.<String>; /** * Add listener for all channel of log. * * @param listener Listener. */ function addLogListener(listener:IClientLogChannelListener):void; /** * Removes listener from all channels of log. * * @param listener Listener. */ function removeLogListener(listener:IClientLogChannelListener):void; /** * Add listener of channel. * * @param channelName Name of channel, for which the listener is added. * @param listener Listener. */ function addLogChannelListener(channelName:String, listener:IClientLogChannelListener):void; /** * Removes listener of channel. * * @param channelName Name of channel, for which the listener is removed. * @param listener Listener. */ function removeLogChannelListener(channelName:String, listener:IClientLogChannelListener):void; /** * Returns list of existing channels. * * @return List of existing channels. */ function getChannelNames():Vector.<String>; } }
package alternativa.tanks.model.payment.modes { import projects.tanks.client.panel.model.payment.types.PaymentRequestUrl; [ModelInterface] public interface PayUrl { function forceGoToUrl(param1:PaymentRequestUrl) : void; function forceGoToOrderedUrl(param1:PaymentRequestUrl) : void; } }
package { import flash.display.Sprite; import flash.system.Security; [ExcludeClass] public class _3137aaab840677c44145d29152eb3ea38f0ed49cd5676d3fdd49cdff0a163c5a_flash_display_Sprite extends Sprite { public function _3137aaab840677c44145d29152eb3ea38f0ed49cd5676d3fdd49cdff0a163c5a_flash_display_Sprite() { super(); } public function allowDomainInRSL(... rest) : void { Security.allowDomain.apply(null,rest); } public function allowInsecureDomainInRSL(... rest) : void { Security.allowInsecureDomain.apply(null,rest); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.clan { import alternativa.types.Long; import flash.events.EventDispatcher; import flash.utils.Dictionary; import flash.utils.getTimer; import flash.utils.setTimeout; import projects.tanks.client.clans.clan.permissions.ClanAction; import projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties.IUserPropertiesService; public class ClanUserInfoServiceImpl extends EventDispatcher implements ClanUserInfoService { [Inject] public static var userPropertiesService:IUserPropertiesService; private var userClanInfos:Dictionary = new Dictionary(); private var updateClanButtonFunction:Function; private var _actions:Vector.<ClanAction>; private var _restrictionTime:int; private var _selfClan:Boolean; private var _clanMember:Boolean; private var _initRestrictionTimer:int; private var _giveBonusesClan:Boolean; public function ClanUserInfoServiceImpl() { super(); } public function updateUserClanInfo(param1:UserClanInfo) : void { this.userClanInfos[param1.userId] = param1; } public function userClanInfoByUserId(param1:Long) : UserClanInfo { return param1 in this.userClanInfos ? this.userClanInfos[param1] : null; } public function get updateFriendsClanButtonFunction() : Function { return this.updateClanButtonFunction; } public function set updateFriendsClanButtonFunction(param1:Function) : void { this.updateClanButtonFunction = param1; } public function hasAction(param1:ClanAction) : Boolean { var local2:ClanAction = null; for each(local2 in this.actions) { if(local2.value == param1.value) { return true; } } return false; } public function get actions() : Vector.<ClanAction> { return this._actions; } public function set actions(param1:Vector.<ClanAction>) : void { this._actions = param1; } public function inSameClan(param1:Long) : Boolean { var local4:Long = null; var local5:Long = null; var local2:UserClanInfo = this.userClanInfoByUserId(param1); var local3:UserClanInfo = this.userClanInfoByUserId(userPropertiesService.userId); if(!local3.isInClan) { return false; } if(local2 != null && local3 != null) { local4 = local2.clanId; local5 = local3.clanId; return local4 == local5; } return false; } public function get restrictionTime() : int { return this._restrictionTime - (getTimer() - this._initRestrictionTimer) / 1000; } public function set restrictionTime(param1:int) : void { this._restrictionTime = param1; this._initRestrictionTimer = getTimer(); if(this._restrictionTime > 0) { setTimeout(this.scheduleRestrictionTime,this._restrictionTime * 1000); } } private function scheduleRestrictionTime() : void { dispatchEvent(new RestrictionJoinClanEvent(RestrictionJoinClanEvent.UPDATE)); } public function get selfClan() : Boolean { return this._selfClan; } public function set selfClan(param1:Boolean) : void { this._selfClan = param1; } public function get clanMember() : Boolean { return this._clanMember; } public function set clanMember(param1:Boolean) : void { this._clanMember = param1; } public function get giveBonusesClan() : Boolean { return this._giveBonusesClan; } public function set giveBonusesClan(param1:Boolean) : void { this._giveBonusesClan = param1; dispatchEvent(new ClanUserInfoEvent(ClanUserInfoEvent.UPDATE_GIVE_BONUSES_CLAN)); } public function onLeaveClan() : void { dispatchEvent(new ClanUserInfoEvent(ClanUserInfoEvent.ON_LEAVE_CLAN)); } public function onJoinClan() : void { dispatchEvent(new ClanUserInfoEvent(ClanUserInfoEvent.ON_JOIN_CLAN)); } } }
package alternativa.tanks.gui.alerts { import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.gui.itemslist.PartsList; import alternativa.tanks.loader.IModalLoaderService; import controls.TankWindowInner; import controls.base.DefaultButtonBase; import controls.base.LabelBase; import flash.events.Event; import flash.events.MouseEvent; import forms.TankWindowWithHeader; import forms.events.PartsListEvent; import projects.tanks.clients.fp10.libraries.TanksLocale; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.gui.DialogWindow; public class ItemsAlert extends DialogWindow { [Inject] public static var localeService:ILocaleService; [Inject] public static var modalLoaderService:IModalLoaderService; private var window:TankWindowWithHeader; private var inner:TankWindowInner; private var messageLabel:LabelBase; public var partsList:PartsList; private var closeButton:DefaultButtonBase; private var windowWidth:int = 350; private var windowHeight:int = 350; private const windowMargin:int = 12; private const space:int = 8; public function ItemsAlert(param1:String, param2:String, param3:Function, param4:Object) { super(); this.partsList = new PartsList(); this.partsList.height = 148; param3(param4); this.windowWidth = this.partsList.columnWidth * Math.min(3,this.partsList.itemsCount()) + this.windowMargin * 2 + this.space * 2; this.messageLabel = new LabelBase(); this.messageLabel.width = this.windowWidth - this.windowMargin * 2 - this.space * 2; this.messageLabel.multiline = true; this.messageLabel.wordWrap = true; this.messageLabel.text = localeService.getText(param2); this.window = TankWindowWithHeader.createWindow(param1,this.windowWidth,this.windowHeight); addChild(this.window); this.inner = new TankWindowInner(0,0,TankWindowInner.GREEN); addChild(this.inner); this.inner.x = this.windowMargin; this.inner.y = this.windowMargin; this.inner.width = this.windowWidth - this.windowMargin * 2; addChild(this.messageLabel); this.messageLabel.x = this.windowMargin + this.space; this.messageLabel.y = this.windowMargin + this.space; this.partsList.x = this.windowMargin + this.space; this.partsList.y = this.messageLabel.y + this.messageLabel.height + this.space; this.partsList.width = this.windowWidth - this.windowMargin * 2 - this.space * 2; addChild(this.partsList); this.closeButton = new DefaultButtonBase(); addChild(this.closeButton); this.closeButton.label = localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_OK); this.closeButton.x = this.windowWidth - this.closeButton.width >> 1; this.closeButton.y = this.partsList.y + this.partsList.height + this.space; this.windowHeight = this.messageLabel.height + this.partsList.height + this.closeButton.height + this.space * 4 + this.windowMargin * 2; this.window.height = this.windowHeight; this.inner.height = this.windowHeight - this.windowMargin * 3 - this.closeButton.height; this.closeButton.addEventListener(MouseEvent.CLICK,this.closeWindow); this.partsList.addEventListener(PartsListEvent.SELECT_PARTS_LIST_ITEM,this.onItemSelect); dialogService.enqueueDialog(this); } override protected function cancelKeyPressed() : void { this.closeWindow(); } override protected function confirmationKeyPressed() : void { this.closeWindow(); } private function closeWindow(param1:MouseEvent = null) : void { this.removeEventListenersAndRemoveDialog(); dispatchEvent(new Event(Event.CANCEL)); } private function removeEventListenersAndRemoveDialog() : void { this.closeButton.removeEventListener(MouseEvent.CLICK,this.closeWindow); this.partsList.removeEventListener(PartsListEvent.SELECT_PARTS_LIST_ITEM,this.onItemSelect); dialogService.removeDialog(this); } private function onItemSelect(param1:PartsListEvent) : void { modalLoaderService.show(); this.removeEventListenersAndRemoveDialog(); } } }
package _codec.projects.tanks.client.garage.models.item.container.resources { 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.container.resources.ContainerResourceCC; public class VectorCodecContainerResourceCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecContainerResourceCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ContainerResourceCC,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.<ContainerResourceCC> = new Vector.<ContainerResourceCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ContainerResourceCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ContainerResourceCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ContainerResourceCC> = Vector.<ContainerResourceCC>(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.machinegun.sfx { import alternativa.engine3d.materials.TextureMaterial; import alternativa.tanks.engine3d.EffectsMaterialRegistry; import alternativa.tanks.engine3d.TextureAnimation; import alternativa.tanks.models.sfx.lighting.LightingSfx; import alternativa.tanks.sfx.LightAnimation; import alternativa.tanks.utils.GraphicsUtils; import flash.display.BitmapData; import flash.media.Sound; import platform.client.fp10.core.type.AutoClosable; import projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.sfx.MachineGunSFXCC; public class MachineGunSFXData implements AutoClosable { [Inject] public static var materialRegistry:EffectsMaterialRegistry; private static const START_FIRE_LIGHT_ANIMATION_NAME:String = "startFire"; private static const LOOP_FIRE_LIGHT_ANIMATION_NAME:String = "loopFire"; private var _chainStartSound:Sound; private var _turbineStartSound:Sound; private var _shootEndSound:Sound; private var _shootSound:Sound; private var _longFailSound:Sound; private var _hitSound:Sound; private var _tankHitSound:Sound; private var _dustTexture:TextureAnimation; private var _fireAcrossTexture:TextureAnimation; private var _fireAlongTexture:TextureAnimation; private var _smokeTexture:TextureAnimation; private var _sparklesTexture:TextureAnimation; private var _tankSparklesTexture:TextureAnimation; private var _tracerTexture:TextureMaterial; private var _fireStartLightAnimation:LightAnimation; private var _fireLoopLightAnimation:LightAnimation; private var _crumbsTexture:TextureMaterial; public function MachineGunSFXData(param1:MachineGunSFXCC, param2:LightingSfx) { super(); this._chainStartSound = param1.chainStartSound.sound; this._turbineStartSound = param1.turbineStartSound.sound; this._shootEndSound = param1.shootEndSound.sound; this._shootSound = param1.shootSound.sound; this._longFailSound = param1.longFailSound.sound; this._hitSound = param1.hitSound.sound; this._tankHitSound = param1.tankHitSound.sound; this._dustTexture = GraphicsUtils.getTextureAnimationFromResource(materialRegistry,param1.dustTexture); this._fireAcrossTexture = GraphicsUtils.getTextureAnimationFromResource(materialRegistry,param1.fireAcrossTexture); this._fireAlongTexture = GraphicsUtils.getTextureAnimationFromResource(materialRegistry,param1.fireAlongTexture); this._smokeTexture = GraphicsUtils.getTextureAnimationFromResource(materialRegistry,param1.smokeTexture); this._sparklesTexture = GraphicsUtils.getTextureAnimationFromResource(materialRegistry,param1.sparklesTexture); this._tankSparklesTexture = GraphicsUtils.getTextureAnimationFromResource(materialRegistry,param1.tankSparklesTexture); this._tracerTexture = getTracerMaterial(param1.tracerTexture.data); this._fireStartLightAnimation = param2.createAnimation(START_FIRE_LIGHT_ANIMATION_NAME); this._fireLoopLightAnimation = param2.createAnimation(LOOP_FIRE_LIGHT_ANIMATION_NAME); this._crumbsTexture = materialRegistry.getMaterial(param1.crumbsTexture.data); } private static function getTracerMaterial(param1:BitmapData) : TextureMaterial { var local2:TextureMaterial = materialRegistry.getMaterial(param1); local2.repeat = true; return local2; } public function get chainStartSound() : Sound { return this._chainStartSound; } public function get turbineStartSound() : Sound { return this._turbineStartSound; } public function get shootEndSound() : Sound { return this._shootEndSound; } public function get shootSound() : Sound { return this._shootSound; } public function get longFailSound() : Sound { return this._longFailSound; } public function get hitSound() : Sound { return this._hitSound; } public function get tankHitSound() : Sound { return this._tankHitSound; } public function get dustTexture() : TextureAnimation { return this._dustTexture; } public function get fireAcrossTexture() : TextureAnimation { return this._fireAcrossTexture; } public function get fireAlongTexture() : TextureAnimation { return this._fireAlongTexture; } public function get smokeTexture() : TextureAnimation { return this._smokeTexture; } public function get sparklesTexture() : TextureAnimation { return this._sparklesTexture; } public function get tankSparklesTexture() : TextureAnimation { return this._tankSparklesTexture; } public function get tracerTexture() : TextureMaterial { return this._tracerTexture; } public function get fireStartLightAnimation() : LightAnimation { return this._fireStartLightAnimation; } public function get fireLoopLightAnimation() : LightAnimation { return this._fireLoopLightAnimation; } public function get crumbsTexture() : TextureMaterial { return this._crumbsTexture; } [Obfuscation(rename="false")] public function close() : void { materialRegistry.releaseMaterial(this.dustTexture.material); materialRegistry.releaseMaterial(this.fireAcrossTexture.material); materialRegistry.releaseMaterial(this.fireAlongTexture.material); materialRegistry.releaseMaterial(this.smokeTexture.material); materialRegistry.releaseMaterial(this.sparklesTexture.material); materialRegistry.releaseMaterial(this.tankSparklesTexture.material); materialRegistry.releaseMaterial(this.tracerTexture); materialRegistry.releaseMaterial(this.crumbsTexture); this._chainStartSound = null; this._turbineStartSound = null; this._shootEndSound = null; this._shootSound = null; this._longFailSound = null; this._hitSound = null; this._tankHitSound = null; this._fireStartLightAnimation = null; this._fireLoopLightAnimation = null; } } }
package projects.tanks.clients.flash.commons.services.layout { import alternativa.osgi.service.locale.ILocaleService; import alternativa.startup.StartupSettings; import flash.events.EventDispatcher; import flash.external.ExternalInterface; import flash.net.SharedObject; import platform.client.fp10.core.type.IGameObject; import platform.clients.fp10.libraries.alternativapartners.service.IPartnerService; import projects.tanks.client.commons.models.layout.LayoutState; import projects.tanks.clients.flash.commons.models.layout.ILobbyLayout; import projects.tanks.clients.flash.commons.models.layout.notify.ILobbyLayoutNotify; import projects.tanks.clients.flash.commons.services.layout.event.LobbyLayoutServiceEvent; import projects.tanks.clients.fp10.libraries.TanksLocale; import projects.tanks.clients.fp10.libraries.tanksservices.service.alertservices.AlertServiceEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.alertservices.IAlertService; import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher.IDialogWindowsDispatcherService; import projects.tanks.clients.fp10.libraries.tanksservices.service.layout.ILobbyLayoutService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.gamescreen.UserChangeGameScreenService; import projects.tanks.clients.fp10.libraries.tanksservices.service.storage.IStorageService; import projects.tanks.clients.fp10.libraries.tanksservices.service.user.IUserInfoService; import services.alertservice.Alert; import services.alertservice.AlertAnswer; public class LobbyLayoutService extends EventDispatcher implements ILobbyLayoutService { [Inject] public static var alertService:IAlertService; [Inject] public static var storageService:IStorageService; [Inject] public static var localeService:ILocaleService; [Inject] public static var battleInfoService:IBattleInfoService; [Inject] public static var dialogWindowsDispatcherService:IDialogWindowsDispatcherService; [Inject] public static var partnersService:IPartnerService; [Inject] public static var userInfoService:IUserInfoService; [Inject] public static var userChangeGameScreenService:UserChangeGameScreenService; private var serviceGameObject:IGameObject; private var battleReady:Boolean; public function LobbyLayoutService() { super(); } private static function showExitFromGameAlert() : void { alertService.showAlertById(Alert.ALERT_QUIT); alertService.addEventListener(AlertServiceEvent.ALERT_BUTTON_PRESSED,onQuitGameDialogButtonPressed); } private static function onQuitGameDialogButtonPressed(param1:AlertServiceEvent) : void { alertService.removeEventListener(AlertServiceEvent.ALERT_BUTTON_PRESSED,onQuitGameDialogButtonPressed); if(param1.typeButton == AlertAnswer.YES) { userChangeGameScreenService.exitFromGame(); clearHash(); if(ExternalInterface.available) { ExternalInterface.call("goToMainPage"); } if(StartupSettings.isDesktop) { StartupSettings.closeApplication(); } } } private static function clearHash() : void { var local1:SharedObject = storageService.getStorage(); local1.data.userHash = null; local1.flush(); } public function showGarage() : void { userChangeGameScreenService.switchGarage(); this.layoutSwitchPredicted(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).showGarage(); } public function showBattleSelect() : void { userChangeGameScreenService.switchBattleSelect(); this.layoutSwitchPredicted(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).showBattleSelect(); } public function showMatchmaking() : void { userChangeGameScreenService.switchMatchmaking(); this.layoutSwitchPredicted(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).showMatchmaking(); } public function showBattleLobby() : void { this.layoutSwitchPredicted(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).showBattleLobby(); } public function showClan() : void { userChangeGameScreenService.switchClan(); this.layoutSwitchPredicted(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).showClan(); } public function exitFromBattle() : void { if(battleInfoService.isSpectatorMode()) { this.exitFromBattleWithoutNotify(); } else { this.showExitFromBattleAlert(); } } private function showExitFromBattleAlert() : void { var local1:String = this.getTextForExitFromBattleAlert(); alertService.showAlert(local1,Vector.<String>([localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_YES),localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_NO)])); alertService.addEventListener(AlertServiceEvent.ALERT_BUTTON_PRESSED,this.onQuitBattleDialogButtonPressed); } public function exitFromBattleToGarageThroughAlert() : void { this.showExitFromBattleToGarageAlert(); } private function showExitFromBattleToGarageAlert() : void { var local1:String = this.getTextForExitFromBattleAlert(); alertService.showAlert(local1,Vector.<String>([localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_YES),localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_NO)])); alertService.addEventListener(AlertServiceEvent.ALERT_BUTTON_PRESSED,this.onQuitBattleToGarageDialogButtonPressed); } private function getTextForExitFromBattleAlert() : String { if(!userInfoService.isOffer()) { return localeService.getText(TanksLocale.TEXT_FRIENDS_EXIT_FROM_BATTLE_ALERT); } return localeService.getText(TanksLocale.TEXT_FRIENDS_EXIT_FROM_BATTLE_ALERT) + "\n" + localeService.getText(TanksLocale.TEXT_POSTFIX_OFFER_EXIT_BATTLE); } private function onQuitBattleDialogButtonPressed(param1:AlertServiceEvent) : void { alertService.removeEventListener(AlertServiceEvent.ALERT_BUTTON_PRESSED,this.onQuitBattleDialogButtonPressed); if(param1.typeButton == localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_YES)) { this.exitFromBattleWithoutNotify(); } } private function onQuitBattleToGarageDialogButtonPressed(param1:AlertServiceEvent) : void { alertService.removeEventListener(AlertServiceEvent.ALERT_BUTTON_PRESSED,this.onQuitBattleToGarageDialogButtonPressed); if(param1.typeButton == localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_YES)) { userChangeGameScreenService.exitFromBattleToGarage(); this.layoutSwitchPredicted(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).exitFromBattleToState(LayoutState.GARAGE); } else { dispatchEvent(new LobbyLayoutServiceEvent(LobbyLayoutServiceEvent.END_LAYOUT_SWITCH,LayoutState.BATTLE)); } } public function exitFromBattleWithoutNotify() : void { userChangeGameScreenService.exitFromBattleToMatchmaking(); this.layoutSwitchPredicted(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).exitFromBattle(); } public function exitFromBattleToState(param1:LayoutState) : void { switch(param1) { case LayoutState.GARAGE: userChangeGameScreenService.exitFromBattleToGarage(); break; case LayoutState.CLAN: userChangeGameScreenService.exitFromBattleToClan(); break; default: userChangeGameScreenService.exitFromBattleToMatchmaking(); } this.layoutSwitchPredicted(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).exitFromBattleToState(param1); } public function exitFromGame() : void { if(!partnersService.isRunningInsidePartnerEnvironment() || Boolean(StartupSettings.isDesktop)) { showExitFromGameAlert(); } } public function getServiceGameObject() : IGameObject { return this.serviceGameObject; } public function setServiceGameObject(param1:IGameObject) : void { this.serviceGameObject = param1; } private function checkObject() : void { if(this.serviceGameObject == null) { throw new Error("Service object isn\'t loaded"); } } public function isSwitchInProgress() : Boolean { this.checkObject(); return ILobbyLayoutNotify(this.serviceGameObject.adapt(ILobbyLayoutNotify)).isSwitchInProgress(); } public function getCurrentState() : LayoutState { this.checkObject(); return ILobbyLayoutNotify(this.serviceGameObject.adapt(ILobbyLayoutNotify)).getCurrentState(); } public function inBattle() : Boolean { if(this.serviceGameObject == null) { return false; } return ILobbyLayoutNotify(this.serviceGameObject.adapt(ILobbyLayoutNotify)).inBattle(); } private function layoutSwitchPredicted() : void { this.checkObject(); ILobbyLayoutNotify(this.serviceGameObject.adapt(ILobbyLayoutNotify)).layoutSwitchPredicted(); } public function isWindowOpenOverBattle() : Boolean { return this.inBattle() && (this.getCurrentState() != LayoutState.BATTLE || Boolean(dialogWindowsDispatcherService.isOpen())); } public function closePopupOverBattle() : void { if(!this.isSwitchInProgress() && this.isOpenPopupOverBattle()) { this.returnToBattle(); } } private function isOpenPopupOverBattle() : Boolean { return this.inBattle() && this.getCurrentState() != LayoutState.BATTLE; } public function returnToBattle() : void { userChangeGameScreenService.switchGarage(); ILobbyLayout(this.serviceGameObject.adapt(ILobbyLayout)).returnToBattle(); } public function setBattleReady(param1:Boolean) : void { this.battleReady = param1; } public function isBattleReady() : Boolean { return this.battleReady; } } }
package alternativa.tanks.models.weapon.shaft { import mx.core.BitmapAsset; [ExcludeClass] public class ShaftModel_decal extends BitmapAsset { public function ShaftModel_decal() { super(); } } }
package projects.tanks.client.battlefield.models.battle.battlefield.facilities.facillity { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; public class CommonFacilityModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function CommonFacilityModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package controls.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 local1:Graphics = null; super.draw(); if(this.frameColor != 0) { local1 = this.graphics; local1.beginFill(this.frameColor); local1.drawRect(4,0,_width - 8,1); local1.drawRect(4,_height - 1,_width - 8,1); local1.drawRect(0,4,1,_height - 8); local1.drawRect(_width - 1,4,1,_height - 8); local1.endFill(); } } } }
package projects.tanks.client.battleselect.model.battle { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; public class BattleInfoModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function BattleInfoModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.UpgradeIndicator_m3Class.png")] public class UpgradeIndicator_m3Class extends BitmapAsset { public function UpgradeIndicator_m3Class() { super(); } } }
package projects.tanks.client.battlefield.models.bonus.battle.goldbonus { import projects.tanks.client.battlefield.models.bonus.battle.bonusregions.BonusRegionData; public class GoldBonusCC { private var _regionsData:Vector.<BonusRegionData>; public function GoldBonusCC(param1:Vector.<BonusRegionData> = null) { super(); this._regionsData = param1; } public function get regionsData() : Vector.<BonusRegionData> { return this._regionsData; } public function set regionsData(param1:Vector.<BonusRegionData>) : void { this._regionsData = param1; } public function toString() : String { var local1:String = "GoldBonusCC ["; local1 += "regionsData = " + this.regionsData + " "; return local1 + "]"; } } }
package _codec.projects.tanks.client.battleselect.model.matchmaking.view { 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.CollectionCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import platform.client.fp10.core.resource.types.ImageResource; import projects.tanks.client.battleselect.model.matchmaking.modes.MatchmakingModeRank; import projects.tanks.client.battleselect.model.matchmaking.view.MatchmakingLayoutCC; public class CodecMatchmakingLayoutCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_holidayDescription:ICodec; private var codec_holidayEnabled:ICodec; private var codec_holidayIcon:ICodec; private var codec_holidayTitle:ICodec; private var codec_matchmakingModeRanks:ICodec; private var codec_minRankForProBattle:ICodec; public function CodecMatchmakingLayoutCC() { super(); } public function init(param1:IProtocol) : void { this.codec_holidayDescription = param1.getCodec(new TypeCodecInfo(String,true)); this.codec_holidayEnabled = param1.getCodec(new TypeCodecInfo(Boolean,false)); this.codec_holidayIcon = param1.getCodec(new TypeCodecInfo(ImageResource,true)); this.codec_holidayTitle = param1.getCodec(new TypeCodecInfo(String,true)); this.codec_matchmakingModeRanks = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(MatchmakingModeRank,false),false,1)); this.codec_minRankForProBattle = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:MatchmakingLayoutCC = new MatchmakingLayoutCC(); local2.holidayDescription = this.codec_holidayDescription.decode(param1) as String; local2.holidayEnabled = this.codec_holidayEnabled.decode(param1) as Boolean; local2.holidayIcon = this.codec_holidayIcon.decode(param1) as ImageResource; local2.holidayTitle = this.codec_holidayTitle.decode(param1) as String; local2.matchmakingModeRanks = this.codec_matchmakingModeRanks.decode(param1) as Vector.<MatchmakingModeRank>; local2.minRankForProBattle = this.codec_minRankForProBattle.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:MatchmakingLayoutCC = MatchmakingLayoutCC(param2); this.codec_holidayDescription.encode(param1,local3.holidayDescription); this.codec_holidayEnabled.encode(param1,local3.holidayEnabled); this.codec_holidayIcon.encode(param1,local3.holidayIcon); this.codec_holidayTitle.encode(param1,local3.holidayTitle); this.codec_matchmakingModeRanks.encode(param1,local3.matchmakingModeRanks); this.codec_minRankForProBattle.encode(param1,local3.minRankForProBattle); } } }
package projects.tanks.client.battlefield.models.battle.battlefield { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; import projects.tanks.client.battlefield.models.battle.battlefield.types.HitTraceData; import projects.tanks.client.battleservice.BattleRoundParameters; public class BattlefieldModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:BattlefieldModelServer; private var client:IBattlefieldModelBase = IBattlefieldModelBase(this); private var modelId:Long = Long.getLong(1723277227,1936126557); private var _battleFinishId:Long = Long.getLong(1285984840,1983429603); private var _battleRestartId:Long = Long.getLong(1210824392,-987670337); private var _battleStartId:Long = Long.getLong(180030714,353397522); private var _battleStart_paramsCodec:ICodec; private var _traceHitId:Long = Long.getLong(711773257,1091256454); private var _traceHit_hitTraceDataCodec:ICodec; public function BattlefieldModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new BattlefieldModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(BattlefieldCC,false))); this._battleStart_paramsCodec = this._protocol.getCodec(new TypeCodecInfo(BattleRoundParameters,false)); this._traceHit_hitTraceDataCodec = this._protocol.getCodec(new TypeCodecInfo(HitTraceData,false)); } protected function getInitParam() : BattlefieldCC { return BattlefieldCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._battleFinishId: this.client.battleFinish(); break; case this._battleRestartId: this.client.battleRestart(); break; case this._battleStartId: this.client.battleStart(BattleRoundParameters(this._battleStart_paramsCodec.decode(param2))); break; case this._traceHitId: this.client.traceHit(HitTraceData(this._traceHit_hitTraceDataCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.models.sfx.colortransform { import alternativa.model.IModel; import alternativa.object.ClientObject; import com.alternativaplatform.projects.tanks.client.warfare.models.colortransform.ColorTransformModelBase; import com.alternativaplatform.projects.tanks.client.warfare.models.colortransform.IColorTransformModelBase; public class ColorTransformModel extends ColorTransformModelBase implements IColorTransformModelBase, IColorTransformModel { public function ColorTransformModel() { super(); _interfaces.push(IModel,IColorTransformModel); } public function initObject(clientObject:ClientObject, colorTransforms:Array) : void { var numEntries:uint = colorTransforms.length; var entries:Vector.<ColorTransformEntry> = new Vector.<ColorTransformEntry>(numEntries); for(var i:int = 0; i < numEntries; i++) { entries[i] = new ColorTransformEntry(colorTransforms[i]); } clientObject.putParams(ColorTransformModel,entries); } public function getModelData(clientObject:ClientObject) : Vector.<ColorTransformEntry> { return Vector.<ColorTransformEntry>(clientObject.getParams(ColorTransformModel)); } } }
package forms.friends { public class RejectAllIncomingButton extends FriendWindowButton implements IRejectAllIncomingButtonEnabled { public function RejectAllIncomingButton() { super(); } public function setEnable(param1:Boolean) : void { super.enable = param1; } } }
package projects.tanks.client.entrance.model.entrance.passwordchange { 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 PasswordChangeModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:PasswordChangeModelServer; private var client:IPasswordChangeModelBase = IPasswordChangeModelBase(this); private var modelId:Long = Long.getLong(2144135680,-1866277160); private var _emailNotFoundId:Long = Long.getLong(974405304,-587001778); private var _emailWithRestoreLinkSuccessfullySentId:Long = Long.getLong(2039498789,445465022); private var _passwordRecoveryHashCorrectId:Long = Long.getLong(242182652,2008805615); private var _passwordRecoveryHashCorrect_currentEmailCodec:ICodec; private var _passwordRecoveryHashWrongId:Long = Long.getLong(2123154680,-824044686); private var _setPasswordChangeResultId:Long = Long.getLong(802687056,1066036723); private var _setPasswordChangeResult_successCodec:ICodec; private var _setPasswordChangeResult_errorCodec:ICodec; public function PasswordChangeModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new PasswordChangeModelServer(IModel(this)); this._passwordRecoveryHashCorrect_currentEmailCodec = this._protocol.getCodec(new TypeCodecInfo(String,false)); this._setPasswordChangeResult_successCodec = this._protocol.getCodec(new TypeCodecInfo(Boolean,false)); this._setPasswordChangeResult_errorCodec = this._protocol.getCodec(new TypeCodecInfo(String,false)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._emailNotFoundId: this.client.emailNotFound(); break; case this._emailWithRestoreLinkSuccessfullySentId: this.client.emailWithRestoreLinkSuccessfullySent(); break; case this._passwordRecoveryHashCorrectId: this.client.passwordRecoveryHashCorrect(String(this._passwordRecoveryHashCorrect_currentEmailCodec.decode(param2))); break; case this._passwordRecoveryHashWrongId: this.client.passwordRecoveryHashWrong(); break; case this._setPasswordChangeResultId: this.client.setPasswordChangeResult(Boolean(this._setPasswordChangeResult_successCodec.decode(param2)),String(this._setPasswordChangeResult_errorCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package forms.ranks { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/forms.ranks.PremiumRankBitmaps_bitmapSmallRank24.png")] public class PremiumRankBitmaps_bitmapSmallRank24 extends BitmapAsset { public function PremiumRankBitmaps_bitmapSmallRank24() { super(); } } }
package projects.tanks.client.commons.osgi { import _codec.map.String__String; import _codec.projects.tanks.client.commons.models.captcha.CodecCaptchaCC; import _codec.projects.tanks.client.commons.models.captcha.CodecCaptchaLocation; import _codec.projects.tanks.client.commons.models.captcha.VectorCodecCaptchaCCLevel1; import _codec.projects.tanks.client.commons.models.captcha.VectorCodecCaptchaLocationLevel1; import _codec.projects.tanks.client.commons.models.challenge.time.CodecChallengesTimeCC; import _codec.projects.tanks.client.commons.models.challenge.time.VectorCodecChallengesTimeCCLevel1; import _codec.projects.tanks.client.commons.models.coloring.CodecColoringCC; import _codec.projects.tanks.client.commons.models.coloring.VectorCodecColoringCCLevel1; import _codec.projects.tanks.client.commons.models.externalauth.CodecExternalAuthParameters; import _codec.projects.tanks.client.commons.models.externalauth.VectorCodecExternalAuthParametersLevel1; import _codec.projects.tanks.client.commons.models.layout.CodecLayoutState; import _codec.projects.tanks.client.commons.models.layout.VectorCodecLayoutStateLevel1; import _codec.projects.tanks.client.commons.models.runtime.CodecDataOwnerCC; import _codec.projects.tanks.client.commons.models.runtime.VectorCodecDataOwnerCCLevel1; import _codec.projects.tanks.client.commons.socialnetwork.CodecSocialNetworkEnum; import _codec.projects.tanks.client.commons.socialnetwork.VectorCodecSocialNetworkEnumLevel1; import _codec.projects.tanks.client.commons.types.CodecItemCategoryEnum; import _codec.projects.tanks.client.commons.types.CodecItemGarageProperty; import _codec.projects.tanks.client.commons.types.CodecItemViewCategoryEnum; import _codec.projects.tanks.client.commons.types.CodecShopAbonementBonusTypeEnum; import _codec.projects.tanks.client.commons.types.CodecShopCategoryEnum; import _codec.projects.tanks.client.commons.types.VectorCodecItemCategoryEnumLevel1; import _codec.projects.tanks.client.commons.types.VectorCodecItemGaragePropertyLevel1; import _codec.projects.tanks.client.commons.types.VectorCodecItemViewCategoryEnumLevel1; import _codec.projects.tanks.client.commons.types.VectorCodecShopAbonementBonusTypeEnumLevel1; import _codec.projects.tanks.client.commons.types.VectorCodecShopCategoryEnumLevel1; import alternativa.osgi.OSGi; import alternativa.osgi.bundle.IBundleActivator; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.info.CollectionCodecInfo; import alternativa.protocol.info.EnumCodecInfo; import alternativa.protocol.info.MapCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.registry.ModelRegistry; import projects.tanks.client.commons.models.captcha.CaptchaCC; import projects.tanks.client.commons.models.captcha.CaptchaLocation; import projects.tanks.client.commons.models.challenge.time.ChallengesTimeCC; import projects.tanks.client.commons.models.coloring.ColoringCC; import projects.tanks.client.commons.models.externalauth.ExternalAuthParameters; import projects.tanks.client.commons.models.layout.LayoutState; import projects.tanks.client.commons.models.runtime.DataOwnerCC; import projects.tanks.client.commons.socialnetwork.SocialNetworkEnum; import projects.tanks.client.commons.types.ItemCategoryEnum; import projects.tanks.client.commons.types.ItemGarageProperty; import projects.tanks.client.commons.types.ItemViewCategoryEnum; import projects.tanks.client.commons.types.ShopAbonementBonusTypeEnum; import projects.tanks.client.commons.types.ShopCategoryEnum; public class Activator implements IBundleActivator { public static var osgi:OSGi; public function Activator() { super(); } public function start(param1:OSGi) : void { var local4:ICodec = null; osgi = param1; var local2:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local2.register(Long.getLong(2058573415,-746879275),Long.getLong(888592950,-646476035)); local2.register(Long.getLong(490831193,1530810385),Long.getLong(1163794707,1156292692)); local2.register(Long.getLong(490831193,1530810385),Long.getLong(176089096,-444205293)); local2.register(Long.getLong(490831193,1530810385),Long.getLong(1404540170,-251744121)); local2.register(Long.getLong(1481647778,-291699533),Long.getLong(1809738995,677658011)); local2.register(Long.getLong(1481647778,-291699533),Long.getLong(527428095,-1647091354)); local2.register(Long.getLong(1481647778,-291699533),Long.getLong(2122248367,-1459259159)); local2.register(Long.getLong(650947056,1487530419),Long.getLong(14163504,1184321813)); local2.register(Long.getLong(650947056,1487530419),Long.getLong(2016074577,529714967)); local2.register(Long.getLong(650947056,1487530419),Long.getLong(969374437,-1423594874)); local2.register(Long.getLong(1594319086,-307533593),Long.getLong(1584343746,-1931074163)); local2.register(Long.getLong(1670604947,523994521),Long.getLong(617627221,751287008)); var local3:IProtocol = IProtocol(osgi.getService(IProtocol)); local4 = new CodecCaptchaCC(); local3.registerCodec(new TypeCodecInfo(CaptchaCC,false),local4); local3.registerCodec(new TypeCodecInfo(CaptchaCC,true),new OptionalCodecDecorator(local4)); local4 = new CodecCaptchaLocation(); local3.registerCodec(new EnumCodecInfo(CaptchaLocation,false),local4); local3.registerCodec(new EnumCodecInfo(CaptchaLocation,true),new OptionalCodecDecorator(local4)); local4 = new CodecChallengesTimeCC(); local3.registerCodec(new TypeCodecInfo(ChallengesTimeCC,false),local4); local3.registerCodec(new TypeCodecInfo(ChallengesTimeCC,true),new OptionalCodecDecorator(local4)); local4 = new CodecColoringCC(); local3.registerCodec(new TypeCodecInfo(ColoringCC,false),local4); local3.registerCodec(new TypeCodecInfo(ColoringCC,true),new OptionalCodecDecorator(local4)); local4 = new CodecExternalAuthParameters(); local3.registerCodec(new TypeCodecInfo(ExternalAuthParameters,false),local4); local3.registerCodec(new TypeCodecInfo(ExternalAuthParameters,true),new OptionalCodecDecorator(local4)); local4 = new CodecLayoutState(); local3.registerCodec(new EnumCodecInfo(LayoutState,false),local4); local3.registerCodec(new EnumCodecInfo(LayoutState,true),new OptionalCodecDecorator(local4)); local4 = new CodecDataOwnerCC(); local3.registerCodec(new TypeCodecInfo(DataOwnerCC,false),local4); local3.registerCodec(new TypeCodecInfo(DataOwnerCC,true),new OptionalCodecDecorator(local4)); local4 = new CodecSocialNetworkEnum(); local3.registerCodec(new EnumCodecInfo(SocialNetworkEnum,false),local4); local3.registerCodec(new EnumCodecInfo(SocialNetworkEnum,true),new OptionalCodecDecorator(local4)); local4 = new CodecItemCategoryEnum(); local3.registerCodec(new EnumCodecInfo(ItemCategoryEnum,false),local4); local3.registerCodec(new EnumCodecInfo(ItemCategoryEnum,true),new OptionalCodecDecorator(local4)); local4 = new CodecItemGarageProperty(); local3.registerCodec(new EnumCodecInfo(ItemGarageProperty,false),local4); local3.registerCodec(new EnumCodecInfo(ItemGarageProperty,true),new OptionalCodecDecorator(local4)); local4 = new CodecItemViewCategoryEnum(); local3.registerCodec(new EnumCodecInfo(ItemViewCategoryEnum,false),local4); local3.registerCodec(new EnumCodecInfo(ItemViewCategoryEnum,true),new OptionalCodecDecorator(local4)); local4 = new CodecShopAbonementBonusTypeEnum(); local3.registerCodec(new EnumCodecInfo(ShopAbonementBonusTypeEnum,false),local4); local3.registerCodec(new EnumCodecInfo(ShopAbonementBonusTypeEnum,true),new OptionalCodecDecorator(local4)); local4 = new CodecShopCategoryEnum(); local3.registerCodec(new EnumCodecInfo(ShopCategoryEnum,false),local4); local3.registerCodec(new EnumCodecInfo(ShopCategoryEnum,true),new OptionalCodecDecorator(local4)); local4 = new String__String(false,false); local3.registerCodec(new MapCodecInfo(new TypeCodecInfo(String,false),new TypeCodecInfo(String,false),false),local4); local3.registerCodec(new MapCodecInfo(new TypeCodecInfo(String,false),new TypeCodecInfo(String,false),true),new OptionalCodecDecorator(local4)); local4 = new VectorCodecCaptchaCCLevel1(false); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptchaCC,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptchaCC,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecCaptchaCCLevel1(true); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptchaCC,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CaptchaCC,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecCaptchaLocationLevel1(false); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(CaptchaLocation,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(CaptchaLocation,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecCaptchaLocationLevel1(true); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(CaptchaLocation,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(CaptchaLocation,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecChallengesTimeCCLevel1(false); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ChallengesTimeCC,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ChallengesTimeCC,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecChallengesTimeCCLevel1(true); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ChallengesTimeCC,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ChallengesTimeCC,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecColoringCCLevel1(false); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColoringCC,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColoringCC,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecColoringCCLevel1(true); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColoringCC,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ColoringCC,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecExternalAuthParametersLevel1(false); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ExternalAuthParameters,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ExternalAuthParameters,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecExternalAuthParametersLevel1(true); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ExternalAuthParameters,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ExternalAuthParameters,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecLayoutStateLevel1(false); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(LayoutState,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(LayoutState,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecLayoutStateLevel1(true); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(LayoutState,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(LayoutState,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecDataOwnerCCLevel1(false); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DataOwnerCC,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DataOwnerCC,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecDataOwnerCCLevel1(true); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DataOwnerCC,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DataOwnerCC,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecSocialNetworkEnumLevel1(false); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(SocialNetworkEnum,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(SocialNetworkEnum,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecSocialNetworkEnumLevel1(true); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(SocialNetworkEnum,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(SocialNetworkEnum,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecItemCategoryEnumLevel1(false); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemCategoryEnum,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemCategoryEnum,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecItemCategoryEnumLevel1(true); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemCategoryEnum,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemCategoryEnum,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecItemGaragePropertyLevel1(false); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemGarageProperty,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemGarageProperty,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecItemGaragePropertyLevel1(true); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemGarageProperty,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemGarageProperty,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecItemViewCategoryEnumLevel1(false); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemViewCategoryEnum,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemViewCategoryEnum,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecItemViewCategoryEnumLevel1(true); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemViewCategoryEnum,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemViewCategoryEnum,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecShopAbonementBonusTypeEnumLevel1(false); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ShopAbonementBonusTypeEnum,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ShopAbonementBonusTypeEnum,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecShopAbonementBonusTypeEnumLevel1(true); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ShopAbonementBonusTypeEnum,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ShopAbonementBonusTypeEnum,true),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecShopCategoryEnumLevel1(false); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ShopCategoryEnum,false),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ShopCategoryEnum,false),true,1),new OptionalCodecDecorator(local4)); local4 = new VectorCodecShopCategoryEnumLevel1(true); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ShopCategoryEnum,true),false,1),local4); local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ShopCategoryEnum,true),true,1),new OptionalCodecDecorator(local4)); } public function stop(param1:OSGi) : void { } } }
package alternativa.tanks.model.item.category { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.commons.types.ItemViewCategoryEnum; public class IItemViewCategoryAdapt implements IItemViewCategory { private var object:IGameObject; private var impl:IItemViewCategory; public function IItemViewCategoryAdapt(param1:IGameObject, param2:IItemViewCategory) { super(); this.object = param1; this.impl = param2; } public function getViewCategory() : ItemViewCategoryEnum { var result:ItemViewCategoryEnum = null; try { Model.object = this.object; result = this.impl.getViewCategory(); } finally { Model.popObject(); } return result; } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.logging.gamescreen { import flash.events.IEventDispatcher; public interface UserChangeGameScreenService extends IEventDispatcher { function switchGarage() : void; function switchBattleSelect() : void; function switchMatchmaking() : void; function questWindowOpened() : void; function exitFromBattleToMatchmaking() : void; function exitFromBattleToGarage() : void; function exitFromBattleToClan() : void; function exitFromGame() : void; function enterBattle() : void; function paymentWindowOpened() : void; function paymentWindowClosed() : void; function questWindowClosed() : void; function friendWindowClosed() : void; function settingsWindowClosed() : void; function showUserStatistics() : void; function switchClan() : void; function returnToBattle() : void; } }