code
stringlengths
57
237k
package com.lorentz.SVG.data.style { import com.lorentz.SVG.events.StyleDeclarationEvent; import com.lorentz.SVG.utils.ICloneable; import com.lorentz.SVG.utils.StringUtil; import flash.events.EventDispatcher; [Event(name="propertyChange", type="com.lorentz.SVG.events.StyleDeclarationEvent")] public class StyleDeclaration extends EventDispatcher implements ICloneable { private var _propertiesValues:Object = {}; private var _indexedProperties:Array = []; public function getPropertyValue(propertyName:String):String { return _propertiesValues[propertyName]; } public function setProperty(propertyName:String, value:String):void { if(_propertiesValues[propertyName] != value){ var oldValue:String = _propertiesValues[propertyName]; _propertiesValues[propertyName] = value; indexProperty(propertyName); dispatchEvent( new StyleDeclarationEvent(StyleDeclarationEvent.PROPERTY_CHANGE, propertyName, oldValue, value) ); } } public function removeProperty(propertyName:String):String { var oldValue:String = _propertiesValues[propertyName]; delete _propertiesValues[propertyName]; unindexProperty(propertyName); dispatchEvent( new StyleDeclarationEvent(StyleDeclarationEvent.PROPERTY_CHANGE, propertyName, oldValue, null) ); return oldValue; } public function hasProperty(propertyName:String):Boolean { var index:int = _indexedProperties.indexOf(propertyName); return index != -1; } public function get length():int { return _indexedProperties.length; } public function item(index:int):String { return _indexedProperties[index]; } public function fromString(styleString:String):void { styleString = StringUtil.trim(styleString); styleString = StringUtil.rtrim(styleString, ";"); for each(var prop:String in styleString.split(";")){ var split:Array = prop.split(":"); if(split.length==2) setProperty(StringUtil.trim(split[0]), StringUtil.trim(split[1])); } } public static function createFromString(styleString:String):StyleDeclaration { var styleDeclaration:StyleDeclaration = new StyleDeclaration(); styleDeclaration.fromString(styleString); return styleDeclaration; } override public function toString():String { var styleString:String = ""; for each(var propertyName:String in _indexedProperties){ styleString += propertyName+":"+_propertiesValues[propertyName]+ "; "; } return styleString; } public function clear():void { while(length > 0) removeProperty(item(0)); } private static const nonInheritableProperties:Array = [ "display", "opacity", "clip", "filter", "overflow", "clip-path" ]; public function copyStyles(target:StyleDeclaration, onlyInheritable:Boolean = false):void { for each(var propertyName:String in _indexedProperties) { if (!onlyInheritable || nonInheritableProperties.indexOf(propertyName) == -1) { target.setProperty(propertyName, getPropertyValue(propertyName)); } } } public function cloneOn(target:StyleDeclaration):void { var propertyName:String; for each(propertyName in _indexedProperties){ target.setProperty(propertyName, getPropertyValue(propertyName)); } for(var i:int = 0; i < target.length; i++) { propertyName = target.item(i); if(!hasProperty(propertyName)) target.removeProperty(propertyName); } } private function indexProperty(propertyName:String):void { if(_indexedProperties.indexOf(propertyName) == -1) _indexedProperties.push(propertyName); } private function unindexProperty(propertyName:String):void { var index:int = _indexedProperties.indexOf(propertyName); if(index != -1) _indexedProperties.splice(index, 1); } public function clone():Object { var c:StyleDeclaration = new StyleDeclaration(); cloneOn(c); return c; } } }
package forms.userlabel { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/forms.userlabel.ChatUserLabel_silverBattleStatusIconClass.png")] public class ChatUserLabel_silverBattleStatusIconClass extends BitmapAsset { public function ChatUserLabel_silverBattleStatusIconClass() { super(); } } }
package forms.friends.list.dataprovider { import alternativa.types.Long; import fl.data.DataProvider; import flash.utils.Dictionary; public class FriendsDataProvider extends DataProvider { public static const IS_NEW:String = "isNew"; public static const ID:String = "id"; public static const ONLINE:String = "online"; public static const IS_BATTLE:String = "isBattle"; public static const UID:String = "uid"; public static const AVAILABLE_INVITE:String = "availableInvite"; public static const AVAILABLE_BATTLE:String = "availableBattle"; private static var _escapePattern:RegExp = /\-|\./; private static var _globSearchPattern:RegExp = /\*/g; private var _getItemAtHandler:Function; private var _store:Dictionary; private var _filterPropertyName:String; private var _filterString:String; private var _filterPattern:RegExp; private var _sortFields:Object; private var _sortFieldsProperties:Object; public var de:Long; public function FriendsDataProvider() { this.de = new Long(0,10000); this._store = new Dictionary(); this._filterString = ""; super(); } private static function prepareSearchPattern(param1:String) : RegExp { param1 = param1.replace(_escapePattern,"\\$&").replace(_globSearchPattern,".*"); param1 = "^" + param1; return new RegExp(param1,"i"); } public function get getItemAtHandler() : Function { return this._getItemAtHandler; } public function set getItemAtHandler(param1:Function) : void { this._getItemAtHandler = param1; } override public function getItemAt(param1:uint) : Object { var _loc2_:Object = super.getItemAt(param1); if(this.getItemAtHandler != null) { this.getItemAtHandler(_loc2_); } return _loc2_; } public function setUserAsNew(param1:Long, param2:Boolean = true) : int { var _loc3_:int = this.setPropertiesById(param1,IS_NEW,true); if(param2 && _loc3_ != -1) { this.reSort(); } return _loc3_; } public function setOnlineUser(param1:Long, param2:Boolean = true) : int { var _loc3_:int = this.setPropertiesById(param1,ONLINE,param2); if(param2 && _loc3_ != -1) { this.reSort(); } return _loc3_; } public function updatePropertyAvailableInvite() : void { var _loc1_:Object = null; var _loc2_:int = this.length; var _loc3_:int = 0; while(_loc3_ < _loc2_) { _loc1_ = super.getItemAt(_loc3_); _loc3_++; } } public function updatePropertyAvailableInviteById(param1:Long) : void { var _loc2_:Object = null; var _loc3_:int = this.setPropertiesById(param1,AVAILABLE_INVITE,false); if(_loc3_ != -1) { _loc2_ = super.getItemAt(_loc3_); } } public function clearBattleUser(param1:Long, param2:Boolean = true) : int { var _loc3_:int = this.setPropertiesById(param1,IS_BATTLE,false); if(_loc3_ != -1) { this.setPropertiesById(param1,AVAILABLE_BATTLE,false); } if(param2 && _loc3_ != -1) { this.reSort(); } return _loc3_; } public function addUser(param1:String, param2:String, param3:int, param4:int, param5:Boolean) : void { var _loc6_:Object = {}; var _loc7_:Long = new Long(0,param3); _loc6_.id = _loc7_; _loc6_.idb = param2; _loc6_.uid = param1; _loc6_.gu = param3; _loc6_.rank = param4; _loc6_.online = param5; _loc6_.isNew = false; _loc6_.availableInvite = false; _loc6_.isBattle = false; _loc6_.availableBattle = false; _loc6_.snUid = param1; _loc6_.isSNFriend = false; _loc6_.isReferral = false; super.addItem(_loc6_); this._store[_loc7_] = _loc6_; this.refresh(); } public function removeUser(param1:Long) : void { if(!(param1 in this._store)) { return; } var _loc2_:int = this.getItemIndexByProperty(ID,param1); if(_loc2_ >= 0) { super.removeItemAt(_loc2_); } delete this._store[param1]; } override public function removeAll() : void { this._store = new Dictionary(); super.removeAll(); } public function refresh() : void { this.filter(); this.reSort(); } override public function sortOn(param1:Object, param2:Object = null) : * { this._sortFields = param1; this._sortFieldsProperties = param2; super.sortOn(this._sortFields,this._sortFieldsProperties); } public function reSort() : void { super.sortOn(this._sortFields,this._sortFieldsProperties); } public function setFilter(param1:String, param2:String) : void { if(param2 == "" && this._filterString != "") { this.resetFilter(); return; } this._filterPropertyName = param1; this._filterString = param2; this._filterPattern = prepareSearchPattern(this._filterString); this.filter(); } public function filter() : void { var _loc1_:Object = null; if(this._filterString != "") { super.removeAll(); for each(_loc1_ in this._store) { if(this.isFilteredItem(_loc1_)) { super.addItem(_loc1_); } } } this.reSort(); } public function resetFilter(param1:Boolean = true) : void { var _loc2_:Object = null; this._filterString = ""; if(!param1) { return; } super.removeAll(); for each(_loc2_ in this._store) { super.addItem(_loc2_); } this.reSort(); } private function isFilteredItem(param1:Object) : Boolean { return param1.hasOwnProperty(this._filterPropertyName) && param1[this._filterPropertyName].search(this._filterPattern) != -1; } public function setPropertiesById(param1:Long, param2:String, param3:Object) : int { var _loc4_:Object = null; var _loc5_:int = this.getItemIndexByProperty(ID,param1); if(_loc5_ != -1) { _loc4_ = super.getItemAt(_loc5_); _loc4_[param2] = param3; super.replaceItemAt(_loc4_,_loc5_); super.invalidateItemAt(_loc5_); } if(param1 in this._store) { this._store[param1][param2] = param3; } return _loc5_; } public function getItemIndexByProperty(param1:String, param2:*, param3:Boolean = false) : int { var _loc4_:Object = null; var _loc5_:* = undefined; var _loc6_:int = this.length; var _loc7_:int = 0; while(_loc7_ < _loc6_) { _loc4_ = super.getItemAt(_loc7_); if(_loc4_ && _loc4_.hasOwnProperty(param1) && _loc4_[param1] == param2) { return _loc7_; } _loc7_++; } if(param3) { for(_loc5_ in this._store) { _loc4_ = this._store[_loc5_]; if(_loc4_.hasOwnProperty(param1) && _loc4_[param1] == param2) { return _loc7_; } } } return -1; } } }
package _codec.projects.tanks.client.battlefield.models.user.device { 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.user.device.TankDeviceCC; public class VectorCodecTankDeviceCCLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecTankDeviceCCLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(TankDeviceCC,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.<TankDeviceCC> = new Vector.<TankDeviceCC>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = TankDeviceCC(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:TankDeviceCC = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<TankDeviceCC> = Vector.<TankDeviceCC>(param2); var local5:int = int(local3.length); LengthCodecHelper.encodeLength(param1,local5); var local6:int = 0; while(local6 < local5) { this.elementCodec.encode(param1,local3[local6]); local6++; } } } }
package alternativa.tanks.models.weapon.angles.verticals.autoaiming { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class VerticalAutoAimingAdapt implements VerticalAutoAiming { private var object:IGameObject; private var impl:VerticalAutoAiming; public function VerticalAutoAimingAdapt(param1:IGameObject, param2:VerticalAutoAiming) { super(); this.object = param1; this.impl = param2; } public function getElevationAngleUp() : Number { var result:Number = NaN; try { Model.object = this.object; result = Number(this.impl.getElevationAngleUp()); } finally { Model.popObject(); } return result; } public function getNumRaysUp() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getNumRaysUp()); } finally { Model.popObject(); } return result; } public function getElevationAngleDown() : Number { var result:Number = NaN; try { Model.object = this.object; result = Number(this.impl.getElevationAngleDown()); } finally { Model.popObject(); } return result; } public function getNumRaysDown() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getNumRaysDown()); } finally { Model.popObject(); } return result; } public function getMaxAngle() : Number { var result:Number = NaN; try { Model.object = this.object; result = Number(this.impl.getMaxAngle()); } finally { Model.popObject(); } return result; } } }
package projects.tanks.client.battlefield.models.ultimate.effects.hunter { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class TankStunModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:TankStunModelServer; private var client:ITankStunModelBase = ITankStunModelBase(this); private var modelId:Long = Long.getLong(1689684337,1941542906); private var _calmId:Long = Long.getLong(2139145234,802852526); private var _calm_stunDurationMsCodec:ICodec; private var _stunId:Long = Long.getLong(2139145234,803347721); public function TankStunModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new TankStunModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(TankStunCC,false))); this._calm_stunDurationMsCodec = this._protocol.getCodec(new TypeCodecInfo(int,false)); } protected function getInitParam() : TankStunCC { return TankStunCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._calmId: this.client.calm(int(this._calm_stunDurationMsCodec.decode(param2))); break; case this._stunId: this.client.stun(); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.gui.frames { public class YellowFrame extends FrameBase { public function YellowFrame(param1:int, param2:int) { super(param1,param2,new YellowFrameSkin()); } } }
package alternativa.tanks.model.shop.items.crystallitem { import mx.core.BitmapAsset; [ExcludeClass] public class CrystalPackageItemIcons_crystalsPackage3Class extends BitmapAsset { public function CrystalPackageItemIcons_crystalsPackage3Class() { super(); } } }
package alternativa.tanks.models.weapon.railgun { import alternativa.math.Vector3; import alternativa.physics.Body; import alternativa.physics.collision.types.RayHit; import alternativa.tanks.models.weapons.targeting.TargetingResult; public class RailgunShotResult { public var staticHitPoint:Vector3 = new Vector3(); public var staticHitNormal:Vector3 = new Vector3(); public var hasStaticHit:Boolean; public var targets:Vector.<Body> = new Vector.<Body>(); public var hitPoints:Vector.<Vector3> = new Vector.<Vector3>(); public var shotDirection:Vector3 = new Vector3(); public function RailgunShotResult() { super(); } public function setFromTargetingResult(param1:TargetingResult) : void { var local2:RayHit = null; var local3:RayHit = null; if(this.hasStaticHit = param1.hasStaticHit()) { local3 = param1.getStaticHit(); this.staticHitPoint.copy(local3.position); this.staticHitNormal.copy(local3.normal); } this.shotDirection.copy(param1.getDirection()); this.targets.length = 0; this.hitPoints.length = 0; for each(local2 in param1.getHits()) { this.targets.push(local2.shape.body); this.hitPoints.push(local2.position); } } public function copyDirectionShotResult(param1:DirectionShotResult) : void { var local2:int = int(param1.targets.length); var local3:int = 0; while(local3 < local2) { this.targets[local3] = param1.targets[local3]; this.hitPoints[local3] = param1.hitPoints[local3]; local3++; } this.targets.length = local2; this.hitPoints.length = local2; this.hasStaticHit = param1.hasStaticHit; if(this.hasStaticHit) { this.staticHitPoint.copy(param1.staticHitPoint); this.staticHitNormal.copy(param1.staticHitNormal); } } public function setStaticHitPoint(param1:Vector3, param2:Vector3) : void { this.hasStaticHit = true; this.staticHitPoint.copy(param1); this.staticHitNormal.copy(param2); } public function getStaticHitPoint() : Vector3 { return this.hasStaticHit ? this.staticHitPoint : null; } } }
package projects.tanks.clients.fp10.models.tanksbattleselectmodelflash { import alternativa.osgi.OSGi; import alternativa.osgi.bundle.IBundleActivator; import alternativa.osgi.service.display.IDisplay; import alternativa.osgi.service.locale.ILocaleService; import alternativa.osgi.service.logging.LogService; import alternativa.tanks.controllers.battlecreate.CreateBattleFormController; import alternativa.tanks.controllers.battleinfo.AbstractBattleInfoController; import alternativa.tanks.controllers.battleinfo.BattleInfoTeamController; import alternativa.tanks.controllers.battlelist.BattleListController; import alternativa.tanks.controllers.battlelist.BattleListItemParams; import alternativa.tanks.controllers.mathmacking.MatchmakingFormController; import alternativa.tanks.loader.ILoaderWindowService; import alternativa.tanks.loader.IModalLoaderService; import alternativa.tanks.model.battle.BattleEntrance; import alternativa.tanks.model.battle.BattleEntranceAdapt; import alternativa.tanks.model.battle.BattleEntranceEvents; import alternativa.tanks.model.battle.BattleEntranceModel; import alternativa.tanks.model.battleselect.BattleSelectModel; import alternativa.tanks.model.battleselect.create.BattleCreateModel; import alternativa.tanks.model.buyproabonement.BuyProAbonementModel; import alternativa.tanks.model.info.BattleInfoModel; import alternativa.tanks.model.info.BattleInfoParams; import alternativa.tanks.model.info.BattleInfoParamsAdapt; import alternativa.tanks.model.info.BattleInfoParamsEvents; import alternativa.tanks.model.info.BattleParamsUtils; import alternativa.tanks.model.info.IBattleInfo; import alternativa.tanks.model.info.IBattleInfoAdapt; import alternativa.tanks.model.info.IBattleInfoEvents; import alternativa.tanks.model.info.ShowInfo; import alternativa.tanks.model.info.ShowInfoAdapt; import alternativa.tanks.model.info.ShowInfoEvents; import alternativa.tanks.model.info.dm.BattleDmInfoModel; import alternativa.tanks.model.info.param.BattleParamInfoModel; import alternativa.tanks.model.info.param.BattleParams; import alternativa.tanks.model.info.param.BattleParamsAdapt; import alternativa.tanks.model.info.param.BattleParamsEvents; import alternativa.tanks.model.info.team.BattleTeamInfo; import alternativa.tanks.model.info.team.BattleTeamInfoAdapt; import alternativa.tanks.model.info.team.BattleTeamInfoEvents; import alternativa.tanks.model.info.team.BattleTeamInfoModel; import alternativa.tanks.model.item.BattleFriendsListener; import alternativa.tanks.model.item.BattleFriendsListenerAdapt; import alternativa.tanks.model.item.BattleFriendsListenerEvents; import alternativa.tanks.model.item.dm.IBattleDMItem; import alternativa.tanks.model.item.dm.IBattleDMItemAdapt; import alternativa.tanks.model.item.dm.IBattleDMItemEvents; import alternativa.tanks.model.map.mapinfo.IMapInfo; import alternativa.tanks.model.map.mapinfo.IMapInfoAdapt; import alternativa.tanks.model.map.mapinfo.IMapInfoEvents; import alternativa.tanks.model.map.mapinfo.MapInfoModel; import alternativa.tanks.model.matchmaking.MatchmakingQueue; import alternativa.tanks.model.matchmaking.MatchmakingQueueAdapt; import alternativa.tanks.model.matchmaking.MatchmakingQueueEvents; import alternativa.tanks.model.matchmaking.MatchmakingQueueModel; import alternativa.tanks.model.matchmaking.group.MatchmakingGroupNotifyModel; import alternativa.tanks.model.matchmaking.grouplifecycle.MatchmakingGroupLifecycleModel; import alternativa.tanks.model.matchmaking.invitewindow.GroupInviteWindowModel; import alternativa.tanks.model.matchmaking.invitewindow.InviteWindowService; import alternativa.tanks.model.matchmaking.notify.MatchmakingGroupInviteModel; import alternativa.tanks.model.matchmaking.notify.MatchmakingNotifyModel; import alternativa.tanks.model.matchmaking.notify.MatchmakingTimeoutNotification; import alternativa.tanks.model.matchmaking.spectator.MatchmakingSpectatorEntranceModel; import alternativa.tanks.model.matchmaking.view.MatchmakingLayoutModel; import alternativa.tanks.service.achievement.IAchievementService; import alternativa.tanks.service.battle.BattleFriendNotifier; import alternativa.tanks.service.battle.BattleUserInfoService; import alternativa.tanks.service.battle.IBattleUserInfoService; import alternativa.tanks.service.battlecreate.IBattleCreateFormService; import alternativa.tanks.service.battleinfo.BattleInfoFormService; import alternativa.tanks.service.battleinfo.IBattleInfoFormService; import alternativa.tanks.service.battlelist.BattleListFormService; import alternativa.tanks.service.battlelist.IBattleListFormService; import alternativa.tanks.service.matchmaking.MatchmakingFormService; import alternativa.tanks.service.matchmaking.MatchmakingFormServiceImpl; import alternativa.tanks.service.matchmaking.MatchmakingGroupFormService; import alternativa.tanks.service.matchmaking.MatchmakingGroupInviteService; import alternativa.tanks.service.money.IMoneyService; import alternativa.tanks.service.panel.IPanelView; import alternativa.tanks.service.socialnetwork.vk.SNFriendsService; import alternativa.tanks.tracker.ITrackerService; import alternativa.tanks.view.battlecreate.ChooseTypeBattleView; import alternativa.tanks.view.battlecreate.CreateBattleFormLabels; import alternativa.tanks.view.battlecreate.CreateBattleFormView; import alternativa.tanks.view.battleinfo.AbstractBattleInfoView; import alternativa.tanks.view.battleinfo.BattleInfoParamsView; import alternativa.tanks.view.battleinfo.LocaleBattleInfo; import alternativa.tanks.view.battlelist.BattleListView; import alternativa.tanks.view.battlelist.LocaleBattleList; import alternativa.tanks.view.battlelist.forms.BattleBigButton; import alternativa.tanks.view.mainview.BattleTypesPanel; import alternativa.tanks.view.mainview.MatchmakingLayout; import alternativa.tanks.view.mainview.button.LockedByRankButton; import alternativa.tanks.view.mainview.button.MainViewStarsEventButton; import alternativa.tanks.view.mainview.button.MatchmakingButton; import alternativa.tanks.view.mainview.groupinvite.GroupInviteWindow; import alternativa.tanks.view.mainview.groupinvite.InviteClanMembersList; import alternativa.tanks.view.mainview.groupinvite.InviteHeader; import alternativa.tanks.view.mainview.groupinvite.InviteToGroupList; import alternativa.tanks.view.mainview.grouplist.GroupList; import alternativa.tanks.view.mainview.grouplist.header.GroupHeader; import alternativa.tanks.view.mainview.grouplist.item.GroupUserItem; import alternativa.tanks.view.mainview.grouplist.item.GroupUsersDataProvider; import alternativa.tanks.view.mainview.grouplist.item.GroupUsersListRenderer; import alternativa.tanks.view.matchmaking.MatchmakingRegistrationDialog; import alternativa.tanks.view.matchmaking.group.invite.GroupInviteNotification; import alternativa.tanks.view.matchmaking.group.invite.ResponseGroupInviteNotification; import alternativa.tanks.view.matchmaking.quest.QuestButton; import platform.client.fp10.core.registry.ModelRegistry; import platform.clients.fp10.libraries.alternativapartners.service.IPartnerService; import projects.tanks.clients.flash.commons.models.challenge.ChallengeInfoService; import projects.tanks.clients.flash.commons.services.notification.INotificationService; import projects.tanks.clients.flash.commons.services.timeunit.ITimeUnitService; import projects.tanks.clients.fp10.libraries.tanksservices.service.address.TanksAddressService; import projects.tanks.clients.fp10.libraries.tanksservices.service.alertservices.IAlertService; import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.clan.ClanUserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.IDialogsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher.IDialogWindowsDispatcherService; import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.IFriendInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.groupinvite.GroupInviteService; import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.IHelpService; import projects.tanks.clients.fp10.libraries.tanksservices.service.layout.ILobbyLayoutService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.battlelist.UserBattleSelectActionsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.gamescreen.UserChangeGameScreenService; import projects.tanks.clients.fp10.libraries.tanksservices.service.matchmakinggroup.MatchmakingGroupService; import projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.battle.IBattleNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.notifier.online.IOnlineNotifierService; import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.PremiumService; import projects.tanks.clients.fp10.libraries.tanksservices.service.probattle.IUserProBattleService; import projects.tanks.clients.fp10.libraries.tanksservices.service.reconnect.ReconnectService; import projects.tanks.clients.fp10.libraries.tanksservices.service.servername.ServerNumberToLocaleServerService; import projects.tanks.clients.fp10.libraries.tanksservices.service.storage.IStorageService; import projects.tanks.clients.fp10.libraries.tanksservices.service.user.IUserInfoService; import projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties.IUserPropertiesService; import projects.tanks.clients.fp10.libraries.tanksservices.utils.BattleFormatUtil; import services.buttonbar.IButtonBarService; public class Activator implements IBundleActivator { public static var osgi:OSGi; public function Activator() { super(); } public function start(param1:OSGi) : void { var modelRegisterAdapt:ModelRegistry; var modelRegister:ModelRegistry; var _osgi:OSGi = param1; osgi = _osgi; osgi.injectService(IAchievementService,function(param1:Object):void { CreateBattleFormController.achievementService = IAchievementService(param1); },function():IAchievementService { return CreateBattleFormController.achievementService; }); osgi.injectService(BattleFormatUtil,function(param1:Object):void { CreateBattleFormController.battleFormatUtil = BattleFormatUtil(param1); },function():BattleFormatUtil { return CreateBattleFormController.battleFormatUtil; }); osgi.injectService(ILocaleService,function(param1:Object):void { CreateBattleFormController.localeService = ILocaleService(param1); },function():ILocaleService { return CreateBattleFormController.localeService; }); osgi.injectService(IStorageService,function(param1:Object):void { CreateBattleFormController.storageService = IStorageService(param1); },function():IStorageService { return CreateBattleFormController.storageService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { CreateBattleFormController.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return CreateBattleFormController.userPropertiesService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { AbstractBattleInfoController.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return AbstractBattleInfoController.clanUserInfoService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { AbstractBattleInfoController.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return AbstractBattleInfoController.lobbyLayoutService; }); osgi.injectService(UserChangeGameScreenService,function(param1:Object):void { AbstractBattleInfoController.userChangeGameScreenService = UserChangeGameScreenService(param1); },function():UserChangeGameScreenService { return AbstractBattleInfoController.userChangeGameScreenService; }); osgi.injectService(IUserProBattleService,function(param1:Object):void { AbstractBattleInfoController.userProBattleService = IUserProBattleService(param1); },function():IUserProBattleService { return AbstractBattleInfoController.userProBattleService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { AbstractBattleInfoController.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return AbstractBattleInfoController.userPropertiesService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { BattleInfoTeamController.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return BattleInfoTeamController.userInfoService; }); osgi.injectService(TanksAddressService,function(param1:Object):void { BattleListController.addressService = TanksAddressService(param1); },function():TanksAddressService { return BattleListController.addressService; }); osgi.injectService(IBattleCreateFormService,function(param1:Object):void { BattleListController.battleCreateFormService = IBattleCreateFormService(param1); },function():IBattleCreateFormService { return BattleListController.battleCreateFormService; }); osgi.injectService(IBattleInfoFormService,function(param1:Object):void { BattleListController.battleInfoFormService = IBattleInfoFormService(param1); },function():IBattleInfoFormService { return BattleListController.battleInfoFormService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { BattleListController.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return BattleListController.battleInfoService; }); osgi.injectService(UserBattleSelectActionsService,function(param1:Object):void { BattleListController.battleSelectActionsService = UserBattleSelectActionsService(param1); },function():UserBattleSelectActionsService { return BattleListController.battleSelectActionsService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { BattleListController.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return BattleListController.lobbyLayoutService; }); osgi.injectService(PremiumService,function(param1:Object):void { BattleListController.premiumService = PremiumService(param1); },function():PremiumService { return BattleListController.premiumService; }); osgi.injectService(ServerNumberToLocaleServerService,function(param1:Object):void { BattleListController.serverNameService = ServerNumberToLocaleServerService(param1); },function():ServerNumberToLocaleServerService { return BattleListController.serverNameService; }); osgi.injectService(IStorageService,function(param1:Object):void { BattleListController.storageService = IStorageService(param1); },function():IStorageService { return BattleListController.storageService; }); osgi.injectService(IUserProBattleService,function(param1:Object):void { BattleListController.userProBattleService = IUserProBattleService(param1); },function():IUserProBattleService { return BattleListController.userProBattleService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { BattleListController.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return BattleListController.userPropertiesService; }); osgi.injectService(BattleFormatUtil,function(param1:Object):void { BattleListItemParams.battleFormatUtil = BattleFormatUtil(param1); },function():BattleFormatUtil { return BattleListItemParams.battleFormatUtil; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { BattleListItemParams.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return BattleListItemParams.battleInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { BattleListItemParams.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return BattleListItemParams.userPropertiesService; }); osgi.injectService(IDialogsService,function(param1:Object):void { MatchmakingFormController.dialogService = IDialogsService(param1); },function():IDialogsService { return MatchmakingFormController.dialogService; }); osgi.injectService(IAlertService,function(param1:Object):void { BattleEntranceModel.alertService = IAlertService(param1); },function():IAlertService { return BattleEntranceModel.alertService; }); osgi.injectService(IAlertService,function(param1:Object):void { BattleEntranceModel.battleAlertService = IAlertService(param1); },function():IAlertService { return BattleEntranceModel.battleAlertService; }); osgi.injectService(IBattleInfoFormService,function(param1:Object):void { BattleEntranceModel.battleInfoFormService = IBattleInfoFormService(param1); },function():IBattleInfoFormService { return BattleEntranceModel.battleInfoFormService; }); osgi.injectService(ILoaderWindowService,function(param1:Object):void { BattleEntranceModel.loaderWindowService = ILoaderWindowService(param1); },function():ILoaderWindowService { return BattleEntranceModel.loaderWindowService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleEntranceModel.localeService = ILocaleService(param1); },function():ILocaleService { return BattleEntranceModel.localeService; }); osgi.injectService(IModalLoaderService,function(param1:Object):void { BattleEntranceModel.modalLoaderService = IModalLoaderService(param1); },function():IModalLoaderService { return BattleEntranceModel.modalLoaderService; }); osgi.injectService(ITrackerService,function(param1:Object):void { BattleEntranceModel.trackerService = ITrackerService(param1); },function():ITrackerService { return BattleEntranceModel.trackerService; }); osgi.injectService(UserBattleSelectActionsService,function(param1:Object):void { BattleEntranceModel.userBattleSelectActionsService = UserBattleSelectActionsService(param1); },function():UserBattleSelectActionsService { return BattleEntranceModel.userBattleSelectActionsService; }); osgi.injectService(IBattleInfoFormService,function(param1:Object):void { BattleSelectModel.battleInfoFormService = IBattleInfoFormService(param1); },function():IBattleInfoFormService { return BattleSelectModel.battleInfoFormService; }); osgi.injectService(IBattleListFormService,function(param1:Object):void { BattleSelectModel.battleListFormService = IBattleListFormService(param1); },function():IBattleListFormService { return BattleSelectModel.battleListFormService; }); osgi.injectService(ITrackerService,function(param1:Object):void { BattleSelectModel.trackerService = ITrackerService(param1); },function():ITrackerService { return BattleSelectModel.trackerService; }); osgi.injectService(IAlertService,function(param1:Object):void { BattleCreateModel.battleAlertService = IAlertService(param1); },function():IAlertService { return BattleCreateModel.battleAlertService; }); osgi.injectService(IBattleCreateFormService,function(param1:Object):void { BattleCreateModel.battleCreateFormService = IBattleCreateFormService(param1); },function():IBattleCreateFormService { return BattleCreateModel.battleCreateFormService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleCreateModel.localeService = ILocaleService(param1); },function():ILocaleService { return BattleCreateModel.localeService; }); osgi.injectService(ModelRegistry,function(param1:Object):void { BattleCreateModel.modelRegistry = ModelRegistry(param1); },function():ModelRegistry { return BattleCreateModel.modelRegistry; }); osgi.injectService(ITrackerService,function(param1:Object):void { BattleCreateModel.trackerService = ITrackerService(param1); },function():ITrackerService { return BattleCreateModel.trackerService; }); osgi.injectService(UserBattleSelectActionsService,function(param1:Object):void { BattleCreateModel.userBattleSelectActionsService = UserBattleSelectActionsService(param1); },function():UserBattleSelectActionsService { return BattleCreateModel.userBattleSelectActionsService; }); osgi.injectService(IBattleInfoFormService,function(param1:Object):void { BuyProAbonementModel.battleInfoFormService = IBattleInfoFormService(param1); },function():IBattleInfoFormService { return BuyProAbonementModel.battleInfoFormService; }); osgi.injectService(IAlertService,function(param1:Object):void { BattleInfoModel.alertService = IAlertService(param1); },function():IAlertService { return BattleInfoModel.alertService; }); osgi.injectService(IAlertService,function(param1:Object):void { BattleInfoModel.battleAlertService = IAlertService(param1); },function():IAlertService { return BattleInfoModel.battleAlertService; }); osgi.injectService(IBattleInfoFormService,function(param1:Object):void { BattleInfoModel.battleInfoFormService = IBattleInfoFormService(param1); },function():IBattleInfoFormService { return BattleInfoModel.battleInfoFormService; }); osgi.injectService(IBattleListFormService,function(param1:Object):void { BattleInfoModel.battleListFormService = IBattleListFormService(param1); },function():IBattleListFormService { return BattleInfoModel.battleListFormService; }); osgi.injectService(IBattleUserInfoService,function(param1:Object):void { BattleInfoModel.battleUserInfoService = IBattleUserInfoService(param1); },function():IBattleUserInfoService { return BattleInfoModel.battleUserInfoService; }); osgi.injectService(ILoaderWindowService,function(param1:Object):void { BattleInfoModel.loaderWindowService = ILoaderWindowService(param1); },function():ILoaderWindowService { return BattleInfoModel.loaderWindowService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleInfoModel.localeService = ILocaleService(param1); },function():ILocaleService { return BattleInfoModel.localeService; }); osgi.injectService(ITrackerService,function(param1:Object):void { BattleInfoModel.trackerService = ITrackerService(param1); },function():ITrackerService { return BattleInfoModel.trackerService; }); osgi.injectService(UserBattleSelectActionsService,function(param1:Object):void { BattleInfoModel.userBattleSelectActionsService = UserBattleSelectActionsService(param1); },function():UserBattleSelectActionsService { return BattleInfoModel.userBattleSelectActionsService; }); osgi.injectService(IBattleUserInfoService,function(param1:Object):void { BattleParamsUtils.battleUserInfoService = IBattleUserInfoService(param1); },function():IBattleUserInfoService { return BattleParamsUtils.battleUserInfoService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { BattleParamsUtils.friendsInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return BattleParamsUtils.friendsInfoService; }); osgi.injectService(ServerNumberToLocaleServerService,function(param1:Object):void { BattleParamsUtils.serverNameService = ServerNumberToLocaleServerService(param1); },function():ServerNumberToLocaleServerService { return BattleParamsUtils.serverNameService; }); osgi.injectService(IBattleInfoFormService,function(param1:Object):void { BattleDmInfoModel.battleInfoFormService = IBattleInfoFormService(param1); },function():IBattleInfoFormService { return BattleDmInfoModel.battleInfoFormService; }); osgi.injectService(IBattleListFormService,function(param1:Object):void { BattleDmInfoModel.battleListFormService = IBattleListFormService(param1); },function():IBattleListFormService { return BattleDmInfoModel.battleListFormService; }); osgi.injectService(IBattleUserInfoService,function(param1:Object):void { BattleDmInfoModel.battleUserInfoService = IBattleUserInfoService(param1); },function():IBattleUserInfoService { return BattleDmInfoModel.battleUserInfoService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { BattleDmInfoModel.friendsInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return BattleDmInfoModel.friendsInfoService; }); osgi.injectService(IBattleInfoFormService,function(param1:Object):void { BattleTeamInfoModel.battleInfoFormService = IBattleInfoFormService(param1); },function():IBattleInfoFormService { return BattleTeamInfoModel.battleInfoFormService; }); osgi.injectService(IBattleListFormService,function(param1:Object):void { BattleTeamInfoModel.battleListFormService = IBattleListFormService(param1); },function():IBattleListFormService { return BattleTeamInfoModel.battleListFormService; }); osgi.injectService(IBattleUserInfoService,function(param1:Object):void { BattleTeamInfoModel.battleUserInfoService = IBattleUserInfoService(param1); },function():IBattleUserInfoService { return BattleTeamInfoModel.battleUserInfoService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { BattleTeamInfoModel.friendsInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return BattleTeamInfoModel.friendsInfoService; }); osgi.injectService(MatchmakingFormService,function(param1:Object):void { MatchmakingQueueModel.matchmakingFormService = MatchmakingFormService(param1); },function():MatchmakingFormService { return MatchmakingQueueModel.matchmakingFormService; }); osgi.injectService(MatchmakingGroupFormService,function(param1:Object):void { MatchmakingGroupNotifyModel.matchmakingFormService = MatchmakingGroupFormService(param1); },function():MatchmakingGroupFormService { return MatchmakingGroupNotifyModel.matchmakingFormService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { MatchmakingGroupNotifyModel.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return MatchmakingGroupNotifyModel.matchmakingGroupService; }); osgi.injectService(MatchmakingFormService,function(param1:Object):void { MatchmakingGroupLifecycleModel.matchmakingFormService = MatchmakingFormService(param1); },function():MatchmakingFormService { return MatchmakingGroupLifecycleModel.matchmakingFormService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { MatchmakingGroupLifecycleModel.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return MatchmakingGroupLifecycleModel.matchmakingGroupService; }); osgi.injectService(MatchmakingGroupInviteService,function(param1:Object):void { GroupInviteWindowModel.inviteService = MatchmakingGroupInviteService(param1); },function():MatchmakingGroupInviteService { return GroupInviteWindowModel.inviteService; }); osgi.injectService(InviteWindowService,function(param1:Object):void { GroupInviteWindowModel.inviteWindowService = InviteWindowService(param1); },function():InviteWindowService { return GroupInviteWindowModel.inviteWindowService; }); osgi.injectService(InviteWindowService,function(param1:Object):void { MatchmakingGroupInviteModel.groupInviteWindowService = InviteWindowService(param1); },function():InviteWindowService { return MatchmakingGroupInviteModel.groupInviteWindowService; }); osgi.injectService(GroupInviteService,function(param1:Object):void { MatchmakingGroupInviteModel.inviteService = GroupInviteService(param1); },function():GroupInviteService { return MatchmakingGroupInviteModel.inviteService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { MatchmakingGroupInviteModel.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return MatchmakingGroupInviteModel.matchmakingGroupService; }); osgi.injectService(INotificationService,function(param1:Object):void { MatchmakingGroupInviteModel.notificationService = INotificationService(param1); },function():INotificationService { return MatchmakingGroupInviteModel.notificationService; }); osgi.injectService(ILoaderWindowService,function(param1:Object):void { MatchmakingNotifyModel.loaderService = ILoaderWindowService(param1); },function():ILoaderWindowService { return MatchmakingNotifyModel.loaderService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { MatchmakingNotifyModel.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return MatchmakingNotifyModel.lobbyLayoutService; }); osgi.injectService(MatchmakingFormService,function(param1:Object):void { MatchmakingNotifyModel.matchmakingFormService = MatchmakingFormService(param1); },function():MatchmakingFormService { return MatchmakingNotifyModel.matchmakingFormService; }); osgi.injectService(INotificationService,function(param1:Object):void { MatchmakingNotifyModel.notificationService = INotificationService(param1); },function():INotificationService { return MatchmakingNotifyModel.notificationService; }); osgi.injectService(ILocaleService,function(param1:Object):void { MatchmakingTimeoutNotification.localeService = ILocaleService(param1); },function():ILocaleService { return MatchmakingTimeoutNotification.localeService; }); osgi.injectService(IAlertService,function(param1:Object):void { MatchmakingSpectatorEntranceModel.alertService = IAlertService(param1); },function():IAlertService { return MatchmakingSpectatorEntranceModel.alertService; }); osgi.injectService(MatchmakingFormService,function(param1:Object):void { MatchmakingSpectatorEntranceModel.matchmakingFormService = MatchmakingFormService(param1); },function():MatchmakingFormService { return MatchmakingSpectatorEntranceModel.matchmakingFormService; }); osgi.injectService(MatchmakingFormService,function(param1:Object):void { MatchmakingLayoutModel.matchmakingFormService = MatchmakingFormService(param1); },function():MatchmakingFormService { return MatchmakingLayoutModel.matchmakingFormService; }); osgi.injectService(IBattleUserInfoService,function(param1:Object):void { BattleFriendNotifier.battleUserInfoService = IBattleUserInfoService(param1); },function():IBattleUserInfoService { return BattleFriendNotifier.battleUserInfoService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { BattleFriendNotifier.friendsInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return BattleFriendNotifier.friendsInfoService; }); osgi.injectService(LogService,function(param1:Object):void { BattleUserInfoService.logService = LogService(param1); },function():LogService { return BattleUserInfoService.logService; }); osgi.injectService(ITrackerService,function(param1:Object):void { BattleInfoFormService.trackerService = ITrackerService(param1); },function():ITrackerService { return BattleInfoFormService.trackerService; }); osgi.injectService(IBattleCreateFormService,function(param1:Object):void { BattleListFormService.battleCreateFormService = IBattleCreateFormService(param1); },function():IBattleCreateFormService { return BattleListFormService.battleCreateFormService; }); osgi.injectService(IBattleInfoFormService,function(param1:Object):void { BattleListFormService.battleInfoFormService = IBattleInfoFormService(param1); },function():IBattleInfoFormService { return BattleListFormService.battleInfoFormService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { MatchmakingFormServiceImpl.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return MatchmakingFormServiceImpl.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { MatchmakingFormServiceImpl.localeService = ILocaleService(param1); },function():ILocaleService { return MatchmakingFormServiceImpl.localeService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { MatchmakingFormServiceImpl.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return MatchmakingFormServiceImpl.matchmakingGroupService; }); osgi.injectService(IStorageService,function(param1:Object):void { MatchmakingFormServiceImpl.storageService = IStorageService(param1); },function():IStorageService { return MatchmakingFormServiceImpl.storageService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ChooseTypeBattleView.localeService = ILocaleService(param1); },function():ILocaleService { return ChooseTypeBattleView.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { CreateBattleFormLabels.localeService = ILocaleService(param1); },function():ILocaleService { return CreateBattleFormLabels.localeService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { CreateBattleFormView.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return CreateBattleFormView.clanUserInfoService; }); osgi.injectService(IDisplay,function(param1:Object):void { CreateBattleFormView.display = IDisplay(param1); },function():IDisplay { return CreateBattleFormView.display; }); osgi.injectService(ITimeUnitService,function(param1:Object):void { CreateBattleFormView.timeUnitService = ITimeUnitService(param1); },function():ITimeUnitService { return CreateBattleFormView.timeUnitService; }); osgi.injectService(ITrackerService,function(param1:Object):void { CreateBattleFormView.trackerService = ITrackerService(param1); },function():ITrackerService { return CreateBattleFormView.trackerService; }); osgi.injectService(IAchievementService,function(param1:Object):void { AbstractBattleInfoView.achievementService = IAchievementService(param1); },function():IAchievementService { return AbstractBattleInfoView.achievementService; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { AbstractBattleInfoView.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return AbstractBattleInfoView.battleInfoService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { AbstractBattleInfoView.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return AbstractBattleInfoView.clanUserInfoService; }); osgi.injectService(IDisplay,function(param1:Object):void { AbstractBattleInfoView.display = IDisplay(param1); },function():IDisplay { return AbstractBattleInfoView.display; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { AbstractBattleInfoView.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return AbstractBattleInfoView.lobbyLayoutService; }); osgi.injectService(IModalLoaderService,function(param1:Object):void { AbstractBattleInfoView.modalLoaderService = IModalLoaderService(param1); },function():IModalLoaderService { return AbstractBattleInfoView.modalLoaderService; }); osgi.injectService(IUserProBattleService,function(param1:Object):void { AbstractBattleInfoView.userProBattleService = IUserProBattleService(param1); },function():IUserProBattleService { return AbstractBattleInfoView.userProBattleService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { AbstractBattleInfoView.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return AbstractBattleInfoView.userPropertiesService; }); osgi.injectService(BattleFormatUtil,function(param1:Object):void { BattleInfoParamsView.battleFormatUtil = BattleFormatUtil(param1); },function():BattleFormatUtil { return BattleInfoParamsView.battleFormatUtil; }); osgi.injectService(IBattleInfoService,function(param1:Object):void { BattleInfoParamsView.battleInfoService = IBattleInfoService(param1); },function():IBattleInfoService { return BattleInfoParamsView.battleInfoService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleInfoParamsView.localeService = ILocaleService(param1); },function():ILocaleService { return BattleInfoParamsView.localeService; }); osgi.injectService(UserBattleSelectActionsService,function(param1:Object):void { BattleInfoParamsView.userBattleSelectActionsService = UserBattleSelectActionsService(param1); },function():UserBattleSelectActionsService { return BattleInfoParamsView.userBattleSelectActionsService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { BattleInfoParamsView.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return BattleInfoParamsView.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { LocaleBattleInfo.localeService = ILocaleService(param1); },function():ILocaleService { return LocaleBattleInfo.localeService; }); osgi.injectService(IBattleCreateFormService,function(param1:Object):void { BattleListView.battleCreateFormService = IBattleCreateFormService(param1); },function():IBattleCreateFormService { return BattleListView.battleCreateFormService; }); osgi.injectService(UserBattleSelectActionsService,function(param1:Object):void { BattleListView.battleSelectActionsService = UserBattleSelectActionsService(param1); },function():UserBattleSelectActionsService { return BattleListView.battleSelectActionsService; }); osgi.injectService(IDisplay,function(param1:Object):void { BattleListView.display = IDisplay(param1); },function():IDisplay { return BattleListView.display; }); osgi.injectService(IHelpService,function(param1:Object):void { BattleListView.helpService = IHelpService(param1); },function():IHelpService { return BattleListView.helpService; }); osgi.injectService(ILobbyLayoutService,function(param1:Object):void { BattleListView.lobbyLayoutService = ILobbyLayoutService(param1); },function():ILobbyLayoutService { return BattleListView.lobbyLayoutService; }); osgi.injectService(ILocaleService,function(param1:Object):void { BattleListView.localeService = ILocaleService(param1); },function():ILocaleService { return BattleListView.localeService; }); osgi.injectService(IPanelView,function(param1:Object):void { BattleListView.panelView = IPanelView(param1); },function():IPanelView { return BattleListView.panelView; }); osgi.injectService(ReconnectService,function(param1:Object):void { BattleListView.reconnectService = ReconnectService(param1); },function():ReconnectService { return BattleListView.reconnectService; }); osgi.injectService(IUserProBattleService,function(param1:Object):void { BattleListView.userProBattleService = IUserProBattleService(param1); },function():IUserProBattleService { return BattleListView.userProBattleService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { BattleListView.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return BattleListView.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { LocaleBattleList.localeService = ILocaleService(param1); },function():ILocaleService { return LocaleBattleList.localeService; }); osgi.injectService(IMoneyService,function(param1:Object):void { BattleBigButton.moneyService = IMoneyService(param1); },function():IMoneyService { return BattleBigButton.moneyService; }); osgi.injectService(IAchievementService,function(param1:Object):void { BattleTypesPanel.achievementService = IAchievementService(param1); },function():IAchievementService { return BattleTypesPanel.achievementService; }); osgi.injectService(ChallengeInfoService,function(param1:Object):void { BattleTypesPanel.challengeInfoService = ChallengeInfoService(param1); },function():ChallengeInfoService { return BattleTypesPanel.challengeInfoService; }); osgi.injectService(IAchievementService,function(param1:Object):void { MatchmakingLayout.achievementService = IAchievementService(param1); },function():IAchievementService { return MatchmakingLayout.achievementService; }); osgi.injectService(IButtonBarService,function(param1:Object):void { MatchmakingLayout.buttonBarService = IButtonBarService(param1); },function():IButtonBarService { return MatchmakingLayout.buttonBarService; }); osgi.injectService(IDisplay,function(param1:Object):void { MatchmakingLayout.display = IDisplay(param1); },function():IDisplay { return MatchmakingLayout.display; }); osgi.injectService(MatchmakingGroupInviteService,function(param1:Object):void { MatchmakingLayout.groupInviteService = MatchmakingGroupInviteService(param1); },function():MatchmakingGroupInviteService { return MatchmakingLayout.groupInviteService; }); osgi.injectService(ILocaleService,function(param1:Object):void { MatchmakingLayout.localeService = ILocaleService(param1); },function():ILocaleService { return MatchmakingLayout.localeService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { MatchmakingLayout.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return MatchmakingLayout.matchmakingGroupService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { MatchmakingLayout.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return MatchmakingLayout.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { LockedByRankButton.localeService = ILocaleService(param1); },function():ILocaleService { return LockedByRankButton.localeService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { LockedByRankButton.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return LockedByRankButton.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { MainViewStarsEventButton.localeService = ILocaleService(param1); },function():ILocaleService { return MainViewStarsEventButton.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { MatchmakingButton.localeService = ILocaleService(param1); },function():ILocaleService { return MatchmakingButton.localeService; }); osgi.injectService(IAlertService,function(param1:Object):void { GroupInviteWindow.alertService = IAlertService(param1); },function():IAlertService { return GroupInviteWindow.alertService; }); osgi.injectService(ClanUserInfoService,function(param1:Object):void { GroupInviteWindow.clanUserInfoService = ClanUserInfoService(param1); },function():ClanUserInfoService { return GroupInviteWindow.clanUserInfoService; }); osgi.injectService(ILocaleService,function(param1:Object):void { GroupInviteWindow.localeService = ILocaleService(param1); },function():ILocaleService { return GroupInviteWindow.localeService; }); osgi.injectService(IPartnerService,function(param1:Object):void { GroupInviteWindow.partnerService = IPartnerService(param1); },function():IPartnerService { return GroupInviteWindow.partnerService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { GroupInviteWindow.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return GroupInviteWindow.userInfoService; }); osgi.injectService(IUserPropertiesService,function(param1:Object):void { InviteClanMembersList.userPropertiesService = IUserPropertiesService(param1); },function():IUserPropertiesService { return InviteClanMembersList.userPropertiesService; }); osgi.injectService(ILocaleService,function(param1:Object):void { InviteHeader.localeService = ILocaleService(param1); },function():ILocaleService { return InviteHeader.localeService; }); osgi.injectService(IBattleNotifierService,function(param1:Object):void { InviteToGroupList.battleNotifierService = IBattleNotifierService(param1); },function():IBattleNotifierService { return InviteToGroupList.battleNotifierService; }); osgi.injectService(IFriendInfoService,function(param1:Object):void { InviteToGroupList.friendInfoService = IFriendInfoService(param1); },function():IFriendInfoService { return InviteToGroupList.friendInfoService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { InviteToGroupList.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return InviteToGroupList.matchmakingGroupService; }); osgi.injectService(IOnlineNotifierService,function(param1:Object):void { InviteToGroupList.onlineNotifierService = IOnlineNotifierService(param1); },function():IOnlineNotifierService { return InviteToGroupList.onlineNotifierService; }); osgi.injectService(SNFriendsService,function(param1:Object):void { InviteToGroupList.snFriendsService = SNFriendsService(param1); },function():SNFriendsService { return InviteToGroupList.snFriendsService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { GroupList.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return GroupList.matchmakingGroupService; }); osgi.injectService(ILocaleService,function(param1:Object):void { GroupHeader.localeService = ILocaleService(param1); },function():ILocaleService { return GroupHeader.localeService; }); osgi.injectService(MatchmakingGroupInviteService,function(param1:Object):void { GroupUserItem.inviteService = MatchmakingGroupInviteService(param1); },function():MatchmakingGroupInviteService { return GroupUserItem.inviteService; }); osgi.injectService(ILocaleService,function(param1:Object):void { GroupUserItem.localeService = ILocaleService(param1); },function():ILocaleService { return GroupUserItem.localeService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { GroupUserItem.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return GroupUserItem.matchmakingGroupService; }); osgi.injectService(IUserInfoService,function(param1:Object):void { GroupUserItem.userInfoService = IUserInfoService(param1); },function():IUserInfoService { return GroupUserItem.userInfoService; }); osgi.injectService(MatchmakingGroupService,function(param1:Object):void { GroupUsersDataProvider.matchmakingGroupService = MatchmakingGroupService(param1); },function():MatchmakingGroupService { return GroupUsersDataProvider.matchmakingGroupService; }); osgi.injectService(ILocaleService,function(param1:Object):void { GroupUsersListRenderer.localeService = ILocaleService(param1); },function():ILocaleService { return GroupUsersListRenderer.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { MatchmakingRegistrationDialog.localeService = ILocaleService(param1); },function():ILocaleService { return MatchmakingRegistrationDialog.localeService; }); osgi.injectService(MatchmakingFormService,function(param1:Object):void { MatchmakingRegistrationDialog.matchmakingFormService = MatchmakingFormService(param1); },function():MatchmakingFormService { return MatchmakingRegistrationDialog.matchmakingFormService; }); osgi.injectService(IAlertService,function(param1:Object):void { GroupInviteNotification.battleAlertService = IAlertService(param1); },function():IAlertService { return GroupInviteNotification.battleAlertService; }); osgi.injectService(IDialogWindowsDispatcherService,function(param1:Object):void { GroupInviteNotification.dialogWindowsDispatcherService = IDialogWindowsDispatcherService(param1); },function():IDialogWindowsDispatcherService { return GroupInviteNotification.dialogWindowsDispatcherService; }); osgi.injectService(GroupInviteService,function(param1:Object):void { GroupInviteNotification.inviteService = GroupInviteService(param1); },function():GroupInviteService { return GroupInviteNotification.inviteService; }); osgi.injectService(ILocaleService,function(param1:Object):void { GroupInviteNotification.localeService = ILocaleService(param1); },function():ILocaleService { return GroupInviteNotification.localeService; }); osgi.injectService(IStorageService,function(param1:Object):void { GroupInviteNotification.storageService = IStorageService(param1); },function():IStorageService { return GroupInviteNotification.storageService; }); osgi.injectService(ILocaleService,function(param1:Object):void { ResponseGroupInviteNotification.localeService = ILocaleService(param1); },function():ILocaleService { return ResponseGroupInviteNotification.localeService; }); osgi.injectService(ILocaleService,function(param1:Object):void { QuestButton.localeService = ILocaleService(param1); },function():ILocaleService { return QuestButton.localeService; }); modelRegisterAdapt = osgi.getService(ModelRegistry) as ModelRegistry; modelRegisterAdapt.registerAdapt(BattleEntrance,BattleEntranceAdapt); modelRegisterAdapt.registerEvents(BattleEntrance,BattleEntranceEvents); modelRegister = osgi.getService(ModelRegistry) as ModelRegistry; modelRegister.add(new BattleEntranceModel()); modelRegister.add(new BattleSelectModel()); modelRegister.add(new BattleCreateModel()); modelRegister.add(new BuyProAbonementModel()); modelRegister.add(new BattleInfoModel()); modelRegisterAdapt.registerAdapt(BattleInfoParams,BattleInfoParamsAdapt); modelRegisterAdapt.registerEvents(BattleInfoParams,BattleInfoParamsEvents); modelRegisterAdapt.registerAdapt(IBattleInfo,IBattleInfoAdapt); modelRegisterAdapt.registerEvents(IBattleInfo,IBattleInfoEvents); modelRegisterAdapt.registerAdapt(ShowInfo,ShowInfoAdapt); modelRegisterAdapt.registerEvents(ShowInfo,ShowInfoEvents); modelRegister.add(new BattleDmInfoModel()); modelRegister.add(new BattleParamInfoModel()); modelRegisterAdapt.registerAdapt(BattleParams,BattleParamsAdapt); modelRegisterAdapt.registerEvents(BattleParams,BattleParamsEvents); modelRegisterAdapt.registerAdapt(BattleTeamInfo,BattleTeamInfoAdapt); modelRegisterAdapt.registerEvents(BattleTeamInfo,BattleTeamInfoEvents); modelRegister.add(new BattleTeamInfoModel()); modelRegisterAdapt.registerAdapt(BattleFriendsListener,BattleFriendsListenerAdapt); modelRegisterAdapt.registerEvents(BattleFriendsListener,BattleFriendsListenerEvents); modelRegisterAdapt.registerAdapt(IBattleDMItem,IBattleDMItemAdapt); modelRegisterAdapt.registerEvents(IBattleDMItem,IBattleDMItemEvents); modelRegisterAdapt.registerAdapt(IMapInfo,IMapInfoAdapt); modelRegisterAdapt.registerEvents(IMapInfo,IMapInfoEvents); modelRegister.add(new MapInfoModel()); modelRegisterAdapt.registerAdapt(MatchmakingQueue,MatchmakingQueueAdapt); modelRegisterAdapt.registerEvents(MatchmakingQueue,MatchmakingQueueEvents); modelRegister.add(new MatchmakingQueueModel()); modelRegister.add(new MatchmakingGroupNotifyModel()); modelRegister.add(new MatchmakingGroupLifecycleModel()); modelRegister.add(new GroupInviteWindowModel()); modelRegister.add(new MatchmakingGroupInviteModel()); modelRegister.add(new MatchmakingNotifyModel()); modelRegister.add(new MatchmakingSpectatorEntranceModel()); modelRegister.add(new MatchmakingLayoutModel()); } public function stop(param1:OSGi) : void { } } }
package assets { import flash.display.MovieClip; [Embed(source="/_assets/assets.swf", symbol="symbol1324")] public dynamic class IconAlarm extends MovieClip { public function IconAlarm() { super(); } } }
package forms.ranks { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapBigRank26.png")] public class DefaultRanksBitmaps_bitmapBigRank26 extends BitmapAsset { public function DefaultRanksBitmaps_bitmapBigRank26() { super(); } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.ItemInfoPanelBitmaps_bitmapLeftBottomLineTableKit.png")] public class ItemInfoPanelBitmaps_bitmapLeftBottomLineTableKit extends BitmapAsset { public function ItemInfoPanelBitmaps_bitmapLeftBottomLineTableKit() { super(); } } }
package alternativa.tanks.models.weapon { import alternativa.math.Vector3; public class AllGlobalGunParams { public const muzzlePosition:Vector3 = new Vector3(); public const barrelOrigin:Vector3 = new Vector3(); public const elevationAxis:Vector3 = new Vector3(); public const direction:Vector3 = new Vector3(); public function AllGlobalGunParams() { super(); } } }
package _codec.projects.tanks.client.garage.models.item.container.resources { 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.container.resources.ContainerResourceCC; public class CodecContainerResourceCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_fiveBoxImage:ICodec; private var codec_fiveBoxLightImage:ICodec; private var codec_fiveBoxOpenedImage:ICodec; private var codec_oneBoxImage:ICodec; private var codec_oneBoxLightImage:ICodec; private var codec_oneBoxOpenedImage:ICodec; private var codec_threeBoxImage:ICodec; private var codec_threeBoxLightImage:ICodec; private var codec_threeBoxOpenedImage:ICodec; public function CodecContainerResourceCC() { super(); } public function init(param1:IProtocol) : void { this.codec_fiveBoxImage = param1.getCodec(new TypeCodecInfo(ImageResource,true)); this.codec_fiveBoxLightImage = param1.getCodec(new TypeCodecInfo(ImageResource,true)); this.codec_fiveBoxOpenedImage = param1.getCodec(new TypeCodecInfo(ImageResource,true)); this.codec_oneBoxImage = param1.getCodec(new TypeCodecInfo(ImageResource,false)); this.codec_oneBoxLightImage = param1.getCodec(new TypeCodecInfo(ImageResource,false)); this.codec_oneBoxOpenedImage = param1.getCodec(new TypeCodecInfo(ImageResource,false)); this.codec_threeBoxImage = param1.getCodec(new TypeCodecInfo(ImageResource,true)); this.codec_threeBoxLightImage = param1.getCodec(new TypeCodecInfo(ImageResource,true)); this.codec_threeBoxOpenedImage = param1.getCodec(new TypeCodecInfo(ImageResource,true)); } public function decode(param1:ProtocolBuffer) : Object { var local2:ContainerResourceCC = new ContainerResourceCC(); local2.fiveBoxImage = this.codec_fiveBoxImage.decode(param1) as ImageResource; local2.fiveBoxLightImage = this.codec_fiveBoxLightImage.decode(param1) as ImageResource; local2.fiveBoxOpenedImage = this.codec_fiveBoxOpenedImage.decode(param1) as ImageResource; local2.oneBoxImage = this.codec_oneBoxImage.decode(param1) as ImageResource; local2.oneBoxLightImage = this.codec_oneBoxLightImage.decode(param1) as ImageResource; local2.oneBoxOpenedImage = this.codec_oneBoxOpenedImage.decode(param1) as ImageResource; local2.threeBoxImage = this.codec_threeBoxImage.decode(param1) as ImageResource; local2.threeBoxLightImage = this.codec_threeBoxLightImage.decode(param1) as ImageResource; local2.threeBoxOpenedImage = this.codec_threeBoxOpenedImage.decode(param1) as ImageResource; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:ContainerResourceCC = ContainerResourceCC(param2); this.codec_fiveBoxImage.encode(param1,local3.fiveBoxImage); this.codec_fiveBoxLightImage.encode(param1,local3.fiveBoxLightImage); this.codec_fiveBoxOpenedImage.encode(param1,local3.fiveBoxOpenedImage); this.codec_oneBoxImage.encode(param1,local3.oneBoxImage); this.codec_oneBoxLightImage.encode(param1,local3.oneBoxLightImage); this.codec_oneBoxOpenedImage.encode(param1,local3.oneBoxOpenedImage); this.codec_threeBoxImage.encode(param1,local3.threeBoxImage); this.codec_threeBoxLightImage.encode(param1,local3.threeBoxLightImage); this.codec_threeBoxOpenedImage.encode(param1,local3.threeBoxOpenedImage); } } }
package projects.tanks.client.battlefield.models.ultimate.effects.hornet.radar { import alternativa.types.Long; import platform.client.fp10.core.resource.types.TextureResource; public class BattleUltimateRadarCC { private var _blueTankMarker:TextureResource; private var _discoveredTanksIds:Vector.<Long>; private var _farMarkerDistance:Number; private var _nearMarkerDistance:Number; private var _neutralTankMarker:TextureResource; private var _redTankMarker:TextureResource; public function BattleUltimateRadarCC(param1:TextureResource = null, param2:Vector.<Long> = null, param3:Number = 0, param4:Number = 0, param5:TextureResource = null, param6:TextureResource = null) { super(); this._blueTankMarker = param1; this._discoveredTanksIds = param2; this._farMarkerDistance = param3; this._nearMarkerDistance = param4; this._neutralTankMarker = param5; this._redTankMarker = param6; } public function get blueTankMarker() : TextureResource { return this._blueTankMarker; } public function set blueTankMarker(param1:TextureResource) : void { this._blueTankMarker = param1; } public function get discoveredTanksIds() : Vector.<Long> { return this._discoveredTanksIds; } public function set discoveredTanksIds(param1:Vector.<Long>) : void { this._discoveredTanksIds = param1; } public function get farMarkerDistance() : Number { return this._farMarkerDistance; } public function set farMarkerDistance(param1:Number) : void { this._farMarkerDistance = param1; } public function get nearMarkerDistance() : Number { return this._nearMarkerDistance; } public function set nearMarkerDistance(param1:Number) : void { this._nearMarkerDistance = param1; } public function get neutralTankMarker() : TextureResource { return this._neutralTankMarker; } public function set neutralTankMarker(param1:TextureResource) : void { this._neutralTankMarker = param1; } public function get redTankMarker() : TextureResource { return this._redTankMarker; } public function set redTankMarker(param1:TextureResource) : void { this._redTankMarker = param1; } public function toString() : String { var local1:String = "BattleUltimateRadarCC ["; local1 += "blueTankMarker = " + this.blueTankMarker + " "; local1 += "discoveredTanksIds = " + this.discoveredTanksIds + " "; local1 += "farMarkerDistance = " + this.farMarkerDistance + " "; local1 += "nearMarkerDistance = " + this.nearMarkerDistance + " "; local1 += "neutralTankMarker = " + this.neutralTankMarker + " "; local1 += "redTankMarker = " + this.redTankMarker + " "; return local1 + "]"; } } }
package alternativa.tanks.models.battle.gui.gui.statistics.field.score.ctf.flagindicator { public interface IFlagIndicatorState { function getType() : int; function start() : void; function stop() : void; function update(param1:int, param2:int) : void; } }
package alternativa.tanks.models.tank.event { [ModelInterface] public interface LocalTankLoadListener { function localTankLoaded(param1:Boolean) : void; } }
package alternativa.tanks.gui.friends.list.refferals.referalbuttons { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.friends.list.refferals.referalbuttons.VkReferralButton_friendsVKImageClass.png")] public class VkReferralButton_friendsVKImageClass extends BitmapAsset { public function VkReferralButton_friendsVKImageClass() { super(); } } }
package alternativa.tanks.models.weapon.common { import alternativa.tanks.battle.objects.tank.Tank; import alternativa.tanks.models.weapon.AllGlobalGunParams; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class IWeaponCommonModelAdapt implements IWeaponCommonModel { private var object:IGameObject; private var impl:IWeaponCommonModel; public function IWeaponCommonModelAdapt(param1:IGameObject, param2:IWeaponCommonModel) { super(); this.object = param1; this.impl = param2; } public function getCommonData() : WeaponCommonData { var result:WeaponCommonData = null; try { Model.object = this.object; result = this.impl.getCommonData(); } finally { Model.popObject(); } return result; } public function storeTank(param1:Tank) : void { var tank:Tank = param1; try { Model.object = this.object; this.impl.storeTank(tank); } finally { Model.popObject(); } } public function getTank() : Tank { var result:Tank = null; try { Model.object = this.object; result = this.impl.getTank(); } finally { Model.popObject(); } return result; } public function getGunParams(param1:int = 0) : AllGlobalGunParams { var result:AllGlobalGunParams = null; var barrelIndex:int = param1; try { Model.object = this.object; result = this.impl.getGunParams(barrelIndex); } finally { Model.popObject(); } return result; } } }
package alternativa.resource.loaders.events { import flash.events.ErrorEvent; import flash.events.Event; public class BatchTextureLoaderErrorEvent extends ErrorEvent { public static const LOADER_ERROR:String = "loaderError"; private var _textureName:String; public function BatchTextureLoaderErrorEvent(type:String, textureName:String, text:String) { super(type); this.text = text; this._textureName = textureName; } public function get textureName() : String { return this._textureName; } override public function clone() : Event { return new BatchTextureLoaderErrorEvent(type,this._textureName,text); } override public function toString() : String { return "[BatchTextureLoaderErrorEvent textureName=" + this._textureName + ", text=" + text + "]"; } } }
package controls.scroller.green { import mx.core.BitmapAsset; [ExcludeClass] public class ScrollSkinGreen_thumbTop extends BitmapAsset { public function ScrollSkinGreen_thumbTop() { super(); } } }
package alternativa.tanks.model.payment.modes { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class PayModeDescriptionEvents implements PayModeDescription { private var object:IGameObject; private var impl:Vector.<Object>; public function PayModeDescriptionEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getDescription() : String { var result:String = null; var i:int = 0; var m:PayModeDescription = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = PayModeDescription(this.impl[i]); result = m.getDescription(); i++; } } finally { Model.popObject(); } return result; } public function rewriteCategoryDescription() : Boolean { var result:Boolean = false; var i:int = 0; var m:PayModeDescription = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = PayModeDescription(this.impl[i]); result = Boolean(m.rewriteCategoryDescription()); i++; } } finally { Model.popObject(); } return result; } } }
package projects.tanks.client.clans.clan.clanmembersdata { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class ClanMembersDataModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:ClanMembersDataModelServer; private var client:IClanMembersDataModelBase = IClanMembersDataModelBase(this); private var modelId:Long = Long.getLong(1647741962,-1293471250); private var _sendDataId:Long = Long.getLong(264735719,2108782023); private var _sendData_userDataCodec:ICodec; public function ClanMembersDataModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new ClanMembersDataModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(ClanMembersCC,false))); this._sendData_userDataCodec = this._protocol.getCodec(new TypeCodecInfo(UserData,false)); } protected function getInitParam() : ClanMembersCC { return ClanMembersCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._sendDataId: this.client.sendData(UserData(this._sendData_userDataCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package _codec.projects.tanks.client.entrance.model.entrance.registration { 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.entrance.model.entrance.registration.RegistrationModelCC; public class CodecRegistrationModelCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_bgResource:ICodec; private var codec_enableRequiredEmail:ICodec; private var codec_maxPasswordLength:ICodec; private var codec_minPasswordLength:ICodec; public function CodecRegistrationModelCC() { super(); } public function init(param1:IProtocol) : void { this.codec_bgResource = param1.getCodec(new TypeCodecInfo(ImageResource,false)); this.codec_enableRequiredEmail = param1.getCodec(new TypeCodecInfo(Boolean,false)); this.codec_maxPasswordLength = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_minPasswordLength = param1.getCodec(new TypeCodecInfo(int,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:RegistrationModelCC = new RegistrationModelCC(); local2.bgResource = this.codec_bgResource.decode(param1) as ImageResource; local2.enableRequiredEmail = this.codec_enableRequiredEmail.decode(param1) as Boolean; local2.maxPasswordLength = this.codec_maxPasswordLength.decode(param1) as int; local2.minPasswordLength = this.codec_minPasswordLength.decode(param1) as int; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:RegistrationModelCC = RegistrationModelCC(param2); this.codec_bgResource.encode(param1,local3.bgResource); this.codec_enableRequiredEmail.encode(param1,local3.enableRequiredEmail); this.codec_maxPasswordLength.encode(param1,local3.maxPasswordLength); this.codec_minPasswordLength.encode(param1,local3.minPasswordLength); } } }
package alternativa.tanks.gui.tankpreview { import alternativa.engine3d.core.Object3D; import flash.events.IEventDispatcher; import flash.events.MouseEvent; import flash.utils.getTimer; public class RotationDecelerationState implements TankPreviewState { private static const MIN_ROTATION_SPEED:Number = 0.02; private var stateMachine:TankPreviewStateMachine; private var eventSource:IEventDispatcher; private var context:TankPreviewContext; private var lastTime:int; private var cameraContainer:Object3D; public function RotationDecelerationState(param1:TankPreviewStateMachine, param2:IEventDispatcher, param3:TankPreviewContext, param4:Object3D) { super(); this.stateMachine = param1; this.eventSource = param2; this.context = param3; this.cameraContainer = param4; } public function enter() : void { this.eventSource.addEventListener(MouseEvent.MOUSE_DOWN,this.onMouseDown); this.lastTime = getTimer(); } public function update() : void { var local1:int = getTimer(); var local2:Number = (local1 - this.lastTime) / 1000; this.lastTime = local1; this.cameraContainer.rotationZ += this.context.angularSpeed * local2; if(Math.abs(this.context.angularSpeed) > MIN_ROTATION_SPEED) { this.context.angularSpeed *= Math.exp(-1.5 * local2); } else { this.context.angularSpeed = 0; this.stateMachine.handleEvent(this,TankPreviewEvent.ROTATION_STOPPED); } } public function exit() : void { this.eventSource.removeEventListener(MouseEvent.MOUSE_DOWN,this.onMouseDown); } private function onMouseDown(param1:MouseEvent) : void { this.stateMachine.handleEvent(this,TankPreviewEvent.MOUSE_DOWN); } } }
package alternativa.tanks.models.battle.gui.gui.statistics.field.wink { import flash.events.TimerEvent; import flash.utils.Dictionary; import flash.utils.Timer; public class WinkManager { private static var _instance:WinkManager; private var timer:Timer; private var fields:Dictionary; private var numFields:int; private var visible:Boolean; public function WinkManager(param1:int) { super(); this.fields = new Dictionary(); this.timer = new Timer(param1); this.timer.addEventListener(TimerEvent.TIMER,this.onTimer); } public static function init(param1:int) : void { if(_instance == null) { _instance = new WinkManager(param1); } } public static function get instance() : WinkManager { return _instance; } public function addField(param1:IWinkingField) : void { if(this.fields[param1] == null) { this.fields[param1] = param1; ++this.numFields; if(this.numFields == 1) { this.timer.start(); } } } public function removeField(param1:IWinkingField) : void { if(this.fields[param1] != null) { param1.setVisible(true); delete this.fields[param1]; --this.numFields; if(this.numFields == 0) { this.timer.stop(); this.visible = true; } } } private function onTimer(param1:TimerEvent) : void { var local2:IWinkingField = null; if(this.numFields > 0) { this.visible = !this.visible; for each(local2 in this.fields) { local2.setVisible(this.visible); } } } } }
package _codec.projects.tanks.client.panel.model.quest.weekly { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.codec.OptionalCodecDecorator; import alternativa.protocol.impl.LengthCodecHelper; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.panel.model.quest.weekly.WeeklyQuestInfo; public class VectorCodecWeeklyQuestInfoLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecWeeklyQuestInfoLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(WeeklyQuestInfo,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.<WeeklyQuestInfo> = new Vector.<WeeklyQuestInfo>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = WeeklyQuestInfo(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:WeeklyQuestInfo = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<WeeklyQuestInfo> = Vector.<WeeklyQuestInfo>(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 com.alternativaplatform.projects.tanks.client.garage.item3d { import scpacker.Base; public class Item3DModelBase extends Base { public function Item3DModelBase() { super(); } } }
package projects.tanks.client.battlefield.models.bonus.bonus.notification { import platform.client.fp10.core.resource.types.SoundResource; public class NotificationBonusCC { private var _notificationMessage:String; private var _notificationMessageContainsUid:String; private var _soundNotification:SoundResource; public function NotificationBonusCC(param1:String = null, param2:String = null, param3:SoundResource = null) { super(); this._notificationMessage = param1; this._notificationMessageContainsUid = param2; this._soundNotification = param3; } public function get notificationMessage() : String { return this._notificationMessage; } public function set notificationMessage(param1:String) : void { this._notificationMessage = param1; } public function get notificationMessageContainsUid() : String { return this._notificationMessageContainsUid; } public function set notificationMessageContainsUid(param1:String) : void { this._notificationMessageContainsUid = param1; } public function get soundNotification() : SoundResource { return this._soundNotification; } public function set soundNotification(param1:SoundResource) : void { this._soundNotification = param1; } public function toString() : String { var local1:String = "NotificationBonusCC ["; local1 += "notificationMessage = " + this.notificationMessage + " "; local1 += "notificationMessageContainsUid = " + this.notificationMessageContainsUid + " "; local1 += "soundNotification = " + this.soundNotification + " "; return local1 + "]"; } } }
package _codec.projects.tanks.client.battlefield.models.bonus.bonus.notification { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import platform.client.fp10.core.resource.types.SoundResource; import projects.tanks.client.battlefield.models.bonus.bonus.notification.NotificationBonusCC; public class CodecNotificationBonusCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_notificationMessage:ICodec; private var codec_notificationMessageContainsUid:ICodec; private var codec_soundNotification:ICodec; public function CodecNotificationBonusCC() { super(); } public function init(param1:IProtocol) : void { this.codec_notificationMessage = param1.getCodec(new TypeCodecInfo(String,true)); this.codec_notificationMessageContainsUid = param1.getCodec(new TypeCodecInfo(String,true)); this.codec_soundNotification = param1.getCodec(new TypeCodecInfo(SoundResource,true)); } public function decode(param1:ProtocolBuffer) : Object { var local2:NotificationBonusCC = new NotificationBonusCC(); local2.notificationMessage = this.codec_notificationMessage.decode(param1) as String; local2.notificationMessageContainsUid = this.codec_notificationMessageContainsUid.decode(param1) as String; local2.soundNotification = this.codec_soundNotification.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:NotificationBonusCC = NotificationBonusCC(param2); this.codec_notificationMessage.encode(param1,local3.notificationMessage); this.codec_notificationMessageContainsUid.encode(param1,local3.notificationMessageContainsUid); this.codec_soundNotification.encode(param1,local3.soundNotification); } } }
package alternativa.tanks.model.garage.present { import platform.client.fp10.core.type.IGameObject; [ModelInterface] public interface PresentPurchase { function preparePresent(param1:IGameObject) : void; function confirmPresentPurchase(param1:IGameObject) : void; } }
package alternativa.tanks.help { import alternativa.osgi.OSGi; import alternativa.osgi.service.locale.ILocaleService; import projects.tanks.clients.fp10.libraries.TanksLocale; import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.BubbleHelper; import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.HelperAlign; public class ScoreHelper extends BubbleHelper { public function ScoreHelper() { super(); var local1:ILocaleService = ILocaleService(OSGi.getInstance().getService(ILocaleService)); text = local1.getText(TanksLocale.TEXT_HELP_PANEL_SCORE_HELPER_TEXT); arrowLehgth = int(local1.getText(TanksLocale.TEXT_HELP_PANEL_SCORE_HELPER_ARROW_LENGTH)); arrowAlign = HelperAlign.TOP_LEFT; _showLimit = 3; _targetPoint.x = 79; _targetPoint.y = 25; } } }
package projects.tanks.client.garage.models.shopabonement { public interface IShopAbonementModelBase { } }
package _codec.projects.tanks.client.garage.models.user.present { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.CollectionCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.garage.models.user.present.PresentItem; import projects.tanks.client.garage.models.user.present.PresentsCC; public class CodecPresentsCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_presents:ICodec; public function CodecPresentsCC() { super(); } public function init(param1:IProtocol) : void { this.codec_presents = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItem,false),false,1)); } public function decode(param1:ProtocolBuffer) : Object { var local2:PresentsCC = new PresentsCC(); local2.presents = this.codec_presents.decode(param1) as Vector.<PresentItem>; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:PresentsCC = PresentsCC(param2); this.codec_presents.encode(param1,local3.presents); } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class ItemInfoPanel_bitmapTerminatorResistance extends BitmapAsset { public function ItemInfoPanel_bitmapTerminatorResistance() { super(); } } }
package projects.tanks.client.battlefield.models.tankparts.sfx.shoot.railgun { public interface IRailgunShootSFXModelBase { } }
package alternativa.tanks.models.weapon.gauss.sfx { import alternativa.engine3d.core.Vertex; import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.Mesh; import alternativa.math.Vector3; import alternativa.tanks.battle.BattleUtils; import alternativa.tanks.battle.scene3d.scene3dcontainer.Scene3DContainer; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.sfx.GraphicEffect; import alternativa.tanks.sfx.SFXUtils; import alternativa.tanks.utils.objectpool.Pool; import alternativa.tanks.utils.objectpool.PooledObject; import flash.display.BlendMode; public class GaussLightningEffect extends PooledObject implements GraphicEffect { private static const TRAIL_LIFE:Number = 7 / 60; private static const LIGHTNING_START:Number = 5 / 60; private static const LIGHTNING_LIFE:Number = 13 / 60; private static const LIGHTNING_WIDENING_RATE:Number = 0.04; private static const TRAIL_SIZE:Number = 70; private static const LIGHTNING_SIZE:Number = 100; private static const UV_SCALE:Number = 1.5; private static const FAKE_VALUE:Number = 1; private var container:Scene3DContainer; private var trail:Mesh = new Mesh(); private var lightning:Mesh = new Mesh(); private var lightningVertexA:Vertex; private var lightningVertexB:Vertex; private var lightningVertexC:Vertex; private var lightningVertexD:Vertex; private var pointFrom:Vector3 = new Vector3(); private var direction:Vector3 = new Vector3(); private var time:Number = 0; public function GaussLightningEffect(param1:Pool) { super(param1); var local2:Vertex = this.trail.addVertex(-TRAIL_SIZE / 2,TRAIL_SIZE,0,0,0); var local3:Vertex = this.trail.addVertex(-TRAIL_SIZE / 2,0,0,0,1); var local4:Vertex = this.trail.addVertex(TRAIL_SIZE / 2,0,0,1,1); var local5:Vertex = this.trail.addVertex(TRAIL_SIZE / 2,TRAIL_SIZE,0,1,0); this.trail.addQuadFace(local2,local3,local4,local5); this.trail.calculateFacesNormals(); this.trail.blendMode = BlendMode.ADD; this.trail.alpha = 0.6; this.lightningVertexA = this.lightning.addVertex(-LIGHTNING_SIZE / 2,0,0,0,0); this.lightningVertexB = this.lightning.addVertex(LIGHTNING_SIZE / 2,0,0,1,0); this.lightningVertexC = this.lightning.addVertex(LIGHTNING_SIZE / 2,FAKE_VALUE,0,1,FAKE_VALUE); this.lightningVertexD = this.lightning.addVertex(-LIGHTNING_SIZE / 2,FAKE_VALUE,0,0,FAKE_VALUE); this.lightning.addQuadFace(this.lightningVertexA,this.lightningVertexB,this.lightningVertexC,this.lightningVertexD); this.lightning.blendMode = BlendMode.ADD; } public function init(param1:Vector3, param2:Vector3, param3:TextureMaterial, param4:TextureMaterial) : void { this.pointFrom.copy(param1); this.direction.diff(param2,param1).normalize(); var local5:Number = param1.distanceTo(param2); this.trail.scaleY = local5 / TRAIL_SIZE; this.trail.setMaterialToAllFaces(param3); BattleUtils.setObjectPosition3d(this.trail,param1.toVector3d()); var local6:Number = local5 / LIGHTNING_SIZE / 4 / UV_SCALE; this.lightningVertexC.v = local6; this.lightningVertexD.v = local6; this.lightningVertexC.y = local5; this.lightningVertexD.y = local5; this.lightning.calculateFacesNormals(); this.lightning.setMaterialToAllFaces(param4); BattleUtils.setObjectPosition3d(this.lightning,param1.toVector3d()); this.time = 0; } public function addedToScene(param1:Scene3DContainer) : void { this.container = param1; param1.addChild(this.trail); param1.addChild(this.lightning); } public function play(param1:int, param2:GameCamera) : Boolean { var local3:Number = NaN; if(this.time < TRAIL_LIFE) { this.trail.visible = true; SFXUtils.alignObjectPlaneToView(this.trail,this.pointFrom,this.direction,param2.position); } else { this.trail.visible = false; } if(this.time < LIGHTNING_START) { this.lightning.visible = false; } else if(this.time < LIGHTNING_LIFE) { SFXUtils.alignObjectPlaneToView(this.lightning,this.pointFrom,this.direction,param2.position); local3 = (this.time - LIGHTNING_START) / (LIGHTNING_LIFE - LIGHTNING_START); this.lightning.alpha = 1 - local3; this.lightning.scaleX = 1 + LIGHTNING_WIDENING_RATE * local3; this.lightning.visible = true; } this.time += param1 * 0.001; return this.time < LIGHTNING_LIFE; } public function destroy() : void { if(this.container != null) { this.container.removeChild(this.trail); this.container.removeChild(this.lightning); this.container = null; recycle(); } } public function kill() : void { } } }
package projects.tanks.client.garage.skins { public interface IMountShotSkinModelBase { } }
package alternativa.tanks.gui.clanmanagement { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.clanmanagement.ClanTopManagementPanel_bitmapTOIcon.png")] public class ClanTopManagementPanel_bitmapTOIcon extends BitmapAsset { public function ClanTopManagementPanel_bitmapTOIcon() { super(); } } }
package scpacker.gui { import mx.core.BitmapAsset; [ExcludeClass] public class GTanksI_coldload14 extends BitmapAsset { public function GTanksI_coldload14() { super(); } } }
package platform.client.fp10.core.protocol.codec { import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.types.Long; public class DateCodec implements ICodec { public function DateCodec() { super(); } public function init(param1:IProtocol) : void { } public function encode(param1:ProtocolBuffer, param2:Object) : void { throw new Error("Not implemented"); } public function decode(param1:ProtocolBuffer) : Object { var local2:uint = uint(param1.reader.readInt()); var local3:uint = uint(param1.reader.readInt()); return new Date(Long.getLong(local2,local3)); } } }
package alternativa.engine3d.core { import alternativa.gfx.agal.FragmentShader; import alternativa.gfx.agal.SamplerDim; import alternativa.gfx.agal.SamplerFilter; import alternativa.gfx.agal.SamplerMipMap; import alternativa.gfx.agal.SamplerRepeat; public class ShadowReceiverFragmentShader extends FragmentShader { public function ShadowReceiverFragmentShader(param1:Boolean, param2:Boolean) { super(); var local3:SamplerFilter = param1 ? SamplerFilter.LINEAR : SamplerFilter.NEAREST; var local4:SamplerMipMap = param1 ? SamplerMipMap.LINEAR : SamplerMipMap.NEAREST; if(param2) { max(ft0,v0,fc[16]); min(ft0.x,ft0,fc[16].z); min(ft0.y,ft0,fc[16].w); tex(ft0,ft0,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(local3).mipmap(local4)); } else { tex(ft0,v0,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(local3).mipmap(local4)); } sub(ft1,v0.z,fc[14]); div(ft2,ft1,fc[13]); max(ft3,ft1,fc[13].x); mul(ft3,ft3,fc[13].y); min(ft3,ft3,fc[14]); sub(ft4,fc[14],ft3); mul(ft2,ft2,ft3); mul(ft1,ft1,ft4); add(ft2,ft1,ft2); sub(ft2,fc[14],ft2); mul(ft0,ft0,ft2); sub(ft1,v0,fc[14]); div(ft1,ft1,fc[14].y); sat(ft1,ft1); mul(ft0,ft0,ft1.z); mov(ft0.xyz,fc[15]); mul(ft0.w,ft0,fc[15]); mov(oc,ft0); } } }
package alternativa.tanks.camera { import alternativa.math.Vector3; public class CameraControllerBase { protected var camera:GameCamera; public function CameraControllerBase(camera:GameCamera) { super(); if(camera == null) { throw new ArgumentError("Parameter camera cannot be null"); } this.camera = camera; } protected function setPosition(position:Vector3) : void { this.camera.x = position.x; this.camera.y = position.y; this.camera.z = position.z; } protected function setOrientation(eulerAngles:Vector3) : void { this.camera.rotationX = eulerAngles.x; this.camera.rotationY = eulerAngles.y; this.camera.rotationZ = eulerAngles.z; } protected function setOrientationXYZ(rx:Number, ry:Number, rz:Number) : void { this.camera.rotationX = rx; this.camera.rotationY = ry; this.camera.rotationZ = rz; } protected function moveBy(dx:Number, dy:Number, dz:Number) : void { this.camera.x += dx; this.camera.y += dy; this.camera.z += dz; } protected function rotateBy(rx:Number, ry:Number, rz:Number) : void { this.camera.rotationX += rx; this.camera.rotationY += ry; this.camera.rotationZ += rz; } public function getCamera() : GameCamera { return this.camera; } } }
package alternativa.tanks.model.quest.common.gui.window { import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.model.quest.common.gui.greenpanel.GreenPanel; import controls.base.LabelBase; import flash.display.Sprite; import flash.text.TextFormatAlign; import projects.tanks.client.panel.model.quest.showing.QuestInfoWithLevel; import projects.tanks.client.panel.model.quest.showing.QuestPrizeInfo; import projects.tanks.clients.fp10.libraries.TanksLocale; public class QuestItemViewInfoPanel extends Sprite { [Inject] public static var localeService:ILocaleService; private var questInfo:QuestInfoWithLevel; private var _width:int; private var _height:int; private var greenPanel:GreenPanel; private var goalLabel:LabelBase; private var progressLabel:LabelBase; private var goalHeaderLabel:LabelBase; private var prizeHeaderLabel:LabelBase; private var prizesContainer:Vector.<LabelBase>; private const TEXT_LEFT_MARGIN:int = 5; private const HEADER_TOP_MARGIN:int = 4; private const TEXT_VERTICAL_MARGIN:int = 14; private const TEXT_RIGHT_MARGIN:int = 9; private const PRIZE_ITEM_HEIGHT:int = 14; private const PRIZE_BOTTOM_MARGIN:int = 8; private const PANEL_PADDING:int = 10; private const HEADER_COLOR:uint = 5898034; private const TEXT_COLOR:uint = 16777215; public function QuestItemViewInfoPanel(param1:QuestInfoWithLevel, param2:int, param3:int) { super(); this.questInfo = param1; this._width = param2; this._height = param3; this.prizesContainer = new Vector.<LabelBase>(); this.addPanel(); this.addGoalBlock(); this.addPrizeBlock(); } private function addPanel() : void { this.greenPanel = new GreenPanel(this._width,this._height); addChild(this.greenPanel); } private function addGoalBlock() : void { this.addGoalHeaderLabel(); this.addProgressLabel(); this.addGoalLabel(); } private function addGoalHeaderLabel() : void { this.goalHeaderLabel = new LabelBase(); this.goalHeaderLabel.color = this.HEADER_COLOR; this.goalHeaderLabel.align = TextFormatAlign.LEFT; this.goalHeaderLabel.text = localeService.getText(TanksLocale.TEXT_DAILY_QUEST_GOAL); this.goalHeaderLabel.x = this.TEXT_LEFT_MARGIN; this.goalHeaderLabel.y = this.HEADER_TOP_MARGIN; this.greenPanel.addChild(this.goalHeaderLabel); } private function addProgressLabel() : void { this.progressLabel = new LabelBase(); this.progressLabel.color = this.TEXT_COLOR; this.progressLabel.align = TextFormatAlign.LEFT; this.progressLabel.text = this.getProgressLabelText(); this.progressLabel.x = this._width - this.TEXT_RIGHT_MARGIN - this.progressLabel.textWidth; this.progressLabel.y = this.goalHeaderLabel.y + this.TEXT_VERTICAL_MARGIN; this.greenPanel.addChild(this.progressLabel); } private function addGoalLabel() : void { this.goalLabel = new LabelBase(); this.goalLabel.color = this.TEXT_COLOR; this.goalLabel.align = TextFormatAlign.LEFT; this.goalLabel.text = this.getDescription(); this.goalLabel.wordWrap = true; this.goalLabel.width = this.progressLabel.x - this.PANEL_PADDING; this.goalLabel.x = this.goalHeaderLabel.x; this.goalLabel.y = this.progressLabel.y; this.greenPanel.addChild(this.goalLabel); } private function getDescription() : String { return this.questInfo.description.replace("%COUNT%",this.questInfo.finishCriteria.toString()); } private function getProgressLabelText() : String { return this.questInfo.progress + "/" + this.questInfo.finishCriteria; } private function addPrizeBlock() : void { this.prizeHeaderLabel = new LabelBase(); this.prizeHeaderLabel.color = this.HEADER_COLOR; this.prizeHeaderLabel.align = TextFormatAlign.LEFT; this.prizeHeaderLabel.text = localeService.getText(TanksLocale.TEXT_DAILY_QUEST_PRIZE); this.prizeHeaderLabel.x = this.TEXT_LEFT_MARGIN; this.updatePrizesInfo(); this.greenPanel.addChild(this.prizeHeaderLabel); } private function updateHeaderLabel() : void { this.prizeHeaderLabel.y = this._height - this.PRIZE_ITEM_HEIGHT * (this.prizesContainer.length + 1) - this.PRIZE_BOTTOM_MARGIN; } public function updatePanel(param1:QuestInfoWithLevel) : void { this.questInfo = param1; this.goalLabel.text = this.getDescription(); this.progressLabel.text = this.getProgressLabelText(); this.progressLabel.x = this._width - this.TEXT_RIGHT_MARGIN - this.progressLabel.textWidth; this.removeAllPrizes(); this.updatePrizesInfo(); } private function removeAllPrizes() : void { var local1:LabelBase = null; for each(local1 in this.prizesContainer) { this.greenPanel.removeChild(local1); } this.prizesContainer.splice(0,this.prizesContainer.length); } private function updatePrizesInfo() : void { var local2:QuestPrizeInfo = null; var local3:LabelBase = null; var local1:int = 0; while(local1 < this.questInfo.prizes.length) { local2 = this.questInfo.prizes[local1]; local3 = new LabelBase(); local3.color = this.TEXT_COLOR; local3.align = TextFormatAlign.LEFT; local3.text = local2.name + " × " + local2.count; local3.x = this.TEXT_LEFT_MARGIN; local3.y = this._height - this.PRIZE_BOTTOM_MARGIN - (local1 + 1) * this.PRIZE_ITEM_HEIGHT; this.greenPanel.addChild(local3); this.prizesContainer.push(local3); local1++; } this.updateHeaderLabel(); } override public function get width() : Number { return this._width; } override public function get height() : Number { return this._height; } } }
package alternativa.tanks.gui.components.button { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.components.button.ClanUsersButton_AttentionIconClass.png")] public class ClanUsersButton_AttentionIconClass extends BitmapAsset { public function ClanUsersButton_AttentionIconClass() { super(); } } }
package alternativa.tanks.engine3d { import alternativa.engine3d.materials.Material; import alternativa.engine3d.materials.TextureMaterial; import flash.display.BitmapData; import flash.geom.Matrix; import flash.geom.Point; import flash.geom.Rectangle; public class MaterialSequence { private static const FRAME_WIDTH_MASK:int = 65535; private static const FRAME_INDEX_MASK:int = 16711680; private static const DISPOSE_SOURCE_MASK:int = 1 << 24; private static const MIRRORED_FRAMES_MASK:int = 1 << 25; private static const rect:Rectangle = new Rectangle(); private static const point:Point = new Point(); private static var matrix:Matrix = new Matrix(-1,0,0,1); public var materials:Vector.<Material>; var referenceCount:int; public var sourceImage:BitmapData; private var registry:IMaterialSequenceRegistry; private var frameData:int; public function MaterialSequence(registry:IMaterialSequenceRegistry, sourceImage:BitmapData, frameWidth:int, createMirroredFrames:Boolean, disposeSourceBitmap:Boolean, useMipMapping:Boolean, mipMapResolution:Number) { super(); this.registry = registry; this.sourceImage = sourceImage; this.frameData = frameWidth; if(createMirroredFrames) { this.frameData |= MIRRORED_FRAMES_MASK; } if(disposeSourceBitmap) { this.frameData |= DISPOSE_SOURCE_MASK; } var numFrames:int = sourceImage.width / frameWidth; if(createMirroredFrames) { numFrames *= 2; } this.materials = new Vector.<Material>(numFrames,true); for(var i:int = 0; i < numFrames; i++) { this.materials[i] = new TanksTextureMaterial(null,true,true,!!useMipMapping ? int(int(1)) : int(int(0)),mipMapResolution); } TanksTextureMaterial(this.materials[0]).texture = this.getFrameImage(0); } public function get frameWidth() : int { return this.frameData & FRAME_WIDTH_MASK; } public function get mipMapResolution() : Number { if(this.materials != null) { return TextureMaterial(this.materials[0]).resolution; } return 1; } public function set mipMapResolution(value:Number) : void { var i:int = 0; if(this.materials != null) { for(i = 0; i < this.materials.length; i++) { TextureMaterial(this.materials[i]).resolution = value; } } } public function release() : void { if(this.referenceCount > 0) { --this.referenceCount; if(this.referenceCount == 0 && this.registry != null) { this.registry.disposeSequence(this); } } } function dispose() : void { var material:TanksTextureMaterial = null; for(var i:int = 0; i < this.materials.length; i++) { material = this.materials[i] as TanksTextureMaterial; if(material != null) { material.dispose(); } material = null; } this.disposeSourceIfNecessary(); this.materials = null; this.registry = null; this.referenceCount = 0; } function tick() : Boolean { var createMirroredFrames:Boolean = false; var previousMaterial:TanksTextureMaterial = null; var frameIndex:int = (this.frameData & FRAME_INDEX_MASK) >> 16; var material:TanksTextureMaterial = TanksTextureMaterial(this.materials[frameIndex]); frameIndex++; this.frameData = this.frameData & ~FRAME_INDEX_MASK | frameIndex << 16; if(frameIndex == this.materials.length) { this.disposeSourceIfNecessary(); return true; } material = TanksTextureMaterial(this.materials[frameIndex]); createMirroredFrames = (this.frameData & MIRRORED_FRAMES_MASK) > 0; if(createMirroredFrames) { if((frameIndex & 1) == 1) { previousMaterial = TanksTextureMaterial(this.materials[frameIndex - 1]); material.texture = this.getMirroredImage(previousMaterial.texture); } else { material.texture = this.getFrameImage(frameIndex >> 1); } } else { material.texture = this.getFrameImage(frameIndex); } return false; } private function disposeSourceIfNecessary() : void { if((this.frameData & DISPOSE_SOURCE_MASK) > 0) { this.sourceImage.dispose(); this.frameData &= ~DISPOSE_SOURCE_MASK; } } private function getFrameImage(frameIndex:int) : BitmapData { var frameWidth:int = this.frameData & 65535; var bitmapData:BitmapData = new BitmapData(frameWidth,this.sourceImage.height,this.sourceImage.transparent,0); rect.x = frameIndex * frameWidth; rect.width = frameWidth; rect.height = this.sourceImage.height; bitmapData.copyPixels(this.sourceImage,rect,point); return bitmapData; } private function getMirroredImage(source:BitmapData) : BitmapData { var result:BitmapData = new BitmapData(source.width,source.height,source.transparent,0); matrix.tx = source.width; result.draw(source,matrix); return result; } } }
package projects.tanks.clients.tankslauncershared.dishonestprogressbar { import mx.core.BitmapAsset; [Embed(source="/_assets/projects.tanks.clients.tankslauncershared.dishonestprogressbar.DishonestProgressBar_bgdCenterClass.png")] public class DishonestProgressBar_bgdCenterClass extends BitmapAsset { public function DishonestProgressBar_bgdCenterClass() { super(); } } }
package alternativa.tanks.model.item.upgradable.calculators { public class UpgradeLinearCalculator { private var initialValue:Number; private var step:Number; public function UpgradeLinearCalculator(param1:Number, param2:Number, param3:int) { super(); this.initialValue = param1; if(param3 == 0) { this.step = 0; } else { this.step = (param2 - param1) / param3; } } public function getIntValue(param1:int) : int { return Math.round(this.getValue(param1)); } public function getValue(param1:int) : Number { return this.initialValue + this.step * param1; } } }
package scpacker.gui { import mx.core.BitmapAsset; [ExcludeClass] public class GTanksI_coldload13 extends BitmapAsset { public function GTanksI_coldload13() { super(); } } }
package projects.tanks.client.panel.model.quest.weekly { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.CollectionCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.registry.ModelRegistry; public class WeeklyQuestShowingModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:WeeklyQuestShowingModelServer; private var client:IWeeklyQuestShowingModelBase = IWeeklyQuestShowingModelBase(this); private var modelId:Long = Long.getLong(616930387,851653221); private var _openWeeklyQuestId:Long = Long.getLong(1625498279,-1320504899); private var _openWeeklyQuest_infoCodec:ICodec; private var _prizeGivenId:Long = Long.getLong(1025488993,-1514758469); private var _prizeGiven_questIdCodec:ICodec; public function WeeklyQuestShowingModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new WeeklyQuestShowingModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(WeeklyQuestShowingCC,false))); this._openWeeklyQuest_infoCodec = this._protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(WeeklyQuestInfo,false),false,1)); this._prizeGiven_questIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false)); } protected function getInitParam() : WeeklyQuestShowingCC { return WeeklyQuestShowingCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._openWeeklyQuestId: this.client.openWeeklyQuest(this._openWeeklyQuest_infoCodec.decode(param2) as Vector.<WeeklyQuestInfo>); break; case this._prizeGivenId: this.client.prizeGiven(Long(this._prizeGiven_questIdCodec.decode(param2))); } } override public function get id() : Long { return this.modelId; } } }
package com.alternativaplatform.projects.tanks.client.warfare.models.sfx.shoot.railgun { import scpacker.Base; public class RailgunShootSFXModelBase extends Base { public function RailgunShootSFXModelBase() { super(); } } }
package alternativa.engine3d.loaders.collada { public class DaeLogger { public function DaeLogger() { super(); } private function logMessage(param1:String, param2:XML) : void { var local3:int = 0; var local4:String = param2.nodeKind() == "attribute" ? "@" + param2.localName() : param2.localName() + (local3 > 0 ? "[" + local3 + "]" : ""); var local5:* = param2.parent(); while(local5 != null) { local4 = local5.localName() + (local3 > 0 ? "[" + local3 + "]" : "") + "." + local4; local5 = local5.parent(); } } private function logError(param1:String, param2:XML) : void { this.logMessage("[ERROR] " + param1,param2); } public function logExternalError(param1:XML) : void { this.logError("External urls don\'t supported",param1); } public function logSkewError(param1:XML) : void { this.logError("<skew> don\'t supported",param1); } public function logJointInAnotherSceneError(param1:XML) : void { this.logError("Joints in different scenes don\'t supported",param1); } public function logInstanceNodeError(param1:XML) : void { this.logError("<instance_node> don\'t supported",param1); } public function logNotFoundError(param1:XML) : void { this.logError("Element with url \"" + param1.toString() + "\" not found",param1); } public function logNotEnoughDataError(param1:XML) : void { this.logError("Not enough data",param1); } } }
package alternativa.tanks.gui { import alternativa.init.Main; import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.locale.constants.TextConst; import controls.DefaultButton; import controls.Label; import controls.TankWindow; import controls.TankWindowHeader; import controls.TankWindowInner; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; import flash.geom.Point; import flash.text.TextFormatAlign; public class EntranceAlertWindow extends Sprite { [Embed(source="1133.png")] private static const DISCOUNT_PICTURE_EN:Class; [Embed(source="1100.png")] private static const DISCOUNT_PICTURE_RU:Class; private static const entranceBitmapDataEn:BitmapData = new DISCOUNT_PICTURE_EN().bitmapData; private static const entranceBitmapDataRu:BitmapData = new DISCOUNT_PICTURE_RU().bitmapData; public static const CRYSTALS:int = 0; public static const NOSUPPLIES:int = 1; private var window:TankWindow; private var inner:TankWindowInner; private var messageTopLabel:Label; private var messageBottomLabel:Label; private var entranceImage:Bitmap; public var closeButton:DefaultButton; private var windowWidth:int = 430; private const windowMargin:int = 12; private const margin:int = 9; private const buttonSize:Point = new Point(104,33); private const space:int = 8; public function EntranceAlertWindow() { var messageTop:String = null; var messageBottom:String = null; super(); var localeService:ILocaleService = ILocaleService(Main.osgi.getService(ILocaleService)); this.entranceImage = ILocaleService(Main.osgi.getService(ILocaleService)).language == "RU" ? new Bitmap(entranceBitmapDataRu) : new Bitmap(entranceBitmapDataEn); messageTop = ILocaleService(Main.osgi.getService(ILocaleService)).language == "RU" ? "Поздравляем с Днём Танкиста!" : "Dear tankmen!"; messageBottom = ILocaleService(Main.osgi.getService(ILocaleService)).language == "RU" ? "12 сентября в России и странах СНГ отмечается профессиональный праздник танкистов и танкостроителей. Администрация «Танков Онлайн» желает вам удачи в виртуальных боях и дарит скидку 25% на все товары в «Гараже». Внимание, скидка действует только до 05:00 понедельника, 13 сентября (время московское)." : "On the 12th of September a professional holiday of tankmen and tank constructors is celebrated in Russia. Administration of Tanki Online wishes you good luck in virtual fights and presents 25% discount on all goods in the Garage. Attention, discount lasts only till 05:00 of Monday, September 13th (UTC +4)."; this.window = new TankWindow(this.windowWidth,this.entranceImage.height); addChild(this.window); this.window.header = TankWindowHeader.ACCOUNT; this.inner = new TankWindowInner(0,0,TankWindowInner.GREEN); addChild(this.inner); this.inner.x = this.windowMargin; this.inner.y = this.windowMargin; this.entranceImage.x = (this.windowWidth - this.entranceImage.width) / 2; this.entranceImage.y = this.windowMargin * 2; addChild(this.entranceImage); this.messageTopLabel = new Label(); this.messageTopLabel.align = TextFormatAlign.CENTER; this.messageTopLabel.wordWrap = true; this.messageTopLabel.multiline = true; this.messageTopLabel.size = 18; this.messageTopLabel.bold = true; this.messageTopLabel.text = messageTop; this.messageTopLabel.color = 5898034; this.messageTopLabel.x = this.windowMargin * 2; this.messageTopLabel.y = this.entranceImage.y + this.entranceImage.height - 10; this.messageTopLabel.width = this.windowWidth - this.windowMargin * 4; addChild(this.messageTopLabel); this.messageBottomLabel = new Label(); this.messageBottomLabel.align = TextFormatAlign.LEFT; this.messageBottomLabel.wordWrap = true; this.messageBottomLabel.multiline = true; this.messageBottomLabel.size = 12; this.messageBottomLabel.color = 5898034; this.messageBottomLabel.htmlText = messageBottom; this.messageBottomLabel.x = this.windowMargin * 2; this.messageBottomLabel.y = this.messageTopLabel.y + this.messageTopLabel.height; this.messageBottomLabel.width = this.windowWidth - this.windowMargin * 4; addChild(this.messageBottomLabel); this.closeButton = new DefaultButton(); addChild(this.closeButton); this.closeButton.label = ILocaleService(Main.osgi.getService(ILocaleService)).getText(TextConst.FREE_BONUSES_WINDOW_BUTTON_CLOSE_TEXT); this.window.height = this.messageBottomLabel.y + this.messageBottomLabel.height + this.closeButton.height + this.margin * 3 + 10; this.closeButton.y = this.window.height - this.margin - 35; this.closeButton.x = this.window.width - this.closeButton.width >> 1; this.inner.width = this.window.width - this.windowMargin * 2; this.inner.height = this.window.height - this.windowMargin - this.margin * 2 - this.buttonSize.y + 2; } } }
package controls.timer { public interface CountDownTimerOnCompleteAfter { function onCompleteAfter(param1:CountDownTimer, param2:Boolean) : void; } }
package alternativa.tanks.model.payment.modes.asyncurl { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class AsyncUrlPayModeAdapt implements AsyncUrlPayMode { private var object:IGameObject; private var impl:AsyncUrlPayMode; public function AsyncUrlPayModeAdapt(param1:IGameObject, param2:AsyncUrlPayMode) { super(); this.object = param1; this.impl = param2; } public function requestAsyncUrl() : void { try { Model.object = this.object; this.impl.requestAsyncUrl(); } finally { Model.popObject(); } } } }
package alternativa.tanks.model.quest.common.gui { import flash.display.BitmapData; public class NoQuestBitmap { private static const BITMAP:Class = NoQuestBitmap_BITMAP; public static const DATA:BitmapData = new BITMAP().bitmapData; public function NoQuestBitmap() { super(); } } }
package alternativa.tanks.model { import alternativa.init.Main; import alternativa.model.IModel; import alternativa.model.IObjectLoadListener; import alternativa.object.ClientObject; import alternativa.osgi.service.locale.ILocaleService; import alternativa.osgi.service.mainContainer.IMainContainerService; import alternativa.service.IModelService; import alternativa.tanks.gui.ExternalLinkAlert; import alternativa.tanks.locale.constants.TextConst; import alternativa.tanks.model.user.IUserData; import alternativa.types.Long; import com.alternativaplatform.client.models.core.community.chat.ChatModelBase; import com.alternativaplatform.client.models.core.community.chat.IChatModelBase; import com.alternativaplatform.client.models.core.community.chat.types.ChatMessage; import flash.display.DisplayObjectContainer; import flash.events.TextEvent; import flash.net.URLRequest; import flash.net.navigateToURL; import forms.AlertAnswer; import forms.LobbyChat; import forms.events.AlertEvent; import forms.events.ChatFormEvent; import scpacker.networking.INetworker; import scpacker.networking.Network; import specter.utils.KeyboardBinder; public class ChatModel extends ChatModelBase implements IChatModelBase, IObjectLoadListener { private var clientObject:ClientObject; private var layer:DisplayObjectContainer; public var chatPanel:LobbyChat; private var myName:String; private var linksWhiteList:Array; private var userDataModel:IUserData; private var messageBuffer:Vector.<ChatMessage>; private var expectedData:Vector.<Long>; private var messagesBuf:Vector.<String>; private var keyBinder:KeyboardBinder; private var currentBufMsg:int = -1; private var link:String; private var alert:ExternalLinkAlert; public function ChatModel() { this.messagesBuf = new Vector.<String>(); super(); _interfaces.push(IModel); _interfaces.push(IChatModelBase); _interfaces.push(IObjectLoadListener); this.layer = Main.contentUILayer; var modelRegister:IModelService = Main.osgi.getService(IModelService) as IModelService; } public function objectLoaded(object:ClientObject) : void { this.clientObject = object; this.messageBuffer = new Vector.<ChatMessage>(); this.expectedData = new Vector.<Long>(); if(LobbyChat(Main.osgi.getService(LobbyChat)) != null) { this.cleanUsersMessages(null,""); this.chatPanel = LobbyChat(Main.osgi.getService(LobbyChat)); } else { this.chatPanel = new LobbyChat(); Main.osgi.registerService(LobbyChat,this.chatPanel); } this.keyBinder = new KeyboardBinder(this.chatPanel); this.chatPanel.selfName = this.myName; this.showPanel(); } public function objectUnloaded(object:ClientObject) : void { this.chatPanel.hide(); this.hidePanel(); this.clientObject = null; } public function userDataChanged(userId:Long) : void { var index:int = this.expectedData.indexOf(userId); if(index != -1) { this.expectedData.splice(index,1); this.checkBuffer(); } } public function initObject(clientObject:ClientObject, linksWhiteList:Array, selfName:String) : void { this.myName = selfName; this.linksWhiteList = linksWhiteList; } public function showMessages(clientObject:ClientObject, messages:Array) : void { var message:ChatMessage = null; Main.writeVarsToConsoleChannel("CHAT","showMessages"); for(var i:int = 0; i < messages.length; i++) { message = messages[i]; this.chatPanel.addMessage(message.sourceUser.uid,message.sourceUser.rankIndex,message.sourceUser.chatPermissions,this.replaceBattleLink(message.text),message.targetUser != null ? int(message.targetUser.rankIndex) : int(0),message.targetUser != null ? int(message.targetUser.chatPermissions) : int(0),message.targetUser != null ? message.targetUser.uid : "",message.system,message.sysCollor); } if(i > 25) { this.chatPanel.output.scrollDown(); } } private function replaceBattleLink(text:String) : String { return text; } private function checkBuffer() : void { var message:ChatMessage = null; Main.writeVarsToConsoleChannel("CHAT","checkBuffer"); while(this.messageBuffer.length > 0) { message = this.messageBuffer[0]; Main.writeVarsToConsoleChannel("CHAT","addMessage targetUserName: %1",message.targetUser != null ? message.targetUser.uid : ""); this.chatPanel.addMessage(message.sourceUser.uid,message.sourceUser.rankIndex,message.sourceUser.chatPermissions,message.text,message.targetUser != null ? int(message.targetUser.rankIndex) : int(0),message.targetUser != null ? int(message.targetUser.chatPermissions) : int(0),message.targetUser != null ? message.targetUser.uid : ""); this.messageBuffer.splice(0,1); } } private function onSendChatMessage(e:ChatFormEvent) : void { var message:String = this.chatPanel.inputText; if(this.messagesBuf.length == 0 || this.messagesBuf[this.messagesBuf.length - 1] != message) { this.messagesBuf.push(message); } this.currentBufMsg = -1; var reg:RegExp = /;/g; var reg2:RegExp = /~/g; if(message.search(reg) != -1) { message = message.replace(reg," "); } if(message.search(reg2) != -1) { message = message.replace(reg2," "); } this.sendMessage(this.clientObject,e.nameTo,message); } public function sendMessage(client:ClientObject, nameTo:String, message:String) : void { Network(Main.osgi.getService(INetworker)).send("lobby_chat;" + message + ";" + (nameTo != null ? "true" : "false") + ";" + (nameTo != "" ? nameTo : "NULL") + ""); } private function processBufUp(isKeyDown:Boolean) : void { if(!isKeyDown || this.messagesBuf.length == 0) { return; } this.currentBufMsg = Math.min(this.currentBufMsg + 1,this.messagesBuf.length - 1); this.chatPanel.inputText = this.messagesBuf[this.messagesBuf.length - 1 - this.currentBufMsg]; } private function processBufDown(isKeyDown:Boolean) : void { if(!isKeyDown || this.messagesBuf.length == 0) { return; } this.currentBufMsg = Math.max(this.currentBufMsg - 1,0); this.chatPanel.inputText = this.messagesBuf[this.messagesBuf.length - 1 - this.currentBufMsg]; } private function showPanel() : void { if(!this.layer.contains(this.chatPanel)) { this.layer.addChild(this.chatPanel); this.chatPanel.addEventListener(ChatFormEvent.SEND_MESSAGE,this.onSendChatMessage); this.chatPanel.addEventListener(TextEvent.LINK,this.onTextLink); this.keyBinder.bind("UP",this.processBufUp); this.keyBinder.bind("DOWN",this.processBufDown); this.keyBinder.enable(); } } private function hidePanel() : void { if(this.layer.contains(this.chatPanel)) { this.layer.removeChild(this.chatPanel); this.chatPanel.removeEventListener(ChatFormEvent.SEND_MESSAGE,this.onSendChatMessage); this.keyBinder.unbindAll(); this.keyBinder.disable(); } } public function showBattle(obj:ClientObject, id:String) : void { Network(Main.osgi.getService(INetworker)).send("lobby;get_show_battle_info;" + id); } private function onTextLink(e:TextEvent) : void { var id:String = null; var dialogsLayer:DisplayObjectContainer = (Main.osgi.getService(IMainContainerService) as IMainContainerService).dialogsLayer as DisplayObjectContainer; var localeService:ILocaleService = Main.osgi.getService(ILocaleService) as ILocaleService; var battleIdRegExp:RegExp = /#battle\d+@[\w\W]+@#\d+/gi; this.link = e.text; Main.writeVarsToConsoleChannel("CHAT","Click link: %1",this.link); if(this.link.search(battleIdRegExp) > -1) { id = this.link.split("battle")[1]; this.showBattle(this.clientObject,id); } else if(this.linksWhiteList.indexOf(this.link) == -1) { this.alert = new ExternalLinkAlert(); this.alert.showAlert(localeService.getText(TextConst.ALERT_CHAT_PROCEED_EXTERNAL_LINK) + "\n\n<font color =\'#f0f0ff\'><u><a href=\'" + this.link + "\' target=\'_blank\'>" + this.link + "</a></u></font>",[AlertAnswer.PROCEED,AlertAnswer.CANCEL]); dialogsLayer.addChild(this.alert); this.alert.addEventListener(AlertEvent.ALERT_BUTTON_PRESSED,this.onAlertButtonPressed); } } private function onAlertButtonPressed(e:AlertEvent) : void { if(e.typeButton == AlertAnswer.PROCEED) { this.alert.removeEventListener(AlertEvent.ALERT_BUTTON_PRESSED,this.onAlertButtonPressed); navigateToURL(new URLRequest(this.link),"_blank"); } } public function cleanUsersMessages(clientObject:ClientObject, uid:String) : void { if(this.chatPanel == null) { return; } this.chatPanel.cleanOutUsersMessages(uid); } public function cleanMessages(msg:String) : void { if(this.chatPanel == null) { return; } this.chatPanel.cleanOutMessages(msg); } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service { public interface IInfoLabelUpdater { function get visibleLabelsCounter() : int; function get lastAccessTime() : Number; } }
package projects.tanks.client.tanksservices.model.listener { public interface IUserNotifierModelBase { } }
package alternativa.tanks.models.tank.ultimate.dictator { import alternativa.engine3d.core.Object3D; import alternativa.engine3d.core.Vertex; import alternativa.engine3d.materials.TextureMaterial; import alternativa.engine3d.objects.Mesh; import alternativa.tanks.battle.scene3d.scene3dcontainer.Scene3DContainer; import alternativa.tanks.camera.GameCamera; import alternativa.tanks.sfx.GraphicEffect; import alternativa.tanks.utils.objectpool.Pool; import alternativa.tanks.utils.objectpool.PooledObject; import flash.display.BlendMode; import flash.geom.Vector3D; public class DictatorWaveEffect extends PooledObject implements GraphicEffect { public static const MID:Number = 30 / 60; public static const END:Number = 60 / 60; private static const SIZE:Number = 800; private static const MIN:Number = 0.3; private static const Z_OFFSET:int = 80; private static const offsetVector:Vector3D = new Vector3D(0,0,Z_OFFSET); private var mesh:Mesh = new Mesh(); private var target:Object3D; private var container:Scene3DContainer; private var time:Number; public function DictatorWaveEffect(param1:Pool) { super(param1); this.mesh = new Mesh(); var local2:Vertex = this.mesh.addVertex(-SIZE,SIZE,0,0,0); var local3:Vertex = this.mesh.addVertex(-SIZE,-SIZE,0,0,1); var local4:Vertex = this.mesh.addVertex(SIZE,-SIZE,0,1,1); var local5:Vertex = this.mesh.addVertex(SIZE,SIZE,0,1,0); this.mesh.addQuadFace(local2,local3,local4,local5); this.mesh.addQuadFace(local2,local5,local4,local3); this.mesh.calculateFacesNormals(); this.mesh.calculateBounds(); this.mesh.useLight = false; this.mesh.useShadowMap = false; this.mesh.shadowMapAlphaThreshold = 2; this.mesh.depthMapAlphaThreshold = 2; this.mesh.blendMode = BlendMode.ADD; this.mesh.softAttenuation = 80; } public function init(param1:TextureMaterial, param2:Object3D) : void { this.target = param2; this.mesh.setMaterialToAllFaces(param1); this.time = 0; } public function addedToScene(param1:Scene3DContainer) : void { this.container = param1; param1.addChild(this.mesh); } public function play(param1:int, param2:GameCamera) : Boolean { this.time += param1 / 1000; var local3:Vector3D = this.target.localToGlobal(offsetVector); this.mesh.x = local3.x; this.mesh.y = local3.y; this.mesh.z = local3.z; var local4:Number = MIN + (1 - MIN) * this.time / END; if(this.time <= MID) { this.mesh.scaleX = local4; this.mesh.scaleY = local4; this.mesh.alpha = this.time / MID; return true; } if(this.time <= END) { this.mesh.scaleX = local4; this.mesh.scaleY = local4; this.mesh.alpha = 1 - (this.time - MID) / (END - MID); return true; } return false; } public function destroy() : void { this.container.removeChild(this.mesh); this.mesh.setMaterialToAllFaces(null); recycle(); } public function kill() : void { this.mesh.alpha = 0; } } }
package alternativa.tanks.models.tank.support { import alternativa.tanks.battle.BattleService; import alternativa.tanks.services.battleinput.BattleInputLockType; import alternativa.tanks.services.battleinput.BattleInputService; import platform.client.fp10.core.type.AutoClosable; import projects.tanks.clients.flash.commons.services.layout.event.LobbyLayoutServiceEvent; import projects.tanks.clients.flash.commons.services.payment.PaymentDisplayService; import projects.tanks.clients.fp10.libraries.tanksservices.service.blur.BlurServiceEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.blur.IBlurService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.IDialogsService; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher.DialogWindowsDispatcherServiceEvent; import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher.IDialogWindowsDispatcherService; import projects.tanks.clients.fp10.libraries.tanksservices.service.layout.ILobbyLayoutService; public class DialogWindowSupport implements AutoClosable { [Inject] public static var dialogWindowsDispatcherService:IDialogWindowsDispatcherService; [Inject] public static var lobbyLayoutService:ILobbyLayoutService; [Inject] public static var dialogService:IDialogsService; [Inject] public static var blurService:IBlurService; [Inject] public static var battleInputService:BattleInputService; [Inject] public static var battleService:BattleService; [Inject] public static var paymentDisplayService:PaymentDisplayService; public function DialogWindowSupport() { super(); init(); } private static function init() : void { dialogWindowsDispatcherService.addEventListener(DialogWindowsDispatcherServiceEvent.OPEN,onOpenDialogWindow); dialogWindowsDispatcherService.addEventListener(DialogWindowsDispatcherServiceEvent.CLOSE,onCloseDialogWindow); lobbyLayoutService.addEventListener(LobbyLayoutServiceEvent.BEGIN_LAYOUT_SWITCH,onBeginLayoutSwitch); lobbyLayoutService.addEventListener(LobbyLayoutServiceEvent.END_LAYOUT_SWITCH,onEndLayoutSwitch); blurService.addEventListener(BlurServiceEvent.CLICK_OVERLAY_BATTLE_CONTENT,onClickOverlayBattleContent); if(!lobbyLayoutService.isSwitchInProgress()) { onCloseDialogWindow(); } } private static function onOpenDialogWindow(param1:DialogWindowsDispatcherServiceEvent = null) : void { battleInputService.lock(BattleInputLockType.MODAL_DIALOG); } private static function onCloseDialogWindow(param1:DialogWindowsDispatcherServiceEvent = null) : void { if(!lobbyLayoutService.isWindowOpenOverBattle() && !paymentDisplayService.isPaymentDisplayed()) { battleInputService.unlock(BattleInputLockType.MODAL_DIALOG); battleService.getBattleView().setFocus(); } } private static function onBeginLayoutSwitch(param1:LobbyLayoutServiceEvent) : void { blurService.blurBattleContent(); onOpenDialogWindow(); } private static function onEndLayoutSwitch(param1:LobbyLayoutServiceEvent) : void { if(!lobbyLayoutService.isWindowOpenOverBattle()) { blurService.unblurBattleContent(); onCloseDialogWindow(); } } private static function onClickOverlayBattleContent(param1:BlurServiceEvent) : void { lobbyLayoutService.closePopupOverBattle(); } [Obfuscation(rename="false")] public function close() : void { dialogWindowsDispatcherService.removeEventListener(DialogWindowsDispatcherServiceEvent.OPEN,onOpenDialogWindow); dialogWindowsDispatcherService.removeEventListener(DialogWindowsDispatcherServiceEvent.CLOSE,onCloseDialogWindow); lobbyLayoutService.removeEventListener(LobbyLayoutServiceEvent.BEGIN_LAYOUT_SWITCH,onBeginLayoutSwitch); lobbyLayoutService.removeEventListener(LobbyLayoutServiceEvent.END_LAYOUT_SWITCH,onEndLayoutSwitch); blurService.removeEventListener(BlurServiceEvent.CLICK_OVERLAY_BATTLE_CONTENT,onClickOverlayBattleContent); blurService.unblurBattleContent(); } } }
package projects.tanks.client.tanksservices.model.notifier.online { public interface IOnlineNotifierModelBase { function setOnline(param1:Vector.<OnlineNotifierData>) : void; } }
package alternativa.tanks.models.battlefield.gui.statistics.field { import assets.icons.BattleInfoIcons; import controls.Label; import controls.resultassets.WhiteFrame; public class PlayerScoreField extends IconField { private static const ICON_X:int = 9; private static const ICON_Y:int = 10; private static const LABEL_X:int = 9; private static const LABEL_Y:int = 6; private static const TEXT_SIZE:int = 18; private var whiteFrame:WhiteFrame; public function PlayerScoreField(iconType:int) { super(iconType); } override protected function init() : void { this.whiteFrame = new WhiteFrame(); addChild(this.whiteFrame); if(iconType > -1) { icon = new BattleInfoIcons(); icon.type = iconType; addChild(icon); icon.x = ICON_X; icon.y = ICON_Y; } label = new Label(); label.color = 16777215; addChild(label); if(icon) { label.x = icon.x + icon.width + LABEL_X; } else { label.x = LABEL_X; } label.y = LABEL_Y; label.size = TEXT_SIZE; label.bold = true; this.score = 0; } public function set score(value:int) : void { text = value.toString(); this.whiteFrame.width = label.x + label.width + 10; } } }
package alternativa.tanks.service.settings.keybinding { import flash.events.IEventDispatcher; public interface KeysBindingService extends IEventDispatcher { function isFreeKey(param1:uint) : Boolean; function setKeyBinding(param1:GameActionEnum, param2:uint, param3:int) : Boolean; function getBindingAction(param1:uint) : GameActionEnum; function getKeyBinding(param1:GameActionEnum, param2:uint) : uint; function getKeyBindings(param1:GameActionEnum) : Vector.<uint>; function restoreDefaultBindings() : void; function getKeyCodeLabel(param1:uint) : String; } }
package alternativa.tanks.loader { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.loader.LoaderWindow_backFade.png")] public class LoaderWindow_backFade extends BitmapAsset { public function LoaderWindow_backFade() { super(); } } }
package _codec.projects.tanks.client.tanksservices.model.logging { import alternativa.osgi.OSGi; import alternativa.osgi.service.clientlog.IClientLog; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.TypeCodecInfo; import projects.tanks.client.tanksservices.model.logging.UserActionsLoggerCC; public class CodecUserActionsLoggerCC implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_loggingEnabled:ICodec; public function CodecUserActionsLoggerCC() { super(); } public function init(param1:IProtocol) : void { this.codec_loggingEnabled = param1.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:UserActionsLoggerCC = new UserActionsLoggerCC(); local2.loggingEnabled = this.codec_loggingEnabled.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:UserActionsLoggerCC = UserActionsLoggerCC(param2); this.codec_loggingEnabled.encode(param1,local3.loggingEnabled); } } }
package alternativa.tanks.models.battle.commonflag { import alternativa.engine3d.core.Object3D; import alternativa.math.Vector3; import alternativa.tanks.battle.objects.tank.Tank; import projects.tanks.client.battlefield.models.battle.pointbased.ClientTeamPoint; import projects.tanks.client.battlefield.models.battle.pointbased.flag.ClientFlag; import projects.tanks.clients.flash.resources.resource.Tanks3DSResource; [ModelInterface] public interface ICommonFlagModeModel { function initFlag(param1:CommonFlag, param2:ClientFlag) : void; function createBasePoint(param1:ClientTeamPoint, param2:Tanks3DSResource) : Object3D; function getFlags() : Vector.<ClientFlag>; function getPoints() : Vector.<ClientTeamPoint>; function getLocalTank() : Tank; function onFlagTouch(param1:CommonFlag) : void; function onPickupTimeoutPassed(param1:CommonFlag) : void; function addMineProtectedZone(param1:Vector3) : void; } }
package alternativa.tanks.model.emailreminder { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class EmailReminderServiceEvents implements EmailReminderService { private var object:IGameObject; private var impl:Vector.<Object>; public function EmailReminderServiceEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function showEmailReminder() : void { var i:int = 0; var m:EmailReminderService = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = EmailReminderService(this.impl[i]); m.showEmailReminder(); i++; } } finally { Model.popObject(); } } public function showNeedEmailAlert() : void { var i:int = 0; var m:EmailReminderService = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = EmailReminderService(this.impl[i]); m.showNeedEmailAlert(); i++; } } finally { Model.popObject(); } } } }
package projects.tanks.client.partners.impl.traffic { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; public class TrafficPartnersGoalsModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:TrafficPartnersGoalsModelServer; private var client:ITrafficPartnersGoalsModelBase = ITrafficPartnersGoalsModelBase(this); private var modelId:Long = Long.getLong(1751879442,-1910987837); public function TrafficPartnersGoalsModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new TrafficPartnersGoalsModelServer(IModel(this)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package projects.tanks.client.panel.model.friends { import alternativa.osgi.OSGi; import alternativa.protocol.IProtocol; import alternativa.protocol.ProtocolBuffer; import alternativa.types.Long; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; public class FriendsLoaderModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:FriendsLoaderModelServer; private var client:IFriendsLoaderModelBase = IFriendsLoaderModelBase(this); private var modelId:Long = Long.getLong(1511905518,2017080539); private var _onUsersLoadedId:Long = Long.getLong(1043577002,1221905182); public function FriendsLoaderModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new FriendsLoaderModelServer(IModel(this)); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { switch(param1) { case this._onUsersLoadedId: this.client.onUsersLoaded(); } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] public class ItemInfoPanel_bitmapFreezeResistance extends BitmapAsset { public function ItemInfoPanel_bitmapFreezeResistance() { super(); } } }
package com.alternativaplatform.projects.tanks.client.warfare.models.tankparts.weapon.weakening { public interface IWeaponWeakeningModelBase { } }
package alternativa.tanks.model.item.skins { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class AvailableSkinsAdapt implements AvailableSkins { private var object:IGameObject; private var impl:AvailableSkins; public function AvailableSkinsAdapt(param1:IGameObject, param2:AvailableSkins) { super(); this.object = param1; this.impl = param2; } public function getSkins() : Vector.<IGameObject> { var result:Vector.<IGameObject> = null; try { Model.object = this.object; result = this.impl.getSkins(); } finally { Model.popObject(); } return result; } } }
package alternativa.tanks.battle.utils { public class QueueItem { private static var poolTop:QueueItem; public var next:QueueItem; public var data:*; public function QueueItem(param1:*) { super(); this.data = param1; } public static function create(param1:*) : QueueItem { if(poolTop == null) { return new QueueItem(param1); } var local2:QueueItem = poolTop; poolTop = poolTop.next; local2.data = param1; return local2; } public function destroy() : void { this.data = null; this.next = poolTop; poolTop = this; } } }
package projects.tanks.clients.fp10.libraries.tanksservices.service.matchmakinggroup { import alternativa.types.Long; import flash.events.EventDispatcher; public class MatchmakingGroupServiceImpl extends EventDispatcher implements MatchmakingGroupService { private var inMatchmaking:Boolean = false; private var usersInGroup:Vector.<Long> = new Vector.<Long>(); public function MatchmakingGroupServiceImpl() { super(); } public function isGroupInviteEnabled() : Boolean { return this.inMatchmaking; } public function enableGroupInvite() : void { this.inMatchmaking = true; } public function disableGroupInvite() : void { this.inMatchmaking = false; } public function inviteUserToGroup(param1:Long) : void { dispatchEvent(new MatchmakingGroupMembersEvent(MatchmakingGroupMembersEvent.INVITE,param1)); } public function removeUserFromGroup(param1:Long) : void { dispatchEvent(new MatchmakingGroupMembersEvent(MatchmakingGroupMembersEvent.REMOVE,param1)); } public function addUser(param1:Long) : void { this.usersInGroup.push(param1); } public function removeUser(param1:Long) : void { this.usersInGroup.splice(this.usersInGroup.indexOf(param1),1); } public function removeUsers() : void { this.usersInGroup = new Vector.<Long>(); } public function isUserInGroup(param1:Long) : Boolean { return this.usersInGroup.indexOf(param1) >= 0; } } }
package alternativa.tanks.view.bubbles { import alternativa.osgi.service.locale.ILocaleService; import flash.geom.Point; import projects.tanks.clients.fp10.libraries.TanksLocale; import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.HelperAlign; public class EntranceBubbleFactory { [Inject] public static var LocaleService:ILocaleService; public function EntranceBubbleFactory() { super(); } public static function passwordIsTooEasyBubble() : Bubble { return customBubble(TanksLocale.TEXT_HELP_PASSWORD_IS_TOO_SIMPLE,HelperAlign.TOP_LEFT); } public static function passwordsDoNotMatchBubble() : Bubble { return customBubble(TanksLocale.TEXT_HELP_PASSWORDS_DO_NOT_MATCH,HelperAlign.TOP_LEFT); } public static function nameIsIncorrectBubble() : Bubble { return customBubble(TanksLocale.TEXT_HELP_NAME_IS_FORBIDDEN,HelperAlign.TOP_LEFT); } public static function nameIsNotUniqueBubble() : Bubble { return customBubble(TanksLocale.TEXT_HELP_NAME_IS_NOT_UNIQUE,HelperAlign.TOP_LEFT); } public static function emailIsBusy() : Bubble { return customBubble(TanksLocale.TEXT_ERROR_EMAIL_NOT_UNIQUE,HelperAlign.TOP_LEFT); } public static function emailIsInvalidBubble() : Bubble { return customBubble(TanksLocale.TEXT_ERROR_EMAIL_INVALID,HelperAlign.TOP_LEFT); } public static function emailDomainIsForbidden() : Bubble { return customBubble(TanksLocale.TEXT_ERROR_EMAIL_DOMAIN_IS_FORBIDDEN,HelperAlign.TOP_LEFT); } public static function emailInvalidBubble() : Bubble { return customBubble(TanksLocale.TEXT_ERROR_EMAIL_INVALID,HelperAlign.TOP_LEFT); } public static function symbolIsNotAllowedBubble() : Bubble { return customBubble(TanksLocale.TEXT_HELP_SYMBOL_IS_NOT_ALLOWED,HelperAlign.TOP_LEFT); } public static function nameIsIncorrectinPartnerBubble() : Bubble { return partnerBubble(TanksLocale.TEXT_HELP_NAME_IS_FORBIDDEN,HelperAlign.BOTTOM_LEFT); } public static function nameIsNotUniqueinPartnerBubble() : Bubble { return partnerBubble(TanksLocale.TEXT_HELP_NAME_IS_NOT_UNIQUE,HelperAlign.BOTTOM_LEFT); } public static function symbolIsNotAllowedinPartnerBubble() : Bubble { return partnerWindowBubble(TanksLocale.TEXT_HELP_SYMBOL_IS_NOT_ALLOWED,HelperAlign.BOTTOM_LEFT); } public static function customBubble(param1:String, param2:int) : Bubble { var local3:Bubble = new Bubble(new Point(10,10)); local3.text = LocaleService.getText(param1); local3.arrowLehgth = 20; local3.arrowAlign = param2; return local3; } private static function partnerBubble(param1:String, param2:int) : Bubble { var local3:Bubble = new Bubble(new Point(10,5)); local3.text = LocaleService.getText(param1); local3.arrowLehgth = 20; local3.arrowAlign = param2; return local3; } private static function partnerWindowBubble(param1:String, param2:int) : Bubble { var local3:Bubble = new Bubble(new Point(360,65)); local3.text = LocaleService.getText(param1); local3.arrowLehgth = 20; local3.arrowAlign = param2; return local3; } } }
package alternativa.physics { public class BodyList { public var head:BodyListItem; public var tail:BodyListItem; public var size:int; public function BodyList() { super(); } public function append(param1:Body) : void { var local2:BodyListItem = BodyListItem.create(param1); if(this.head == null) { this.head = this.tail = local2; } else { this.tail.next = local2; local2.prev = this.tail; this.tail = local2; } ++this.size; } public function remove(param1:Body) : Boolean { var local2:BodyListItem = this.findItem(param1); if(local2 == null) { return false; } if(local2 == this.head) { if(this.size == 1) { this.head = this.tail = null; } else { this.head = local2.next; this.head.prev = null; } } else if(local2 == this.tail) { this.tail = local2.prev; this.tail.next = null; } else { local2.prev.next = local2.next; local2.next.prev = local2.prev; } local2.dispose(); --this.size; return true; } public function findItem(param1:Body) : BodyListItem { var local2:BodyListItem = this.head; while(local2 != null && local2.body != param1) { local2 = local2.next; } return local2; } } }
package alternativa.tanks.battle.events.death { import alternativa.types.Long; import projects.tanks.client.battlefield.types.DamageType; public class TankKilledEvent { public var killerId:Long; public var victimId:Long; public var damageType:DamageType; public function TankKilledEvent(param1:Long, param2:Long, param3:DamageType) { super(); this.killerId = param1; this.victimId = param2; this.damageType = param3; } } }
package alternativa.tanks.model.item.temporary { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class ITemporaryItemAdapt implements ITemporaryItem { private var object:IGameObject; private var impl:ITemporaryItem; public function ITemporaryItemAdapt(param1:IGameObject, param2:ITemporaryItem) { super(); this.object = param1; this.impl = param2; } public function getStopDate() : Date { var result:Date = null; try { Model.object = this.object; result = this.impl.getStopDate(); } finally { Model.popObject(); } return result; } public function startTiming(param1:int) : void { var remainingTime:int = param1; try { Model.object = this.object; this.impl.startTiming(remainingTime); } finally { Model.popObject(); } } public function setRemainingTime(param1:int) : void { var remainingTime:int = param1; try { Model.object = this.object; this.impl.setRemainingTime(remainingTime); } finally { Model.popObject(); } } public function getTimeRemainingInMSec() : Number { var result:Number = NaN; try { Model.object = this.object; result = Number(this.impl.getTimeRemainingInMSec()); } finally { Model.popObject(); } return result; } public function getLifeTimeInSec() : int { var result:int = 0; try { Model.object = this.object; result = int(this.impl.getLifeTimeInSec()); } finally { Model.popObject(); } return result; } public function isInfinityLifeTimeItem() : Boolean { var result:Boolean = false; try { Model.object = this.object; result = Boolean(this.impl.isInfinityLifeTimeItem()); } finally { Model.popObject(); } return result; } public function markAsInfinityLifeTimeItem() : void { try { Model.object = this.object; this.impl.markAsInfinityLifeTimeItem(); } finally { Model.popObject(); } } } }
package alternativa.tanks.gui.effects { import alternativa.tanks.service.fps.FPSService; import flash.display.DisplayObject; import flash.events.Event; import flash.events.EventDispatcher; import flash.filters.GlowFilter; public class GlowEffect extends EventDispatcher { [Inject] public static var fpsService:FPSService; private static const EFFECT_TIME:Number = 1.25; private var glowAlpha:Number; private var glowColor:int; private var glowDelta:Number; public function GlowEffect() { super(); } public static function glow(param1:DisplayObject, param2:uint) : void { var local3:GlowEffect = new GlowEffect(); local3.glow(param1,param2); } public function glow(param1:DisplayObject, param2:uint) : void { this.glowAlpha = param1.alpha; this.glowColor = param2; this.glowDelta = 1 / (EFFECT_TIME * fpsService.getFps()); param1.addEventListener(Event.ENTER_FRAME,this.glowFrame); } private function glowFrame(param1:Event) : void { var local2:DisplayObject = param1.target as DisplayObject; var local3:GlowFilter = new GlowFilter(this.glowColor,this.glowAlpha,6,6,4,1,false); local2.filters = [local3]; this.glowAlpha -= this.glowDelta; if(this.glowAlpha < 0) { local2.filters = []; local2.removeEventListener(Event.ENTER_FRAME,this.glowFrame); dispatchEvent(new Event(Event.COMPLETE)); } } } }
package alternativa.tanks.model.quest.common.gui.window { import alternativa.tanks.model.quest.common.gui.CommonQuestTab; import alternativa.tanks.model.quest.common.gui.NoQuestBitmap; import alternativa.tanks.model.quest.common.gui.greenpanel.GreenPanel; import alternativa.tanks.model.quest.common.gui.window.buttons.DailyQuestDisabledPrizeButton; import controls.TankWindowInner; import controls.base.LabelBase; import controls.timer.CountDownTimer; import controls.timer.CountDownTimerWithIcon; import flash.display.Bitmap; import flash.display.Sprite; import flash.text.TextFormatAlign; public class QuestEmptyItemView extends Sprite { private const TEXT_WHITE_COLOR:uint = 16777215; private var innerWindow:TankWindowInner; private var noQuestsLabel:LabelBase; private var greenPanel:GreenPanel; private var _width:int; private var _height:int; private var timer:CountDownTimer; public function QuestEmptyItemView(param1:int, param2:int, param3:String, param4:int) { super(); this._width = param1; this._height = param2; this.addInnerWindow(); this.addTimeLabel(param4); this.addImage(); this.addPanel(); this.addLabel(param3); this.addDisabledButton(); } private function addInnerWindow() : void { this.innerWindow = new TankWindowInner(0,0,TankWindowInner.GREEN); this.innerWindow.width = CommonQuestTab.QUEST_VIEW_WIDTH; this.innerWindow.height = CommonQuestTab.QUEST_PANEL_HEIGHT; addChild(this.innerWindow); } private function addTimeLabel(param1:int) : void { this.timer = new CountDownTimer(); this.timer.start(param1 * 1000); var local2:CountDownTimerWithIcon = new CountDownTimerWithIcon(false); local2.y = QuestWindow.INNER_MARGIN; this.innerWindow.addChild(local2); local2.start(this.timer); local2.x = QuestWindow.INNER_MARGIN; } private function addImage() : void { var local1:Bitmap = null; local1 = new Bitmap(); local1.x = int(this.innerWindow.width / 2 - CommonQuestTab.QUEST_VIEW_WIDTH / 2); local1.y = CommonQuestView.IMAGE_PADDING; local1.bitmapData = NoQuestBitmap.DATA; this.innerWindow.addChild(local1); } private function addPanel() : void { var local1:int = CommonQuestView.IMAGE_HEIGHT + CommonQuestView.IMAGE_PADDING * 2; var local2:int = CommonQuestTab.QUEST_PANEL_HEIGHT - QuestWindow.INNER_MARGIN - local1; this.greenPanel = new GreenPanel(this.width - QuestWindow.INNER_MARGIN * 2,local2); this.greenPanel.x = QuestWindow.INNER_MARGIN; this.greenPanel.y = local1; this.innerWindow.addChild(this.greenPanel); } private function addLabel(param1:String) : void { this.noQuestsLabel = new LabelBase(); this.noQuestsLabel.color = this.TEXT_WHITE_COLOR; this.noQuestsLabel.align = TextFormatAlign.CENTER; this.noQuestsLabel.wordWrap = true; this.noQuestsLabel.htmlText = param1; this.noQuestsLabel.width = this.greenPanel.width - QuestWindow.INNER_MARGIN * 2; this.noQuestsLabel.height = this.greenPanel.height; this.noQuestsLabel.x = int(this.greenPanel.width / 2 - this.noQuestsLabel.width / 2); this.noQuestsLabel.y = int((this.greenPanel.height - this.noQuestsLabel.height) / 2); this.greenPanel.addChild(this.noQuestsLabel); } private function addDisabledButton() : void { var local1:DailyQuestDisabledPrizeButton = new DailyQuestDisabledPrizeButton(); local1.y = CommonQuestTab.QUEST_PANEL_HEIGHT + QuestWindow.INNER_MARGIN; local1.x = int(CommonQuestTab.QUEST_VIEW_WIDTH / 2 - local1.width / 2); local1.enabled = false; addChild(local1); } override public function get width() : Number { return this._width; } override public function get height() : Number { return this._height; } public function destroy() : void { if(this.timer != null) { this.timer.destroy(); this.timer = null; } } } }
package alternativa.gfx { public namespace alternativagfx = "http://alternativaplatform.com/en/alternativagfx"; }
package projects.tanks.client.battlefield.models.tankparts.weapon.freeze { import alternativa.osgi.OSGi; import alternativa.protocol.ICodec; import alternativa.protocol.IProtocol; import alternativa.protocol.OptionalMap; import alternativa.protocol.ProtocolBuffer; import alternativa.protocol.info.CollectionCodecInfo; import alternativa.protocol.info.TypeCodecInfo; import alternativa.types.Long; import alternativa.types.Short; import flash.utils.ByteArray; import platform.client.fp10.core.model.IModel; import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.network.command.SpaceCommand; import platform.client.fp10.core.type.IGameObject; import platform.client.fp10.core.type.ISpace; import projects.tanks.client.battlefield.types.Vector3d; public class FreezeModelServer { private var protocol:IProtocol; private var protocolBuffer:ProtocolBuffer; private var _dryShotId:Long = Long.getLong(1697804013,-1800289703); private var _dryShot_timeCodec:ICodec; private var _hitCommandId:Long = Long.getLong(1744513692,181388452); private var _hitCommand_timeCodec:ICodec; private var _hitCommand_targetsCodec:ICodec; private var _hitCommand_incarnationsCodec:ICodec; private var _hitCommand_positionsCodec:ICodec; private var _hitCommand_hitPointsWorldCodec:ICodec; private var _startFireCommandId:Long = Long.getLong(430590662,-88054305); private var _startFireCommand_timeCodec:ICodec; private var _stopFireCommandId:Long = Long.getLong(625603135,-1078364647); private var _stopFireCommand_timeCodec:ICodec; private var model:IModel; public function FreezeModelServer(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._dryShot_timeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); this._hitCommand_timeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); this._hitCommand_targetsCodec = this.protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(IGameObject,false),false,1)); this._hitCommand_incarnationsCodec = this.protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Short,false),false,1)); this._hitCommand_positionsCodec = this.protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Vector3d,false),false,1)); this._hitCommand_hitPointsWorldCodec = this.protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Vector3d,false),false,1)); this._startFireCommand_timeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); this._stopFireCommand_timeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false)); } public function dryShot(param1:int) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._dryShot_timeCodec.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._dryShotId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } public function hitCommand(param1:int, param2:Vector.<IGameObject>, param3:Vector.<int>, param4:Vector.<Vector3d>, param5:Vector.<Vector3d>) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._hitCommand_timeCodec.encode(this.protocolBuffer,param1); this._hitCommand_targetsCodec.encode(this.protocolBuffer,param2); this._hitCommand_incarnationsCodec.encode(this.protocolBuffer,param3); this._hitCommand_positionsCodec.encode(this.protocolBuffer,param4); this._hitCommand_hitPointsWorldCodec.encode(this.protocolBuffer,param5); ByteArray(this.protocolBuffer.writer).position = 0; if(Model.object == null) { throw new Error("Execute method without model context."); } var local6:SpaceCommand = new SpaceCommand(Model.object.id,this._hitCommandId,this.protocolBuffer); var local7:IGameObject = Model.object; var local8:ISpace = local7.space; local8.commandSender.sendCommand(local6); this.protocolBuffer.optionalMap.clear(); } public function startFireCommand(param1:int) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._startFireCommand_timeCodec.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._startFireCommandId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } public function stopFireCommand(param1:int) : void { ByteArray(this.protocolBuffer.writer).position = 0; ByteArray(this.protocolBuffer.writer).length = 0; this._stopFireCommand_timeCodec.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._stopFireCommandId,this.protocolBuffer); var local3:IGameObject = Model.object; var local4:ISpace = local3.space; local4.commandSender.sendCommand(local2); this.protocolBuffer.optionalMap.clear(); } } }
package projects.tanks.client.garage.models.item.droppablegold { 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 DroppableGoldItemModelBase extends Model { private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol)); protected var server:DroppableGoldItemModelServer; private var client:IDroppableGoldItemModelBase = IDroppableGoldItemModelBase(this); private var modelId:Long = Long.getLong(1027765745,-1102593126); public function DroppableGoldItemModelBase() { super(); this.initCodecs(); } protected function initCodecs() : void { this.server = new DroppableGoldItemModelServer(IModel(this)); var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry)); local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(DroppableGoldItemCC,false))); } protected function getInitParam() : DroppableGoldItemCC { return DroppableGoldItemCC(initParams[Model.object]); } override public function invoke(param1:Long, param2:ProtocolBuffer) : void { var local3:* = param1; switch(false ? 0 : 0) { } } override public function get id() : Long { return this.modelId; } } }
package alternativa.tanks.gui { import mx.core.BitmapAsset; [ExcludeClass] [Embed(source="/_assets/alternativa.tanks.gui.ItemInfoPanelBitmaps_cooldownRadiusClass.png")] public class ItemInfoPanelBitmaps_cooldownRadiusClass extends BitmapAsset { public function ItemInfoPanelBitmaps_cooldownRadiusClass() { super(); } } }
package projects.tanks.client.panel.model.shop.clientlayoutkit { public class CCBundleText { private var _color:int; private var _fontPercentSize:int; private var _positionPercentX:int; private var _positionPercentY:int; private var _text:String; public function CCBundleText(param1:int = 0, param2:int = 0, param3:int = 0, param4:int = 0, param5:String = null) { super(); this._color = param1; this._fontPercentSize = param2; this._positionPercentX = param3; this._positionPercentY = param4; this._text = param5; } public function get color() : int { return this._color; } public function set color(param1:int) : void { this._color = param1; } public function get fontPercentSize() : int { return this._fontPercentSize; } public function set fontPercentSize(param1:int) : void { this._fontPercentSize = param1; } public function get positionPercentX() : int { return this._positionPercentX; } public function set positionPercentX(param1:int) : void { this._positionPercentX = param1; } public function get positionPercentY() : int { return this._positionPercentY; } public function set positionPercentY(param1:int) : void { this._positionPercentY = param1; } public function get text() : String { return this._text; } public function set text(param1:String) : void { this._text = param1; } public function toString() : String { var local1:String = "CCBundleText ["; local1 += "color = " + this.color + " "; local1 += "fontPercentSize = " + this.fontPercentSize + " "; local1 += "positionPercentX = " + this.positionPercentX + " "; local1 += "positionPercentY = " + this.positionPercentY + " "; local1 += "text = " + this.text + " "; return local1 + "]"; } } }
package _codec.platform.core.general.resource.types.imageframe { 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 alternativa.types.Short; import platform.core.general.resource.types.imageframe.ResourceImageFrameParams; public class CodecResourceImageFrameParams implements ICodec { public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); private var codec_fps:ICodec; private var codec_frameHeight:ICodec; private var codec_frameWidth:ICodec; private var codec_imageHeight:ICodec; private var codec_imageWidth:ICodec; private var codec_numFrames:ICodec; public function CodecResourceImageFrameParams() { super(); } public function init(param1:IProtocol) : void { this.codec_fps = param1.getCodec(new TypeCodecInfo(Float,false)); this.codec_frameHeight = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_frameWidth = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_imageHeight = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_imageWidth = param1.getCodec(new TypeCodecInfo(int,false)); this.codec_numFrames = param1.getCodec(new TypeCodecInfo(Short,false)); } public function decode(param1:ProtocolBuffer) : Object { var local2:ResourceImageFrameParams = new ResourceImageFrameParams(); local2.fps = this.codec_fps.decode(param1) as Number; local2.frameHeight = this.codec_frameHeight.decode(param1) as int; local2.frameWidth = this.codec_frameWidth.decode(param1) as int; local2.imageHeight = this.codec_imageHeight.decode(param1) as int; local2.imageWidth = this.codec_imageWidth.decode(param1) as int; local2.numFrames = this.codec_numFrames.decode(param1) as int; return local2; } public function encode(param1:ProtocolBuffer, param2:Object) : void { if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:ResourceImageFrameParams = ResourceImageFrameParams(param2); this.codec_fps.encode(param1,local3.fps); this.codec_frameHeight.encode(param1,local3.frameHeight); this.codec_frameWidth.encode(param1,local3.frameWidth); this.codec_imageHeight.encode(param1,local3.imageHeight); this.codec_imageWidth.encode(param1,local3.imageWidth); this.codec_numFrames.encode(param1,local3.numFrames); } } }
package alternativa.tanks.model.payment.shop.specialkit { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class SinglePayModeEvents implements SinglePayMode { private var object:IGameObject; private var impl:Vector.<Object>; public function SinglePayModeEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function getPayMode() : IGameObject { var result:IGameObject = null; var i:int = 0; var m:SinglePayMode = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = SinglePayMode(this.impl[i]); result = m.getPayMode(); i++; } } finally { Model.popObject(); } return result; } } }
package _codec.projects.tanks.client.battlefield.models.battle.pointbased.flag { 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.flag.ClientFlagFlyingData; public class VectorCodecClientFlagFlyingDataLevel1 implements ICodec { private var elementCodec:ICodec; private var optionalElement:Boolean; public function VectorCodecClientFlagFlyingDataLevel1(param1:Boolean) { super(); this.optionalElement = param1; } public function init(param1:IProtocol) : void { this.elementCodec = param1.getCodec(new TypeCodecInfo(ClientFlagFlyingData,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.<ClientFlagFlyingData> = new Vector.<ClientFlagFlyingData>(local2,true); var local4:int = 0; while(local4 < local2) { local3[local4] = ClientFlagFlyingData(this.elementCodec.decode(param1)); local4++; } return local3; } public function encode(param1:ProtocolBuffer, param2:Object) : void { var local4:ClientFlagFlyingData = null; if(param2 == null) { throw new Error("Object is null. Use @ProtocolOptional annotation."); } var local3:Vector.<ClientFlagFlyingData> = Vector.<ClientFlagFlyingData>(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.upgrade { import alternativa.osgi.service.locale.ILocaleService; import alternativa.tanks.model.item.upgradable.UpgradableItemParams; import base.DiscreteSprite; import controls.TankWindowInner; import controls.labels.MouseDisabledLabel; import controls.timer.CountDownTimer; import controls.timer.CountDownTimerWithIcon; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.BlendMode; import flash.display.Graphics; import flash.display.Shape; import flash.geom.Matrix; import projects.tanks.clients.fp10.libraries.TanksLocale; import projects.tanks.clients.fp10.libraries.tanksservices.utils.removeDisplayObject; public class UpgradeProgressForm extends DiscreteSprite { [Inject] public static var localeService:ILocaleService; private static const leftProgressResource:Class = UpgradeProgressForm_leftProgressResource; private static const centerProgressResource:Class = UpgradeProgressForm_centerProgressResource; private var params:UpgradableItemParams; private var progressBarBackground:TankWindowInner; private var progressBar:Bitmap = new Bitmap(); private var leftProgressPart:Bitmap; private var centerProgressPart:Bitmap; private var upgradeProgressValue:MouseDisabledLabel = new MouseDisabledLabel(); private var timerLabel:CountDownTimerWithIcon = new CountDownTimerWithIcon(); private var _width:Number; public function UpgradeProgressForm(param1:UpgradableItemParams) { super(); this.params = param1; this._width = 400; this.progressBarBackground = new TankWindowInner(this._width,50,TankWindowInner.GREEN); addChild(this.progressBarBackground); this.progressBar.x = 1; this.progressBar.y = 1; this.progressBar.blendMode = BlendMode.OVERLAY; addChild(this.progressBar); this.leftProgressPart = new Bitmap(new leftProgressResource().bitmapData); this.centerProgressPart = new Bitmap(new centerProgressResource().bitmapData); this.upgradeProgressValue.x = 8; addChild(this.upgradeProgressValue); addChild(this.timerLabel); } internal function update() : void { var local4:Shape = null; var local5:Graphics = null; var local6:Matrix = null; var local1:Number = this._width - 2; var local2:int = Math.round(local1 * this.params.getLevel() / this.params.getLevelsCount()); if(local2 == 0) { this.progressBar.visible = false; } else { this.progressBar.visible = true; this.progressBar.bitmapData = new BitmapData(local2,this.leftProgressPart.height,true,0); if(local2 > 0) { this.progressBar.bitmapData.draw(this.leftProgressPart); } if(local2 > this.leftProgressPart.width) { this.centerProgressPart.width = Math.min(local2 - this.leftProgressPart.width,local1 - this.leftProgressPart.width * 2); local4 = new Shape(); local5 = local4.graphics; local5.beginBitmapFill(this.centerProgressPart.bitmapData); local5.drawRect(this.leftProgressPart.width,0,this.centerProgressPart.width,this.centerProgressPart.height); local5.endFill(); this.progressBar.bitmapData.draw(local4); } if(local2 == local1) { local6 = new Matrix(-1,0,0,1,local1,0); this.progressBar.bitmapData.draw(this.leftProgressPart,local6); } } var local3:String = localeService.getText(TanksLocale.TEXT_PROGRESS); this.upgradeProgressValue.text = local3 + ": " + this.params.getLevel() + " / " + this.params.getLevelsCount(); this.upgradeProgressValue.y = 23 - (this.upgradeProgressValue.height >> 1); this.timerLabel.y = 23 - (this.timerLabel.height >> 1); if(this.params.isFullUpgraded()) { removeDisplayObject(this.timerLabel); } if(!this.params.isUpgrading()) { this.timerLabel.setTime(this.params.getTimeInSeconds()); } else { this.timerLabel.start(this.params.timer); } this.align(); } override public function set width(param1:Number) : void { this._width = int(param1); this.progressBarBackground.width = param1; this.update(); } private function align() : void { this.timerLabel.setRightX(this.progressBarBackground.width - 8); } public function setTimer(param1:CountDownTimer) : void { this.timerLabel.start(param1); } } }
package alternativa.tanks.model.item.premium { import platform.client.fp10.core.model.impl.Model; import platform.client.fp10.core.type.IGameObject; public class PremiumItemEvents implements PremiumItem { private var object:IGameObject; private var impl:Vector.<Object>; public function PremiumItemEvents(param1:IGameObject, param2:Vector.<Object>) { super(); this.object = param1; this.impl = param2; } public function isPremiumItem() : Boolean { var result:Boolean = false; var i:int = 0; var m:PremiumItem = null; try { Model.object = this.object; i = 0; while(i < this.impl.length) { m = PremiumItem(this.impl[i]); result = Boolean(m.isPremiumItem()); i++; } } finally { Model.popObject(); } return result; } } }
package { import flash.display.Sprite; import flash.system.Security; [ExcludeClass] public class _2e53c076f335fabd50d0c7fa564016f7d6d01024a7efdc5e77520f30fbf10b39_flash_display_Sprite extends Sprite { public function _2e53c076f335fabd50d0c7fa564016f7d6d01024a7efdc5e77520f30fbf10b39_flash_display_Sprite() { super(); } public function allowDomainInRSL(... rest) : void { Security.allowDomain.apply(null,rest); } public function allowInsecureDomainInRSL(... rest) : void { Security.allowInsecureDomain.apply(null,rest); } } }
package alternativa.gfx.agal { public class SamplerType extends SamplerOption { private static const SAMPLER_TYPE_SHIFT:uint = 8; public static const RGBA:SamplerType = new SamplerType(0); public static const DXT1:SamplerType = new SamplerType(1); public static const DXT5:SamplerType = new SamplerType(2); public static const VIDEO:SamplerType = new SamplerType(3); public function SamplerType(param1:int) { super(param1,SAMPLER_TYPE_SHIFT); } } }
package controls.scroller.gray { import mx.core.BitmapAsset; [ExcludeClass] public class ScrollSkinGray_track extends BitmapAsset { public function ScrollSkinGray_track() { super(); } } }
package alternativa.tanks.models.battle.gui.userlabel { import alternativa.tanks.models.battle.gui.gui.statistics.table.StatisticsData; import filters.Filters; public class StatisticsListUserLabel extends BattleChatUserLabel { public function StatisticsListUserLabel(param1:StatisticsData) { super(param1.id,false); setUid(param1.uid); setRank(param1.rank); } [Obfuscation(rename="false")] override protected function getShadowFilters() : Array { return null; } [Obfuscation(rename="false")] override protected function getShadowFiltersOnOver() : Array { return Filters.SHADOW_FILTERS; } [Obfuscation(rename="false")] override protected function createAdditionalIcons() : void { } [Obfuscation(rename="false")] override protected function getAdditionalIconsWidth() : Number { return 0; } } }
package scpacker.gui { import mx.core.BitmapAsset; [ExcludeClass] public class GTanksI_coldload15 extends BitmapAsset { public function GTanksI_coldload15() { super(); } } }
package alternativa.tanks.model.item.kit { import platform.client.fp10.core.resource.types.ImageResource; import projects.tanks.client.garage.models.item.kit.KitItem; [ModelInterface] public interface GarageKit { function getImage() : ImageResource; function getPrice() : int; function getPriceWithoutDiscount() : int; function getPriceAlreadyBought() : int; function getPriceYouSave() : int; function getItems() : Vector.<KitItem>; function canBuy() : Boolean; } }
package alternativa.tanks.models.battle.assault { import alternativa.math.Vector3; import alternativa.tanks.models.battle.gui.markers.PointIndicatorStateProvider; public class IndicatorStateAdapter implements PointIndicatorStateProvider { private var position:Vector3; private var zAscention:Number; public function IndicatorStateAdapter(param1:Vector3, param2:Number = 350) { super(); this.position = param1; this.zAscention = param2; } public function getIndicatorPosition() : Vector3 { return this.position; } public function isIndicatorActive(param1:Vector3 = null) : Boolean { return true; } public function zOffset() : Number { return this.zAscention; } } }
package projects.tanks.client.garage.models.item.upgradeable.types { import projects.tanks.client.commons.types.ItemGarageProperty; public class GaragePropertyParams { private var _precision:int; private var _properties:Vector.<PropertyData>; private var _property:ItemGarageProperty; private var _visibleInInfo:Boolean; public function GaragePropertyParams(param1:int = 0, param2:Vector.<PropertyData> = null, param3:ItemGarageProperty = null, param4:Boolean = false) { super(); this._precision = param1; this._properties = param2; this._property = param3; this._visibleInInfo = param4; } public function get precision() : int { return this._precision; } public function set precision(param1:int) : void { this._precision = param1; } public function get properties() : Vector.<PropertyData> { return this._properties; } public function set properties(param1:Vector.<PropertyData>) : void { this._properties = param1; } public function get property() : ItemGarageProperty { return this._property; } public function set property(param1:ItemGarageProperty) : void { this._property = param1; } public function get visibleInInfo() : Boolean { return this._visibleInInfo; } public function set visibleInInfo(param1:Boolean) : void { this._visibleInInfo = param1; } public function toString() : String { var local1:String = "GaragePropertyParams ["; local1 += "precision = " + this.precision + " "; local1 += "properties = " + this.properties + " "; local1 += "property = " + this.property + " "; local1 += "visibleInInfo = " + this.visibleInInfo + " "; return local1 + "]"; } } }