code
stringlengths
57
237k
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.ItemInfoPanelBitmaps_cooldownNitroClass.png")] public class ItemInfoPanelBitmaps_cooldownNitroClass extends BitmapAsset { public function ItemInfoPanelBitmaps_cooldownNitroClass() { super(); } } }
package alternativa.tanks.model.garage.resistance { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.model.garage.resistance.ResistancesIcons_bitmapFreezeResistance.png")] public class ResistancesIcons_bitmapFreezeResistance extends BitmapAsset { public function ResistancesIcons_bitmapFreezeResistance() { super(); } } }
package alternativa.tanks.model.info { import platform.client.fp10.core.resource.types.ImageResource; import projects.tanks.client.battleselect.model.battle.BattleInfoCC; [ModelInterface] public interface IBattleInfo { function getConstructor() : BattleInfoCC; function getPreviewResource() : ImageResource; } }
package alternativa.tanks.gui.friends.list.renderer.background { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.friends.list.renderer.background.UserOfflineCellSelected_rightIconClass.png")] public class UserOfflineCellSelected_rightIconClass extends BitmapAsset { public function UserOfflineCellSelected_rightIconClass() { super(); } } }
package alternativa.tanks.gui.payment.controls.exchange { import flash.events.Event; public class ExchangeGroupEvent extends Event { public static const PROCEED:String = "ExchangeGroupEvent.proceed"; public static const RETURN:String = "ExchangeGroupEvent.return"; public function ExchangeGroupEvent(param1:String) { super(param1); } } }
package controls.dropdownlist { import alternativa.osgi.service.display.IDisplay; import base.DiscreteSprite; import controls.ComboButton; import controls.base.LabelBase; import fl.controls.List; import fl.data.DataProvider; import fl.events.ListEvent; import flash.events.Event; import flash.events.KeyboardEvent; import flash.events.MouseEvent; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFieldType; import projects.tanks.clients.fp10.libraries.tanksservices.utils.AlertUtils; import projects.tanks.clients.fp10.libraries.tanksservices.utils.removeDisplayObject; import utils.ScrollStyleUtils; public class DropDownList extends DiscreteSprite { [Inject] public static var display:IDisplay; protected var button:ComboButton = new ComboButton(); protected var _listBg:DPLBackground; protected var list:List = new List(); protected var dp:DataProvider = new DataProvider(); private var _label:LabelBase; private var hiddenInput:TextField; protected var _selectedItem:Object; protected var _selectedIndex:int = 0; private var _width:int; private var _listWidthExtension:int; private var _height:int = 151; protected var _value:Object; private var _isOpen:Boolean; private var _isOver:Boolean; private var viewName:String; public function DropDownList(param1:String = "gameName") { super(); this.viewName = param1; this.init(); } protected function init() : void { this.hiddenInput = new TextField(); this.hiddenInput.visible = false; this.hiddenInput.type = TextFieldType.INPUT; this._label = new LabelBase(); this._label.x = -10; this._label.y = 7; addChild(this.listBg); addChild(this.list); addChild(this.button); addChild(this._label); this.listBg.y = 5; this.list.y = 33; this.list.x = 3; this.list.setSize(144,241); this.list.rowHeight = 20; this.list.dataProvider = this.dp; this.setRenderer(ComboR); ScrollStyleUtils.setGrayStyle(this.list); this.list.focusEnabled = false; this.list.visible = false; this.listBg.visible = false; this.button._label.x; this.button.addEventListener(MouseEvent.CLICK,this.onButtonClick); } public function setRenderer(param1:Class) : void { this.list.setStyle("cellRenderer",param1); } protected function onButtonClick(param1:MouseEvent) : void { if(this.isOpen) { this.close(); } else { this.open(); } } protected function open() : void { if(!this.isOpen) { this.setEvent(); this.listBg.visible = this.list.visible = true; display.stage.focus = this.hiddenInput; display.stage.addChild(this.hiddenInput); this._isOpen = true; this._isOver = true; dispatchEvent(new Event(Event.OPEN)); } } public function get isOpen() : Boolean { return this._isOpen; } private function setEvent() : void { this.list.addEventListener(ListEvent.ITEM_CLICK,this.onItemClick); this.hiddenInput.addEventListener(KeyboardEvent.KEY_UP,this.onKeyUpHiddenInput); display.stage.addEventListener(MouseEvent.CLICK,this.onClickStage); this.addEventListener(MouseEvent.ROLL_OVER,this.onRollOver); this.addEventListener(MouseEvent.ROLL_OUT,this.onRollOut); } private function onClickStage(param1:MouseEvent) : void { if(!this._isOver) { this.close(); } } private function onRollOver(param1:MouseEvent) : void { this._isOver = true; } private function onRollOut(param1:MouseEvent) : void { this._isOver = false; } protected function close() : void { if(this.isOpen) { this.removeEvents(); this.listBg.visible = this.list.visible = false; removeDisplayObject(this.hiddenInput); this.clearFocus(); this._isOpen = false; } } private function removeEvents() : void { this.hiddenInput.removeEventListener(KeyboardEvent.KEY_UP,this.onKeyUpHiddenInput); this.list.removeEventListener(ListEvent.ITEM_CLICK,this.onItemClick); display.stage.removeEventListener(MouseEvent.CLICK,this.onClickStage); this.removeEventListener(MouseEvent.ROLL_OVER,this.onRollOver); this.removeEventListener(MouseEvent.ROLL_OUT,this.onRollOut); } private function clearFocus() : void { if(display.stage.focus == this.hiddenInput) { display.stage.focus = null; } } public function get selectedItem() : Object { return this._selectedItem; } public function set selectedItem(param1:Object) : void { if(param1 == null) { this._selectedItem = null; this.button.label = ""; } else { this._selectedIndex = this.dp.getItemIndex(param1); this._selectedItem = this.dp.getItemAt(this._selectedIndex); this.button.label = param1[this.viewName]; } dispatchEvent(new Event(Event.CHANGE)); } public function get selectedIndex() : int { return this._selectedIndex; } public function set label(param1:String) : void { this._label.text = param1; this._label.autoSize = TextFieldAutoSize.RIGHT; } public function getLabelWidth() : int { return this._label.width; } protected function onItemClick(param1:ListEvent) : void { var local2:Object = param1.item; this._selectedIndex = param1.index; if(local2.rang == 0) { this.button.label = local2[this.viewName]; this._selectedItem = local2; } this.close(); dispatchEvent(new Event(Event.CHANGE)); } public function addItem(param1:Object) : void { var local2:Object = null; this.dp.addItem(param1); local2 = this.dp.getItemAt(0); this._selectedItem = local2; this.button.label = local2[this.viewName]; } public function replaceItemAt(param1:Object, param2:int) : void { this.dp.replaceItemAt(param1,param2); } public function sortOn(param1:Object, param2:Object = null) : void { var local3:Object = null; this.dp.sortOn(param1,param2); if(this.dp.length > 0) { local3 = this.dp.getItemAt(0); this._selectedItem = local3; this._value = this._selectedItem[this.viewName]; this.button.label = local3[this.viewName]; } } public function clear() : void { this.dp = new DataProvider(); this.list.dataProvider = this.dp; this.button.label = ""; } override public function set width(param1:Number) : void { this._width = param1; this.draw(); } public function set listWidthExtension(param1:Number) : void { this._listWidthExtension = param1; this.draw(); } override public function set height(param1:Number) : void { this._height = param1; this.draw(); } protected function draw() : void { this.listBg.width = this._width + this._listWidthExtension; this.listBg.height = this._height - 2; this.button.width = this._width; this.list.setSize(this._width + this._listWidthExtension,this._height - 34); this.list.invalidate(); } public function set value(param1:Object) : void { var local2:Object = null; this._value = ""; this.button.label = this._value.toString(); this._selectedItem = null; var local3:int = 0; while(local3 < this.dp.length) { local2 = this.dp.getItemAt(local3); if(local2[this.viewName] == param1) { this._selectedItem = local2; this._value = this._selectedItem[this.viewName]; this.button.label = this._value.toString(); this.list.selectedIndex = local3; this.list.scrollToSelected(); } local3++; } dispatchEvent(new Event(Event.CHANGE)); } public function selectItemByField(param1:String, param2:Object) : void { var local3:int = this.findItemIndexByField(param1,param2); if(local3 != -1) { this._selectedItem = this.dp.getItemAt(local3); this._value = this._selectedItem[this.viewName]; this.button.label = this._value.toString(); this.list.selectedIndex = local3; this.list.scrollToSelected(); dispatchEvent(new Event(Event.CHANGE)); } } public function selectItemAt(param1:int) : void { if(param1 >= this.dp.length) { return; } this._selectedItem = this.dp.getItemAt(param1); this._value = this._selectedItem[this.viewName]; this.button.label = this._value.toString(); this.list.selectedIndex = param1; this.list.scrollToSelected(); dispatchEvent(new Event(Event.CHANGE)); } public function findItemIndexByField(param1:String, param2:Object) : int { var local4:Object = null; var local3:int = 0; while(local3 < this.dp.length) { local4 = this.dp.getItemAt(local3); if(local4[param1] == param2) { return local3; } local3++; } return -1; } public function get value() : Object { return this._value; } private function onKeyUpHiddenInput(param1:KeyboardEvent) : void { if(AlertUtils.isCancelKey(param1.keyCode)) { this.close(); } else { this.getItemByFirstChar(this.hiddenInput.text.substr(0,1)); this.hiddenInput.text = ""; } } public function getItemByFirstChar(param1:String) : Object { var local4:Object = null; var local2:uint = this.dp.length; var local3:int = 0; while(local3 < local2) { local4 = this.dp.getItemAt(local3); if(local4[this.viewName].substr(0,1).toLowerCase() == param1.toLowerCase()) { this._selectedItem = local4; this._value = this._selectedItem[this.viewName]; this.button.label = this._value.toString(); this.list.selectedIndex = local3; this.list.verticalScrollPosition = local3 * 20; dispatchEvent(new Event(Event.CHANGE)); return local4; } local3++; } return null; } protected function get listBg() : DPLBackground { if(!this._listBg) { this._listBg = new DPLBackground(100,275); } return this._listBg; } public function get rowHeight() : Number { return this.list.rowHeight; } protected function getList() : List { return this.list; } } }
package alternativa.tanks.models.weapon.thunder { import alternativa.tanks.battle.BattleRunnerProvider; import alternativa.tanks.battle.BattleUtils; import alternativa.tanks.battle.LogicUnit; import alternativa.tanks.battle.objects.tank.Tank; import alternativa.tanks.battle.objects.tank.Weapon; import alternativa.tanks.battle.objects.tank.WeaponPlatform; import alternativa.tanks.models.weapon.AllGlobalGunParams; import alternativa.tanks.models.weapon.WeaponForces; import alternativa.tanks.models.weapon.WeaponObject; import alternativa.tanks.models.weapon.common.HitInfo; import alternativa.tanks.models.weapon.shared.SimpleWeaponController; import alternativa.tanks.models.weapon.splash.Splash; import alternativa.tanks.models.weapon.weakening.DistanceWeakening; import alternativa.tanks.models.weapons.targeting.TargetingResult; import alternativa.tanks.models.weapons.targeting.TargetingSystem; import alternativa.tanks.utils.EncryptedInt; import alternativa.tanks.utils.EncryptedIntImpl; import alternativa.tanks.utils.MathUtils; import flash.utils.getTimer; import projects.tanks.client.garage.models.item.properties.ItemProperty; public class ThunderWeapon extends BattleRunnerProvider implements Weapon, LogicUnit { private static const gunParams:AllGlobalGunParams = new AllGlobalGunParams(); private static const hitInfo:HitInfo = new HitInfo(); private var enabled:Boolean; private var nextTime:EncryptedInt = new EncryptedIntImpl(); private var weaponForces:WeaponForces; private var controller:SimpleWeaponController; private var targetingSystem:TargetingSystem; private var weaponPlatform:WeaponPlatform; private var weakening:DistanceWeakening; private var splash:Splash; private var callback:ThunderCallback; private var effects:IThunderEffects; private var weaponObject:WeaponObject; private var stunEnergy:Number; private var stunned:Boolean; public function ThunderWeapon(param1:WeaponObject, param2:WeaponForces, param3:DistanceWeakening, param4:TargetingSystem, param5:Splash, param6:IThunderEffects, param7:ThunderCallback) { super(); this.weaponObject = param1; this.weaponForces = param2; this.controller = new SimpleWeaponController(); this.targetingSystem = param4; this.weakening = param3; this.splash = param5; this.callback = param7; this.effects = param6; this.stunned = false; } private static function adjustHitPosition(param1:HitInfo) : void { param1.position.add(param1.normal); } public function init(param1:WeaponPlatform) : void { this.weaponPlatform = param1; this.controller.init(); this.reset(); } public function destroy() : void { this.weaponForces = null; this.targetingSystem = null; this.weakening = null; this.splash = null; this.callback = null; this.effects = null; this.controller.destroy(); this.controller = null; } public function activate() : void { getBattleRunner().addLogicUnit(this); } public function deactivate() : void { getBattleRunner().removeLogicUnit(this); } public function enable() : void { this.enabled = true; this.controller.discardStoredAction(); } public function disable(param1:Boolean) : void { this.enabled = false; } public function reset() : void { this.nextTime.setInt(getTimer()); } public function getStatus() : Number { var local1:Number = NaN; if(this.stunned) { return this.stunEnergy; } local1 = 1 - (this.nextTime.getInt() - getTimer()) / this.weaponObject.getReloadTimeMS(); return MathUtils.clamp(local1,0,1); } public function runLogic(param1:int, param2:int) : void { if(this.controller.wasActive()) { if(this.enabled && param1 >= this.nextTime.getInt() && !this.stunned) { this.shoot(param1); } this.controller.discardStoredAction(); } } private function shoot(param1:int) : void { var local2:Number = NaN; var local3:Tank = null; this.nextTime.setInt(param1 + this.weaponObject.getReloadTimeMS()); this.weaponPlatform.getAllGunParams(gunParams); this.weaponPlatform.getBody().addWorldForceScaled(gunParams.barrelOrigin,gunParams.direction,-this.weaponForces.getRecoilForce()); this.weaponPlatform.addDust(); this.effects.createShotEffects(this.weaponPlatform.getLocalMuzzlePosition(),this.weaponPlatform.getTurret3D()); if(BattleUtils.isTurretAboveGround(this.weaponPlatform.getBody(),gunParams) && this.getTarget(gunParams,hitInfo)) { adjustHitPosition(hitInfo); this.effects.createExplosionEffects(hitInfo.position); local2 = this.weakening.getImpactCoeff(hitInfo.distance); this.splash.applySplashForce(hitInfo.position,local2,hitInfo.body); if(BattleUtils.isTankBody(hitInfo.body)) { local3 = hitInfo.body.tank; local3.applyWeaponHit(hitInfo.position,hitInfo.direction,this.weaponForces.getImpactForce() * local2); this.callback.onShotTarget(param1,hitInfo.position,hitInfo.body); } else { this.effects.createExplosionMark(gunParams.barrelOrigin,hitInfo.position); this.callback.onShotStatic(param1,hitInfo.direction); } } else { this.callback.onShot(param1); } } private function getTarget(param1:AllGlobalGunParams, param2:HitInfo) : Boolean { var local3:TargetingResult = this.targetingSystem.target(param1); param2.setResult(param1,local3); return local3.hasAnyHit(); } public function getResistanceProperty() : ItemProperty { return ItemProperty.THUNDER_RESISTANCE; } public function updateRecoilForce(param1:Number) : void { this.weaponForces.setRecoilForce(param1); } public function fullyRecharge() : void { this.nextTime.setInt(0); this.stunEnergy = 1; } public function weaponReloadTimeChanged(param1:int, param2:int) : void { this.nextTime.setInt(this.nextTime.getInt() + param2 - param1); } public function stun() : void { this.stunEnergy = this.getStatus(); this.stunned = true; } public function calm(param1:int) : void { this.nextTime.setInt(this.nextTime.getInt() + param1); this.stunned = false; } } }
package _codec.projects.tanks.client.battlefield.models.tankparts.sfx.freeze { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Float; import platform.client.fp10.core.resource.types.MultiframeTextureResource; import platform.client.fp10.core.resource.types.SoundResource; import platform.client.fp10.core.resource.types.TextureResource; import projects.tanks.client.battlefield.models.tankparts.sfx.freeze.FreezeSFXCC; import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingSFXEntity; public class CodecFreezeSFXCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_buffedShardsTextureResource:ICodec; private var codec_lightingSFXEntity:ICodec; private var codec_particleSpeed:ICodec; private var codec_particleTextureResource:ICodec; private var codec_planeTextureResource:ICodec; private var codec_shotSoundResource:ICodec; public function CodecFreezeSFXCC() { super(); } public function init(param1:IProtocol) : void { this.codec_buffedShardsTextureResource = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_lightingSFXEntity = param1.getCodec(new TypeCodecInfo(LightingSFXEntity,false)); this.codec_particleSpeed = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_particleTextureResource = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false)); this.codec_planeTextureResource = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false)); this.codec_shotSoundResource = param1.getCodec(new TypeCodecInfo(SoundResource,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:FreezeSFXCC = new FreezeSFXCC(); local2.buffedShardsTextureResource = this.codec_buffedShardsTextureResource.decode(param1) as TextureResource; local2.lightingSFXEntity = this.codec_lightingSFXEntity.decode(param1) as LightingSFXEntity; local2.particleSpeed = this.codec_particleSpeed.decode(param1) as Number; local2.particleTextureResource = this.codec_particleTextureResource.decode(param1) as MultiframeTextureResource; local2.planeTextureResource = this.codec_planeTextureResource.decode(param1) as MultiframeTextureResource; local2.shotSoundResource = this.codec_shotSoundResource.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:FreezeSFXCC = FreezeSFXCC(param2); this.codec_buffedShardsTextureResource.encode(param1,local3.buffedShardsTextureResource); this.codec_lightingSFXEntity.encode(param1,local3.lightingSFXEntity); this.codec_particleSpeed.encode(param1,local3.particleSpeed); this.codec_particleTextureResource.encode(param1,local3.particleTextureResource); this.codec_planeTextureResource.encode(param1,local3.planeTextureResource); this.codec_shotSoundResource.encode(param1,local3.shotSoundResource); } } }
package projects.tanks.client.entrance.model.entrance.trackingshower { 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 TrackingPixelShowingModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:TrackingPixelShowingModelServer; private var client:ITrackingPixelShowingModelBase = ITrackingPixelShowingModelBase(this); private var modelId:Long = Long.getLong(1856211401,2131898451); private var _loadPixelId:Long = Long.getLong(1935743445,1171486952); private var _loadPixel_pixelUrlCodec:ICodec; public function TrackingPixelShowingModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new TrackingPixelShowingModelServer(IModel(this)); this._loadPixel_pixelUrlCodec = this._protocol.getCodec(new TypeCodecInfo(String,false)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._loadPixelId: this.client.loadPixel(String(this._loadPixel_pixelUrlCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.controller.events { import flash.events.Event; public class StartRegistration extends Event { public static const START_REGISTRATION:String = "START_REGISTRATION"; private var _registrationCaptchaEnabled:Boolean; private var _antiAddictionEnabled:Boolean; public function StartRegistration(param1:Boolean, param2:Boolean) { super(START_REGISTRATION); this._registrationCaptchaEnabled = param1; this._antiAddictionEnabled = param2; } public function get registrationCaptchaEnabled() : Boolean { return this._registrationCaptchaEnabled; } public function get antiAddictionEnabled() : Boolean { return this._antiAddictionEnabled; } } }
package projects.tanks.client.garage.models.item.object3ds { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class Object3DSModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:Object3DSModelServer; private var client:IObject3DSModelBase = IObject3DSModelBase(this); private var modelId:Long = Long.getLong(1497301838,-1092921347); public function Object3DSModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new Object3DSModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(Object3DSCC,false))); } protected function getInitParam() : Object3DSCC { return Object3DSCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.models.weapon.healing { import alternativa.physics.collision.types.RayHit; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class HealingGunCallbackEvents implements HealingGunCallback { private var object:IGameObject; private var impl:Vector.<Object>; public function HealingGunCallbackEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function updateHit(param1:int, param2:RayHit) : void { var i:int = 0; var m:HealingGunCallback = null; var time:int = param1; var rayHit:RayHit = param2; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = HealingGunCallback(this.impl[i]); m.updateHit(time,rayHit); i++; } } finally { Model.popObject(); } } public function stop(param1:int) : void { var i:int = 0; var m:HealingGunCallback = null; var time:int = param1; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = HealingGunCallback(this.impl[i]); m.stop(time); i++; } } finally { Model.popObject(); } } public function onTick(param1:int, param2:RayHit) : void { var i:int = 0; var m:HealingGunCallback = null; var time:int = param1; var rayHit:RayHit = param2; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = HealingGunCallback(this.impl[i]); m.onTick(time,rayHit); i++; } } finally { Model.popObject(); } } } }
package alternativa.tanks.service.upgradingitems { import alternativa.tanks.model.garage.resistance.ModuleResistances; import alternativa.types.Long; import controls.timer.CountDownTimer; import projects.tanks.client.commons.types.ItemGarageProperty; import projects.tanks.client.panel.model.garage.GarageItemInfo; import projects.tanks.clients.flash.commons.models.runtime.DataOwner; public class ItemInfo { public var info:GarageItemInfo; public var timer:CountDownTimer; public var ownerId:Long; public var resistances:Vector.<ItemGarageProperty>; public function ItemInfo(param1:GarageItemInfo, param2:CountDownTimer) { super(); this.info = param1; this.timer = param2; this.ownerId = DataOwner(param1.item.adapt(DataOwner)).getDataOwnerId(); if(param1.item.hasModel(ModuleResistances)) { this.resistances = ModuleResistances(param1.item.adapt(ModuleResistances)).getResistances(); } } } }
package alternativa.tanks.models.weapon.machinegun { import alternativa.math.Vector3; import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.objects.tank.Tank; import alternativa.tanks.battle.objects.tank.Weapon; import alternativa.tanks.models.tank.ultimate.hunter.stun.UltimateStunListener; import alternativa.tanks.models.weapon.IWeaponModel; import alternativa.tanks.models.weapon.WeaponObject; import alternativa.tanks.models.weapon.common.WeaponBuffListener; import alternativa.tanks.models.weapon.common.WeaponCommonData; import alternativa.tanks.models.weapon.machinegun.sfx.IMachineGunSFXModel; import alternativa.tanks.models.weapon.machinegun.sfx.MachineGunSFXData; import alternativa.tanks.models.weapons.stream.StreamWeaponCommunication; import alternativa.tanks.models.weapons.stream.StreamWeaponListener; import alternativa.tanks.models.weapons.targeting.CommonTargetingSystem; import alternativa.tanks.models.weapons.targeting.TargetingSystem; import platform.client.fp10.core.type.IGameObject; import projects.tanks.client.battlefield.models.tankparts.weapons.common.discrete.TargetHit; import projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.IMachineGunModelBase; import projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.MachineGunModelBase; [ModelInfo] public class MachineGunModel extends MachineGunModelBase implements IMachineGunModelBase, StreamWeaponListener, IWeaponModel, WeaponBuffListener, UltimateStunListener { [Inject] public static var battleService:BattleService; private static const MAX_DISTANCE:Number = 1000000; public function MachineGunModel() { super(); } public function onStart() : void { this.remoteWeapon().start(); } public function onStop() : void { this.remoteWeapon().stop(); } public function onTargetsUpdated(param1:Vector3, param2:Vector.<TargetHit>) : void { this.remoteWeapon().updateTargets(param1,param2); } public function createLocalWeapon(param1:IGameObject) : Weapon { var local2:WeaponObject = new WeaponObject(object); var local3:WeaponCommonData = local2.commonData(); var local4:TargetingSystem = new CommonTargetingSystem(param1,local2,MAX_DISTANCE); var local5:MachineGunWeapon = new MachineGunWeapon(local4,param1,getInitParam(),this.getSfxData(),local3,StreamWeaponCommunication(object.adapt(StreamWeaponCommunication)),object); putData(MachineGunWeapon,local5); return local5; } public function createRemoteWeapon(param1:IGameObject) : Weapon { var local2:WeaponObject = new WeaponObject(object); var local3:WeaponCommonData = local2.commonData(); var local4:MachineGunRemoteWeapon = new MachineGunRemoteWeapon(param1,getInitParam(),this.getSfxData(),local3); putData(MachineGunRemoteWeapon,local4); return local4; } private function getSfxData() : MachineGunSFXData { return IMachineGunSFXModel(object.adapt(IMachineGunSFXModel)).getSfxData(); } private function remoteWeapon() : MachineGunRemoteWeapon { return MachineGunRemoteWeapon(getData(MachineGunRemoteWeapon)); } public function weaponBuffStateChanged(param1:IGameObject, param2:Boolean, param3:Number) : void { var local5:MachineGunWeapon = null; var local4:MachineGunRemoteWeapon = this.remoteWeapon(); if(local4 != null) { local4.updateRecoilForce(param3); } else { local5 = MachineGunWeapon(getData(MachineGunWeapon)); if(local5 != null) { local5.updateRecoilForce(param3); local5.fullyRecharge(); local5.setBuffed(param2); } } } public function reconfigureWeapon(param1:int, param2:int) : void { var local4:MachineGunWeapon = null; var local3:MachineGunRemoteWeapon = this.remoteWeapon(); if(local3 != null) { local3.updateSpinTimes(param1,param2); } else { local4 = MachineGunWeapon(getData(MachineGunWeapon)); if(local4 != null) { local4.updateSpinTimes(param1,param2); } } } public function onStun(param1:Tank, param2:Boolean) : void { var local3:Weapon = this.getWeapon(); local3.disable(true); } public function onCalm(param1:Tank, param2:Boolean, param3:int) : void { var local4:Weapon = this.getWeapon(); local4.enable(); } private function getWeapon() : Weapon { var local1:MachineGunRemoteWeapon = this.remoteWeapon(); if(local1 != null) { return local1; } return Weapon(getData(MachineGunWeapon)); } public function setSpunState() : void { var local2:MachineGunWeapon = null; var local1:MachineGunRemoteWeapon = this.remoteWeapon(); if(local1 != null) { local1.spin(); } else { local2 = MachineGunWeapon(getData(MachineGunWeapon)); if(local2 != null) { local2.spin(); } } } } }
package alternativa.tanks.models.battlefield.effects.levelup.rangs { import mx.core.BitmapAsset; [ExcludeClass] public class BigRangIcon_rang_17 extends BitmapAsset { public function BigRangIcon_rang_17() { super(); } } }
package projects.tanks.client.panel.model.shop.garageitem.licenseclan { 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 LicenseClanShopItemModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function LicenseClanShopItemModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package alternativa.tanks.models.battle.battlefield.common { import alternativa.tanks.models.battle.battlefield.event.ChatOutputLineEvent; import filters.Filters; import flash.display.Sprite; import flash.events.Event; import flash.events.TimerEvent; import flash.utils.Timer; import flash.utils.setTimeout; public class MessageLine extends Sprite { private static const LIFE_TIME:int = 30000; protected var _alive:Boolean = true; private var killTimer:Timer; private var stop:Boolean = false; private var runOut:Boolean = false; protected var shadowContainer:Sprite = new Sprite(); public function MessageLine() { super(); this.shadowContainer.filters = Filters.SHADOW_FILTERS; addChild(this.shadowContainer); addEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); } public function killStop() : void { alpha = 1; removeEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); this.stop = true; } public function killStart() : void { this.stop = false; if(this.runOut) { this.killSelf(); } } public function get alive() : Boolean { return this._alive; } private function onAddedToStage(param1:Event) : void { setTimeout(this.timeRunOut,LIFE_TIME); } private function timeRunOut() : void { this.runOut = true; if(!this.stop) { this.killSelf(); } } private function killSelf() : void { this.killTimer = new Timer(50,20); this.killTimer.addEventListener(TimerEvent.TIMER,this.onKillTimer); this.killTimer.addEventListener(TimerEvent.TIMER_COMPLETE,this.onKillComplete); this.killTimer.start(); } private function onKillTimer(param1:TimerEvent) : void { if(!this.stop) { alpha -= 0.05; } else { this.killTimer.stop(); alpha = 1; } } private function onKillComplete(param1:TimerEvent) : void { this._alive = false; dispatchEvent(new ChatOutputLineEvent(ChatOutputLineEvent.KILL_ME,this)); removeEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); } } }
package alternativa.tanks.gui.error { import alternativa.osgi.service.locale.ILocaleService; import controls.base.DefaultButtonBase; import controls.base.LabelBase; import flash.events.MouseEvent; import forms.ColorConstants; import platform.client.fp10.core.service.address.AddressService; import projects.tanks.clients.flash.commons.services.notification.Notification; import projects.tanks.clients.fp10.libraries.TanksLocale; public class ErrorNotification extends Notification { [Inject] public static var localeService:ILocaleService; [Inject] public static var addressService:AddressService; private static const DEFAULT_BUTTON_WIDTH:int = 96; private var messageLabel:LabelBase; private var okButton:DefaultButtonBase; private var reenterButton:DefaultButtonBase; public function ErrorNotification() { super(null,TanksLocale.TEXT_ERROR_FATAL); this.messageLabel = new LabelBase(); this.messageLabel.text = localeService.getText(TanksLocale.TEXT_ERROR_FATAL); this.messageLabel.color = ColorConstants.GREEN_LABEL; this.messageLabel.mouseEnabled = false; addChild(this.messageLabel); this.reenterButton = new DefaultButtonBase(); this.reenterButton.width = DEFAULT_BUTTON_WIDTH + 15; this.reenterButton.label = localeService.getText(TanksLocale.TEXT_REENTER_TO_GAME); addChild(this.reenterButton); this.okButton = new DefaultButtonBase(); this.okButton.width = DEFAULT_BUTTON_WIDTH; this.okButton.label = localeService.getText(TanksLocale.TEXT_ALERT_ANSWER_OK); addChild(this.okButton); this.reenterButton.addEventListener(MouseEvent.CLICK,this.onReenterClick,false,0,true); this.okButton.addEventListener(MouseEvent.CLICK,this.onCancelClick,false,0,true); } private function onCancelClick(param1:MouseEvent) : void { hide(); } private function onReenterClick(param1:MouseEvent) : void { if(addressService != null) { addressService.reload(); } } override protected function resize() : void { this.messageLabel.x = GAP + 9; this.messageLabel.y = GAP + 11; _innerHeight = this.messageLabel.y + this.messageLabel.height - 3; var local1:int = this.messageLabel.x + this.messageLabel.width + GAP * 2; if(local1 > _width) { _width = local1; } var local2:int = _innerHeight + 16; this.okButton.x = GAP; this.okButton.y = local2; this.reenterButton.x = _width - this.reenterButton.width - GAP; this.reenterButton.y = local2; _height = this.reenterButton.y + this.reenterButton.height + GAP + 1; super.resize(); } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class NewReferalWindow_bitmapIntroPict extends BitmapAsset { public function NewReferalWindow_bitmapIntroPict() { super(); } } }
package platform.client.core.general.resource.osgi { import _codec.platform.core.general.resource.types.imageframe.CodecResourceImageFrameParams; import _codec.platform.core.general.resource.types.imageframe.VectorCodecResourceImageFrameParamsLevel1; 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.TypeCodecInfo; import platform.core.general.resource.types.imageframe.ResourceImageFrameParams; public class Activator implements IBundleActivator { public static var osgi:OSGi; public function Activator() { super(); } public function start(param1:OSGi) : void { var local3:ICodec = null; osgi = param1; var local2:IProtocol = IProtocol(osgi.getService(IProtocol)); local3 = new CodecResourceImageFrameParams(); local2.registerCodec(new TypeCodecInfo(ResourceImageFrameParams,false),local3); local2.registerCodec(new TypeCodecInfo(ResourceImageFrameParams,true),new OptionalCodecDecorator(local3)); local3 = new VectorCodecResourceImageFrameParamsLevel1(false); local2.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ResourceImageFrameParams,false),false,1),local3); local2.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ResourceImageFrameParams,false),true,1),new OptionalCodecDecorator(local3)); local3 = new VectorCodecResourceImageFrameParamsLevel1(true); local2.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ResourceImageFrameParams,true),false,1),local3); local2.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ResourceImageFrameParams,true),true,1),new OptionalCodecDecorator(local3)); } public function stop(param1:OSGi) : void { } } }
package alternativa.tanks.sfx { import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.Decal; import alternativa.math.Vector3; import alternativa.tanks.battle.BattleService; import alternativa.tanks.battle.scene3d.scene3dcontainer.Scene3DContainer; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.utils.objectpool.Pool; import alternativa.tanks.utils.objectpool.PooledObject; public class DecalEffect extends PooledObject implements GraphicEffect { [Inject] public static var battleService:BattleService; private var decal:Decal; private var position:Vector3 = new Vector3(); private var projectionOrigin:Vector3 = new Vector3(); private var material:TextureMaterial; private var radius:Number; private var lifeTime:int; private var fadeTime:int; private var fadeTimeLeft:int; public function DecalEffect(param1:Pool) { super(param1); } public function init(param1:Vector3, param2:TextureMaterial, param3:Vector3, param4:Number, param5:int, param6:int) : void { this.position.copy(param1); this.projectionOrigin.copy(param3); this.radius = param4; this.material = param2; this.lifeTime = param5; this.fadeTime = param6; this.fadeTimeLeft = param6; } public function addedToScene(param1:Scene3DContainer) : void { this.decal = battleService.getBattleScene3D().addPermanentDecal(this.position,this.projectionOrigin,this.radius,this.material); if(this.decal == null) { this.kill(); } } public function play(param1:int, param2:GameCamera) : Boolean { if(this.fadeTimeLeft > 0) { if(this.lifeTime > 0) { this.lifeTime -= param1; } else { this.fadeTimeLeft -= param1; if(this.decal != null) { this.decal.alpha = this.fadeTimeLeft / this.fadeTime; } } return true; } return false; } public function destroy() : void { if(this.decal != null) { battleService.getBattleScene3D().removeDecal(this.decal); this.decal = null; } this.material = null; recycle(); } public function kill() : void { this.fadeTimeLeft = 0; } } }
package projects.tanks.client.garage.models.item.drone { 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 DroneModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function DroneModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package projects.tanks.client.panel.model.bonus.showing.items { public interface IBonusItemsShowingModelBase { } }
package assets.button { import flash.display.BitmapData; [Embed(source="/_assets/assets.button.bigbutton_OFF_RIGHT.png")] public dynamic class bigbutton_OFF_RIGHT extends BitmapData { public function bigbutton_OFF_RIGHT(param1:int = 7, param2:int = 50) { super(param1,param2); } } }
package _codec.projects.tanks.client.garage.models.item.mobilelootbox.lootbox { 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.ImageResource; import projects.tanks.client.garage.models.item.mobilelootbox.lootbox.MobileLoot; public class CodecMobileLoot implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_count:ICodec; private var codec_image:ICodec; private var codec_name:ICodec; public function CodecMobileLoot() { super(); } public function init(param1:IProtocol) : void { this.codec_count = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_image = param1.getCodec(new TypeCodecInfo(ImageResource,false)); this.codec_name = param1.getCodec(new TypeCodecInfo(String,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:MobileLoot = new MobileLoot(); local2.count = this.codec_count.decode(param1) as int; local2.image = this.codec_image.decode(param1) as ImageResource; local2.name = this.codec_name.decode(param1) as String; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:MobileLoot = MobileLoot(param2); this.codec_count.encode(param1,local3.count); this.codec_image.encode(param1,local3.image); this.codec_name.encode(param1,local3.name); } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class ItemInfoPanel_bitmapArmorWear extends BitmapAsset { public function ItemInfoPanel_bitmapArmorWear() { super(); } } }
package alternativa.math { import flash.geom.Matrix3D; public class Matrix4 { public static const IDENTITY:Matrix4 = new Matrix4(); public var a:Number; public var b:Number; public var c:Number; public var d:Number; public var e:Number; public var f:Number; public var g:Number; public var h:Number; public var i:Number; public var j:Number; public var k:Number; public var l:Number; public function Matrix4(a:Number = 1, b:Number = 0, c:Number = 0, d:Number = 0, e:Number = 0, f:Number = 1, g:Number = 0, h:Number = 0, i:Number = 0, j:Number = 0, k:Number = 1, l:Number = 0) { super(); this.a = a; this.b = b; this.c = c; this.d = d; this.e = e; this.f = f; this.g = g; this.h = h; this.i = i; this.j = j; this.k = k; this.l = l; } public function init(a:Number = 1, b:Number = 0, c:Number = 0, d:Number = 0, e:Number = 0, f:Number = 1, g:Number = 0, h:Number = 0, i:Number = 0, j:Number = 0, k:Number = 1, l:Number = 0) : void { this.a = a; this.b = b; this.c = c; this.d = d; this.e = e; this.f = f; this.g = g; this.h = h; this.i = i; this.j = j; this.k = k; this.l = l; } public function toIdentity() : Matrix4 { this.a = this.f = this.k = 1; this.b = this.c = this.e = this.g = this.i = this.j = this.d = this.h = this.l = 0; return this; } public function invert() : Matrix4 { var aa:Number = this.a; var bb:Number = this.b; var cc:Number = this.c; var dd:Number = this.d; var ee:Number = this.e; var ff:Number = this.f; var gg:Number = this.g; var hh:Number = this.h; var ii:Number = this.i; var jj:Number = this.j; var kk:Number = this.k; var ll:Number = this.l; var det:Number = -cc * ff * ii + bb * gg * ii + cc * ee * jj - aa * gg * jj - bb * ee * kk + aa * ff * kk; this.a = (-gg * jj + ff * kk) / det; this.b = (cc * jj - bb * kk) / det; this.c = (-cc * ff + bb * gg) / det; this.d = (dd * gg * jj - cc * hh * jj - dd * ff * kk + bb * hh * kk + cc * ff * ll - bb * gg * ll) / det; this.e = (gg * ii - ee * kk) / det; this.f = (-cc * ii + aa * kk) / det; this.g = (cc * ee - aa * gg) / det; this.h = (cc * hh * ii - dd * gg * ii + dd * ee * kk - aa * hh * kk - cc * ee * ll + aa * gg * ll) / det; this.i = (-ff * ii + ee * jj) / det; this.j = (bb * ii - aa * jj) / det; this.k = (-bb * ee + aa * ff) / det; this.l = (dd * ff * ii - bb * hh * ii - dd * ee * jj + aa * hh * jj + bb * ee * ll - aa * ff * ll) / det; return this; } public function append(m:Matrix4) : Matrix4 { var aa:Number = this.a; var bb:Number = this.b; var cc:Number = this.c; var dd:Number = this.d; var ee:Number = this.e; var ff:Number = this.f; var gg:Number = this.g; var hh:Number = this.h; var ii:Number = this.i; var jj:Number = this.j; var kk:Number = this.k; var ll:Number = this.l; this.a = m.a * aa + m.b * ee + m.c * ii; this.b = m.a * bb + m.b * ff + m.c * jj; this.c = m.a * cc + m.b * gg + m.c * kk; this.d = m.a * dd + m.b * hh + m.c * ll + m.d; this.e = m.e * aa + m.f * ee + m.g * ii; this.f = m.e * bb + m.f * ff + m.g * jj; this.g = m.e * cc + m.f * gg + m.g * kk; this.h = m.e * dd + m.f * hh + m.g * ll + m.h; this.i = m.i * aa + m.j * ee + m.k * ii; this.j = m.i * bb + m.j * ff + m.k * jj; this.k = m.i * cc + m.j * gg + m.k * kk; this.l = m.i * dd + m.j * hh + m.k * ll + m.l; return this; } public function prepend(m:Matrix4) : Matrix4 { var aa:Number = this.a; var bb:Number = this.b; var cc:Number = this.c; var dd:Number = this.d; var ee:Number = this.e; var ff:Number = this.f; var gg:Number = this.g; var hh:Number = this.h; var ii:Number = this.i; var jj:Number = this.j; var kk:Number = this.k; var ll:Number = this.l; this.a = aa * m.a + bb * m.e + cc * m.i; this.b = aa * m.b + bb * m.f + cc * m.j; this.c = aa * m.c + bb * m.g + cc * m.k; this.d = aa * m.d + bb * m.h + cc * m.l + dd; this.e = ee * m.a + ff * m.e + gg * m.i; this.f = ee * m.b + ff * m.f + gg * m.j; this.g = ee * m.c + ff * m.g + gg * m.k; this.h = ee * m.d + ff * m.h + gg * m.l + hh; this.i = ii * m.a + jj * m.e + kk * m.i; this.j = ii * m.b + jj * m.f + kk * m.j; this.k = ii * m.c + jj * m.g + kk * m.k; this.l = ii * m.d + jj * m.h + kk * m.l + ll; return this; } public function add(m:Matrix4) : Matrix4 { this.a += m.a; this.b += m.b; this.c += m.c; this.d += m.d; this.e += m.e; this.f += m.f; this.g += m.g; this.h += m.h; this.i += m.i; this.j += m.j; this.k += m.k; this.l += m.l; return this; } public function subtract(m:Matrix4) : Matrix4 { this.a -= m.a; this.b -= m.b; this.c -= m.c; this.d -= m.d; this.e -= m.e; this.f -= m.f; this.g -= m.g; this.h -= m.h; this.i -= m.i; this.j -= m.j; this.k -= m.k; this.l -= m.l; return this; } public function transformVector(vin:Vector3, vout:Vector3) : void { vout.x = this.a * vin.x + this.b * vin.y + this.c * vin.z + this.d; vout.y = this.e * vin.x + this.f * vin.y + this.g * vin.z + this.h; vout.z = this.i * vin.x + this.j * vin.y + this.k * vin.z + this.l; } public function transformVectorInverse(vin:Vector3, vout:Vector3) : void { var xx:Number = vin.x - this.d; var yy:Number = vin.y - this.h; var zz:Number = vin.z - this.l; vout.x = this.a * xx + this.e * yy + this.i * zz; vout.y = this.b * xx + this.f * yy + this.j * zz; vout.z = this.c * xx + this.g * yy + this.k * zz; } public function transformVectors(arrin:Vector.<Vector3>, arrout:Vector.<Vector3>) : void { var vin:Vector3 = null; var vout:Vector3 = null; var len:int = arrin.length; for(var idx:int = 0; idx < len; idx++) { vin = arrin[idx]; vout = arrout[idx]; vout.x = this.a * vin.x + this.b * vin.y + this.c * vin.z + this.d; vout.y = this.e * vin.x + this.f * vin.y + this.g * vin.z + this.h; vout.z = this.i * vin.x + this.j * vin.y + this.k * vin.z + this.l; } } public function transformVectorsN(arrin:Vector.<Vector3>, arrout:Vector.<Vector3>, len:int) : void { var vin:Vector3 = null; var vout:Vector3 = null; for(var idx:int = 0; idx < len; idx++) { vin = arrin[idx]; vout = arrout[idx]; vout.x = this.a * vin.x + this.b * vin.y + this.c * vin.z + this.d; vout.y = this.e * vin.x + this.f * vin.y + this.g * vin.z + this.h; vout.z = this.i * vin.x + this.j * vin.y + this.k * vin.z + this.l; } } public function transformVectorsInverse(arrin:Vector.<Vector3>, arrout:Vector.<Vector3>) : void { var vin:Vector3 = null; var vout:Vector3 = null; var xx:Number = NaN; var yy:Number = NaN; var zz:Number = NaN; var len:int = arrin.length; for(var idx:int = 0; idx < len; idx++) { vin = arrin[idx]; vout = arrout[idx]; xx = vin.x - this.d; yy = vin.y - this.h; zz = vin.z - this.l; vout.x = this.a * xx + this.e * yy + this.i * zz; vout.y = this.b * xx + this.f * yy + this.j * zz; vout.z = this.c * xx + this.g * yy + this.k * zz; } } public function transformVectorsInverseN(arrin:Vector.<Vector3>, arrout:Vector.<Vector3>, len:int) : void { var vin:Vector3 = null; var vout:Vector3 = null; var xx:Number = NaN; var yy:Number = NaN; var zz:Number = NaN; for(var idx:int = 0; idx < len; idx++) { vin = arrin[idx]; vout = arrout[idx]; xx = vin.x - this.d; yy = vin.y - this.h; zz = vin.z - this.l; vout.x = this.a * xx + this.e * yy + this.i * zz; vout.y = this.b * xx + this.f * yy + this.j * zz; vout.z = this.c * xx + this.g * yy + this.k * zz; } } public function getAxis(idx:int, axis:Vector3) : void { switch(idx) { case 0: axis.x = this.a; axis.y = this.e; axis.z = this.i; return; case 1: axis.x = this.b; axis.y = this.f; axis.z = this.j; return; case 2: axis.x = this.c; axis.y = this.g; axis.z = this.k; return; case 3: axis.x = this.d; axis.y = this.h; axis.z = this.l; return; default: return; } } public function deltaTransformVector(vin:Vector3, vout:Vector3) : void { vout.x = this.a * vin.x + this.b * vin.y + this.c * vin.z + this.d; vout.y = this.e * vin.x + this.f * vin.y + this.g * vin.z + this.h; vout.z = this.i * vin.x + this.j * vin.y + this.k * vin.z + this.l; } public function deltaTransformVectorInverse(vin:Vector3, vout:Vector3) : void { vout.x = this.a * vin.x + this.e * vin.y + this.i * vin.z; vout.y = this.b * vin.x + this.f * vin.y + this.j * vin.z; vout.z = this.c * vin.x + this.g * vin.y + this.k * vin.z; } public function copy(m:Matrix4) : Matrix4 { this.a = m.a; this.b = m.b; this.c = m.c; this.d = m.d; this.e = m.e; this.f = m.f; this.g = m.g; this.h = m.h; this.i = m.i; this.j = m.j; this.k = m.k; this.l = m.l; return this; } public function setFromMatrix3(m:Matrix3, offset:Vector3) : Matrix4 { this.a = m.a; this.b = m.b; this.c = m.c; this.d = offset.x; this.e = m.e; this.f = m.f; this.g = m.g; this.h = offset.y; this.i = m.i; this.j = m.j; this.k = m.k; this.l = offset.z; return this; } public function setOrientationFromMatrix3(m:Matrix3) : Matrix4 { this.a = m.a; this.b = m.b; this.c = m.c; this.e = m.e; this.f = m.f; this.g = m.g; this.i = m.i; this.j = m.j; this.k = m.k; return this; } public function setRotationMatrix(rx:Number, ry:Number, rz:Number) : Matrix4 { var cosX:Number = Math.cos(rx); var sinX:Number = Math.sin(rx); var cosY:Number = Math.cos(ry); var sinY:Number = Math.sin(ry); var cosZ:Number = Math.cos(rz); var sinZ:Number = Math.sin(rz); var cosZsinY:Number = cosZ * sinY; var sinZsinY:Number = sinZ * sinY; this.a = cosZ * cosY; this.b = cosZsinY * sinX - sinZ * cosX; this.c = cosZsinY * cosX + sinZ * sinX; this.e = sinZ * cosY; this.f = sinZsinY * sinX + cosZ * cosX; this.g = sinZsinY * cosX - cosZ * sinX; this.i = -sinY; this.j = cosY * sinX; this.k = cosY * cosX; return this; } public function setMatrix(x:Number, y:Number, z:Number, rx:Number, ry:Number, rz:Number) : Matrix4 { var cosX:Number = Math.cos(rx); var sinX:Number = Math.sin(rx); var cosY:Number = Math.cos(ry); var sinY:Number = Math.sin(ry); var cosZ:Number = Math.cos(rz); var sinZ:Number = Math.sin(rz); var cosZsinY:Number = cosZ * sinY; var sinZsinY:Number = sinZ * sinY; this.a = cosZ * cosY; this.b = cosZsinY * sinX - sinZ * cosX; this.c = cosZsinY * cosX + sinZ * sinX; this.d = x; this.e = sinZ * cosY; this.f = sinZsinY * sinX + cosZ * cosX; this.g = sinZsinY * cosX - cosZ * sinX; this.h = y; this.i = -sinY; this.j = cosY * sinX; this.k = cosY * cosX; this.l = z; return this; } public function getEulerAngles(angles:Vector3) : void { if(-1 < this.i && this.i < 1) { angles.x = Math.atan2(this.j,this.k); angles.y = -Math.asin(this.i); angles.z = Math.atan2(this.e,this.a); } else { angles.x = 0; angles.y = this.i <= -1 ? Number(Number(Math.PI)) : Number(Number(-Math.PI)); angles.y *= 0.5; angles.z = Math.atan2(-this.b,this.f); } } public function setPosition(pos:Vector3) : void { this.d = pos.x; this.h = pos.y; this.l = pos.z; } public function setFromMatrix3D(param1:Matrix3D) : void { var _loc2_:Vector.<Number> = param1.rawData; this.init(_loc2_[0],_loc2_[4],_loc2_[8],_loc2_[12],_loc2_[1],_loc2_[5],_loc2_[9],_loc2_[13],_loc2_[2],_loc2_[6],_loc2_[10],_loc2_[14]); } public function clone() : Matrix4 { return new Matrix4(this.a,this.b,this.c,this.d,this.e,this.f,this.g,this.h,this.i,this.j,this.k,this.l); } public function toString() : String { return "[Matrix4 [" + this.a.toFixed(3) + " " + this.b.toFixed(3) + " " + this.c.toFixed(3) + " " + this.d.toFixed(3) + "] [" + this.e.toFixed(3) + " " + this.f.toFixed(3) + " " + this.g.toFixed(3) + " " + this.h.toFixed(3) + "] [" + this.i.toFixed(3) + " " + this.j.toFixed(3) + " " + this.k.toFixed(3) + " " + this.l.toFixed(3) + "]]"; } } }
package alternativa.tanks.models.battle.dm { import alternativa.tanks.battle.BattleService; import alternativa.tanks.models.battle.battlefield.BattleModel; import alternativa.tanks.models.battle.battlefield.BattleType; import alternativa.tanks.models.weapon.ricochet.DMRicochetTargetEvaluator; import platform.client.fp10.core.model.ObjectLoadPostListener; import platform.client.fp10.core.model.ObjectUnloadListener; import projects.tanks.client.battleservice.model.battle.dm.BattleDMModelBase; import projects.tanks.client.battleservice.model.battle.dm.IBattleDMModelBase; [ModelInfo] public class BattleDMModel extends BattleDMModelBase implements IBattleDMModelBase, ObjectLoadPostListener, ObjectUnloadListener, BattleModel { [Inject] public static var battleService:BattleService; public function BattleDMModel() { super(); } public function getBattleType() : BattleType { return BattleType.DM; } [Obfuscation(rename="false")] public function objectLoadedPost() : void { battleService.setCommonTargetEvaluator(new DMCommonTargetEvaluator()); battleService.setHealingGunTargetEvaluator(new DMHealingGunTargetEvaluator()); battleService.setRailgunTargetEvaluator(new DMRailgunTargetEvaluator()); battleService.setRicochetTargetEvaluator(new DMRicochetTargetEvaluator()); } [Obfuscation(rename="false")] public function objectUnloaded() : void { battleService.setCommonTargetEvaluator(null); battleService.setHealingGunTargetEvaluator(null); battleService.setRailgunTargetEvaluator(null); battleService.setRicochetTargetEvaluator(null); } } }
package alternativa.tanks.gui { import alternativa.tanks.model.garage.resistance.ResistancesIcons; import controls.base.LabelBase; import controls.labels.MouseDisabledLabel; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; import flash.geom.Matrix; import flash.text.TextFormatAlign; public class ItemPropertyIcon extends Sprite { public var bmp:Bitmap; private var label:LabelBase; public function ItemPropertyIcon(param1:BitmapData, param2:BitmapData = null) { var local3:Number = NaN; var local4:Number = NaN; super(); if(param2 == null) { param2 = ItemInfoPanelBitmaps.backIcon; } if(param2 == ItemInfoPanelBitmaps.backIcon) { local3 = local4 = 1; } else { local3 = local4 = -4; } var local5:BitmapData = new BitmapData(param2.width,param2.height,true,0); local5.draw(param2); local5.draw(param1,new Matrix(1,0,0,1,local3,local4)); this.bmp = new Bitmap(local5); addChild(this.bmp); if(param2 == ResistancesIcons.resistanceIcon) { this.bmp.x = 2; } this.label = new MouseDisabledLabel(); this.label.size = 10; addChild(this.label); this.label.color = 59156; this.label.align = TextFormatAlign.CENTER; this.label.sharpness = -100; this.label.thickness = 100; this.posLabel(); this.label.y = this.bmp.height + 2; } public function setValue(param1:String, param2:uint) : void { this.label.text = param1; this.label.color = param2; this.posLabel(); } public function getLabel() : LabelBase { return this.label; } private function posLabel() : void { if(this.bmp.width > this.label.textWidth) { this.label.x = Math.round((this.bmp.width - this.label.textWidth) * 0.5) - 3; } else { this.label.x = -Math.round((this.label.textWidth - this.bmp.width) * 0.5) - 3; } } public function removeValue() : void { this.label.text = ""; } } }
package scpacker.gui { import mx.core.BitmapAsset; [ExcludeClass] public class GTanksI_coldload10 extends BitmapAsset { public function GTanksI_coldload10() { super(); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.address.events { import alternativa.types.Long; import flash.events.Event; public class BattleChangedAddressEvent extends Event { private var battleId:Long; public function BattleChangedAddressEvent(param1:Long) { super(TanksAddressEvent.BATTLE_CHANGED); this.battleId = param1; } public function getBattleId() : Long { return this.battleId; } } }
package utils.tweener.easing { public class Quad { public static const power:uint = 1; public function Quad() { super(); } public static function easeIn(param1:Number, param2:Number, param3:Number, param4:Number) : Number { return param3 * (param1 = param1 / param4) * param1 + param2; } public static function easeOut(param1:Number, param2:Number, param3:Number, param4:Number) : Number { return -param3 * (param1 = param1 / param4) * (param1 - 2) + param2; } public static function easeInOut(param1:Number, param2:Number, param3:Number, param4:Number) : Number { param1 = param1 / (param4 * 0.5); if(param1 < 1) { return param3 * 0.5 * param1 * param1 + param2; } return -param3 * 0.5 * (--param1 * (param1 - 2) - 1) + param2; } } }
package projects.tanks.client.users.model.friends.acceptednotificator { 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 FriendsAcceptedNotificatorModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _removeId:Long = Long.getLong(1806777076,-998770075); private var _remove_userIdCodec:ICodec; private var model:IModel; public function FriendsAcceptedNotificatorModelServer(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 platform.client.fp10.core.registry { import alternativa.types.Long; import flash.utils.Dictionary; import platform.client.fp10.core.type.IGameClass; import platform.client.fp10.core.type.impl.GameClass; public interface GameTypeRegistry { function createClass(param1:Long, param2:Vector.<Long>) : GameClass; function destroyClass(param1:Long) : void; function getClass(param1:Long) : IGameClass; function get classes() : Dictionary; } }
package alternativa.tanks.gui { import flash.events.Event; public class EmailBlockRequestEvent extends Event { public static const SEND_VALIDATE_EMAIL_REQUEST_EVENT:String = "ThanksForPurchaseWindowEmailRequestEventSEND_VALIDATE_EMAIL_REQUEST_EVENT"; public var email:String; public function EmailBlockRequestEvent(param1:String, param2:String) { super(param1,true,false); this.email = param2; } } }
package forms.events { import flash.events.Event; public class FormEvent extends Event { public static const FORM_DESTOY:String = "FormEventFormDestoy"; public function FormEvent(param1:String) { super(param1); } } }
package com.alternativaplatform.projects.tanks.client.warfare.models.tankparts.weapon.shot { public interface IShotModelBase { } }
package alternativa.tanks.model.payment.shop.description { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ShopItemAdditionalDescriptionEvents implements ShopItemAdditionalDescription { private var object:IGameObject; private var impl:Vector.<Object>; public function ShopItemAdditionalDescriptionEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getAdditionalDescription() : String { var result:String = null; var i:int = 0; var m:ShopItemAdditionalDescription = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = ShopItemAdditionalDescription(this.impl[i]); result = m.getAdditionalDescription(); i++; } } finally { Model.popObject(); } return result; } } }
package projects.tanks.client.battlefield.models.ultimate.effects.hunter { import platform.client.fp10.core.resource.types.SoundResource; import platform.client.fp10.core.resource.types.TextureResource; public class HunterUltimateCC { private var _chargingTimeMillis:int; private var _effectStartSound:SoundResource; private var _energy:TextureResource; private var _failSound:SoundResource; private var _hitSound:SoundResource; private var _lightning:TextureResource; private var _originPointZOffset:Number; private var _preparing:Boolean; public function HunterUltimateCC(param1:int = 0, param2:SoundResource = null, param3:TextureResource = null, param4:SoundResource = null, param5:SoundResource = null, param6:TextureResource = null, param7:Number = 0, param8:Boolean = false) { super(); this._chargingTimeMillis = param1; this._effectStartSound = param2; this._energy = param3; this._failSound = param4; this._hitSound = param5; this._lightning = param6; this._originPointZOffset = param7; this._preparing = param8; } public function get chargingTimeMillis() : int { return this._chargingTimeMillis; } public function set chargingTimeMillis(param1:int) : void { this._chargingTimeMillis = param1; } public function get effectStartSound() : SoundResource { return this._effectStartSound; } public function set effectStartSound(param1:SoundResource) : void { this._effectStartSound = param1; } public function get energy() : TextureResource { return this._energy; } public function set energy(param1:TextureResource) : void { this._energy = param1; } public function get failSound() : SoundResource { return this._failSound; } public function set failSound(param1:SoundResource) : void { this._failSound = param1; } public function get hitSound() : SoundResource { return this._hitSound; } public function set hitSound(param1:SoundResource) : void { this._hitSound = param1; } public function get lightning() : TextureResource { return this._lightning; } public function set lightning(param1:TextureResource) : void { this._lightning = param1; } public function get originPointZOffset() : Number { return this._originPointZOffset; } public function set originPointZOffset(param1:Number) : void { this._originPointZOffset = param1; } public function get preparing() : Boolean { return this._preparing; } public function set preparing(param1:Boolean) : void { this._preparing = param1; } public function toString() : String { var local1:String = "HunterUltimateCC ["; local1 += "chargingTimeMillis = " + this.chargingTimeMillis + " "; local1 += "effectStartSound = " + this.effectStartSound + " "; local1 += "energy = " + this.energy + " "; local1 += "failSound = " + this.failSound + " "; local1 += "hitSound = " + this.hitSound + " "; local1 += "lightning = " + this.lightning + " "; local1 += "originPointZOffset = " + this.originPointZOffset + " "; local1 += "preparing = " + this.preparing + " "; return local1 + "]"; } } }
package alternativa.tanks.view.battlelist.battleitem { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.view.battlelist.battleitem.BattleItemIcon_cpNormalClass.png")] public class BattleItemIcon_cpNormalClass extends BitmapAsset { public function BattleItemIcon_cpNormalClass() { super(); } } }
package alternativa.tanks.gui.communication.tabs.news { import flash.events.Event; public class NewsTabNewsItemAddedEvent extends Event { public static const NEWS_ITEM_ADDED:String = "NewsTabNewsItemAddedEvent.NEWS_ITEM_ADDED"; public function NewsTabNewsItemAddedEvent() { super(NEWS_ITEM_ADDED,true); } } }
package _codec.projects.tanks.client.battlefield.models.battle.pointbased.ctf { 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.TextureResource; import projects.tanks.client.battlefield.models.battle.pointbased.ctf.CaptureTheFlagCC; import projects.tanks.client.battlefield.models.battle.pointbased.ctf.CaptureTheFlagSoundFX; import projects.tanks.clients.flash.resources.resource.Tanks3DSResource; public class CodecCaptureTheFlagCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_blueFlagSprite:ICodec; private var codec_bluePedestalModel:ICodec; private var codec_redFlagSprite:ICodec; private var codec_redPedestalModel:ICodec; private var codec_sounds:ICodec; public function CodecCaptureTheFlagCC() { super(); } public function init(param1:IProtocol) : void { this.codec_blueFlagSprite = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_bluePedestalModel = param1.getCodec(new TypeCodecInfo(Tanks3DSResource,false)); this.codec_redFlagSprite = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_redPedestalModel = param1.getCodec(new TypeCodecInfo(Tanks3DSResource,false)); this.codec_sounds = param1.getCodec(new TypeCodecInfo(CaptureTheFlagSoundFX,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:CaptureTheFlagCC = new CaptureTheFlagCC(); local2.blueFlagSprite = this.codec_blueFlagSprite.decode(param1) as TextureResource; local2.bluePedestalModel = this.codec_bluePedestalModel.decode(param1) as Tanks3DSResource; local2.redFlagSprite = this.codec_redFlagSprite.decode(param1) as TextureResource; local2.redPedestalModel = this.codec_redPedestalModel.decode(param1) as Tanks3DSResource; local2.sounds = this.codec_sounds.decode(param1) as CaptureTheFlagSoundFX; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:CaptureTheFlagCC = CaptureTheFlagCC(param2); this.codec_blueFlagSprite.encode(param1,local3.blueFlagSprite); this.codec_bluePedestalModel.encode(param1,local3.bluePedestalModel); this.codec_redFlagSprite.encode(param1,local3.redFlagSprite); this.codec_redPedestalModel.encode(param1,local3.redPedestalModel); this.codec_sounds.encode(param1,local3.sounds); } } }
package alternativa.tanks.engine3d { public class MaterialType { public static const MAP:MaterialType = new MaterialType(); public static const TANK:MaterialType = new MaterialType(); public static const EFFECT:MaterialType = new MaterialType(); public function MaterialType() { super(); } } }
package _codec.projects.tanks.client.panel.model.quest.common.specification { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.EnumCodecInfo; import projects.tanks.client.panel.model.quest.common.specification.QuestLevel; public class VectorCodecQuestLevelLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecQuestLevelLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new EnumCodecInfo(QuestLevel,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.<QuestLevel> = new Vector.<QuestLevel>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = QuestLevel(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:QuestLevel = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<QuestLevel> = Vector.<QuestLevel>(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.entrance.model.users.pushnotification { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.EnumCodecInfo; import projects.tanks.client.entrance.model.users.pushnotification.NotificationClientPlatform; public class VectorCodecNotificationClientPlatformLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecNotificationClientPlatformLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new EnumCodecInfo(NotificationClientPlatform,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.<NotificationClientPlatform> = new Vector.<NotificationClientPlatform>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = NotificationClientPlatform(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:NotificationClientPlatform = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<NotificationClientPlatform> = Vector.<NotificationClientPlatform>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.gui.shop.shopitems.item { public interface CountableItemButton { function getCount() : int; } }
package alternativa.tanks.controllers.battlelist { import flash.events.Event; public class CreateBattleClickEvent extends Event { public static const CREATE_BATTLE_CLICK:String = "CreateBattleClickEvent.CREATE_BATTLE_CLICK"; public function CreateBattleClickEvent() { super(CREATE_BATTLE_CLICK); } } }
package alternativa.tanks.gui.clanmanagement.clanmemberlist.candidates { import alternativa.tanks.gui.clanmanagement.clanmemberlist.list.*; public class ClanOutgoingListRenderer extends ClanUserListRenderer { public function ClanOutgoingListRenderer() { super(); } override public function set data(param1:Object) : void { item = new ClanOutgoingRequestsItem(param1.id); super.data = param1; } } }
package platform.client.fp10.core.resource.types { import flash.display.BitmapData; public class StubBitmapData extends BitmapData { public function StubBitmapData(param1:uint, param2:uint = 20, param3:uint = 20) { var local5:int = 0; super(param2,param3,false,0); var local4:int = 0; while(local4 < param2) { local5 = 0; while(local5 < param3) { setPixel(Boolean(local4 % 2) ? local5 : local5 + 1,local4,param1); local5 += 2; } local4++; } } } }
package alternativa.tanks.view.battlelist.forms { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.view.battlelist.forms.ProBattlePassAlert_proBattlePassClass.png")] public class ProBattlePassAlert_proBattlePassClass extends BitmapAsset { public function ProBattlePassAlert_proBattlePassClass() { super(); } } }
package alternativa.tanks.model.quest.common.gui { import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; public class QuestChangesIndicator extends Sprite { private static var questsChangesIconClass:Class = QuestChangesIndicator_questsChangesIconClass; private static var questsChangesIconBitmapData:BitmapData = Bitmap(new questsChangesIconClass()).bitmapData; public function QuestChangesIndicator() { super(); var local1:Bitmap = new Bitmap(questsChangesIconBitmapData); addChild(local1); visible = false; } } }
package alternativa.tanks.sfx.christmas { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.sfx.christmas.ChristmasTreeToyEffect_BlueTexture.png")] public class ChristmasTreeToyEffect_BlueTexture extends BitmapAsset { public function ChristmasTreeToyEffect_BlueTexture() { super(); } } }
package projects.tanks.client.panel.model.payment.modes { public interface IPaymentModeModelBase { } }
package platform.client.fp10.core.model { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ObjectUnloadPostListenerEvents implements ObjectUnloadPostListener { private var object:IGameObject; private var impl:Vector.<Object>; public function ObjectUnloadPostListenerEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function objectUnloadedPost() : void { var i:int = 0; var m:ObjectUnloadPostListener = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = ObjectUnloadPostListener(this.impl[i]); m.objectUnloadedPost(); i++; } } finally { Model.popObject(); } } } }
package alternativa.utils { import flash.display.DisplayObjectContainer; public function removeDisplayObjectChildren(param1:DisplayObjectContainer) : void { while(param1.numChildren > 0) { param1.removeChildAt(param1.numChildren - 1); } } }
package { import flash.display.MovieClip; [Embed(source="/_assets/assets.swf", symbol="symbol1145")] public dynamic class ScrollArrowDown_disabledSkin extends MovieClip { public function ScrollArrowDown_disabledSkin() { super(); } } }
package com.lorentz.SVG.display { import com.lorentz.SVG.data.style.StyleDeclaration; import com.lorentz.SVG.display.base.SVGContainer; import com.lorentz.SVG.display.base.SVGElement; import com.lorentz.SVG.events.SVGEvent; import com.lorentz.SVG.parser.AsyncSVGParser; import com.lorentz.SVG.text.FTESVGTextDrawer; import com.lorentz.SVG.text.ISVGTextDrawer; import com.lorentz.SVG.utils.ICloneable; import com.lorentz.SVG.utils.SVGUtil; import com.lorentz.SVG.utils.StringUtil; import flash.events.Event; import flash.events.IOErrorEvent; import flash.geom.Rectangle; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; [Event(name="invalidate", type="com.lorentz.SVG.events.SVGEvent")] [Event(name="syncValidated", type="com.lorentz.SVG.events.SVGEvent")] [Event(name="asyncValidated", type="com.lorentz.SVG.events.SVGEvent")] [Event(name="validated", type="com.lorentz.SVG.events.SVGEvent")] [Event(name="rendered", type="com.lorentz.SVG.events.SVGEvent")] [Event(name="parseStart", type="com.lorentz.SVG.events.SVGEvent")] [Event(name="parseComplete", type="com.lorentz.SVG.events.SVGEvent")] [Event(name="elementAdded", type="com.lorentz.SVG.events.SVGEvent")] [Event(name="elementRemoved", type="com.lorentz.SVG.events.SVGEvent")] public class SVGDocument extends SVGContainer { private var _urlLoader:URLLoader; private var _parser:AsyncSVGParser; private var _parsing:Boolean = false; private var _definitions:Object = {}; private var _stylesDeclarations:Object = {}; private var _firstValidationAfterParse:Boolean = false; private var _defaultBaseUrl:String; private var _availableWidth:Number = 500; private var _availableHeight:Number = 500; /** * Computed base URL considering the svg path, is null when the svg was not loaded by the library * That property is used to load svg references, but it can be overriden using the property baseURL */ public function get defaultBaseUrl():String { return _defaultBaseUrl; } /** * Url used as a base url to search referenced files on svg. */ public var baseURL:String; /** * Determines that the document should validate rendering during parse. * Set to true if you want to progressively show the SVG while it is parsing. * Set to false to improve speed and show it only after parse is complete. */ public var validateWhileParsing:Boolean = true; /** * Determines if the document should force validation after parse, or should wait the document be on stage. */ public var validateAfterParse:Boolean = true; /** * Determines if the document should parse the XML synchronous, without spanning processing on multiple frames */ public var forceSynchronousParse: Boolean = false; /** * Default value for attribute fontStyle on SVGDocuments, and also is used an embedded font is missing, and missingFontAction on svgDocument is USE_DEFAULT. */ public var defaultFontName:String = "Verdana"; /** * Determines if the document should use embedded */ public var useEmbeddedFonts:Boolean = true; /** * Function that is called before sending svgTextToDraw to TextDrawer, allowing you to change texts formats with your own rule. * The function can alter any property on textFormat * Function parameters: function(textFormat:SVGTextFormat):void * Example: Change all texts inside an svg to a specific embedded font */ public var textDrawingInterceptor:Function; /** * Object used to draw texts */ public var textDrawer:ISVGTextDrawer = new FTESVGTextDrawer(); /* * Set to autmaticly align the topLeft of the rendered svg content to the svgDocument origin. */ public var autoAlign:Boolean = false; public function SVGDocument(){ super("document"); } public function load(urlOrUrlRequest:Object):void { if(_urlLoader != null){ try { _urlLoader.close(); } catch (e:Error) { } _urlLoader = null; } var urlRequest:URLRequest; if(urlOrUrlRequest is URLRequest) urlRequest = urlOrUrlRequest as URLRequest; else if(urlOrUrlRequest is String) urlRequest = new URLRequest(String(urlOrUrlRequest)); else throw new Error("Invalid param 'urlOrUrlRequest'."); _defaultBaseUrl = urlRequest.url.match(/^([^?]*\/)/g)[0] _urlLoader = new URLLoader(); _urlLoader.dataFormat = URLLoaderDataFormat.TEXT; _urlLoader.addEventListener(Event.COMPLETE, urlLoader_completeHandler, false, 0, true); _urlLoader.addEventListener(IOErrorEvent.IO_ERROR, urlLoader_ioErrorHandler, false, 0, true); _urlLoader.load(urlRequest); } private function urlLoader_completeHandler(e:Event):void { if(e.currentTarget != _urlLoader) return; var svgString:String = String(_urlLoader.data); parseInternal(svgString); _urlLoader = null; } private function urlLoader_ioErrorHandler(e:IOErrorEvent):void { if(e.currentTarget != _urlLoader) return; trace(e.text); _urlLoader = null; } public function parse(xmlOrXmlString:Object):void { _defaultBaseUrl = null; parseInternal(xmlOrXmlString); } private function parseInternal(xmlOrXmlString:Object):void { var xml:XML; if(xmlOrXmlString is String) { var xmlString:String = SVGUtil.processXMLEntities(String(xmlOrXmlString)); var oldXMLIgnoreWhitespace:Boolean = XML.ignoreWhitespace; XML.ignoreWhitespace = false; xml = new XML(xmlString); XML.ignoreWhitespace = oldXMLIgnoreWhitespace; } else if(xmlOrXmlString is XML) xml = xmlOrXmlString as XML; else throw new Error("Invalid param 'xmlOrXmlString'."); parseXML(xml); } private function parseXML(svg:XML):void { clear(); if(_parsing) _parser.cancel(); _parsing = true; if(hasEventListener(SVGEvent.PARSE_START)) dispatchEvent( new SVGEvent( SVGEvent.PARSE_START ) ); _parser = new AsyncSVGParser(this, svg); _parser.addEventListener(Event.COMPLETE, parser_completeHandler); _parser.parse(forceSynchronousParse); } protected function parser_completeHandler(e:Event):void { _parsing = false; _parser = null; if(hasEventListener(SVGEvent.PARSE_COMPLETE)) dispatchEvent( new SVGEvent( SVGEvent.PARSE_COMPLETE ) ); _firstValidationAfterParse = true; if(validateAfterParse) validate(); } override protected function onValidated():void { super.onValidated(); if(_firstValidationAfterParse) { _firstValidationAfterParse = false; if(hasEventListener(SVGEvent.RENDERED)) dispatchEvent( new SVGEvent( SVGEvent.RENDERED ) ); } } public function clear():void { id = null; svgClass = null; svgClipPath = null; svgMask = null; svgTransform = null; _stylesDeclarations = {}; style.clear(); for(var id:String in _definitions) removeDefinition(id); while(numElements > 0) removeElementAt(0); while(content.numChildren > 0) content.removeChildAt(0); content.scaleX = 1; content.scaleY = 1; } public function listStyleDeclarations():Vector.<String> { var selectorsList:Vector.<String> = new Vector.<String>(); for(var id:String in _stylesDeclarations) selectorsList.push(id); return selectorsList; } public function addStyleDeclaration(selector:String, styleDeclaration:StyleDeclaration):void { _stylesDeclarations[selector] = styleDeclaration; } public function getStyleDeclaration(selector:String):StyleDeclaration { return _stylesDeclarations[selector]; } public function removeStyleDeclaration(selector:String):StyleDeclaration { var value:StyleDeclaration = _stylesDeclarations[selector]; delete _stylesDeclarations[selector]; return value; } public function listDefinitions():Vector.<String> { var definitionsList:Vector.<String> = new Vector.<String>(); for(var id:String in _definitions) definitionsList.push(id); return definitionsList; } public function addDefinition(id:String, object:Object):void { if(!_definitions[id]){ _definitions[id] = object; } } public function hasDefinition(id:String):Boolean { return _definitions[id] != null; } public function getDefinition(id:String):Object { return _definitions[id]; } public function getDefinitionClone(id:String):Object { var object:Object = _definitions[id]; if(object is ICloneable) return (object as ICloneable).clone(); return object; } public function removeDefinition(id:String):void { if(_definitions[id]) _definitions[id] = null; } public function onElementAdded(element:SVGElement):void { if(hasEventListener(SVGEvent.ELEMENT_ADDED)) dispatchEvent( new SVGEvent( SVGEvent.ELEMENT_ADDED, element )); } public function onElementRemoved(element:SVGElement):void { if(hasEventListener(SVGEvent.ELEMENT_REMOVED)) dispatchEvent( new SVGEvent( SVGEvent.ELEMENT_REMOVED, element )); } public function resolveURL(url:String):String { var baseUrlFinal:String = baseURL || defaultBaseUrl; if (url != null && !isHttpURL(url) && baseUrlFinal) { if (url.indexOf("./") == 0) url = url.substring(2); if (isHttpURL(baseUrlFinal)) { var slashPos:Number; if (url.charAt(0) == '/') { // non-relative path, "/dev/foo.bar". slashPos = baseUrlFinal.indexOf("/", 8); if (slashPos == -1) slashPos = baseUrlFinal.length; } else { // relative path, "dev/foo.bar". slashPos = baseUrlFinal.lastIndexOf("/") + 1; if (slashPos <= 8) { baseUrlFinal += "/"; slashPos = baseUrlFinal.length; } } if (slashPos > 0) url = baseUrlFinal.substring(0, slashPos) + url; } else { url = StringUtil.rtrim(baseUrlFinal, "/") + "/" + url; } } return url; } public static function isHttpURL(url:String):Boolean { return url != null && (url.indexOf("http://") == 0 || url.indexOf("https://") == 0); } override public function validate():void { super.validate(); if(this.numInvalidElements > 0) queueValidation(); } override protected function get numInvalidElements():int { return super.numInvalidElements; } override protected function set numInvalidElements(value:int):void { if(super.numInvalidElements == 0 && value > 0) queueValidation(); super.numInvalidElements = value; } private var _validationQueued:Boolean protected function queueValidation():void { if(!_validationQueued){ _validationQueued = false; if (stage != null) { stage.addEventListener(Event.ENTER_FRAME, validateCaller, false, 0, true); stage.addEventListener(Event.RENDER, validateCaller, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, validateCaller, false, 0, true); } } } protected function validateCaller(e:Event):void { _validationQueued = false; if(_parsing && !validateWhileParsing){ queueValidation(); return; } if (e.type == Event.ADDED_TO_STAGE) { removeEventListener(Event.ADDED_TO_STAGE, validateCaller); } else { e.target.removeEventListener(Event.ENTER_FRAME, validateCaller, false); e.target.removeEventListener(Event.RENDER, validateCaller, false); if (stage == null) { // received render, but the stage is not available, so we will listen for addedToStage again: addEventListener(Event.ADDED_TO_STAGE, validateCaller, false, 0, true); return; } } validate(); } override protected function onPartialyValidated():void { super.onPartialyValidated(); if(autoAlign) { var bounds:Rectangle = content.getBounds(content); content.x = -bounds.left; content.y = -bounds.top; } else { content.x = 0; content.y = 0; } } public function get availableWidth():Number { return _availableWidth; } public function set availableWidth(value:Number):void { _availableWidth = value; } public function get availableHeight():Number { return _availableHeight; } public function set availableHeight(value:Number):void { _availableHeight = value; } override public function clone():Object { var c:SVGDocument = super.clone() as SVGDocument; c.availableWidth = availableWidth; c.availableHeight = availableHeight; c._defaultBaseUrl = _defaultBaseUrl; c.baseURL = baseURL; c.validateWhileParsing = validateWhileParsing; c.validateAfterParse = validateAfterParse; c.defaultFontName = defaultFontName; c.useEmbeddedFonts = useEmbeddedFonts; c.textDrawingInterceptor = textDrawingInterceptor; c.textDrawer = textDrawer; for each(var id:String in listDefinitions()){ var object:Object = getDefinition(id); if(object is ICloneable) c.addDefinition(id, (object as ICloneable).clone()); } for each(var selector:String in listStyleDeclarations()){ var style:StyleDeclaration = getStyleDeclaration(selector); c.addStyleDeclaration(selector, style.clone() as StyleDeclaration); } return c; } } }
package _codec.projects.tanks.client.battlefield.models.teamlight { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.EnumCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Float; import projects.tanks.client.battlefield.models.teamlight.TeamLightColorParams; import projects.tanks.client.battlefield.models.teamlight.TeamLightParams; import projects.tanks.client.battleservice.BattleMode; public class CodecTeamLightParams implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_attenuationBegin:ICodec; private var codec_attenuationEnd:ICodec; private var codec_battleMode:ICodec; private var codec_blueTeam:ICodec; private var codec_neutralTeam:ICodec; private var codec_redTeam:ICodec; public function CodecTeamLightParams() { super(); } public function init(param1:IProtocol) : void { this.codec_attenuationBegin = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_attenuationEnd = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_battleMode = param1.getCodec(new EnumCodecInfo(BattleMode,false)); this.codec_blueTeam = param1.getCodec(new TypeCodecInfo(TeamLightColorParams,false)); this.codec_neutralTeam = param1.getCodec(new TypeCodecInfo(TeamLightColorParams,false)); this.codec_redTeam = param1.getCodec(new TypeCodecInfo(TeamLightColorParams,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:TeamLightParams = new TeamLightParams(); local2.attenuationBegin = this.codec_attenuationBegin.decode(param1) as Number; local2.attenuationEnd = this.codec_attenuationEnd.decode(param1) as Number; local2.battleMode = this.codec_battleMode.decode(param1) as BattleMode; local2.blueTeam = this.codec_blueTeam.decode(param1) as TeamLightColorParams; local2.neutralTeam = this.codec_neutralTeam.decode(param1) as TeamLightColorParams; local2.redTeam = this.codec_redTeam.decode(param1) as TeamLightColorParams; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:TeamLightParams = TeamLightParams(param2); this.codec_attenuationBegin.encode(param1,local3.attenuationBegin); this.codec_attenuationEnd.encode(param1,local3.attenuationEnd); this.codec_battleMode.encode(param1,local3.battleMode); this.codec_blueTeam.encode(param1,local3.blueTeam); this.codec_neutralTeam.encode(param1,local3.neutralTeam); this.codec_redTeam.encode(param1,local3.redTeam); } } }
package forms.friends { import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; public class FriendActionIndicator extends Sprite { [Embed(source="838.png")] private static var yesIconClass:Class; private static var yesIconBitmapData:BitmapData = Bitmap(new yesIconClass()).bitmapData; [Embed(source="1076.png")] private static var noIconClass:Class; private static var noIconBitmapData:BitmapData = Bitmap(new noIconClass()).bitmapData; public static const YES:int = 0; public static const NO:int = 1; public function FriendActionIndicator(param1:int) { var _loc2_:Bitmap = null; super(); this.tabChildren = false; this.tabEnabled = false; this.buttonMode = this.useHandCursor = true; switch(param1) { case YES: _loc2_ = new Bitmap(yesIconBitmapData); break; case NO: _loc2_ = new Bitmap(noIconBitmapData); } addChild(_loc2_); } } }
package projects.tanks.client.entrance.model.entrance.passwordchange { 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 PasswordChangeModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _changePasswordAndEmailId:Long = Long.getLong(1096951772,-398910379); private var _changePasswordAndEmail_changePasswordHashCodec:ICodec; private var _changePasswordAndEmail_newPasswordCodec:ICodec; private var _changePasswordAndEmail_newEmailCodec:ICodec; private var _checkPasswordChangeHashId:Long = Long.getLong(1886402857,829134628); private var _checkPasswordChangeHash_changePasswordHashCodec:ICodec; private var _resetChangePasswordHashAndEntranceHashId:Long = Long.getLong(423051391,-1887006664); private var _resetChangePasswordHashAndEntranceHash_changePasswordHashCodec:ICodec; private var _sendUsersRestorePasswordLinkId:Long = Long.getLong(1519457675,1374102424); private var _sendUsersRestorePasswordLink_emailCodec:ICodec; private var model:IModel; public function PasswordChangeModelServer(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._changePasswordAndEmail_changePasswordHashCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._changePasswordAndEmail_newPasswordCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._changePasswordAndEmail_newEmailCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._checkPasswordChangeHash_changePasswordHashCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._resetChangePasswordHashAndEntranceHash_changePasswordHashCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); this._sendUsersRestorePasswordLink_emailCodec = this.protocol.getCodec(new TypeCodecInfo(String,false)); } public function changePasswordAndEmail(param1:String, param2:String, param3:String) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._changePasswordAndEmail_changePasswordHashCodec.encode(this.protocolBuffer,param1); this._changePasswordAndEmail_newPasswordCodec.encode(this.protocolBuffer,param2); this._changePasswordAndEmail_newEmailCodec.encode(this.protocolBuffer,param3); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local4:SpaceCommand = new SpaceCommand(Model.object.id,this._changePasswordAndEmailId,this.protocolBuffer); var local5:IGameObject = Model.object; var local6:ISpace = local5.space; local6.commandSender.sendCommand(local4); this.protocolBuffer.optionalMap.clear(); } public function checkPasswordChangeHash(param1:String) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._checkPasswordChangeHash_changePasswordHashCodec.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._checkPasswordChangeHashId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } public function resetChangePasswordHashAndEntranceHash(param1:String) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._resetChangePasswordHashAndEntranceHash_changePasswordHashCodec.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._resetChangePasswordHashAndEntranceHashId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } public function sendUsersRestorePasswordLink(param1:String) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._sendUsersRestorePasswordLink_emailCodec.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._sendUsersRestorePasswordLinkId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } } }
package alternativa.tanks.battle.events { import alternativa.tanks.battle.objects.tank.Tank; public class LocalTankActivationEvent { public var tank:Tank; public function LocalTankActivationEvent(param1:Tank) { super(); this.tank = param1; } } }
package alternativa.tanks.model.profile { public class UserGiftsRare { public function UserGiftsRare() { super(); } public static function getRare(name:String) : int { if(name == "Обычный") { return 0; } if(name == "Редкий") { return 1; } if(name == "Уникаль.") { return 2; } return 0; } } }
package alternativa.tanks.gui.panel { import alternativa.tanks.model.quest.challenge.stars.StarsChangedEvent; import alternativa.tanks.model.quest.challenge.stars.StarsInfoService; import controls.buttons.FixedHeightButton; import controls.buttons.h30px.GrayFrameMediumLabelSkin; import controls.buttons.h30px.H30ButtonSkin; import flash.display.Bitmap; import flash.text.TextFormatAlign; import forms.ColorConstants; public class StarsCashLabel extends FixedHeightButton { [Inject] public static var starsInfoService:StarsInfoService; private static const X_OFFSET_ICON:* = 6; private var icon:Bitmap; public function StarsCashLabel() { super(new GrayFrameMediumLabelSkin()); labelSize = H30ButtonSkin.DEFAULT_LABEL_SIZE; labelHeight = H30ButtonSkin.DEFAULT_LABEL_HEIGHT; labelPositionY = H30ButtonSkin.DEFAULT_LABEL_Y - 2; width = 86; enabled = true; _label.color = ColorConstants.GREEN_LABEL; _label.align = TextFormatAlign.RIGHT; this.icon = new StarsIcon.icon_class(); _innerLayer.addChild(this.icon); this.icon.x = width - this.icon.width - X_OFFSET_ICON; this.icon.y = int((height - this.icon.height) * 0.5) - 2; _label.width = width - this.icon.width - X_OFFSET_ICON - 4; this.updateStars(null); starsInfoService.addEventListener(StarsChangedEvent.STARS_CHANGED,this.updateStars); } private function updateStars(param1:StarsChangedEvent) : * { _label.text = starsInfoService.getStars().toString(); } public function destroy() : void { starsInfoService.removeEventListener(StarsChangedEvent.STARS_CHANGED,this.updateStars); } } }
package projects.tanks.client.garage.models.item.upgradeable.types { public class UpgradeParamsData { private var _finalUpgradePrice:int; private var _initialUpgradePrice:int; private var _properties:Vector.<GaragePropertyParams>; private var _speedUpCoeff:Number; private var _upgradeLevelsCount:int; private var _upgradeTimeCoeff:Number; public function UpgradeParamsData(param1:int = 0, param2:int = 0, param3:Vector.<GaragePropertyParams> = null, param4:Number = 0, param5:int = 0, param6:Number = 0) { super(); this._finalUpgradePrice = param1; this._initialUpgradePrice = param2; this._properties = param3; this._speedUpCoeff = param4; this._upgradeLevelsCount = param5; this._upgradeTimeCoeff = param6; } public function get finalUpgradePrice() : int { return this._finalUpgradePrice; } public function set finalUpgradePrice(param1:int) : void { this._finalUpgradePrice = param1; } public function get initialUpgradePrice() : int { return this._initialUpgradePrice; } public function set initialUpgradePrice(param1:int) : void { this._initialUpgradePrice = param1; } public function get properties() : Vector.<GaragePropertyParams> { return this._properties; } public function set properties(param1:Vector.<GaragePropertyParams>) : void { this._properties = param1; } public function get speedUpCoeff() : Number { return this._speedUpCoeff; } public function set speedUpCoeff(param1:Number) : void { this._speedUpCoeff = param1; } public function get upgradeLevelsCount() : int { return this._upgradeLevelsCount; } public function set upgradeLevelsCount(param1:int) : void { this._upgradeLevelsCount = param1; } public function get upgradeTimeCoeff() : Number { return this._upgradeTimeCoeff; } public function set upgradeTimeCoeff(param1:Number) : void { this._upgradeTimeCoeff = param1; } public function toString() : String { var local1:String = "UpgradeParamsData ["; local1 += "finalUpgradePrice = " + this.finalUpgradePrice + " "; local1 += "initialUpgradePrice = " + this.initialUpgradePrice + " "; local1 += "properties = " + this.properties + " "; local1 += "speedUpCoeff = " + this.speedUpCoeff + " "; local1 += "upgradeLevelsCount = " + this.upgradeLevelsCount + " "; local1 += "upgradeTimeCoeff = " + this.upgradeTimeCoeff + " "; return local1 + "]"; } } }
package projects.tanks.clients.flash.commons.services.notification { import alternativa.types.Long; import org.osflash.signals.Signal; import platform.client.fp10.core.network.connection.ConnectionCloseStatus; import platform.client.fp10.core.network.handler.OnConnectionClosedServiceListener; import projects.tanks.clients.flash.commons.services.layout.event.LobbyLayoutServiceEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.layout.ILobbyLayoutService; public class NotificationService implements INotificationService, OnConnectionClosedServiceListener { private var _lobbyLayoutService:ILobbyLayoutService; private var _queue:Array; private var _showNotification:INotification; public function NotificationService(param1:ILobbyLayoutService) { super(); this._lobbyLayoutService = param1; this.init(); } private function init() : void { this._queue = []; this._lobbyLayoutService.addEventListener(LobbyLayoutServiceEvent.END_LAYOUT_SWITCH,this.onEndLayoutSwitch); } private function onEndLayoutSwitch(param1:LobbyLayoutServiceEvent) : void { this.updateQueue(); } public function addNotification(param1:INotification, param2:Boolean = false) : void { if(param2) { this._queue.unshift(param1); } else { this._queue.push(param1); } this.updateQueue(); } private function updateQueue() : void { var local1:Signal = null; if(this.canShow()) { this._showNotification = this._queue.shift(); local1 = new Signal(); local1.addOnce(this.onCloseNotification); this._showNotification.show(local1); } } private function canShow() : Boolean { return this._showNotification == null && this._queue.length != 0 && !this._lobbyLayoutService.isSwitchInProgress(); } private function onCloseNotification() : void { this._showNotification = null; this.updateQueue(); } public function hasNotification(param1:Long, param2:String) : Boolean { var local3:Boolean = false; var local6:INotification = null; if(this.isShowNotification(param1,param2)) { return true; } var local4:int = int(this._queue.length); var local5:int = 0; while(local5 < local4) { local6 = this._queue[local5]; if(local6.userId == param1 && local6.message == param2) { local3 = true; break; } local5++; } return local3; } private function isShowNotification(param1:Long, param2:String) : Boolean { return this._showNotification != null && this._showNotification.userId == param1 && this._showNotification.message == param2; } public function onConnectionClosed(param1:ConnectionCloseStatus) : void { if(Boolean(this._showNotification)) { this._showNotification.destroy(); this._showNotification = null; } this._queue.length = 0; } } }
package alternativa.tanks.model.payment.androidspecialoffer { import projects.tanks.client.panel.model.shop.androidspecialoffer.offers.AndroidSpecialOfferModelBase; import projects.tanks.client.panel.model.shop.androidspecialoffer.offers.IAndroidSpecialOfferModelBase; [ModelInfo] public class AndroidSpecialOfferModel extends AndroidSpecialOfferModelBase implements IAndroidSpecialOfferModelBase { public function AndroidSpecialOfferModel() { super(); } } }
package _codec.projects.tanks.client.battlefield.models.bonus.battle.bonusregions { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.battlefield.models.bonus.battle.bonusregions.BonusRegionData; public class VectorCodecBonusRegionDataLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecBonusRegionDataLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(BonusRegionData,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.<BonusRegionData> = new Vector.<BonusRegionData>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = BonusRegionData(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:BonusRegionData = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<BonusRegionData> = Vector.<BonusRegionData>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.model.payment.shop { import alternativa.tanks.gui.shop.shopitems.item.base.ShopButton; [ModelInterface] public interface ShopItemView { function getButtonView() : ShopButton; } }
package alternativa.protocol.codec { import flash.utils.IDataInput; import flash.utils.IDataOutput; public class AbstractCodec implements ICodec { protected var nullValue:Object = null; public function AbstractCodec() { super(); } public function encode(dest:IDataOutput, object:Object, nullmap:NullMap, notnull:Boolean) : void { if(!notnull) { nullmap.addBit(object == this.nullValue); } if(object != this.nullValue) { this.doEncode(dest,object,nullmap,notnull); } else if(notnull) { throw new Error("Object is null, but notnull expected."); } } public function decode(reader:IDataInput, nullmap:NullMap, notnull:Boolean) : Object { return !notnull && nullmap.getNextBit() ? this.nullValue : this.doDecode(reader,nullmap,notnull); } protected function doDecode(reader:IDataInput, nullmap:NullMap, notnull:Boolean) : Object { throw new Error("Method not implementated."); } protected function doEncode(dest:IDataOutput, object:Object, nullmap:NullMap, notnull:Boolean) : void { throw new Error("Method not implementated."); } } }
package alternativa.tanks.model.garage.present { import alternativa.model.description.IDescription; import alternativa.tanks.model.item.buyable.IBuyable; import alternativa.tanks.model.item.category.IItemCategory; import alternativa.tanks.model.item.category.IItemViewCategory; import alternativa.tanks.model.item.item.IItem; import alternativa.tanks.model.item.present.PresentImage; import alternativa.tanks.model.item.present.UserPresent; import alternativa.types.Long; import platform.client.fp10.core.resource.types.ImageResource; import platform.client.fp10.core.type.impl.Component; import projects.tanks.client.commons.types.ItemCategoryEnum; import projects.tanks.client.commons.types.ItemViewCategoryEnum; import projects.tanks.client.garage.models.user.present.PresentItem; public class UserPresentComponent extends Component implements UserPresent, IItemCategory, IItemViewCategory, PresentImage, IDescription, IBuyable, IItem { private var present:PresentItem; public function UserPresentComponent(param1:PresentItem) { super(); this.present = param1; } public function getText() : String { return this.present.text; } public function getPresenterId() : Long { return this.present.presenter; } public function getDate() : Date { return this.present.date; } public function getCategory() : ItemCategoryEnum { return ItemCategoryEnum.GIVEN_PRESENT; } public function getViewCategory() : ItemViewCategoryEnum { return ItemViewCategoryEnum.GIVEN_PRESENTS; } public function getImage() : ImageResource { return PresentImage(this.present.present.adapt(PresentImage)).getImage(); } public function getName() : String { return IDescription(this.present.present.adapt(IDescription)).getName(); } public function getDescription() : String { return IDescription(this.present.present.adapt(IDescription)).getDescription(); } public function getPriceWithoutDiscount() : int { return 0; } public function getPrice() : int { return 0; } public function isBuyable() : Boolean { return false; } public function getPosition() : int { return 0; } public function getPreviewResource() : ImageResource { return IItem(this.present.present.adapt(IItem)).getPreviewResource(); } public function getMaxRank() : int { return 1; } public function getMinRank() : int { return 1; } } }
package alternativa.engine3d.loaders.events { import flash.events.ErrorEvent; import flash.events.Event; public class LoaderErrorEvent extends ErrorEvent { public static const LOADER_ERROR:String = "loaderError"; private var _url:String; public function LoaderErrorEvent(param1:String, param2:String, param3:String) { super(param1); this.text = param3; this._url = param2; } public function get url() : String { return this._url; } override public function clone() : Event { return new LoaderErrorEvent(type,this._url,text); } override public function toString() : String { return "[LoaderErrorEvent url=" + this._url + ", text=" + text + "]"; } } }
package projects.tanks.client.battlefield.models.user.damageindicator { public interface IDamageIndicatorModelBase { function showDamageForShooter(param1:Vector.<TargetTankDamage>) : void; } }
package assets.stat { import flash.display.BitmapData; [Embed(source="/_assets/assets.stat.hall_ARROW.png")] public dynamic class hall_ARROW extends BitmapData { public function hall_ARROW(param1:int = 11, param2:int = 6) { super(param1,param2); } } }
package alternativa.tanks.models.weapons.shell { import alternativa.math.Vector3; import alternativa.tanks.battle.objects.tank.Tank; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class TargetShellWeaponListenerEvents implements TargetShellWeaponListener { private var object:IGameObject; private var impl:Vector.<Object>; public function TargetShellWeaponListenerEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function onShotWithTarget(param1:int, param2:int, param3:Vector3, param4:Tank, param5:Vector3) : void { var i:int = 0; var m:TargetShellWeaponListener = null; var barrelIndex:int = param1; var shotId:int = param2; var direction:Vector3 = param3; var target:Tank = param4; var localTargetPoint:Vector3 = param5; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = TargetShellWeaponListener(this.impl[i]); m.onShotWithTarget(barrelIndex,shotId,direction,target,localTargetPoint); i++; } } finally { Model.popObject(); } } } }
package projects.tanks.client.battlefield.models.teamlight { 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 TeamLightModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function TeamLightModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package alternativa.tanks.model.coin { import flash.events.Event; public class CoinsChangedEvent extends Event { public static const EVENT_TYPE:String = "CoinsChangedEvent"; public var coins:int = 0; public function CoinsChangedEvent(param1:int) { super(EVENT_TYPE); this.coins = param1; } } }
package alternativa.engine3d.core { import alternativa.engine3d.alternativa3d; import flash.geom.ColorTransform; import flash.geom.Vector3D; import flash.utils.Dictionary; use namespace alternativa3d; public class Object3DContainer extends Object3D { public var mouseChildren:Boolean = true; alternativa3d var childrenList:Object3D; alternativa3d var lightList:Light3D; alternativa3d var visibleChildren:Vector.<Object3D> = new Vector.<Object3D>(); alternativa3d var numVisibleChildren:int = 0; public function Object3DContainer() { super(); } public function addChild(param1:Object3D) : Object3D { if(param1 == null) { throw new TypeError("Parameter child must be non-null."); } if(param1 == this) { throw new ArgumentError("An object cannot be added as a child of itself."); } var local2:Object3DContainer = alternativa3d::_parent; while(local2 != null) { if(local2 == param1) { throw new ArgumentError("An object cannot be added as a child to one of it\'s children (or children\'s children, etc.)."); } local2 = local2.alternativa3d::_parent; } if(param1.alternativa3d::_parent != null) { param1.alternativa3d::_parent.removeChild(param1); } this.alternativa3d::addToList(param1); return param1; } public function removeChild(param1:Object3D) : Object3D { var local2:Object3D = null; var local3:Object3D = null; if(param1 == null) { throw new TypeError("Parameter child must be non-null."); } if(param1.alternativa3d::_parent != this) { throw new ArgumentError("The supplied Object3D must be a child of the caller."); } local3 = this.alternativa3d::childrenList; while(local3 != null) { if(local3 == param1) { if(local2 != null) { local2.alternativa3d::next = local3.alternativa3d::next; } else { this.alternativa3d::childrenList = local3.alternativa3d::next; } local3.alternativa3d::next = null; local3.alternativa3d::setParent(null); return param1; } local2 = local3; local3 = local3.alternativa3d::next; } throw new ArgumentError("Cannot remove child."); } public function addChildAt(param1:Object3D, param2:int) : Object3D { if(param1 == null) { throw new TypeError("Parameter child must be non-null."); } if(param1 == this) { throw new ArgumentError("An object cannot be added as a child of itself."); } if(param2 < 0) { throw new RangeError("The supplied index is out of bounds."); } var local3:Object3DContainer = alternativa3d::_parent; while(local3 != null) { if(local3 == param1) { throw new ArgumentError("An object cannot be added as a child to one of it\'s children (or children\'s children, etc.)."); } local3 = local3.alternativa3d::_parent; } var local4:Object3D = this.alternativa3d::childrenList; var local5:int = 0; while(local5 < param2) { if(local4 == null) { throw new RangeError("The supplied index is out of bounds."); } local4 = local4.alternativa3d::next; local5++; } if(param1.alternativa3d::_parent != null) { param1.alternativa3d::_parent.removeChild(param1); } this.alternativa3d::addToList(param1,local4); return param1; } public function removeChildAt(param1:int) : Object3D { if(param1 < 0) { throw new RangeError("The supplied index is out of bounds."); } var local2:Object3D = this.alternativa3d::childrenList; var local3:int = 0; while(local3 < param1) { if(local2 == null) { throw new RangeError("The supplied index is out of bounds."); } local2 = local2.alternativa3d::next; local3++; } if(local2 == null) { throw new RangeError("The supplied index is out of bounds."); } this.removeChild(local2); return local2; } public function getChildAt(param1:int) : Object3D { if(param1 < 0) { throw new RangeError("The supplied index is out of bounds."); } var local2:Object3D = this.alternativa3d::childrenList; var local3:int = 0; while(local3 < param1) { if(local2 == null) { throw new RangeError("The supplied index is out of bounds."); } local2 = local2.alternativa3d::next; local3++; } if(local2 == null) { throw new RangeError("The supplied index is out of bounds."); } return local2; } public function getChildIndex(param1:Object3D) : int { if(param1 == null) { throw new TypeError("Parameter child must be non-null."); } if(param1.alternativa3d::_parent != this) { throw new ArgumentError("The supplied Object3D must be a child of the caller."); } var local2:int = 0; var local3:Object3D = this.alternativa3d::childrenList; while(local3 != null) { if(local3 == param1) { return local2; } local2++; local3 = local3.alternativa3d::next; } throw new ArgumentError("Cannot get child index."); } public function setChildIndex(param1:Object3D, param2:int) : void { if(param1 == null) { throw new TypeError("Parameter child must be non-null."); } if(param1.alternativa3d::_parent != this) { throw new ArgumentError("The supplied Object3D must be a child of the caller."); } if(param2 < 0) { throw new RangeError("The supplied index is out of bounds."); } var local3:Object3D = this.alternativa3d::childrenList; var local4:int = 0; while(local4 < param2) { if(local3 == null) { throw new RangeError("The supplied index is out of bounds."); } local3 = local3.alternativa3d::next; local4++; } this.removeChild(param1); this.alternativa3d::addToList(param1,local3); } public function swapChildren(param1:Object3D, param2:Object3D) : void { var local3:Object3D = null; if(param1 == null || param2 == null) { throw new TypeError("Parameter child must be non-null."); } if(param1.alternativa3d::_parent != this || param2.alternativa3d::_parent != this) { throw new ArgumentError("The supplied Object3D must be a child of the caller."); } if(param1 != param2) { if(param1.alternativa3d::next == param2) { this.removeChild(param2); this.alternativa3d::addToList(param2,param1); } else if(param2.alternativa3d::next == param1) { this.removeChild(param1); this.alternativa3d::addToList(param1,param2); } else { local3 = param1.alternativa3d::next; this.removeChild(param1); this.alternativa3d::addToList(param1,param2); this.removeChild(param2); this.alternativa3d::addToList(param2,local3); } } } public function swapChildrenAt(param1:int, param2:int) : void { var local3:int = 0; var local4:Object3D = null; var local5:Object3D = null; var local6:Object3D = null; if(param1 < 0 || param2 < 0) { throw new RangeError("The supplied index is out of bounds."); } if(param1 != param2) { local4 = this.alternativa3d::childrenList; local3 = 0; while(local3 < param1) { if(local4 == null) { throw new RangeError("The supplied index is out of bounds."); } local4 = local4.alternativa3d::next; local3++; } if(local4 == null) { throw new RangeError("The supplied index is out of bounds."); } local5 = this.alternativa3d::childrenList; local3 = 0; while(local3 < param2) { if(local5 == null) { throw new RangeError("The supplied index is out of bounds."); } local5 = local5.alternativa3d::next; local3++; } if(local5 == null) { throw new RangeError("The supplied index is out of bounds."); } if(local4 != local5) { if(local4.alternativa3d::next == local5) { this.removeChild(local5); this.alternativa3d::addToList(local5,local4); } else if(local5.alternativa3d::next == local4) { this.removeChild(local4); this.alternativa3d::addToList(local4,local5); } else { local6 = local4.alternativa3d::next; this.removeChild(local4); this.alternativa3d::addToList(local4,local5); this.removeChild(local5); this.alternativa3d::addToList(local5,local6); } } } } public function getChildByName(param1:String) : Object3D { if(param1 == null) { throw new TypeError("Parameter name must be non-null."); } var local2:Object3D = this.alternativa3d::childrenList; while(local2 != null) { if(local2.name == param1) { return local2; } local2 = local2.alternativa3d::next; } return null; } public function contains(param1:Object3D) : Boolean { if(param1 == null) { throw new TypeError("Parameter child must be non-null."); } if(param1 == this) { return true; } var local2:Object3D = this.alternativa3d::childrenList; while(local2 != null) { if(local2 is Object3DContainer) { if((local2 as Object3DContainer).contains(param1)) { return true; } } else if(local2 == param1) { return true; } local2 = local2.alternativa3d::next; } return false; } public function get numChildren() : int { var local1:int = 0; var local2:Object3D = this.alternativa3d::childrenList; while(local2 != null) { local1++; local2 = local2.alternativa3d::next; } return local1; } override public function intersectRay(param1:Vector3D, param2:Vector3D, param3:Dictionary = null, param4:Camera3D = null) : RayIntersectionData { var local5:Vector3D = null; var local6:Vector3D = null; var local7:RayIntersectionData = null; var local10:RayIntersectionData = null; if(param3 != null && Boolean(param3[this])) { return null; } if(!alternativa3d::boundIntersectRay(param1,param2,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ)) { return null; } var local8:Number = 1e+22; var local9:Object3D = this.alternativa3d::childrenList; while(local9 != null) { local9.alternativa3d::composeMatrix(); local9.alternativa3d::invertMatrix(); if(local5 == null) { local5 = new Vector3D(); local6 = new Vector3D(); } local5.x = local9.alternativa3d::ma * param1.x + local9.alternativa3d::mb * param1.y + local9.alternativa3d::mc * param1.z + local9.alternativa3d::md; local5.y = local9.alternativa3d::me * param1.x + local9.alternativa3d::mf * param1.y + local9.alternativa3d::mg * param1.z + local9.alternativa3d::mh; local5.z = local9.alternativa3d::mi * param1.x + local9.alternativa3d::mj * param1.y + local9.alternativa3d::mk * param1.z + local9.alternativa3d::ml; local6.x = local9.alternativa3d::ma * param2.x + local9.alternativa3d::mb * param2.y + local9.alternativa3d::mc * param2.z; local6.y = local9.alternativa3d::me * param2.x + local9.alternativa3d::mf * param2.y + local9.alternativa3d::mg * param2.z; local6.z = local9.alternativa3d::mi * param2.x + local9.alternativa3d::mj * param2.y + local9.alternativa3d::mk * param2.z; local10 = local9.intersectRay(local5,local6,param3,param4); if(local10 != null && local10.time < local8) { local8 = local10.time; local7 = local10; } local9 = local9.alternativa3d::next; } return local7; } override alternativa3d function checkIntersection(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Dictionary) : Boolean { var local10:Number = NaN; var local11:Number = NaN; var local12:Number = NaN; var local13:Number = NaN; var local14:Number = NaN; var local15:Number = NaN; var local9:Object3D = this.alternativa3d::childrenList; while(local9 != null) { if(param8 != null && !param8[local9]) { local9.alternativa3d::composeMatrix(); local9.alternativa3d::invertMatrix(); local10 = local9.alternativa3d::ma * param1 + local9.alternativa3d::mb * param2 + local9.alternativa3d::mc * param3 + local9.alternativa3d::md; local11 = local9.alternativa3d::me * param1 + local9.alternativa3d::mf * param2 + local9.alternativa3d::mg * param3 + local9.alternativa3d::mh; local12 = local9.alternativa3d::mi * param1 + local9.alternativa3d::mj * param2 + local9.alternativa3d::mk * param3 + local9.alternativa3d::ml; local13 = local9.alternativa3d::ma * param4 + local9.alternativa3d::mb * param5 + local9.alternativa3d::mc * param6; local14 = local9.alternativa3d::me * param4 + local9.alternativa3d::mf * param5 + local9.alternativa3d::mg * param6; local15 = local9.alternativa3d::mi * param4 + local9.alternativa3d::mj * param5 + local9.alternativa3d::mk * param6; if(Boolean(alternativa3d::boundCheckIntersection(local10,local11,local12,local13,local14,local15,param7,local9.boundMinX,local9.boundMinY,local9.boundMinZ,local9.boundMaxX,local9.boundMaxY,local9.boundMaxZ)) && Boolean(local9.alternativa3d::checkIntersection(local10,local11,local12,local13,local14,local15,param7,param8))) { return true; } } local9 = local9.alternativa3d::next; } return false; } override alternativa3d function collectPlanes(param1:Vector3D, param2:Vector3D, param3:Vector3D, param4:Vector3D, param5:Vector3D, param6:Vector.<Face>, param7:Dictionary = null) : void { if(param7 != null && Boolean(param7[this])) { return; } var local8:Vector3D = alternativa3d::calculateSphere(param1,param2,param3,param4,param5); if(!alternativa3d::boundIntersectSphere(local8,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ)) { return; } var local9:Object3D = this.alternativa3d::childrenList; while(local9 != null) { local9.alternativa3d::composeAndAppend(this); local9.alternativa3d::collectPlanes(param1,param2,param3,param4,param5,param6,param7); local9 = local9.alternativa3d::next; } } override public function clone() : Object3D { var local1:Object3DContainer = new Object3DContainer(); local1.clonePropertiesFrom(this); return local1; } override protected function clonePropertiesFrom(param1:Object3D) : void { var local4:Object3D = null; var local5:Object3D = null; super.clonePropertiesFrom(param1); var local2:Object3DContainer = param1 as Object3DContainer; this.mouseChildren = local2.mouseChildren; var local3:Object3D = local2.alternativa3d::childrenList; while(local3 != null) { local5 = local3.clone(); if(this.alternativa3d::childrenList != null) { local4.alternativa3d::next = local5; } else { this.alternativa3d::childrenList = local5; } local4 = local5; local5.alternativa3d::setParent(this); local3 = local3.alternativa3d::next; } } override alternativa3d function draw(param1:Camera3D, param2:Canvas) : void { var local3:Canvas = null; var local4:int = 0; this.alternativa3d::numVisibleChildren = 0; var local5:Object3D = this.alternativa3d::childrenList; while(local5 != null) { if(local5.visible) { local5.alternativa3d::composeAndAppend(this); if(local5.alternativa3d::cullingInCamera(param1,alternativa3d::culling) >= 0) { this.alternativa3d::visibleChildren[this.alternativa3d::numVisibleChildren] = local5; ++this.alternativa3d::numVisibleChildren; } } local5 = local5.alternativa3d::next; } if(this.alternativa3d::numVisibleChildren > 0) { if(param1.debug && (local4 = int(param1.alternativa3d::checkInDebug(this))) > 0) { local3 = param2.alternativa3d::getChildCanvas(true,false); if(Boolean(local4 & Debug.BOUNDS)) { Debug.alternativa3d::drawBounds(param1,local3,this,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ); } } local3 = param2.alternativa3d::getChildCanvas(false,true,this,alpha,blendMode,colorTransform,filters); local3.alternativa3d::numDraws = 0; this.alternativa3d::drawVisibleChildren(param1,local3); if(local3.alternativa3d::numDraws > 0) { local3.alternativa3d::remChildren(local3.alternativa3d::numDraws); } else { --param2.alternativa3d::numDraws; } } } alternativa3d function drawVisibleChildren(param1:Camera3D, param2:Canvas) : void { var local4:Object3D = null; var local3:int = this.alternativa3d::numVisibleChildren - 1; while(local3 >= 0) { local4 = this.alternativa3d::visibleChildren[local3]; local4.alternativa3d::draw(param1,param2); this.alternativa3d::visibleChildren[local3] = null; local3--; } } override alternativa3d function getVG(param1:Camera3D) : VG { var local2:VG = this.alternativa3d::collectVG(param1); this.alternativa3d::colorizeVG(local2); return local2; } alternativa3d function collectVG(param1:Camera3D) : VG { var local2:VG = null; var local3:VG = null; var local5:VG = null; var local4:Object3D = this.alternativa3d::childrenList; while(local4 != null) { if(local4.visible) { local4.alternativa3d::composeAndAppend(this); if(local4.alternativa3d::cullingInCamera(param1,alternativa3d::culling) >= 0) { local5 = local4.alternativa3d::getVG(param1); if(local5 != null) { if(local2 != null) { local3.alternativa3d::next = local5; } else { local2 = local5; local3 = local5; } while(local3.alternativa3d::next != null) { local3 = local3.alternativa3d::next; } } } } local4 = local4.alternativa3d::next; } return local2; } alternativa3d function colorizeVG(param1:VG) : void { var local2:VG = null; var local3:ColorTransform = null; var local4:int = 0; var local5:Array = null; var local6:int = 0; var local7:int = 0; if(alpha != 1) { local2 = param1; while(local2 != null) { local2.alternativa3d::alpha *= alpha; local2 = local2.alternativa3d::next; } } if(blendMode != "normal") { local2 = param1; while(local2 != null) { if(local2.alternativa3d::blendMode == "normal") { local2.alternativa3d::blendMode = blendMode; } local2 = local2.alternativa3d::next; } } if(colorTransform != null) { local2 = param1; while(local2 != null) { if(local2.alternativa3d::colorTransform != null) { local3 = new ColorTransform(colorTransform.redMultiplier,colorTransform.greenMultiplier,colorTransform.blueMultiplier,colorTransform.alphaMultiplier,colorTransform.redOffset,colorTransform.greenOffset,colorTransform.blueOffset,colorTransform.alphaOffset); local3.concat(local2.alternativa3d::colorTransform); local2.alternativa3d::colorTransform = local3; } else { local2.alternativa3d::colorTransform = colorTransform; } local2 = local2.alternativa3d::next; } } if(filters != null) { local2 = param1; while(local2 != null) { if(local2.alternativa3d::filters != null) { local5 = new Array(); local6 = 0; local7 = int(local2.alternativa3d::filters.length); local4 = 0; while(local4 < local7) { local5[local6] = local2.alternativa3d::filters[local4]; local6++; local4++; } local7 = int(filters.length); local4 = 0; while(local4 < local7) { local5[local6] = filters[local4]; local6++; local4++; } local2.alternativa3d::filters = local5; } else { local2.alternativa3d::filters = filters; } local2 = local2.alternativa3d::next; } } } override alternativa3d function updateBounds(param1:Object3D, param2:Object3D = null) : void { var local3:Object3D = this.alternativa3d::childrenList; while(local3 != null) { if(param2 != null) { local3.alternativa3d::composeAndAppend(param2); } else { local3.alternativa3d::composeMatrix(); } local3.alternativa3d::updateBounds(param1,local3); local3 = local3.alternativa3d::next; } } override alternativa3d function split(param1:Vector3D, param2:Vector3D, param3:Vector3D, param4:Number) : Vector.<Object3D> { var local10:Object3D = null; var local11:Object3D = null; var local13:Object3D = null; var local14:Vector3D = null; var local15:Vector3D = null; var local16:Vector3D = null; var local17:int = 0; var local18:Vector.<Object3D> = null; var local19:Number = NaN; var local5:Vector.<Object3D> = new Vector.<Object3D>(2); var local6:Vector3D = alternativa3d::calculatePlane(param1,param2,param3); var local7:Object3D = this.alternativa3d::childrenList; this.alternativa3d::childrenList = null; var local8:Object3DContainer = this.clone() as Object3DContainer; var local9:Object3DContainer = this.clone() as Object3DContainer; var local12:Object3D = local7; while(local12 != null) { local13 = local12.alternativa3d::next; local12.alternativa3d::next = null; local12.alternativa3d::setParent(null); local12.alternativa3d::composeMatrix(); local12.alternativa3d::calculateInverseMatrix(); local14 = new Vector3D(local12.alternativa3d::ima * param1.x + local12.alternativa3d::imb * param1.y + local12.alternativa3d::imc * param1.z + local12.alternativa3d::imd,local12.alternativa3d::ime * param1.x + local12.alternativa3d::imf * param1.y + local12.alternativa3d::img * param1.z + local12.alternativa3d::imh,local12.alternativa3d::imi * param1.x + local12.alternativa3d::imj * param1.y + local12.alternativa3d::imk * param1.z + local12.alternativa3d::iml); local15 = new Vector3D(local12.alternativa3d::ima * param2.x + local12.alternativa3d::imb * param2.y + local12.alternativa3d::imc * param2.z + local12.alternativa3d::imd,local12.alternativa3d::ime * param2.x + local12.alternativa3d::imf * param2.y + local12.alternativa3d::img * param2.z + local12.alternativa3d::imh,local12.alternativa3d::imi * param2.x + local12.alternativa3d::imj * param2.y + local12.alternativa3d::imk * param2.z + local12.alternativa3d::iml); local16 = new Vector3D(local12.alternativa3d::ima * param3.x + local12.alternativa3d::imb * param3.y + local12.alternativa3d::imc * param3.z + local12.alternativa3d::imd,local12.alternativa3d::ime * param3.x + local12.alternativa3d::imf * param3.y + local12.alternativa3d::img * param3.z + local12.alternativa3d::imh,local12.alternativa3d::imi * param3.x + local12.alternativa3d::imj * param3.y + local12.alternativa3d::imk * param3.z + local12.alternativa3d::iml); local17 = int(local12.alternativa3d::testSplit(local14,local15,local16,param4)); if(local17 < 0) { if(local10 != null) { local10.alternativa3d::next = local12; } else { local8.alternativa3d::childrenList = local12; } local10 = local12; local12.alternativa3d::setParent(local8); } else if(local17 > 0) { if(local11 != null) { local11.alternativa3d::next = local12; } else { local9.alternativa3d::childrenList = local12; } local11 = local12; local12.alternativa3d::setParent(local9); } else { local18 = local12.alternativa3d::split(local14,local15,local16,param4); local19 = Number(local12.alternativa3d::distance); if(local18[0] != null) { local12 = local18[0]; if(local10 != null) { local10.alternativa3d::next = local12; } else { local8.alternativa3d::childrenList = local12; } local10 = local12; local12.alternativa3d::setParent(local8); local12.alternativa3d::distance = local19; } if(local18[1] != null) { local12 = local18[1]; if(local11 != null) { local11.alternativa3d::next = local12; } else { local9.alternativa3d::childrenList = local12; } local11 = local12; local12.alternativa3d::setParent(local9); local12.alternativa3d::distance = local19; } } local12 = local13; } if(local10 != null) { local8.calculateBounds(); local5[0] = local8; } if(local11 != null) { local9.calculateBounds(); local5[1] = local9; } return local5; } alternativa3d function addToList(param1:Object3D, param2:Object3D = null) : void { var local3:Object3D = null; param1.alternativa3d::next = param2; param1.alternativa3d::setParent(this); if(param2 == this.alternativa3d::childrenList) { this.alternativa3d::childrenList = param1; } else { local3 = this.alternativa3d::childrenList; while(local3 != null) { if(local3.alternativa3d::next == param2) { local3.alternativa3d::next = param1; break; } local3 = local3.alternativa3d::next; } } } override alternativa3d function setParent(param1:Object3DContainer) : void { var local2:Object3DContainer = null; var local3:Light3D = null; if(param1 == null) { local2 = alternativa3d::_parent; while(local2.alternativa3d::_parent != null) { local2 = local2.alternativa3d::_parent; } if(local2.alternativa3d::lightList != null) { this.transferLights(local2,this); } } else if(this.alternativa3d::lightList != null) { local2 = param1; while(local2.alternativa3d::_parent != null) { local2 = local2.alternativa3d::_parent; } local3 = this.alternativa3d::lightList; while(local3.alternativa3d::nextLight != null) { local3 = local3.alternativa3d::nextLight; } local3.alternativa3d::nextLight = local2.alternativa3d::lightList; local2.alternativa3d::lightList = this.alternativa3d::lightList; this.alternativa3d::lightList = null; } alternativa3d::_parent = param1; } private function transferLights(param1:Object3DContainer, param2:Object3DContainer) : void { var local4:Light3D = null; var local5:Light3D = null; var local6:Light3D = null; var local3:Object3D = this.alternativa3d::childrenList; while(local3 != null) { if(local3 is Light3D) { local4 = local3 as Light3D; local5 = null; local6 = param1.alternativa3d::lightList; while(local6 != null) { if(local6 == local4) { if(local5 != null) { local5.alternativa3d::nextLight = local6.alternativa3d::nextLight; } else { param1.alternativa3d::lightList = local6.alternativa3d::nextLight; } local6.alternativa3d::nextLight = param2.alternativa3d::lightList; param2.alternativa3d::lightList = local6; break; } local5 = local6; local6 = local6.alternativa3d::nextLight; } } else if(local3 is Object3DContainer) { (local3 as Object3DContainer).transferLights(param1,param2); } if(param1.alternativa3d::lightList == null) { break; } local3 = local3.alternativa3d::next; } } } }
package alternativa.tanks.view.forms { import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.controller.events.FightWithoutRegistrationEvent; import alternativa.tanks.controller.events.NavigationEvent; import alternativa.tanks.controller.events.google.GoogleLoginEvent; import alternativa.tanks.controller.events.socialnetwork.StartExternalEntranceEvent; import alternativa.tanks.loader.ILoaderWindowService; import alternativa.tanks.service.IExternalEntranceService; import alternativa.tanks.service.IRegistrationUXService; import alternativa.tanks.view.forms.commons.RegistrationCommonElementsSection; import alternativa.tanks.view.registration.ExternalEntranceForm; import alternativa.tanks.ymservice.YandexMetricaService; import controls.base.BigButtonBase; import controls.base.LabelBase; import flash.display.Bitmap; import flash.display.DisplayObject; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.external.ExternalInterface; import forms.TankWindowWithHeader; import org.robotlegs.core.IInjector; import projects.tanks.client.entrance.model.entrance.logging.RegistrationUXFormAction; import projects.tanks.client.entrance.model.entrance.logging.RegistrationUXScreen; import projects.tanks.clients.fp10.libraries.TanksLocale; public class RegistrationForm extends Sprite { [Inject] public static var localeService:ILocaleService; [Inject] public static var externalEntranceService:IExternalEntranceService; [Inject] public static var ymService:YandexMetricaService; [Inject] public static var registrationUXService:IRegistrationUXService; [Inject] public static var loaderWindowService:ILoaderWindowService; public static const VK_ID:String = "vkontakte"; public static const FB_ID:String = "facebook"; public static const GOOGLE_ID:String = "google"; private static const VK_BUTTON_CLICK:String = "VKButton:click"; private static const FB_BUTTON_CLICK:String = "FBButton:click"; private static const GOOGLE_BUTTON_CLICK:String = "GOOGLEButton:click"; private static const GO_TO_LOGIN_FORM_CLICK:String = "GoToLoginForm:click"; [Inject] public var injector:IInjector; private var _externalForm:ExternalEntranceForm; private var _window:TankWindowWithHeader; private var _registrationCommonElementsSection:RegistrationCommonElementsSection; private var _margin:int = 20; private var _smallMargin:int = 12; private var _border:int = 25; private var _windowWidth:int = 380; private var _goToLoginPage:LabelBase = new LabelBase(); private var _backgroundContainer:Sprite; private var _backgroundImage:Bitmap; private var _antiAddictionEnabled:Boolean; private var _registrationCaptchaEnabled:Boolean; private var _registrationThroughEmail:Boolean; private var _skipRegistrationEnabled:Boolean; private var _goToLoginPageEnabled:Boolean; private var _skipRegistrationButton:BigButtonBase; private var _callsign:String = ""; private var _password:String = ""; private var _verificationPassword:String = ""; private var _emailText:String; public function RegistrationForm(param1:Boolean, param2:Boolean, param3:Boolean, param4:Bitmap, param5:Boolean = true, param6:Boolean = true, param7:String = "", param8:String = "", param9:String = "", param10:String = "") { super(); this._registrationThroughEmail = param1; this._registrationCaptchaEnabled = param2; this._antiAddictionEnabled = param3; this._backgroundImage = param4; this._skipRegistrationEnabled = param5; this._goToLoginPageEnabled = param6; this._callsign = param7; this._password = param8; this._verificationPassword = param9; this._emailText = param10; } [PostConstruct] public function postConstruct() : void { var windowHeight:int = 0; var titleSkipRegistration:LabelBase = null; var _this:RegistrationForm = null; windowHeight = this._border; if(this._skipRegistrationEnabled) { this._skipRegistrationButton = new BigButtonBase(); this._skipRegistrationButton.label = localeService.getText(TanksLocale.TEXT_REGISTER_FORM_SKIP_REGISTRATION_TEXT); this._skipRegistrationButton.width = 330; this._skipRegistrationButton.height = 50; this._skipRegistrationButton.x = this._border; this._skipRegistrationButton.y = windowHeight; this._skipRegistrationButton.addEventListener(MouseEvent.CLICK,function(param1:MouseEvent):void { dispatchEvent(new FightWithoutRegistrationEvent()); }); windowHeight += this._skipRegistrationButton.height; windowHeight += this._smallMargin - 8; titleSkipRegistration = new LabelBase(); titleSkipRegistration.x = this._border; titleSkipRegistration.multiline = true; titleSkipRegistration.wordWrap = true; titleSkipRegistration.htmlText = localeService.getText(TanksLocale.TEXT_REGISTER_FORM_TITLE_SKIP_REGISTRATION_TEXT); titleSkipRegistration.width = 330; titleSkipRegistration.y = windowHeight; windowHeight += titleSkipRegistration.height; windowHeight += this._margin - 10; } if(this._goToLoginPageEnabled) { this._goToLoginPage = new LabelBase(); this._goToLoginPage.x = this._border; this._goToLoginPage.multiline = true; this._goToLoginPage.wordWrap = true; this._goToLoginPage.htmlText = localeService.getText(TanksLocale.TEXT_REGISTER_FORM_TO_LOGIN_PAGE_TEXT); this._goToLoginPage.width = 330; this._goToLoginPage.y = windowHeight; _this = this; this._goToLoginPage.addEventListener(MouseEvent.CLICK,function(param1:MouseEvent):void { ymService.reachGoalIfPlayerWasInTutorial(GO_TO_LOGIN_FORM_CLICK); dispatchEvent(new NavigationEvent(NavigationEvent.GO_TO_LOGIN_FORM)); }); windowHeight += this._goToLoginPage.height - 3; windowHeight += this._border; } this._backgroundContainer = new Sprite(); addChild(this._backgroundContainer); this._window = TankWindowWithHeader.createWindow(TanksLocale.TEXT_HEADER_REGISTRATION,this._windowWidth,windowHeight); if(this._skipRegistrationEnabled) { this._window.addChild(this._skipRegistrationButton); this._window.addChild(titleSkipRegistration); } if(Boolean(this._goToLoginPage)) { this._window.addChild(this._goToLoginPage); } registrationUXService.logNavigationFinish(); this._registrationCommonElementsSection = this.injector.instantiate(RegistrationCommonElementsSection); this._registrationCommonElementsSection.callsign = this._callsign; this._registrationCommonElementsSection.password = this._password; this._registrationCommonElementsSection.verificationPassword = this._verificationPassword; this._registrationCommonElementsSection.emailText = this._emailText; this._window.addChild(this._registrationCommonElementsSection); this._registrationCommonElementsSection.showCommonElements(this._registrationCaptchaEnabled,this._antiAddictionEnabled,this._registrationThroughEmail); if(this._goToLoginPageEnabled) { this._registrationCommonElementsSection.y = this._goToLoginPage.y + this._goToLoginPage.height - 3; } this._window.height = this._registrationCommonElementsSection.y + this._registrationCommonElementsSection.height + this._border; if(Boolean(externalEntranceService.vkontakteEnabled) || Boolean(externalEntranceService.facebookEnabled) || Boolean(externalEntranceService.googleEnabled)) { this._externalForm = new ExternalEntranceForm(this._windowWidth - 20,85,localeService.getText(TanksLocale.TEXT_REGISTER_FORM_REGISTER_VIA)); addChild(this._externalForm); this._externalForm.y = this._window.y + this._window.height - 15; this._externalForm.x = this._window.x + (this._windowWidth - this._externalForm.width) / 2; if(externalEntranceService.vkontakteEnabled) { this._externalForm.vkButton.addEventListener(MouseEvent.CLICK,this.onClickVkButton); } if(externalEntranceService.facebookEnabled) { this._externalForm.fbButton.addEventListener(MouseEvent.CLICK,this.onClickFbButton); } if(externalEntranceService.googleEnabled) { this._externalForm.googleButton.addEventListener(MouseEvent.CLICK,this.onClickGoogleButton); } } addChild(this._window); addEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); } private function onClickVkButton(param1:MouseEvent) : void { ymService.reachGoalIfPlayerWasInTutorial(VK_BUTTON_CLICK); registrationUXService.logFormAction(RegistrationUXFormAction.SOCIAL_BUTTON_CLICKED); registrationUXService.logNavigationStart(RegistrationUXScreen.VK); dispatchEvent(new StartExternalEntranceEvent(StartExternalEntranceEvent.START_REGISTRATION,VK_ID,this.rememberMe)); } private function onClickFbButton(param1:MouseEvent) : void { ymService.reachGoalIfPlayerWasInTutorial(FB_BUTTON_CLICK); registrationUXService.logFormAction(RegistrationUXFormAction.SOCIAL_BUTTON_CLICKED); registrationUXService.logNavigationStart(RegistrationUXScreen.FACEBOOK); dispatchEvent(new StartExternalEntranceEvent(StartExternalEntranceEvent.START_REGISTRATION,FB_ID,this.rememberMe)); } private function onClickGoogleButton(param1:MouseEvent) : void { ymService.reachGoalIfPlayerWasInTutorial(GOOGLE_BUTTON_CLICK); registrationUXService.logFormAction(RegistrationUXFormAction.SOCIAL_BUTTON_CLICKED); registrationUXService.logNavigationStart(RegistrationUXScreen.GOOGLE); if(ExternalInterface.available) { ExternalInterface.call("onGoogleButtonClicked"); ExternalInterface.addCallback("onGoogleTokenReceived",this.onGoogleTokenReceived); } } private function onGoogleTokenReceived(param1:String) : void { dispatchEvent(new GoogleLoginEvent(param1,this.rememberMe)); } private function onAddedToStage(param1:Event) : void { removeEventListener(Event.ADDED_TO_STAGE,this.onAddedToStage); addEventListener(Event.REMOVED_FROM_STAGE,this.onRemovedFromStage); stage.addEventListener(Event.RESIZE,this.alignYourself); this.alignYourself(null); if(Boolean(this._backgroundImage)) { this.setBackground(this._backgroundImage); } loaderWindowService.hide(); } private function onRemovedFromStage(param1:Event) : void { stage.removeEventListener(Event.RESIZE,this.alignYourself); if(this._externalForm != null) { if(externalEntranceService.facebookEnabled) { this._externalForm.fbButton.removeEventListener(MouseEvent.CLICK,this.onClickFbButton); } if(externalEntranceService.vkontakteEnabled) { this._externalForm.vkButton.removeEventListener(MouseEvent.CLICK,this.onClickVkButton); } } } public function get captchaAnswer() : String { return this._registrationCommonElementsSection.captchaAnswer; } private function alignYourself(param1:Event) : void { this.x = int((stage.stageWidth - this._windowWidth) / 2); this.y = int((stage.stageHeight - this._window.height) / 2); if(Boolean(this._backgroundImage)) { graphics.clear(); graphics.beginFill(0); graphics.drawRect(-this.x,-this.y,stage.stageWidth,stage.stageHeight); graphics.endFill(); this._backgroundImage.x = int(this._windowWidth - this._backgroundImage.width >> 1); this._backgroundImage.y = -int(stage.stageHeight - this._window.height >> 1); } } public function get callsign() : String { return this._registrationCommonElementsSection != null ? this._registrationCommonElementsSection.callsign : ""; } public function get password() : String { return this._registrationCommonElementsSection != null ? this._registrationCommonElementsSection.password : ""; } public function get verificationPassword() : String { return this._registrationCommonElementsSection != null ? this._registrationCommonElementsSection.verificationPassword : ""; } public function get emailText() : String { return this._registrationCommonElementsSection != null ? this._registrationCommonElementsSection.emailText : ""; } public function get rememberMe() : Boolean { return this._registrationCommonElementsSection.rememberMe; } public function get idNumber() : String { return this._registrationCommonElementsSection.idNumber; } public function get realName() : String { return this._registrationCommonElementsSection.realName; } public function setBackground(param1:Bitmap) : void { if(this._backgroundContainer.numChildren == 0) { this._backgroundImage = param1; this._backgroundContainer.addChild(param1); this.alignYourself(null); } } public function get goToFirstBattleButton() : DisplayObject { return this._skipRegistrationButton; } public function set realName(param1:String) : void { this._registrationCommonElementsSection.realName = param1; } public function set idNumber(param1:String) : void { this._registrationCommonElementsSection.idNumber = param1; } public function get skipRegistrationEnabled() : Boolean { return this._skipRegistrationEnabled; } } }
package _codec.projects.tanks.client.battlefield.models.ultimate.effects.hunter { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Float; import platform.client.fp10.core.resource.types.SoundResource; import platform.client.fp10.core.resource.types.TextureResource; import projects.tanks.client.battlefield.models.ultimate.effects.hunter.HunterUltimateCC; public class CodecHunterUltimateCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_chargingTimeMillis:ICodec; private var codec_effectStartSound:ICodec; private var codec_energy:ICodec; private var codec_failSound:ICodec; private var codec_hitSound:ICodec; private var codec_lightning:ICodec; private var codec_originPointZOffset:ICodec; private var codec_preparing:ICodec; public function CodecHunterUltimateCC() { super(); } public function init(param1:IProtocol) : void { this.codec_chargingTimeMillis = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_effectStartSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_energy = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_failSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_hitSound = param1.getCodec(new TypeCodecInfo(SoundResource,false)); this.codec_lightning = param1.getCodec(new TypeCodecInfo(TextureResource,false)); this.codec_originPointZOffset = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_preparing = param1.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:HunterUltimateCC = new HunterUltimateCC(); local2.chargingTimeMillis = this.codec_chargingTimeMillis.decode(param1) as int; local2.effectStartSound = this.codec_effectStartSound.decode(param1) as SoundResource; local2.energy = this.codec_energy.decode(param1) as TextureResource; local2.failSound = this.codec_failSound.decode(param1) as SoundResource; local2.hitSound = this.codec_hitSound.decode(param1) as SoundResource; local2.lightning = this.codec_lightning.decode(param1) as TextureResource; local2.originPointZOffset = this.codec_originPointZOffset.decode(param1) as Number; local2.preparing = this.codec_preparing.decode(param1) as Boolean; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:HunterUltimateCC = HunterUltimateCC(param2); this.codec_chargingTimeMillis.encode(param1,local3.chargingTimeMillis); this.codec_effectStartSound.encode(param1,local3.effectStartSound); this.codec_energy.encode(param1,local3.energy); this.codec_failSound.encode(param1,local3.failSound); this.codec_hitSound.encode(param1,local3.hitSound); this.codec_lightning.encode(param1,local3.lightning); this.codec_originPointZOffset.encode(param1,local3.originPointZOffset); this.codec_preparing.encode(param1,local3.preparing); } } }
package projects.tanks.client.battlefield.models.statistics { public interface IMemoryStatisticsModelBase { } }
package alternativa.tanks.gui.battle { import projects.tanks.clients.fp10.libraries.TanksLocale; public class BattleFinishTeamNotification extends BattleFinishNotification { private var _isVictory:Boolean; private var _isDefeat:Boolean; private var _position:int; private var _places:int; private var _crystals:int; private var _stars:int; public function BattleFinishTeamNotification(param1:Boolean, param2:Boolean, param3:int, param4:int, param5:int, param6:int, param7:Boolean) { this._isVictory = param1; this._isDefeat = param2; this._position = param3; this._places = param4; this._crystals = param5; this._stars = param6; _showStars = param7; super(); } override public function get message() : String { if(_showStars) { return this.getMainMessage() + "\n" + localeService.getText(TanksLocale.TEXT_REARM_BATTLE_STARS_PRIZE).replace(NotificationPatterns.STARS_REPLACE_PATTER,getStarsRewardText(this._stars)); } return this.getMainMessage(); } private function getMainMessage() : String { return this.getTotalRoundLabel() + "\n" + localeService.getText(TanksLocale.TEXT_REARM_BATTLE_PLACE).replace(NotificationPatterns.YOUR_PLACE_REPLACE_PATTERN,this._position).replace(NotificationPatterns.PLACES_REPLACE_PATTERN,this._places) + "\n" + localeService.getText(TanksLocale.TEXT_REARM_BATTLE_PRIZE).replace(NotificationPatterns.CRYSTALS_REPLACE_PATTERN,String(this._crystals)); } protected function getTotalRoundLabel() : String { if(this._isVictory) { return localeService.getText(TanksLocale.TEXT_REARM_TEAM_WIN); } if(this._isDefeat) { return localeService.getText(TanksLocale.TEXT_REARM_TEAM_LOOSE); } return localeService.getText(TanksLocale.TEXT_REARM_TEAM_TIE); } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class ExchangeGroup_bitmapExchange extends BitmapAsset { public function ExchangeGroup_bitmapExchange() { super(); } } }
package alternativa.tanks.models.battle.battlefield.keyboard { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.keyboard.DeviceIcons_incendiarybombsIconClass.png")] public class DeviceIcons_incendiarybombsIconClass extends BitmapAsset { public function DeviceIcons_incendiarybombsIconClass() { super(); } } }
package _codec.projects.tanks.client.entrance.model.entrance.telegram { 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.entrance.model.entrance.telegram.TelegramEntranceModelCC; public class CodecTelegramEntranceModelCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_botName:ICodec; public function CodecTelegramEntranceModelCC() { super(); } public function init(param1:IProtocol) : void { this.codec_botName = param1.getCodec(new TypeCodecInfo(String,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:TelegramEntranceModelCC = new TelegramEntranceModelCC(); local2.botName = this.codec_botName.decode(param1) as String; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:TelegramEntranceModelCC = TelegramEntranceModelCC(param2); this.codec_botName.encode(param1,local3.botName); } } }
package alternativa.physics { import alternativa.math.Vector3; public class Contact { public var body1:Body; public var body2:Body; public var restitution:Number; public var friction:Number; public var normal:Vector3; public var points:Vector.<ContactPoint>; public var pcount:int; public var maxPenetration:Number = 0; public var satisfied:Boolean; public var next:Contact; public var index:int; private const MAX_POINTS:int = 8; public function Contact(index:int) { this.normal = new Vector3(); this.points = new Vector.<ContactPoint>(this.MAX_POINTS,true); super(); this.index = index; for(var i:int = 0; i < this.MAX_POINTS; i++) { this.points[i] = new ContactPoint(); } } public function destroy() : void { var c:ContactPoint = null; this.normal = null; if(this.points != null) { for each(c in this.points) { c.destroy(); c = null; } this.points = null; } } } }
package projects.tanks.client.panel.model.shop.androidspecialoffer.rank { 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 AndroidOffersRankModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function AndroidOffersRankModelServer(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.rangicons { import mx.core.BitmapAsset; [ExcludeClass] public class RangIconNormal_p10 extends BitmapAsset { public function RangIconNormal_p10() { super(); } } }
package alternativa.utils.textureutils { import flash.utils.ByteArray; public class TextureByteData { public var diffuseData:ByteArray; public var opacityData:ByteArray; public function TextureByteData(diffuseData:ByteArray = null, opacityData:ByteArray = null) { super(); this.diffuseData = diffuseData; this.opacityData = opacityData; } } }
package _codec.projects.tanks.client.garage.models.item.kit { 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.type.IGameObject; import projects.tanks.client.garage.models.item.kit.KitItem; public class CodecKitItem implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_count:ICodec; private var codec_item:ICodec; private var codec_mount:ICodec; public function CodecKitItem() { super(); } public function init(param1:IProtocol) : void { this.codec_count = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_item = param1.getCodec(new TypeCodecInfo(IGameObject,false)); this.codec_mount = param1.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:KitItem = new KitItem(); local2.count = this.codec_count.decode(param1) as int; local2.item = this.codec_item.decode(param1) as IGameObject; local2.mount = this.codec_mount.decode(param1) as Boolean; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:KitItem = KitItem(param2); this.codec_count.encode(param1,local3.count); this.codec_item.encode(param1,local3.item); this.codec_mount.encode(param1,local3.mount); } } }
package projects.tanks.client.commons.models.runtime { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class DataOwnerModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:DataOwnerModelServer; private var client:IDataOwnerModelBase = IDataOwnerModelBase(this); private var modelId:Long = Long.getLong(1160870944,208895362); public function DataOwnerModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new DataOwnerModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(DataOwnerCC,false))); } protected function getInitParam() : DataOwnerCC { return DataOwnerCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.models.weapon.shared.streamweapon { import alternativa.math.Vector3; import alternativa.physics.Body; import alternativa.tanks.battle.objects.tank.Weapon; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IStreamWeaponCallbackAdapt implements IStreamWeaponCallback { private var object:IGameObject; private var impl:IStreamWeaponCallback; public function IStreamWeaponCallbackAdapt(param1:IGameObject, param2:IStreamWeaponCallback) { super(); this.object = param1; this.impl = param2; } public function start(param1:int) : void { var time:int = param1; try { Model.object = this.object; this.impl.start(time); } finally { Model.popObject(); } } public function stop(param1:int) : void { var time:int = param1; try { Model.object = this.object; this.impl.stop(time); } finally { Model.popObject(); } } public function onTick(param1:Weapon, param2:Vector.<Body>, param3:Vector.<Number>, param4:Vector.<Vector3>, param5:int) : void { var weapon:Weapon = param1; var bodies:Vector.<Body> = param2; var distances:Vector.<Number> = param3; var hitPositions:Vector.<Vector3> = param4; var time:int = param5; try { Model.object = this.object; this.impl.onTick(weapon,bodies,distances,hitPositions,time); } finally { Model.popObject(); } } } }
package assets.icons { import flash.display.BitmapData; [Embed(source="/_assets/assets.icons.icon_SHORTAGE_ENERGY.png")] public dynamic class icon_SHORTAGE_ENERGY extends BitmapData { public function icon_SHORTAGE_ENERGY(param1:int = 35, param2:int = 35) { super(param1,param2); } } }
package projects.tanks.client.battleselect.model.matchmaking.group.notify { 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 MatchmakingGroupNotifyModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var model:IModel; public function MatchmakingGroupNotifyModelServer(param1:IModel) { super(); this.model = param1; var local2:ByteArray = new ByteArray(); this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol)); this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap()); } } }
package alternativa.tanks.model.item.countable { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ICountableItemAdapt implements ICountableItem { private var object:IGameObject; private var impl:ICountableItem; public function ICountableItemAdapt(param1:IGameObject, param2:ICountableItem) { super(); this.object = param1; this.impl = param2; } public function getCount() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getCount()); } finally { Model.popObject(); } return result; } public function setCount(param1:int) : void { var value:int = param1; try { Model.object = this.object; this.impl.setCount(value); } finally { Model.popObject(); } } } }
package _codec.projects.tanks.client.battlefield.models.battle.pointbased { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.battlefield.models.battle.pointbased.ClientTeamPoint; public class VectorCodecClientTeamPointLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecClientTeamPointLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ClientTeamPoint,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.<ClientTeamPoint> = new Vector.<ClientTeamPoint>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ClientTeamPoint(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ClientTeamPoint = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ClientTeamPoint> = Vector.<ClientTeamPoint>(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.service.paymentcomplete { import flash.events.EventDispatcher; public class PaymentCompleteServiceImpl extends EventDispatcher implements PaymentCompleteService { public function PaymentCompleteServiceImpl() { super(); } public function paymentCompleted() : void { dispatchEvent(new PaymentCompleteEvent()); } } }
package projects.tanks.client.battlefield.models.tankparts.weapon.turret { 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.user.tank.commands.TurretStateCommand; public class RotatingTurretModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:RotatingTurretModelServer; private var client:IRotatingTurretModelBase = IRotatingTurretModelBase(this); private var modelId:Long = Long.getLong(652662967,-1245415753); private var _updateId:Long = Long.getLong(1536305300,1218725205); private var _update_turretStateCommandCodec:ICodec; public function RotatingTurretModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new RotatingTurretModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(RotatingTurretCC,false))); this._update_turretStateCommandCodec = this._protocol.getCodec(new TypeCodecInfo(TurretStateCommand,false)); } protected function getInitParam() : RotatingTurretCC { return RotatingTurretCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._updateId: this.client.update(TurretStateCommand(this._update_turretStateCommandCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.models.battle.facilities { import alternativa.math.Vector3; [ModelInterface] public interface FacilityDispellEffect { function createDispellEffects(param1:Vector3) : void; } }
package scpacker.gui { import mx.core.BitmapAsset; [ExcludeClass] public class GTanksI_coldload17 extends BitmapAsset { public function GTanksI_coldload17() { super(); } } }
package com.alternativaplatform.projects.tanks.client.garage.item { import com.alternativaplatform.projects.tanks.client.commons.types.ItemProperty; public class ItemPropertyValue { public var property:ItemProperty; public var value:String; public function ItemPropertyValue() { super(); } } }