code
stringlengths 57
237k
|
|---|
package projects.tanks.client.entrance.model.entrance.loginbyhash {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.OptionalMap;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import flash.utils.ByteArray;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.network.command.SpaceCommand;
import platform.client.fp10.core.type.IGameObject;
import platform.client.fp10.core.type.ISpace;
public class LoginByHashModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var _loginByHashId:Long = Long.getLong(1858366980,-248573911);
private var _loginByHash_hashCodec:ICodec;
private var _loginBySingleUseHashId:Long = Long.getLong(1965965606,772378898);
private var _loginBySingleUseHash_hashCodec:ICodec;
private var model:IModel;
public function LoginByHashModelServer(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._loginByHash_hashCodec = this.protocol.getCodec(new TypeCodecInfo(String,false));
this._loginBySingleUseHash_hashCodec = this.protocol.getCodec(new TypeCodecInfo(String,false));
}
public function loginByHash(param1:String) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._loginByHash_hashCodec.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._loginByHashId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
public function loginBySingleUseHash(param1:String) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._loginBySingleUseHash_hashCodec.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._loginBySingleUseHashId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
}
}
|
package _codec.projects.tanks.client.clans.clan.clanflag {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.clans.clan.clanflag.ClanFlag;
public class VectorCodecClanFlagLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecClanFlagLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ClanFlag,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.<ClanFlag> = new Vector.<ClanFlag>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ClanFlag(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ClanFlag = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ClanFlag> = Vector.<ClanFlag>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package controls.saleicons {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.saleicons.SaleIcons_saleRedLabelClass.png")]
public class SaleIcons_saleRedLabelClass extends BitmapAsset {
public function SaleIcons_saleRedLabelClass() {
super();
}
}
}
|
package alternativa.tanks.gui {
import alternativa.osgi.service.locale.ILocaleService;
import controls.TankWindowInner;
import controls.base.DefaultButtonBase;
import controls.base.LabelBase;
import flash.display.Bitmap;
import flash.events.MouseEvent;
import flash.geom.Point;
import flash.text.TextFormatAlign;
import forms.TankWindowWithHeader;
import platform.client.fp10.core.resource.types.LocalizedImageResource;
import projects.tanks.clients.fp10.libraries.TanksLocale;
import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.gui.DialogWindow;
public class EntranceAlertWindow extends DialogWindow {
[Inject]
public static var localeService:ILocaleService;
private var window:TankWindowWithHeader;
private var inner:TankWindowInner;
private var messageTopLabel:LabelBase;
private var messageBottomLabel:LabelBase;
private var closeButton:DefaultButtonBase;
private const windowMargin:int = 12;
private const margin:int = 9;
private const buttonSize:Point = new Point(104,33);
private var windowSize:Point;
public function EntranceAlertWindow(param1:LocalizedImageResource, param2:String, param3:String) {
super();
this.windowSize = new Point(430,300);
this.window = TankWindowWithHeader.createWindow(TanksLocale.TEXT_HEADER_ATTENTION,this.windowSize.x,this.windowSize.y);
addChild(this.window);
this.inner = new TankWindowInner(0,0,TankWindowInner.GREEN);
addChild(this.inner);
this.inner.x = this.windowMargin;
this.inner.y = this.windowMargin;
this.messageTopLabel = new LabelBase();
this.messageTopLabel.align = TextFormatAlign.CENTER;
this.messageTopLabel.wordWrap = true;
this.messageTopLabel.multiline = true;
this.messageTopLabel.size = 18;
this.messageTopLabel.bold = true;
this.messageTopLabel.text = param2;
this.messageTopLabel.color = 5898034;
this.messageTopLabel.x = this.windowMargin * 2;
this.messageTopLabel.width = this.windowSize.x - this.windowMargin * 4;
addChild(this.messageTopLabel);
this.messageBottomLabel = new LabelBase();
this.messageBottomLabel.align = TextFormatAlign.LEFT;
this.messageBottomLabel.wordWrap = true;
this.messageBottomLabel.multiline = true;
this.messageBottomLabel.size = 12;
this.messageBottomLabel.color = 5898034;
this.messageBottomLabel.htmlText = param3;
this.messageBottomLabel.x = this.windowMargin * 2;
this.messageBottomLabel.y = this.messageTopLabel.y + this.messageTopLabel.height;
this.messageBottomLabel.width = this.windowSize.x - this.windowMargin * 4;
addChild(this.messageBottomLabel);
this.closeButton = new DefaultButtonBase();
addChild(this.closeButton);
this.closeButton.label = localeService.getText(TanksLocale.TEXT_FREE_BONUSES_WINDOW_BUTTON_CLOSE_TEXT);
this.closeButton.y = this.window.height - this.margin - 35;
this.closeButton.x = this.window.width - this.closeButton.width >> 1;
this.closeButton.addEventListener(MouseEvent.CLICK,this.onCloseButtonClick);
this.inner.width = this.window.width - this.windowMargin * 2;
this.addImage(param1);
dialogService.enqueueDialog(this);
}
private function addImage(param1:LocalizedImageResource) : void {
var local2:Bitmap = new Bitmap(param1.data);
this.windowSize.x = Math.max(this.messageBottomLabel.width,Math.max(local2.width,this.messageTopLabel.width)) + this.windowMargin * 2 + this.margin * 2;
local2.x = (this.windowSize.x - local2.width) / 2;
local2.y = this.inner.y + this.windowMargin;
addChild(local2);
this.messageTopLabel.y = local2.y + local2.height + 10;
this.messageBottomLabel.y = this.messageTopLabel.y + this.messageTopLabel.height;
this.messageTopLabel.x = (this.windowSize.x - this.messageTopLabel.width) / 2;
this.messageBottomLabel.x = (this.windowSize.x - this.messageBottomLabel.width) / 2;
this.messageTopLabel.width = this.windowSize.x - this.windowMargin * 4;
this.inner.width = this.windowSize.x - this.windowMargin * 2;
this.inner.height = local2.height + this.messageTopLabel.height + this.messageBottomLabel.height + this.closeButton.height + this.margin - 1;
this.closeButton.x = this.windowSize.x - this.buttonSize.x >> 1;
this.closeButton.y = this.inner.y + this.inner.height + this.margin - 2;
this.windowSize.y = this.closeButton.y + this.closeButton.height + 2 * this.margin;
this.window.height = this.windowSize.y;
this.window.width = this.windowSize.x;
}
private function onCloseButtonClick(param1:MouseEvent = null) : void {
this.closeButton.removeEventListener(MouseEvent.CLICK,this.onCloseButtonClick);
dialogService.removeDialog(this);
}
override protected function cancelKeyPressed() : void {
this.onCloseButtonClick();
}
override protected function confirmationKeyPressed() : void {
this.onCloseButtonClick();
}
}
}
|
package alternativa.tanks.gui.friends.button.friends {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.friends.button.friends.RequestCountIndicator_centerIconClass.png")]
public class RequestCountIndicator_centerIconClass extends BitmapAsset {
public function RequestCountIndicator_centerIconClass() {
super();
}
}
}
|
package alternativa.tanks.gui.buycrystals {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.buycrystals.BuyCrystalsAlert_bitmapClass.png")]
public class BuyCrystalsAlert_bitmapClass extends BitmapAsset {
public function BuyCrystalsAlert_bitmapClass() {
super();
}
}
}
|
package alternativa.tanks.models.weapon.common {
import alternativa.osgi.service.display.IDisplay;
import alternativa.tanks.battle.objects.tank.Tank;
import alternativa.tanks.battle.objects.tank.TankControlLockBits;
import alternativa.tanks.models.tank.ITankModel;
import alternativa.tanks.models.tank.IWeaponController;
import alternativa.tanks.models.weapon.AllGlobalGunParams;
import alternativa.tanks.models.weapon.WeaponConst;
import flash.events.Event;
import flash.utils.getTimer;
import platform.client.fp10.core.model.ObjectLoadListener;
import platform.client.fp10.core.model.ObjectUnloadListener;
import platform.client.fp10.core.resource.types.SoundResource;
import projects.tanks.client.battlefield.models.tankparts.weapon.common.IWeaponCommonModelBase;
import projects.tanks.client.battlefield.models.tankparts.weapon.common.WeaponCommonCC;
import projects.tanks.client.battlefield.models.tankparts.weapon.common.WeaponCommonModelBase;
[ModelInfo]
public class WeaponCommonModel extends WeaponCommonModelBase implements IWeaponCommonModelBase, IWeaponCommonModel, WeaponSound, ObjectLoadListener, ObjectUnloadListener {
[Inject]
public static var display:IDisplay;
private static var allGunParams:AllGlobalGunParams = new AllGlobalGunParams();
public function WeaponCommonModel() {
super();
}
public function objectLoaded() : void {
putData(Boolean,getInitParam().buffed);
putData(int,0);
}
public function objectUnloaded() : void {
display.stage.removeEventListener(Event.ENTER_FRAME,getFunctionWrapper(this.onEnterFrame));
}
public function setBuffed(param1:Boolean, param2:Number) : void {
putData(Boolean,param1);
var local3:Number = param2 * WeaponConst.BASE_IMPACT_FORCE.getNumber();
WeaponCommonData(getData(WeaponCommonData)).setRecoilForce(local3);
WeaponBuffListener(object.event(WeaponBuffListener)).weaponBuffStateChanged(this.getTank().user,param1,local3);
if(!param1 && getInitParam().buffShotCooldownMs > 0) {
this.getWeaponController().lockWeapon(TankControlLockBits.DEBUFF,false);
putData(int,getTimer() + getInitParam().buffShotCooldownMs);
}
}
private function getWeaponController() : IWeaponController {
var local1:ITankModel = ITankModel(this.getTank().user.adapt(ITankModel));
local1.getWeaponController();
return IWeaponController(local1.getWeaponController());
}
public function getCommonData() : WeaponCommonData {
var local2:WeaponCommonCC = null;
var local1:WeaponCommonData = WeaponCommonData(getData(WeaponCommonData));
if(local1 == null) {
local2 = getInitParam();
local1 = new WeaponCommonData(local2.turretRotationSpeed,local2.turretRotationAcceleration,local2.impactForce * WeaponConst.BASE_IMPACT_FORCE.getNumber(),local2.kickback * WeaponConst.BASE_IMPACT_FORCE.getNumber());
putData(WeaponCommonData,local1);
}
return local1;
}
public function getTurretRotationSound() : SoundResource {
return getInitParam().turretRotationSound;
}
public function storeTank(param1:Tank) : void {
putData(Tank,param1);
if(getInitParam().buffShotCooldownMs > 0 && Boolean(ITankModel(param1.user.adapt(ITankModel)).isLocal())) {
display.stage.addEventListener(Event.ENTER_FRAME,getFunctionWrapper(this.onEnterFrame));
}
}
public function getTank() : Tank {
return Tank(getData(Tank));
}
public function getGunParams(param1:int = 0) : AllGlobalGunParams {
this.getTank().getAllGunParams(allGunParams,param1);
return allGunParams;
}
private function onEnterFrame(param1:Event) : void {
var local2:int = int(getData(int));
if(local2 != 0 && local2 < getTimer()) {
this.getWeaponController().unlockWeapon(TankControlLockBits.DEBUFF);
putData(int,0);
}
}
}
}
|
package projects.tanks.clients.flash.resources.resource.loaders {
import alternativa.engine3d.loaders.events.LoaderEvent;
import alternativa.engine3d.loaders.events.LoaderProgressEvent;
import flash.events.ErrorEvent;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;
import flash.events.SecurityErrorEvent;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
import flash.utils.ByteArray;
import platform.client.fp10.core.resource.SafeURLLoader;
[Event(name="loaderProgress",type="alternativa.engine3d.loaders.events.LoaderProgressEvent")]
[Event(name="partComplete",type="alternativa.engine3d.loaders.events.LoaderEvent")]
[Event(name="partOpen",type="alternativa.engine3d.loaders.events.LoaderEvent")]
[Event(name="ioError",type="flash.events.IOErrorEvent")]
[Event(name="complete",type="flash.events.Event")]
[Event(name="open",type="flash.events.Event")]
public class TextureLoader extends EventDispatcher {
private static const IDLE:int = 0;
private static const LOADING_DIFFUSE_MAP:int = 1;
private static const LOADING_OPACITY_MAP:int = 2;
public var diffuseData:ByteArray;
public var opacityData:ByteArray;
private var state:int = 0;
private var urlLoader:SafeURLLoader;
private var diffuseTextureUrl:String;
private var opacityTextureUrl:String;
public function TextureLoader() {
super();
}
public function load(param1:String, param2:String = null) : void {
this.unload();
this.diffuseTextureUrl = param1;
this.opacityTextureUrl = param2;
this.loadPart(LOADING_DIFFUSE_MAP,param1);
}
public function reload() : void {
switch(this.state) {
case LOADING_DIFFUSE_MAP:
this.destroyLoader();
this.loadPart(LOADING_DIFFUSE_MAP,this.diffuseTextureUrl);
break;
case LOADING_OPACITY_MAP:
this.destroyLoader();
this.loadPart(LOADING_OPACITY_MAP,this.opacityTextureUrl);
break;
default:
throw new Error("Wrong loader state: " + this.state);
}
}
public function close() : void {
if(this.state == IDLE) {
return;
}
this.state = IDLE;
this.urlLoader.close();
this.cleanup();
}
public function unload() : void {
this.close();
this.diffuseData = null;
this.opacityData = null;
}
private function cleanup() : void {
this.destroyLoader();
this.diffuseTextureUrl = null;
this.opacityTextureUrl = null;
}
private function loadPart(param1:int, param2:String) : void {
this.state = param1;
this.createLoader();
this.urlLoader.load(new URLRequest(param2));
}
private function onPartLoadingOpen(param1:Event) : void {
if(this.diffuseData == null && hasEventListener(Event.OPEN)) {
dispatchEvent(new Event(Event.OPEN));
}
if(hasEventListener(LoaderEvent.PART_OPEN)) {
dispatchEvent(new LoaderEvent(LoaderEvent.PART_OPEN,2,this.state == LOADING_DIFFUSE_MAP ? 0 : 1));
}
}
private function onPartLoadingProgress(param1:ProgressEvent) : void {
var local2:int = 0;
var local3:Number = NaN;
if(hasEventListener(LoaderProgressEvent.LOADER_PROGRESS)) {
local2 = this.state == LOADING_DIFFUSE_MAP ? 0 : 1;
local3 = 0.5 * (local2 + param1.bytesLoaded / param1.bytesTotal);
dispatchEvent(new LoaderProgressEvent(LoaderProgressEvent.LOADER_PROGRESS,2,local2,local3,param1.bytesLoaded,param1.bytesTotal));
}
}
private function onPartLoadingComplete(param1:Event) : void {
switch(this.state) {
case LOADING_DIFFUSE_MAP:
this.diffuseData = this.urlLoader.data;
this.destroyLoader();
this.dispatchPartComplete(0);
if(Boolean(this.opacityTextureUrl)) {
this.loadPart(LOADING_OPACITY_MAP,this.opacityTextureUrl);
} else {
this.complete();
}
break;
case LOADING_OPACITY_MAP:
this.opacityData = this.urlLoader.data;
this.destroyLoader();
this.dispatchPartComplete(1);
this.complete();
}
}
private function dispatchPartComplete(param1:int) : void {
if(hasEventListener(LoaderEvent.PART_COMPLETE)) {
dispatchEvent(new LoaderEvent(LoaderEvent.PART_COMPLETE,2,param1));
}
}
private function onLoadingError(param1:ErrorEvent) : void {
this.state = IDLE;
this.cleanup();
dispatchEvent(param1);
}
private function complete() : void {
this.state = IDLE;
this.cleanup();
if(hasEventListener(Event.COMPLETE)) {
dispatchEvent(new Event(Event.COMPLETE));
}
}
private function createLoader() : void {
this.urlLoader = new SafeURLLoader();
this.urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
this.urlLoader.addEventListener(Event.OPEN,this.onPartLoadingOpen);
this.urlLoader.addEventListener(ProgressEvent.PROGRESS,this.onPartLoadingProgress);
this.urlLoader.addEventListener(Event.COMPLETE,this.onPartLoadingComplete);
this.urlLoader.addEventListener(IOErrorEvent.IO_ERROR,this.onLoadingError);
this.urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,this.onLoadingError);
}
private function destroyLoader() : void {
if(this.urlLoader != null) {
this.urlLoader.close();
this.urlLoader.removeEventListener(Event.OPEN,this.onPartLoadingOpen);
this.urlLoader.removeEventListener(ProgressEvent.PROGRESS,this.onPartLoadingProgress);
this.urlLoader.removeEventListener(Event.COMPLETE,this.onPartLoadingComplete);
this.urlLoader.removeEventListener(IOErrorEvent.IO_ERROR,this.onLoadingError);
this.urlLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR,this.onLoadingError);
this.urlLoader = null;
}
}
}
}
|
package forms.buttons
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class MainPanelFriendsButton_iconN extends BitmapAsset
{
public function MainPanelFriendsButton_iconN()
{
super();
}
}
}
|
package projects.tanks.client.battlefield.models.drone {
public interface IDroneSFXModelBase {
}
}
|
package alternativa.tanks.models.battlefield.gui.statistics.field
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class DOMScoreIndicator_icon_ extends BitmapAsset
{
public function DOMScoreIndicator_icon_()
{
super();
}
}
}
|
package projects.tanks.client.garage.models.item.kit {
public interface IGarageKitModelBase {
}
}
|
package projects.tanks.clients.fp10.libraries.tanksservices.service.user {
import alternativa.types.Long;
import flash.events.EventDispatcher;
import flash.utils.Dictionary;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.clients.fp10.libraries.tanksservices.model.listener.UserNotifier;
import projects.tanks.clients.fp10.libraries.tanksservices.model.notifier.UserInfoConsumer;
import projects.tanks.clients.fp10.libraries.tanksservices.service.TimeOutTruncateConsumers;
import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.PremiumService;
public class UserInfoService extends EventDispatcher implements IUserInfoService {
[Inject]
public static var premiumService:PremiumService;
private var consumers:Dictionary;
private var unsubscribedConsumers:Dictionary;
private var serviceObject:IGameObject;
private var truncateConsumers:TimeOutTruncateConsumers;
private var stateOffer:Boolean;
public function UserInfoService() {
super();
}
public function init(param1:IGameObject) : void {
this.serviceObject = param1;
this.truncateConsumers = new TimeOutTruncateConsumers();
this.truncateConsumers.consumers = this.consumers;
this.truncateConsumers.truncateFunction = this.unSubscribe;
this.consumers = new Dictionary();
this.unsubscribedConsumers = new Dictionary();
}
public function getOrCreateUpdater(param1:Long) : IUserInfoLabelUpdater {
var local2:UserInfoLabelUpdater = null;
if(this.hasConsumer(param1)) {
local2 = this.consumers[param1];
} else {
local2 = new UserInfoLabelUpdater();
if(param1 in this.unsubscribedConsumers) {
this.subscribe(param1,local2);
} else {
this.refresh(param1,local2);
}
}
local2.updateLastAccessTime();
return local2;
}
public function forciblySubscribe(param1:Long) : void {
var local2:UserInfoLabelUpdater = null;
if(!this.hasConsumer(param1)) {
local2 = new UserInfoLabelUpdater();
this.subscribe(param1,local2);
local2.updateLastAccessTime();
}
}
private function subscribe(param1:Long, param2:UserInfoConsumer) : void {
delete this.unsubscribedConsumers[param1];
this.consumers[param1] = param2;
UserNotifier(this.serviceObject.adapt(UserNotifier)).subcribe(param1,param2);
}
private function refresh(param1:Long, param2:UserInfoConsumer) : void {
this.consumers[param1] = param2;
UserNotifier(this.serviceObject.adapt(UserNotifier)).refresh(param1,param2);
}
private function unSubscribe(param1:Vector.<Long>) : void {
var local2:Long = null;
for each(local2 in param1) {
this.unsubscribedConsumers[local2] = true;
delete this.consumers[local2];
}
UserNotifier(this.serviceObject.adapt(UserNotifier)).unsubcribe(param1);
}
public function hasConsumer(param1:Long) : Boolean {
return param1 in this.consumers;
}
public function getConsumer(param1:Long) : UserInfoConsumer {
return this.consumers[param1];
}
public function unload() : void {
this.truncateConsumers.stop();
this.truncateConsumers = null;
this.consumers = null;
this.unsubscribedConsumers = null;
this.serviceObject = null;
this.stateOffer = false;
}
public function getCurrentUserId() : Long {
return UserNotifier(this.serviceObject.adapt(UserNotifier)).getCurrentUserId();
}
public function isOffer() : Boolean {
return this.stateOffer;
}
public function setOffer(param1:Boolean) : void {
this.stateOffer = param1;
}
public function hasPremium(param1:Long) : Boolean {
return this.getCurrentUserId() == param1 && Boolean(premiumService.hasPremium());
}
}
}
|
package _codec.projects.tanks.client.battleselect.model.matchmaking.group.notify {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battleselect.model.matchmaking.group.notify.MatchmakingGroupCC;
public class VectorCodecMatchmakingGroupCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecMatchmakingGroupCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(MatchmakingGroupCC,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.<MatchmakingGroupCC> = new Vector.<MatchmakingGroupCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = MatchmakingGroupCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:MatchmakingGroupCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<MatchmakingGroupCC> = Vector.<MatchmakingGroupCC>(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.battlefield
{
import flash.display.Sprite;
import flash.filters.GlowFilter;
public class BattlefieldMessages extends Sprite
{
private var maxMessages:int;
private var fontSize:int;
private var verticalInterval:int;
private var numMessages:int;
private var messages:Vector.<Message>;
private var numPooledMessages:int;
private var messagePool:Vector.<Message>;
public function BattlefieldMessages(maxMessages:int, fontSize:int, verticalInterval:int)
{
this.messages = new Vector.<Message>();
this.messagePool = new Vector.<Message>();
super();
this.maxMessages = maxMessages;
this.fontSize = fontSize;
this.verticalInterval = verticalInterval;
filters = [new GlowFilter(0,1,6,6)];
}
public function addMessage(color:uint, text:String) : void
{
if(this.numMessages == this.maxMessages)
{
this.removeMessage(0);
}
var message:Message = this.messages[this.numMessages] = this.createMessage();
addChild(message.label);
message.label.color = color;
message.label.text = text;
message.label.x = -0.5 * message.label.width;
message.label.y = this.verticalInterval * this.numMessages;
++this.numMessages;
}
public function update(deltaMsec:uint) : void
{
var message:Message = null;
for(var i:int = 0; i < this.numMessages; i++)
{
message = this.messages[i];
if(message.isDead)
{
this.removeMessage(i);
i--;
}
else
{
message.update(deltaMsec);
}
}
}
private function removeMessage(index:int) : void
{
var message:Message = this.messages[index];
this.destroyMessage(message);
for(var i:int = index + 1; i < this.numMessages; i++)
{
message = this.messages[int(i - 1)] = this.messages[i];
message.label.y -= this.verticalInterval;
}
--this.numMessages;
}
private function destroyMessage(message:Message) : void
{
removeChild(message.label);
var _loc2_:* = this.numPooledMessages++;
this.messagePool[_loc2_] = message;
}
private function createMessage() : Message
{
var message:Message = null;
if(this.numPooledMessages == 0)
{
message = new Message(this.fontSize);
}
else
{
message = this.messagePool[--this.numPooledMessages];
this.messagePool[this.numPooledMessages] = null;
}
message.init();
return message;
}
}
}
import controls.Label;
class Message
{
private static const FLASH_TIME:int = 100;
private static const FADE_TIME:int = 300;
private static const LIFE_TIME1:int = 1500;
private static const LIFE_TIME2:int = 10000;
private static const ALPHA:Number = 0.6;
public var label:Label;
public var isDead:Boolean;
private var states:Vector.<IMessageState>;
private var currentStateIndex:int;
function Message(fontSize:int)
{
this.label = new Label();
super();
this.states = Vector.<IMessageState>([new StateAlpha(this,FLASH_TIME,0,1),new StateNormal(this,LIFE_TIME1),new StateAlpha(this,FADE_TIME,1,ALPHA),new StateNormal(this,LIFE_TIME2),new StateAlpha(this,FADE_TIME,ALPHA,0)]);
this.label.size = fontSize;
this.label.bold = true;
}
public function init() : void
{
this.isDead = false;
this.currentStateIndex = 0;
this.states[0].init();
}
public function update(timeDelta:int) : void
{
if(this.isDead)
{
return;
}
var state:IMessageState = this.states[this.currentStateIndex];
if(!state.update(timeDelta))
{
if(++this.currentStateIndex == this.states.length)
{
this.isDead = true;
}
else
{
this.states[this.currentStateIndex].init();
}
}
}
}
interface IMessageState
{
function init() : void;
function update(param1:int) : Boolean;
}
class StateNormal implements IMessageState
{
private var message:Message;
private var lifeTime:int;
private var timeLeft:int;
function StateNormal(message:Message, lifeTime:int)
{
super();
this.message = message;
this.lifeTime = lifeTime;
}
public function init() : void
{
this.timeLeft = this.lifeTime;
}
public function update(timeDelta:int) : Boolean
{
if(this.timeLeft <= 0)
{
return false;
}
this.timeLeft -= timeDelta;
return true;
}
}
class StateAlpha implements IMessageState
{
private var message:Message;
private var transitionTime:int;
private var timeLeft:int;
private var alpha1:Number;
private var alpha2:Number;
private var deltaAlpha:Number;
function StateAlpha(message:Message, transitionTime:int, alpha1:Number, alpha2:Number)
{
super();
this.message = message;
this.transitionTime = transitionTime;
this.alpha1 = alpha1;
this.alpha2 = alpha2;
this.deltaAlpha = alpha2 - alpha1;
}
public function init() : void
{
this.message.label.alpha = this.alpha1;
this.timeLeft = this.transitionTime;
}
public function update(timeDelta:int) : Boolean
{
if(this.timeLeft <= 0)
{
return false;
}
this.timeLeft -= timeDelta;
if(this.timeLeft < 0)
{
this.timeLeft = 0;
}
this.message.label.alpha = this.alpha2 - this.deltaAlpha * this.timeLeft / this.transitionTime;
return true;
}
}
|
package forms.battlelist
{
import alternativa.init.Main;
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.locale.constants.TextConst;
import alternativa.tanks.model.BattleSelectModel;
import assets.icons.BattleInfoIcons;
import assets.icons.InputCheckIcon;
import controls.DefaultButton;
import controls.Label;
import controls.TankInput;
import controls.TankWindowInner;
import controls.rangicons.RangIconSmall;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.PixelSnapping;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
import flash.filters.GlowFilter;
import flash.geom.Rectangle;
import flash.system.System;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
import flash.utils.Timer;
import flash.utils.getTimer;
import forms.RegisterForm;
import projects.tanks.client.battleselect.IBattleSelectModelBase;
public class BattleInfo extends Sprite
{
private static const _domIcon:Class = BattleInfo__domIcon;
private static var waitIcon:InputCheckIcon = new InputCheckIcon();
private var _width:int;
private var _height:int;
private var iconBar:Sprite;
private var iconAB:BattleInfoIcons;
private var iconFF:BattleInfoIcons;
private var iconTL:BattleInfoIcons;
private var iconKL:BattleInfoIcons;
private var iconCTF:BattleInfoIcons;
private var iconPayd:BattleInfoIcons;
private var iconInventory:BattleInfoIcons;
private var iconDOM:Bitmap;
private var killLimitLabel:Label;
private var timeLimitLabel:Label;
public var countDown:int = 0;
private var countDownTimer:Timer;
private var _timeLimit:int = 0;
private var rangBar:Sprite;
private var bg:TankWindowInner;
private var nameTF:Label;
private var clanCapture:Label;
private var preview:Sprite;
private var rect:Rectangle;
private var urlString:TankInput;
private var urlCopyButton:DefaultButton;
private var dontStartCountDown:Boolean = false;
private var copyLinkText:String;
private var setupTime:int;
private var spectatorBtn:DefaultButton;
public var killlimit:int = 0;
public function BattleInfo()
{
this.iconBar = new Sprite();
this.iconAB = new BattleInfoIcons();
this.iconFF = new BattleInfoIcons();
this.iconTL = new BattleInfoIcons();
this.iconKL = new BattleInfoIcons();
this.iconCTF = new BattleInfoIcons();
this.iconPayd = new BattleInfoIcons();
this.iconInventory = new BattleInfoIcons();
this.iconDOM = new Bitmap(new _domIcon().bitmapData,PixelSnapping.NEVER,true);
this.killLimitLabel = new Label();
this.timeLimitLabel = new Label();
this.rangBar = new Sprite();
this.bg = new TankWindowInner(100,100,TankWindowInner.TRANSPARENT);
this.nameTF = new Label();
this.clanCapture = new Label();
this.preview = new Sprite();
this.rect = new Rectangle(0,0,400,300);
this.spectatorBtn = new DefaultButton();
super();
var localeService:ILocaleService = Main.osgi.getService(ILocaleService) as ILocaleService;
var filt:Array = [new GlowFilter(0,1,6,6)];
addChild(this.preview);
addChild(this.bg);
addChild(this.nameTF);
addChild(this.clanCapture);
addChild(this.rangBar);
addChild(this.iconBar);
addChild(this.spectatorBtn);
this.spectatorBtn.addEventListener(MouseEvent.CLICK,function(e:MouseEvent):void
{
var battleSelect:BattleSelectModel = Main.osgi.getService(IBattleSelectModelBase) as BattleSelectModel;
if(battleSelect == null)
{
return;
}
battleSelect.enterInBattleSpectator();
});
this.hideSpectatorButton();
this.iconAB.type = BattleInfoIcons.AUTO_BALANCE;
this.iconFF.type = BattleInfoIcons.FRIENDLY_FIRE;
this.iconTL.type = BattleInfoIcons.TIME_LIMIT;
this.iconKL.type = BattleInfoIcons.KILL_LIMIT;
this.iconCTF.type = BattleInfoIcons.CTF;
this.iconPayd.type = BattleInfoIcons.PAYD;
this.iconInventory.type = BattleInfoIcons.INVENTORY;
this.nameTF.size = 18;
this.nameTF.height = 25;
this.nameTF.thickness = 0;
this.nameTF.autoSize = TextFieldAutoSize.NONE;
this.clanCapture.size = 13;
this.clanCapture.height = 50;
this.clanCapture.autoSize = TextFieldAutoSize.NONE;
this.spectatorBtn.label = "Spectator";
this.nameTF.filters = filt;
this.clanCapture.filters = filt;
this.iconBar.filters = filt;
this.preview.scrollRect = this.rect;
this.copyLinkText = localeService.getText(TextConst.BATTLEINFO_PANEL_COPY_LINK_TEXT);
}
public function setPreview(img:BitmapData) : void
{
if(this.preview.numChildren > 0)
{
this.preview.removeChildAt(0);
}
if(img == null)
{
this.preview.addChild(waitIcon);
waitIcon.gotoAndStop(RegisterForm.CALLSIGN_STATE_PROGRESS);
waitIcon.x = int(375 - waitIcon.width / 2);
waitIcon.y = int(250 - waitIcon.height / 2);
this.preview.scrollRect = this.rect;
Main.writeToConsole("");
Main.writeVarsToConsoleChannel("BATTLE INFO","BattleInfo: no Preview");
}
else
{
this.preview.addChild(new Bitmap(img));
this.preview.scrollRect = this.rect;
Main.writeVarsToConsoleChannel("BATTLE INFO","Preview width=%1 height=%2",img.width,img.height);
}
this.width = this._width;
this.height = this._height;
}
public function setUp(gameName:String, clanName:String, minRang:int, maxRang:int, killLimit:int = 0, timeLimit:int = 0, currentTime:int = 0, img:BitmapData = null, IO:Boolean = false, AB:Boolean = false, FF:Boolean = false, url:String = "", CTF:Boolean = false, DOM:Boolean = false, payd:Boolean = false, inventory:Boolean = false) : void
{
var rang:RangIconSmall = null;
var i:int = 0;
var iD:Bitmap = null;
var col:int = 0;
var row:int = 0;
var curWidth:int = 0;
this.countDown = 0;
while(this.rangBar.numChildren > 0)
{
this.rangBar.removeChildAt(0);
}
if(minRang != 0 && maxRang != 0)
{
for(i = maxRang; i >= minRang; i--)
{
rang = new RangIconSmall(i);
rang.x = col * 13;
rang.y = row * 14;
this.rangBar.addChild(rang);
col--;
if(col < -15)
{
row--;
col = 0;
}
}
}
if(url.length > 0 && this.urlString == null)
{
this.urlString = new TankInput();
this.urlCopyButton = new DefaultButton();
addChild(this.urlString);
addChild(this.urlCopyButton);
}
if(url.length > 0)
{
this.urlString.value = url;
this.urlString.textField.type = TextFieldType.DYNAMIC;
this.urlCopyButton.width = this.copyLinkText.length * 7;
this.urlCopyButton.label = this.copyLinkText;
this.urlCopyButton.addEventListener(MouseEvent.CLICK,this.copyURL);
}
this.nameTF.text = gameName;
if(clanName != "")
{
this.clanCapture.text = "Картой владеет клан:\n\"" + clanName + "\"";
}
else
{
this.clanCapture.text = "";
}
while(this.iconBar.numChildren > 0)
{
this.iconBar.removeChildAt(0);
}
if(this.countDownTimer != null)
{
this.countDownTimer.stop();
this.countDownTimer.removeEventListener(TimerEvent.TIMER,this.showCountDownTick);
}
if(timeLimit > 0)
{
this.setupTime = getTimer();
this.iconBar.addChild(this.iconTL);
this.iconBar.addChild(this.timeLimitLabel);
this.timeLimitLabel.x = 18;
this.timeLimitLabel.y = -2;
this.timeLimitLabel.autoSize = TextFieldAutoSize.NONE;
this.timeLimitLabel.size = 14;
this.timeLimitLabel.width = 50;
this.timeLimitLabel.height = 20;
this.countDown = currentTime > 0 ? int(currentTime) : int(timeLimit);
this.dontStartCountDown = currentTime == 0;
this._timeLimit = this.countDown;
this.showCountDown();
curWidth = int(this.iconBar.width);
}
if(killLimit > 0)
{
if(DOM)
{
iD = new Bitmap(new _domIcon().bitmapData);
this.iconBar.addChild(iD);
this.iconBar.addChild(this.killLimitLabel);
this.killLimitLabel.autoSize = TextFieldAutoSize.NONE;
this.killLimitLabel.size = 14;
this.killLimitLabel.width = 40;
this.killLimitLabel.height = 20;
iD.x = curWidth;
this.killLimitLabel.x = iD.x + 16;
this.killLimitLabel.y = -2;
this.killLimitLabel.text = String(killLimit);
curWidth = int(this.iconBar.width);
}
else
{
this.iconBar.addChild(this.iconKL);
this.iconBar.addChild(this.killLimitLabel);
this.iconKL.type = !!CTF ? int(BattleInfoIcons.CTF) : int(BattleInfoIcons.KILL_LIMIT);
this.killLimitLabel.autoSize = TextFieldAutoSize.NONE;
this.killLimitLabel.size = 14;
this.killLimitLabel.width = 40;
this.killLimitLabel.height = 20;
this.iconKL.x = curWidth;
this.killLimitLabel.x = this.iconKL.x + 16;
this.killLimitLabel.y = -2;
this.killLimitLabel.text = String(killLimit);
curWidth = int(this.iconBar.width);
}
}
this.killlimit = killLimit;
if(FF)
{
this.iconBar.addChild(this.iconFF);
this.iconFF.x = curWidth;
curWidth = int(this.iconBar.width);
}
if(AB)
{
this.iconBar.addChild(this.iconAB);
this.iconAB.x = curWidth + 12;
curWidth = int(this.iconBar.width);
}
if(CTF)
{
this.iconBar.addChild(this.iconCTF);
this.iconCTF.x = curWidth + 12;
curWidth = int(this.iconBar.width);
}
if(DOM)
{
this.iconBar.addChild(this.iconDOM);
this.iconDOM.x = curWidth + 12;
curWidth = int(this.iconBar.width);
}
if(payd)
{
this.iconBar.addChild(this.iconPayd);
this.iconPayd.x = curWidth + 12;
curWidth = int(this.iconBar.width);
}
if(inventory)
{
this.iconBar.addChild(this.iconInventory);
this.iconInventory.x = curWidth + 12;
curWidth = int(this.iconBar.width);
}
this.width = this._width;
this.height = this._height;
}
private function showCountDown() : void
{
this.countDownTimer = new Timer(500);
this.countDownTimer.addEventListener(TimerEvent.TIMER,this.showCountDownTick);
this.countDownTimer.start();
this.showCountDownTick();
}
public function restartCountDown() : void
{
this.countDown = this._timeLimit;
this.setupTime = getTimer();
if(this.countDownTimer != null)
{
this.countDownTimer.stop();
this.countDownTimer.removeEventListener(TimerEvent.TIMER,this.showCountDownTick);
}
this.showCountDown();
}
public function stopCountDown() : void
{
this.countDown = 0;
this.showCountDownTick();
if(this.countDownTimer != null)
{
this.countDownTimer.stop();
this.countDownTimer.removeEventListener(TimerEvent.TIMER,this.showCountDownTick);
}
}
private function showCountDownTick(e:TimerEvent = null) : void
{
var str:String = null;
var currentTimer:int = getTimer();
var min:int = int(this.countDown / 60);
var sec:int = this.countDown - min * 60;
str = String(min) + ":" + (sec > 9 ? String(sec) : "0" + String(sec));
this.timeLimitLabel.text = str;
if((this.countDown < 0 || this.dontStartCountDown) && this.countDownTimer != null)
{
this.countDownTimer.removeEventListener(TimerEvent.TIMER,this.showCountDownTick);
this.countDownTimer.stop();
this.dontStartCountDown = false;
}
this.countDown = this._timeLimit - (currentTimer - this.setupTime) / 1000;
dispatchEvent(new Event(Event.CHANGE));
}
private function copyURL(e:MouseEvent) : void
{
System.setClipboard(this.urlString.value);
}
override public function set width(value:Number) : void
{
this._width = int(value);
this.bg.width = this._width;
this.preview.x = 1;
this.rect.x = int(375 - this._width / 2);
this.rect.width = this._width - 2;
this.preview.scrollRect = this.rect;
this.rangBar.x = this._width - 23;
this.nameTF.x = 10;
this.nameTF.width = this._width - 20;
this.clanCapture.x = 10;
this.clanCapture.width = this._width - 20;
this.iconBar.x = 12;
this.spectatorBtn.x = value - this.spectatorBtn.width - 10;
if(this.urlString != null)
{
this.urlString.width = this._width - this.urlCopyButton.width - 3;
this.urlCopyButton.x = this._width - this.urlCopyButton.width;
}
}
override public function set height(value:Number) : void
{
this._height = int(value);
this.bg.height = this.urlString != null ? Number(this._height - this.urlString.height - 3) : Number(this._height);
this.preview.y = 1;
this.rect.y = int(250 - this._height / 2);
this.rect.height = this.bg.height - 2;
this.preview.scrollRect = this.rect;
this.rangBar.y = this.bg.height - 23;
this.nameTF.y = 10;
this.clanCapture.y = this.bg.height - 45;
this.iconBar.y = 40;
this.spectatorBtn.y = 10;
if(this.urlString != null)
{
this.urlString.y = this._height - this.urlCopyButton.height;
this.urlCopyButton.y = this._height - this.urlCopyButton.height;
}
}
override public function get width() : Number
{
return this._width;
}
override public function get height() : Number
{
return this._height;
}
public function showSpectatorButton() : void
{
this.spectatorBtn.visible = true;
}
public function hideSpectatorButton() : void
{
this.spectatorBtn.visible = false;
}
}
}
|
package alternativa.engine3d.materials {
import alternativa.engine3d.alternativa3d;
import alternativa.engine3d.core.Camera3D;
import alternativa.engine3d.core.Canvas;
import alternativa.engine3d.core.Face;
import alternativa.engine3d.core.Light3D;
import alternativa.engine3d.core.Vertex;
import alternativa.engine3d.core.Wrapper;
import alternativa.engine3d.lights.AmbientLight;
import alternativa.engine3d.lights.DirectionalLight;
import alternativa.engine3d.objects.Sprite3D;
import flash.display.BitmapData;
import flash.filters.ColorMatrixFilter;
import flash.geom.ColorTransform;
import flash.geom.Matrix3D;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.utils.Dictionary;
use namespace alternativa3d;
public class NormalMapMaterial extends TextureMaterial {
alternativa3d static const multiplier:ColorTransform = new ColorTransform(2,2,2);
alternativa3d static const lights:Vector.<Light3D> = new Vector.<Light3D>();
alternativa3d static const layers:Vector.<Canvas> = new Vector.<Canvas>();
alternativa3d static const lightmapFilter:ColorMatrixFilter = new ColorMatrixFilter();
alternativa3d static const lightmapMatrix:Array = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0];
alternativa3d static const lightmapAmbient:ColorTransform = new ColorTransform();
alternativa3d var lightmapsMap:Dictionary = new Dictionary();
alternativa3d var lightmapPoint:Point = new Point();
alternativa3d var lightmapRect:Rectangle;
alternativa3d var weights:Dictionary = new Dictionary();
alternativa3d var _normalMap:BitmapData;
public var defaultLightWeight:Number = 1;
public var multipliedDiffuse:Boolean = false;
public function NormalMapMaterial(param1:BitmapData = null, param2:BitmapData = null, param3:Boolean = false, param4:Boolean = true, param5:int = 0, param6:Number = 1) {
super(param1,param3,param4,param5,param6);
this.normalMap = param2;
}
public static function transformNormalMap(param1:BitmapData, param2:Matrix3D) : BitmapData {
var local3:BitmapData = param1.width * param1.height > 16777215 ? param1.clone() : new BitmapData(param1.width,param1.height,param1.transparent);
var local4:Vector.<Number> = param2.rawData;
alternativa3d::lightmapMatrix[0] = local4[0];
alternativa3d::lightmapMatrix[1] = local4[4];
alternativa3d::lightmapMatrix[2] = local4[8];
alternativa3d::lightmapMatrix[4] = (1 - local4[0] - local4[4] - local4[8]) * 127.5;
alternativa3d::lightmapMatrix[5] = local4[1];
alternativa3d::lightmapMatrix[6] = local4[5];
alternativa3d::lightmapMatrix[7] = local4[9];
alternativa3d::lightmapMatrix[9] = (1 - local4[1] - local4[5] - local4[9]) * 127.5;
alternativa3d::lightmapMatrix[10] = local4[2];
alternativa3d::lightmapMatrix[11] = local4[6];
alternativa3d::lightmapMatrix[12] = local4[10];
alternativa3d::lightmapMatrix[14] = (1 - local4[2] - local4[6] - local4[10]) * 127.5;
alternativa3d::lightmapFilter.matrix = alternativa3d::lightmapMatrix;
local3.applyFilter(param1,param1.rect,new Point(),alternativa3d::lightmapFilter);
return local3;
}
public function setLightWeight(param1:Light3D, param2:Number) : void {
this.alternativa3d::weights[param1] = param2;
}
public function getLightWeight(param1:Light3D) : Number {
var local2:Number = Number(this.alternativa3d::weights[param1]);
return local2 == local2 ? local2 : this.defaultLightWeight;
}
public function setLightWeightToDefault(param1:Light3D) : void {
delete this.alternativa3d::weights[param1];
}
public function setAllLightWeightsToDefault() : void {
var local1:* = undefined;
for(local1 in this.alternativa3d::weights) {
delete this.alternativa3d::weights[local1];
}
}
public function get normalMap() : BitmapData {
return this.alternativa3d::_normalMap;
}
public function set normalMap(param1:BitmapData) : void {
var local2:* = undefined;
var local3:BitmapData = null;
if(param1 != this.alternativa3d::_normalMap) {
this.alternativa3d::_normalMap = param1;
for(local2 in this.alternativa3d::lightmapsMap) {
for each(local3 in this.alternativa3d::lightmapsMap[local2]) {
local3.dispose();
}
delete this.alternativa3d::lightmapsMap[local2];
}
if(param1 != null) {
this.alternativa3d::lightmapRect = this.alternativa3d::_normalMap.rect;
}
}
}
override public function clone() : Material {
var local1:NormalMapMaterial = new NormalMapMaterial(alternativa3d::_texture,this.alternativa3d::_normalMap,repeat,smooth,alternativa3d::_mipMapping,resolution);
local1.clonePropertiesFrom(this);
return local1;
}
override protected function clonePropertiesFrom(param1:Material) : void {
super.clonePropertiesFrom(param1);
var local2:NormalMapMaterial = param1 as NormalMapMaterial;
this.defaultLightWeight = local2.defaultLightWeight;
this.multipliedDiffuse = local2.multipliedDiffuse;
}
override alternativa3d function draw(param1:Camera3D, param2:Canvas, param3:Face, param4:Number) : void {
var local5:Face = null;
var local6:Face = null;
var local7:Face = null;
var local8:Wrapper = null;
var local9:Vertex = null;
var local10:int = 0;
var local11:int = 0;
var local12:int = 0;
var local13:Number = NaN;
var local14:Number = NaN;
var local15:int = 0;
var local16:int = 0;
var local17:Number = NaN;
var local18:Number = NaN;
var local19:Number = NaN;
var local20:Number = NaN;
var local21:BitmapData = null;
var local27:int = 0;
var local28:int = 0;
var local29:int = 0;
var local30:int = 0;
var local34:Light3D = null;
var local35:Canvas = null;
var local42:Number = NaN;
var local43:DirectionalLight = null;
var local44:Number = NaN;
var local45:Number = NaN;
var local46:Number = NaN;
var local47:Number = NaN;
var local48:Number = NaN;
var local49:Number = NaN;
var local50:Number = NaN;
var local51:int = 0;
var local52:Number = NaN;
var local53:Number = NaN;
var local54:Number = NaN;
var local55:int = 0;
var local56:int = 0;
var local57:Wrapper = null;
var local58:Number = NaN;
var local59:Number = NaN;
var local60:Wrapper = null;
var local61:Number = NaN;
var local62:Number = NaN;
var local63:Number = NaN;
var local64:Boolean = false;
var local65:Boolean = false;
var local66:Number = NaN;
var local67:Face = null;
var local68:Wrapper = null;
var local69:Wrapper = null;
var local70:Wrapper = null;
var local71:Vertex = null;
var local72:Vertex = null;
var local73:Vertex = null;
var local22:Number = Number(param1.alternativa3d::viewSizeX);
var local23:Number = Number(param1.alternativa3d::viewSizeY);
var local24:Vector.<Number> = alternativa3d::drawVertices;
var local25:Vector.<Number> = alternativa3d::drawUVTs;
var local26:Vector.<int> = alternativa3d::drawIndices;
var local31:int = int(param1.alternativa3d::numDraws);
var local32:int = 0;
var local33:int = 0;
if(alternativa3d::_texture == null || this.alternativa3d::_normalMap == null) {
alternativa3d::clearLinks(param3);
return;
}
var local36:Number = 0;
var local37:Number = 0;
var local38:Number = 0;
var local39:int = 0;
local15 = 0;
while(local15 < param1.alternativa3d::lightsLength) {
local34 = param1.alternativa3d::lights[local15];
if(local34.intensity > 0) {
local42 = Number(this.alternativa3d::weights[local34]);
if(local42 != local42) {
local42 = this.defaultLightWeight;
}
if(local42 > 0) {
local34.alternativa3d::calculateObjectMatrix(param2.alternativa3d::object);
if(local34.alternativa3d::checkBoundsIntersection(param2.alternativa3d::object)) {
if(local34 is AmbientLight) {
local36 += (local34.color >> 16 & 0xFF) * local34.intensity * local42;
local37 += (local34.color >> 8 & 0xFF) * local34.intensity * local42;
local38 += (local34.color & 0xFF) * local34.intensity * local42;
} else if(local34 is DirectionalLight) {
local34.alternativa3d::localWeight = local42;
alternativa3d::lights[local39] = local34;
local39++;
}
}
}
}
local15++;
}
var local40:Vector.<BitmapData> = this.alternativa3d::lightmapsMap[param2.alternativa3d::object];
if(local40 == null) {
local40 = new Vector.<BitmapData>();
this.alternativa3d::lightmapsMap[param2.alternativa3d::object] = local40;
}
local15 = int(local40.length);
while(local15 < local39) {
local40[local15] = new BitmapData(this.alternativa3d::lightmapRect.width,this.alternativa3d::lightmapRect.height,this.alternativa3d::_normalMap.transparent);
local15++;
}
alternativa3d::lightmapAmbient.redOffset = local36;
alternativa3d::lightmapAmbient.greenOffset = local37;
alternativa3d::lightmapAmbient.blueOffset = local38;
var local41:Canvas = param2.alternativa3d::getChildCanvas(local39 <= 1,local39 > 1,param2.alternativa3d::object,1,"multiply",local39 == 1 && (local36 > 0 || local37 > 0 || local38 > 0) ? alternativa3d::lightmapAmbient : null);
if(local39 <= 1) {
alternativa3d::layers[0] = local41;
if(this.alternativa3d::_normalMap.transparent) {
alternativa3d::lightmapMatrix[0] = 0;
alternativa3d::lightmapMatrix[1] = 0;
alternativa3d::lightmapMatrix[2] = 0;
alternativa3d::lightmapMatrix[4] = local36 > 255 ? 255 : local36;
alternativa3d::lightmapMatrix[5] = 0;
alternativa3d::lightmapMatrix[6] = 0;
alternativa3d::lightmapMatrix[7] = 0;
alternativa3d::lightmapMatrix[9] = local37 > 255 ? 255 : local37;
alternativa3d::lightmapMatrix[10] = 0;
alternativa3d::lightmapMatrix[11] = 0;
alternativa3d::lightmapMatrix[12] = 0;
alternativa3d::lightmapMatrix[14] = local38 > 255 ? 255 : local38;
if(local40.length == 0) {
local40[0] = new BitmapData(this.alternativa3d::lightmapRect.width,this.alternativa3d::lightmapRect.height,this.alternativa3d::_normalMap.transparent);
}
alternativa3d::lightmapFilter.matrix = alternativa3d::lightmapMatrix;
(local40[0] as BitmapData).applyFilter(this.alternativa3d::_normalMap,this.alternativa3d::lightmapRect,this.alternativa3d::lightmapPoint,alternativa3d::lightmapFilter);
}
}
local15 = 0;
while(local15 < local39) {
local43 = alternativa3d::lights[local15] as DirectionalLight;
local44 = (local43.color >> 16 & 0xFF) * local43.intensity * local43.alternativa3d::localWeight / 255;
local45 = (local43.color >> 8 & 0xFF) * local43.intensity * local43.alternativa3d::localWeight / 255;
local46 = (local43.color & 0xFF) * local43.intensity * local43.alternativa3d::localWeight / 255;
local47 = Number(local43.alternativa3d::omc);
local48 = Number(local43.alternativa3d::omg);
local49 = Number(local43.alternativa3d::omk);
local50 = Math.sqrt(local47 * local47 + local48 * local48 + local49 * local49);
local47 /= local50;
local48 /= local50;
local49 /= local50;
alternativa3d::lightmapMatrix[0] = -local47 * 2 * local44;
alternativa3d::lightmapMatrix[1] = -local48 * 2 * local44;
alternativa3d::lightmapMatrix[2] = -local49 * 2 * local44;
alternativa3d::lightmapMatrix[4] = (local47 + local48 + local49) * local44 * 255;
alternativa3d::lightmapMatrix[5] = -local47 * 2 * local45;
alternativa3d::lightmapMatrix[6] = -local48 * 2 * local45;
alternativa3d::lightmapMatrix[7] = -local49 * 2 * local45;
alternativa3d::lightmapMatrix[9] = (local47 + local48 + local49) * local45 * 255;
alternativa3d::lightmapMatrix[10] = -local47 * 2 * local46;
alternativa3d::lightmapMatrix[11] = -local48 * 2 * local46;
alternativa3d::lightmapMatrix[12] = -local49 * 2 * local46;
alternativa3d::lightmapMatrix[14] = (local47 + local48 + local49) * local46 * 255;
if(local39 > 1) {
alternativa3d::layers[local15] = local41.alternativa3d::getChildCanvas(true,false,param2.alternativa3d::object,1,local15 == local39 - 1 ? "normal" : "add",local15 == local39 - 1 && (local36 > 0 || local37 > 0 || local38 > 0) ? alternativa3d::lightmapAmbient : null);
}
alternativa3d::lightmapFilter.matrix = alternativa3d::lightmapMatrix;
(local40[local15] as BitmapData).applyFilter(this.alternativa3d::_normalMap,this.alternativa3d::lightmapRect,this.alternativa3d::lightmapPoint,alternativa3d::lightmapFilter);
local15++;
}
if(!this.multipliedDiffuse) {
param2 = param2.alternativa3d::getChildCanvas(true,false,param2.alternativa3d::object,1,"normal",alternativa3d::multiplier);
}
if(alternativa3d::_mipMapping < 2) {
local31++;
local27 = 0;
local28 = 0;
local29 = 0;
local30 = 0;
local5 = param3;
while(local5 != null) {
local6 = local5.alternativa3d::processNext;
local5.alternativa3d::processNext = null;
local8 = local5.alternativa3d::wrapper;
local9 = local8.alternativa3d::vertex;
if(local9.alternativa3d::drawId != local31) {
local13 = 1 / local9.alternativa3d::cameraZ;
local24[local28] = local9.alternativa3d::cameraX * local22 * local13;
local28++;
local24[local28] = local9.alternativa3d::cameraY * local23 * local13;
local28++;
local25[local29] = local9.u;
local29++;
local25[local29] = local9.v;
local29++;
local25[local29] = local13;
local29++;
local10 = local27;
local9.alternativa3d::index = local27++;
local9.alternativa3d::drawId = local31;
} else {
local10 = int(local9.alternativa3d::index);
}
local8 = local8.alternativa3d::next;
local9 = local8.alternativa3d::vertex;
if(local9.alternativa3d::drawId != local31) {
local13 = 1 / local9.alternativa3d::cameraZ;
local24[local28] = local9.alternativa3d::cameraX * local22 * local13;
local28++;
local24[local28] = local9.alternativa3d::cameraY * local23 * local13;
local28++;
local25[local29] = local9.u;
local29++;
local25[local29] = local9.v;
local29++;
local25[local29] = local13;
local29++;
local11 = local27;
local9.alternativa3d::index = local27++;
local9.alternativa3d::drawId = local31;
} else {
local11 = int(local9.alternativa3d::index);
}
local8 = local8.alternativa3d::next;
while(local8 != null) {
local9 = local8.alternativa3d::vertex;
if(local9.alternativa3d::drawId != local31) {
local13 = 1 / local9.alternativa3d::cameraZ;
local24[local28] = local9.alternativa3d::cameraX * local22 * local13;
local28++;
local24[local28] = local9.alternativa3d::cameraY * local23 * local13;
local28++;
local25[local29] = local9.u;
local29++;
local25[local29] = local9.v;
local29++;
local25[local29] = local13;
local29++;
local12 = local27;
local9.alternativa3d::index = local27++;
local9.alternativa3d::drawId = local31;
} else {
local12 = int(local9.alternativa3d::index);
}
alternativa3d::drawIndices[local30] = local10;
local30++;
alternativa3d::drawIndices[local30] = local11;
local30++;
alternativa3d::drawIndices[local30] = local12;
local30++;
local11 = local12;
local33++;
local8 = local8.alternativa3d::next;
}
local32++;
local5 = local6;
}
local24.length = local28;
local25.length = local29;
local26.length = local30;
if(alternativa3d::_mipMapping == 0) {
local21 = alternativa3d::_texture;
} else {
local14 = param1.alternativa3d::focalLength * resolution;
local51 = param4 >= local14 ? int(1 + Math.log(param4 / local14) * 1.4426950408889634) : 0;
if(local51 >= alternativa3d::numMaps) {
local51 = alternativa3d::numMaps - 1;
}
local21 = alternativa3d::mipMap[local51];
}
if(correctUV) {
local19 = -0.5 / (local21.width - 1);
local20 = -0.5 / (local21.height - 1);
local17 = 1 - local19 - local19;
local18 = 1 - local20 - local20;
local16 = 0;
while(local16 < local29) {
local25[local16] = local25[local16] * local17 + local19;
local16++;
local25[local16] = local25[local16] * local18 + local20;
local16++;
local16++;
}
}
param2.alternativa3d::gfx.beginBitmapFill(local21,null,repeat,smooth);
param2.alternativa3d::gfx.drawTriangles(local24,local26,local25,"none");
if(local39 > 0) {
local16 = 0;
while(local16 < local39) {
local35 = alternativa3d::layers[local16];
local35.alternativa3d::gfx.beginBitmapFill(local40[local16],null,repeat,smooth);
local35.alternativa3d::gfx.drawTriangles(local24,local26,local25,"none");
local16++;
}
} else {
local35 = alternativa3d::layers[0];
if(this.alternativa3d::_normalMap.transparent) {
local35.alternativa3d::gfx.beginBitmapFill(local40[0],null,repeat,smooth);
local35.alternativa3d::gfx.drawTriangles(local24,local26,local25,"none");
} else {
local35.alternativa3d::gfx.beginFill(((local36 > 255 ? 255 : local36) << 16) + ((local37 > 255 ? 255 : local37) << 8) + (local38 > 255 ? 255 : local38));
local35.alternativa3d::gfx.drawTriangles(local24,local26,null,"none");
}
}
} else {
local53 = 1e+22;
local54 = -1;
local5 = param3;
while(local5 != null) {
local8 = local5.alternativa3d::wrapper;
while(local8 != null) {
local52 = Number(local8.alternativa3d::vertex.alternativa3d::cameraZ);
if(local52 < local53) {
local53 = local52;
}
if(local52 > local54) {
local54 = local52;
}
local8 = local8.alternativa3d::next;
}
local5 = local5.alternativa3d::processNext;
}
local14 = param1.alternativa3d::focalLength * resolution;
local55 = local53 >= local14 ? int(1 + Math.log(local53 / local14) * 1.4426950408889634) : 0;
if(local55 >= alternativa3d::numMaps) {
local55 = alternativa3d::numMaps - 1;
}
local56 = local54 >= local14 ? int(1 + Math.log(local54 / local14) * 1.4426950408889634) : 0;
if(local56 >= alternativa3d::numMaps) {
local56 = alternativa3d::numMaps - 1;
}
local52 = local14 * Math.pow(2,local56 - 1);
local15 = local56;
while(local15 >= local55) {
local31++;
local27 = 0;
local28 = 0;
local29 = 0;
local30 = 0;
local58 = local52 - threshold;
local59 = local52 + threshold;
local5 = param3;
param3 = null;
local7 = null;
while(local5 != null) {
local6 = local5.alternativa3d::processNext;
local5.alternativa3d::processNext = null;
local8 = null;
if(local15 == local55) {
local8 = local5.alternativa3d::wrapper;
} else {
local60 = local5.alternativa3d::wrapper;
local61 = Number(local60.alternativa3d::vertex.alternativa3d::cameraZ);
local60 = local60.alternativa3d::next;
local62 = Number(local60.alternativa3d::vertex.alternativa3d::cameraZ);
local60 = local60.alternativa3d::next;
local63 = Number(local60.alternativa3d::vertex.alternativa3d::cameraZ);
local60 = local60.alternativa3d::next;
local64 = local61 < local58 || local62 < local58 || local63 < local58;
local65 = local61 > local59 || local62 > local59 || local63 > local59;
while(local60 != null) {
local66 = Number(local60.alternativa3d::vertex.alternativa3d::cameraZ);
if(local66 < local58) {
local64 = true;
} else if(local66 > local59) {
local65 = true;
}
local60 = local60.alternativa3d::next;
}
if(!local64) {
local8 = local5.alternativa3d::wrapper;
} else if(!local65) {
if(param3 != null) {
local7.alternativa3d::processNext = local5;
} else {
param3 = local5;
}
local7 = local5;
} else {
local67 = local5.alternativa3d::create();
param1.alternativa3d::lastFace.alternativa3d::next = local67;
param1.alternativa3d::lastFace = local67;
local68 = null;
local69 = null;
local60 = local5.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next;
while(local60.alternativa3d::next != null) {
local60 = local60.alternativa3d::next;
}
local71 = local60.alternativa3d::vertex;
local61 = Number(local71.alternativa3d::cameraZ);
local60 = local5.alternativa3d::wrapper;
while(local60 != null) {
local72 = local60.alternativa3d::vertex;
local62 = Number(local72.alternativa3d::cameraZ);
if(local61 < local58 && local62 > local59 || local61 > local59 && local62 < local58) {
local13 = (local52 - local61) / (local62 - local61);
local73 = local72.alternativa3d::create();
param1.alternativa3d::lastVertex.alternativa3d::next = local73;
param1.alternativa3d::lastVertex = local73;
local73.alternativa3d::cameraX = local71.alternativa3d::cameraX + (local72.alternativa3d::cameraX - local71.alternativa3d::cameraX) * local13;
local73.alternativa3d::cameraY = local71.alternativa3d::cameraY + (local72.alternativa3d::cameraY - local71.alternativa3d::cameraY) * local13;
local73.alternativa3d::cameraZ = local52;
local73.u = local71.u + (local72.u - local71.u) * local13;
local73.v = local71.v + (local72.v - local71.v) * local13;
local70 = local60.alternativa3d::create();
local70.alternativa3d::vertex = local73;
if(local68 != null) {
local68.alternativa3d::next = local70;
} else {
local67.alternativa3d::wrapper = local70;
}
local68 = local70;
local70 = local60.alternativa3d::create();
local70.alternativa3d::vertex = local73;
if(local69 != null) {
local69.alternativa3d::next = local70;
} else {
local8 = local70;
}
local69 = local70;
}
if(local62 <= local59) {
local70 = local60.alternativa3d::create();
local70.alternativa3d::vertex = local72;
if(local68 != null) {
local68.alternativa3d::next = local70;
} else {
local67.alternativa3d::wrapper = local70;
}
local68 = local70;
}
if(local62 >= local58) {
local70 = local60.alternativa3d::create();
local70.alternativa3d::vertex = local72;
if(local69 != null) {
local69.alternativa3d::next = local70;
} else {
local8 = local70;
}
local69 = local70;
}
local71 = local72;
local61 = local62;
local60 = local60.alternativa3d::next;
}
if(param3 != null) {
local7.alternativa3d::processNext = local67;
} else {
param3 = local67;
}
local7 = local67;
local57 = local8;
}
}
if(local8 != null) {
local9 = local8.alternativa3d::vertex;
if(local9.alternativa3d::drawId != local31) {
local13 = 1 / local9.alternativa3d::cameraZ;
local24[local28] = local9.alternativa3d::cameraX * local22 * local13;
local28++;
local24[local28] = local9.alternativa3d::cameraY * local23 * local13;
local28++;
local25[local29] = local9.u;
local29++;
local25[local29] = local9.v;
local29++;
local25[local29] = local13;
local29++;
local10 = local27;
local9.alternativa3d::index = local27++;
local9.alternativa3d::drawId = local31;
} else {
local10 = int(local9.alternativa3d::index);
}
local8 = local8.alternativa3d::next;
local9 = local8.alternativa3d::vertex;
if(local9.alternativa3d::drawId != local31) {
local13 = 1 / local9.alternativa3d::cameraZ;
local24[local28] = local9.alternativa3d::cameraX * local22 * local13;
local28++;
local24[local28] = local9.alternativa3d::cameraY * local23 * local13;
local28++;
local25[local29] = local9.u;
local29++;
local25[local29] = local9.v;
local29++;
local25[local29] = local13;
local29++;
local11 = local27;
local9.alternativa3d::index = local27++;
local9.alternativa3d::drawId = local31;
} else {
local11 = int(local9.alternativa3d::index);
}
local8 = local8.alternativa3d::next;
while(local8 != null) {
local9 = local8.alternativa3d::vertex;
if(local9.alternativa3d::drawId != local31) {
local13 = 1 / local9.alternativa3d::cameraZ;
local24[local28] = local9.alternativa3d::cameraX * local22 * local13;
local28++;
local24[local28] = local9.alternativa3d::cameraY * local23 * local13;
local28++;
local25[local29] = local9.u;
local29++;
local25[local29] = local9.v;
local29++;
local25[local29] = local13;
local29++;
local12 = local27;
local9.alternativa3d::index = local27++;
local9.alternativa3d::drawId = local31;
} else {
local12 = int(local9.alternativa3d::index);
}
alternativa3d::drawIndices[local30] = local10;
local30++;
alternativa3d::drawIndices[local30] = local11;
local30++;
alternativa3d::drawIndices[local30] = local12;
local30++;
local11 = local12;
local33++;
local8 = local8.alternativa3d::next;
}
local32++;
if(local57 != null) {
local8 = local57;
while(local8 != null) {
local8.alternativa3d::vertex = null;
local8 = local8.alternativa3d::next;
}
param1.alternativa3d::lastWrapper.alternativa3d::next = local57;
param1.alternativa3d::lastWrapper = local69;
local57 = null;
}
}
local5 = local6;
}
local52 *= 0.5;
local24.length = local28;
local25.length = local29;
local26.length = local30;
local21 = alternativa3d::mipMap[local15];
if(correctUV) {
local19 = -0.5 / (local21.width - 1);
local20 = -0.5 / (local21.height - 1);
local17 = 1 - local19 - local19;
local18 = 1 - local20 - local20;
local16 = 0;
while(local16 < local29) {
local25[local16] = local25[local16] * local17 + local19;
local16++;
local25[local16] = local25[local16] * local18 + local20;
local16++;
local16++;
}
}
param2.alternativa3d::gfx.beginBitmapFill(local21,null,repeat,smooth);
param2.alternativa3d::gfx.drawTriangles(local24,local26,local25,"none");
if(local39 > 0) {
local16 = 0;
while(local16 < local39) {
local35 = alternativa3d::layers[local16];
local35.alternativa3d::gfx.beginBitmapFill(local40[local16],null,repeat,smooth);
local35.alternativa3d::gfx.drawTriangles(local24,local26,local25,"none");
local16++;
}
} else {
local35 = alternativa3d::layers[0];
if(this.alternativa3d::_normalMap.transparent) {
local35.alternativa3d::gfx.beginBitmapFill(local40[0],null,repeat,smooth);
local35.alternativa3d::gfx.drawTriangles(local24,local26,local25,"none");
} else {
local35.alternativa3d::gfx.beginFill(((local36 > 255 ? 255 : local36) << 16) + ((local37 > 255 ? 255 : local37) << 8) + (local38 > 255 ? 255 : local38));
local35.alternativa3d::gfx.drawTriangles(local24,local26,null,"none");
}
}
local15--;
}
}
local10 = local39 < 1 ? 2 : local39 + 1;
param1.alternativa3d::numDraws = local31;
param1.alternativa3d::numPolygons += local32 * local10;
param1.alternativa3d::numTriangles += local33 * local10;
}
override alternativa3d function drawViewAligned(param1:Camera3D, param2:Canvas, param3:Face, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number, param9:Number, param10:Number) : void {
var local13:int = 0;
var local14:Number = NaN;
var local15:Number = NaN;
var local16:Face = null;
var local17:Face = null;
var local18:Wrapper = null;
var local19:Vertex = null;
var local20:int = 0;
var local21:BitmapData = null;
var local22:Light3D = null;
var local23:Canvas = null;
var local30:Number = NaN;
var local31:DirectionalLight = null;
var local32:Number = NaN;
var local33:Number = NaN;
var local34:Number = NaN;
var local35:Number = NaN;
var local36:Number = NaN;
var local37:Number = NaN;
var local38:Number = NaN;
var local39:Number = NaN;
var local40:Number = NaN;
var local41:Number = NaN;
var local42:int = 0;
var local43:Number = NaN;
var local44:int = 0;
var local11:Number = Number(param1.alternativa3d::viewSizeX);
var local12:Number = Number(param1.alternativa3d::viewSizeY);
if(alternativa3d::_texture == null || this.alternativa3d::_normalMap == null) {
alternativa3d::clearLinks(param3);
return;
}
var local24:Number = 0;
var local25:Number = 0;
var local26:Number = 0;
var local27:int = 0;
local13 = 0;
while(local13 < param1.alternativa3d::lightsLength) {
local22 = param1.alternativa3d::lights[local13];
if(local22.intensity > 0) {
local30 = Number(this.alternativa3d::weights[local22]);
if(local30 != local30) {
local30 = this.defaultLightWeight;
}
if(local30 > 0) {
local22.alternativa3d::calculateObjectMatrix(param2.alternativa3d::object);
if(local22.alternativa3d::checkBoundsIntersection(param2.alternativa3d::object)) {
if(local22 is AmbientLight) {
local24 += (local22.color >> 16 & 0xFF) * local22.intensity * local30;
local25 += (local22.color >> 8 & 0xFF) * local22.intensity * local30;
local26 += (local22.color & 0xFF) * local22.intensity * local30;
} else if(local22 is DirectionalLight) {
local22.alternativa3d::localWeight = local30;
alternativa3d::lights[local27] = local22;
local27++;
}
}
}
}
local13++;
}
var local28:Vector.<BitmapData> = this.alternativa3d::lightmapsMap[param2.alternativa3d::object];
if(local28 == null) {
local28 = new Vector.<BitmapData>();
this.alternativa3d::lightmapsMap[param2.alternativa3d::object] = local28;
}
local13 = int(local28.length);
while(local13 < local27) {
local28[local13] = new BitmapData(this.alternativa3d::lightmapRect.width,this.alternativa3d::lightmapRect.height,this.alternativa3d::_normalMap.transparent);
local13++;
}
alternativa3d::lightmapAmbient.redOffset = local24;
alternativa3d::lightmapAmbient.greenOffset = local25;
alternativa3d::lightmapAmbient.blueOffset = local26;
var local29:Canvas = param2.alternativa3d::getChildCanvas(local27 <= 1,local27 > 1,param2.alternativa3d::object,1,"multiply",local27 == 1 && (local24 > 0 || local25 > 0 || local26 > 0) ? alternativa3d::lightmapAmbient : null);
if(local27 <= 1) {
alternativa3d::layers[0] = local29;
if(this.alternativa3d::_normalMap.transparent) {
alternativa3d::lightmapMatrix[0] = 0;
alternativa3d::lightmapMatrix[1] = 0;
alternativa3d::lightmapMatrix[2] = 0;
alternativa3d::lightmapMatrix[4] = local24 > 255 ? 255 : local24;
alternativa3d::lightmapMatrix[5] = 0;
alternativa3d::lightmapMatrix[6] = 0;
alternativa3d::lightmapMatrix[7] = 0;
alternativa3d::lightmapMatrix[9] = local25 > 255 ? 255 : local25;
alternativa3d::lightmapMatrix[10] = 0;
alternativa3d::lightmapMatrix[11] = 0;
alternativa3d::lightmapMatrix[12] = 0;
alternativa3d::lightmapMatrix[14] = local26 > 255 ? 255 : local26;
if(local28.length == 0) {
local28[0] = new BitmapData(this.alternativa3d::lightmapRect.width,this.alternativa3d::lightmapRect.height,this.alternativa3d::_normalMap.transparent);
}
alternativa3d::lightmapFilter.matrix = alternativa3d::lightmapMatrix;
(local28[0] as BitmapData).applyFilter(this.alternativa3d::_normalMap,this.alternativa3d::lightmapRect,this.alternativa3d::lightmapPoint,alternativa3d::lightmapFilter);
}
}
local13 = 0;
while(local13 < local27) {
local31 = alternativa3d::lights[local13] as DirectionalLight;
local32 = (local31.color >> 16 & 0xFF) * local31.intensity * local31.alternativa3d::localWeight / 255;
local33 = (local31.color >> 8 & 0xFF) * local31.intensity * local31.alternativa3d::localWeight / 255;
local34 = (local31.color & 0xFF) * local31.intensity * local31.alternativa3d::localWeight / 255;
local35 = param2.alternativa3d::object is Sprite3D ? (param2.alternativa3d::object as Sprite3D).rotation : 0;
local36 = Math.sin(local35);
local37 = Math.cos(local35);
local38 = local31.alternativa3d::cmc * local37 + local31.alternativa3d::cmg * local36;
local39 = -local31.alternativa3d::cmc * local36 + local31.alternativa3d::cmg * local37;
local40 = Number(local31.alternativa3d::cmk);
local41 = Math.sqrt(local38 * local38 + local39 * local39 + local40 * local40);
local38 /= local41;
local39 /= local41;
local40 /= local41;
alternativa3d::lightmapMatrix[0] = -local38 * 2 * local32;
alternativa3d::lightmapMatrix[1] = -local39 * 2 * local32;
alternativa3d::lightmapMatrix[2] = -local40 * 2 * local32;
alternativa3d::lightmapMatrix[4] = (local38 + local39 + local40) * local32 * 255;
alternativa3d::lightmapMatrix[5] = -local38 * 2 * local33;
alternativa3d::lightmapMatrix[6] = -local39 * 2 * local33;
alternativa3d::lightmapMatrix[7] = -local40 * 2 * local33;
alternativa3d::lightmapMatrix[9] = (local38 + local39 + local40) * local33 * 255;
alternativa3d::lightmapMatrix[10] = -local38 * 2 * local34;
alternativa3d::lightmapMatrix[11] = -local39 * 2 * local34;
alternativa3d::lightmapMatrix[12] = -local40 * 2 * local34;
alternativa3d::lightmapMatrix[14] = (local38 + local39 + local40) * local34 * 255;
if(local27 > 1) {
alternativa3d::layers[local13] = local29.alternativa3d::getChildCanvas(true,false,param2.alternativa3d::object,1,local13 == local27 - 1 ? "normal" : "add",local13 == local27 - 1 && (local24 > 0 || local25 > 0 || local26 > 0) ? alternativa3d::lightmapAmbient : null);
}
alternativa3d::lightmapFilter.matrix = alternativa3d::lightmapMatrix;
(local28[local13] as BitmapData).applyFilter(this.alternativa3d::_normalMap,this.alternativa3d::lightmapRect,this.alternativa3d::lightmapPoint,alternativa3d::lightmapFilter);
local13++;
}
if(!this.multipliedDiffuse) {
param2 = param2.alternativa3d::getChildCanvas(true,false,param2.alternativa3d::object,1,"normal",alternativa3d::multiplier);
}
if(local27 > 0) {
local14 = this.alternativa3d::_normalMap.width;
local15 = this.alternativa3d::_normalMap.height;
alternativa3d::drawMatrix.a = param5 / local14;
alternativa3d::drawMatrix.b = param6 / local14;
alternativa3d::drawMatrix.c = param7 / local15;
alternativa3d::drawMatrix.d = param8 / local15;
alternativa3d::drawMatrix.tx = param9;
alternativa3d::drawMatrix.ty = param10;
local42 = 0;
while(local42 < local27) {
local23 = alternativa3d::layers[local42];
local23.alternativa3d::gfx.beginBitmapFill(local28[local42],alternativa3d::drawMatrix,repeat,smooth);
local16 = param3;
while(local16 != null) {
local18 = local16.alternativa3d::wrapper;
local19 = local18.alternativa3d::vertex;
local23.alternativa3d::gfx.moveTo(local19.alternativa3d::cameraX * local11 / param4,local19.alternativa3d::cameraY * local12 / param4);
local20 = -1;
local18 = local18.alternativa3d::next;
while(local18 != null) {
local19 = local18.alternativa3d::vertex;
local23.alternativa3d::gfx.lineTo(local19.alternativa3d::cameraX * local11 / param4,local19.alternativa3d::cameraY * local12 / param4);
local20++;
local18 = local18.alternativa3d::next;
}
param1.alternativa3d::numTriangles += local20;
++param1.alternativa3d::numPolygons;
local16 = local16.alternativa3d::processNext;
}
++param1.alternativa3d::numDraws;
local42++;
}
} else if(this.alternativa3d::_normalMap.transparent) {
local14 = this.alternativa3d::_normalMap.width;
local15 = this.alternativa3d::_normalMap.height;
alternativa3d::drawMatrix.a = param5 / local14;
alternativa3d::drawMatrix.b = param6 / local14;
alternativa3d::drawMatrix.c = param7 / local15;
alternativa3d::drawMatrix.d = param8 / local15;
alternativa3d::drawMatrix.tx = param9;
alternativa3d::drawMatrix.ty = param10;
local23 = alternativa3d::layers[0];
local23.alternativa3d::gfx.beginBitmapFill(local28[0],alternativa3d::drawMatrix,repeat,smooth);
local16 = param3;
while(local16 != null) {
local18 = local16.alternativa3d::wrapper;
local19 = local18.alternativa3d::vertex;
local23.alternativa3d::gfx.moveTo(local19.alternativa3d::cameraX * local11 / param4,local19.alternativa3d::cameraY * local12 / param4);
local20 = -1;
local18 = local18.alternativa3d::next;
while(local18 != null) {
local19 = local18.alternativa3d::vertex;
local23.alternativa3d::gfx.lineTo(local19.alternativa3d::cameraX * local11 / param4,local19.alternativa3d::cameraY * local12 / param4);
local20++;
local18 = local18.alternativa3d::next;
}
param1.alternativa3d::numTriangles += local20;
++param1.alternativa3d::numPolygons;
local16 = local16.alternativa3d::processNext;
}
++param1.alternativa3d::numDraws;
} else {
local23 = alternativa3d::layers[0];
local23.alternativa3d::gfx.beginFill(((local24 > 255 ? 255 : local24) << 16) + ((local25 > 255 ? 255 : local25) << 8) + (local26 > 255 ? 255 : local26));
local16 = param3;
while(local16 != null) {
local18 = local16.alternativa3d::wrapper;
local19 = local18.alternativa3d::vertex;
local23.alternativa3d::gfx.moveTo(local19.alternativa3d::cameraX * local11 / param4,local19.alternativa3d::cameraY * local12 / param4);
local20 = -1;
local18 = local18.alternativa3d::next;
while(local18 != null) {
local19 = local18.alternativa3d::vertex;
local23.alternativa3d::gfx.lineTo(local19.alternativa3d::cameraX * local11 / param4,local19.alternativa3d::cameraY * local12 / param4);
local20++;
local18 = local18.alternativa3d::next;
}
param1.alternativa3d::numTriangles += local20;
++param1.alternativa3d::numPolygons;
local16 = local16.alternativa3d::processNext;
}
++param1.alternativa3d::numDraws;
}
if(alternativa3d::_mipMapping == 0) {
local21 = alternativa3d::_texture;
} else {
local43 = param1.alternativa3d::focalLength * resolution;
local44 = param4 >= local43 ? int(1 + Math.log(param4 / local43) * 1.4426950408889634) : 0;
if(local44 >= alternativa3d::numMaps) {
local44 = alternativa3d::numMaps - 1;
}
local21 = alternativa3d::mipMap[local44];
}
local14 = local21.width;
local15 = local21.height;
alternativa3d::drawMatrix.a = param5 / local14;
alternativa3d::drawMatrix.b = param6 / local14;
alternativa3d::drawMatrix.c = param7 / local15;
alternativa3d::drawMatrix.d = param8 / local15;
alternativa3d::drawMatrix.tx = param9;
alternativa3d::drawMatrix.ty = param10;
param2.alternativa3d::gfx.beginBitmapFill(local21,alternativa3d::drawMatrix,repeat,smooth);
local16 = param3;
while(local16 != null) {
local17 = local16.alternativa3d::processNext;
local16.alternativa3d::processNext = null;
local18 = local16.alternativa3d::wrapper;
local19 = local18.alternativa3d::vertex;
param2.alternativa3d::gfx.moveTo(local19.alternativa3d::cameraX * local11 / param4,local19.alternativa3d::cameraY * local12 / param4);
local20 = -1;
local18 = local18.alternativa3d::next;
while(local18 != null) {
local19 = local18.alternativa3d::vertex;
param2.alternativa3d::gfx.lineTo(local19.alternativa3d::cameraX * local11 / param4,local19.alternativa3d::cameraY * local12 / param4);
local20++;
local18 = local18.alternativa3d::next;
}
param1.alternativa3d::numTriangles += local20;
++param1.alternativa3d::numPolygons;
local16 = local17;
}
++param1.alternativa3d::numDraws;
}
}
}
|
package _codec.projects.tanks.client.achievements.model.panel {
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.EnumCodecInfo;
import projects.tanks.client.achievements.model.Achievement;
import projects.tanks.client.achievements.model.panel.AchievementCC;
public class CodecAchievementCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_activeAchievements:ICodec;
public function CodecAchievementCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_activeAchievements = param1.getCodec(new CollectionCodecInfo(new EnumCodecInfo(Achievement,false),false,1));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:AchievementCC = new AchievementCC();
local2.activeAchievements = this.codec_activeAchievements.decode(param1) as Vector.<Achievement>;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:AchievementCC = AchievementCC(param2);
this.codec_activeAchievements.encode(param1,local3.activeAchievements);
}
}
}
|
package _codec.projects.tanks.client.garage.models.item.rarity {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.garage.models.item.rarity.ItemRarityCC;
public class VectorCodecItemRarityCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecItemRarityCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ItemRarityCC,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.<ItemRarityCC> = new Vector.<ItemRarityCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ItemRarityCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ItemRarityCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ItemRarityCC> = Vector.<ItemRarityCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package projects.tanks.client.panel.model.quest.daily {
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 DailyQuestShowingModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:DailyQuestShowingModelServer;
private var client:IDailyQuestShowingModelBase = IDailyQuestShowingModelBase(this);
private var modelId:Long = Long.getLong(1734194361,-1013591761);
private var _openDailyQuestId:Long = Long.getLong(27042981,-1604202185);
private var _openDailyQuest_infoCodec:ICodec;
private var _prizeGivenId:Long = Long.getLong(593457405,1956535921);
private var _prizeGiven_questClassIdCodec:ICodec;
private var _skipQuestId:Long = Long.getLong(396498759,-254486753);
private var _skipQuest_skippedQuestIdCodec:ICodec;
private var _skipQuest_newQuestCodec:ICodec;
public function DailyQuestShowingModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new DailyQuestShowingModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(DailyQuestShowingCC,false)));
this._openDailyQuest_infoCodec = this._protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(DailyQuestInfo,false),false,1));
this._prizeGiven_questClassIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false));
this._skipQuest_skippedQuestIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false));
this._skipQuest_newQuestCodec = this._protocol.getCodec(new TypeCodecInfo(DailyQuestInfo,false));
}
protected function getInitParam() : DailyQuestShowingCC {
return DailyQuestShowingCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._openDailyQuestId:
this.client.openDailyQuest(this._openDailyQuest_infoCodec.decode(param2) as Vector.<DailyQuestInfo>);
break;
case this._prizeGivenId:
this.client.prizeGiven(Long(this._prizeGiven_questClassIdCodec.decode(param2)));
break;
case this._skipQuestId:
this.client.skipQuest(Long(this._skipQuest_skippedQuestIdCodec.decode(param2)),DailyQuestInfo(this._skipQuest_newQuestCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.tanks.gui.shop.shopitems.item.base {
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.font.services.TanksFontsFormatService;
import alternativa.tanks.gui.shop.shopitems.event.ShopItemChosen;
import alternativa.tanks.gui.shop.shopitems.item.CountableItemButton;
import alternativa.tanks.gui.shop.shopitems.item.utils.FormatUtils;
import alternativa.tanks.model.payment.paymentstate.PaymentWindowService;
import alternativa.tanks.model.payment.shop.discount.ShopDiscount;
import alternativa.tanks.model.payment.shop.item.ShopItem;
import alternativa.tanks.model.payment.shop.specialkit.SpecialKitPackage;
import controls.base.LabelBase;
import flash.display.Bitmap;
import flash.display.CapsStyle;
import flash.display.LineScaleMode;
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.text.TextFieldAutoSize;
import forms.ColorConstants;
import platform.client.fp10.core.resource.types.ImageResource;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.clients.flash.commons.services.timeunit.ITimeUnitService;
import utils.preview.IImageResource;
import utils.preview.ImageResourceLoadingWrapper;
public class ShopItemButton extends ShopButton implements IImageResource, ShopButtonClickDisable, ShopButtonDiscount {
[Inject]
public static var fontService:TanksFontsFormatService;
[Inject]
public static var timeUnitService:ITimeUnitService;
[Inject]
public static var localeService:ILocaleService;
[Inject]
public static var paymentWindowService:PaymentWindowService;
private static const bonusIconClass:Class = ShopItemButton_bonusIconClass;
protected static const WIDTH:int = 279;
protected static const HEIGHT:int = 143;
protected static const COMMON_LEFT_MARGIN:int = 30;
protected var bonusIcon:Bitmap = new Bitmap(new bonusIconClass().bitmapData);
protected var item:IGameObject;
protected var preview:Bitmap;
protected var priceLabel:LabelBase;
protected var oldPriceSprite:Sprite;
protected var oldPriceLabel:LabelBase;
protected var strikeoutLineThickness:Number;
protected var strikeoutLineColor:uint;
protected var oldPriceLabelSize:uint;
private var discountEnabled:Boolean;
private var priceWithDiscount:Number;
private var buttonSkin:ButtonItemSkin;
public function ShopItemButton(param1:IGameObject, param2:ButtonItemSkin) {
this.item = param1;
addEventListener(MouseEvent.CLICK,this.onMouseClick);
this.buttonSkin = param2;
super(this.buttonSkin);
}
override protected function init() : void {
super.init();
var local1:ImageResource = this.shopItem.getPreview();
if(local1 != null) {
if(local1.isLazy && !local1.isLoaded) {
local1.loadLazyResource(new ImageResourceLoadingWrapper(this));
} else {
this.preview = new Bitmap(local1.data);
}
}
this.discountEnabled = this.isShopItemDiscountEnabled();
this.priceWithDiscount = this.shopItem.getPriceWithDiscount();
this.initOldPriceParams();
this.initOldPriceLabel();
this.initLabels();
this.initPreview();
this.align();
this.addDiscountLabelIfHasDiscount();
}
protected function initLabels() : void {
}
protected function initOldPriceParams() : void {
this.strikeoutLineThickness = 1;
this.strikeoutLineColor = ColorConstants.SHOP_MONEY_TEXT_LABEL_COLOR;
this.oldPriceLabelSize = 16;
}
private function initOldPriceLabel() : void {
this.oldPriceSprite = new Sprite();
this.oldPriceLabel = new LabelBase();
this.oldPriceLabel.text = this.getOldPriceLabelText();
this.oldPriceLabel.color = this.strikeoutLineColor;
this.oldPriceLabel.autoSize = TextFieldAutoSize.LEFT;
this.oldPriceLabel.size = this.oldPriceLabelSize;
this.oldPriceLabel.bold = true;
this.oldPriceLabel.mouseEnabled = false;
this.oldPriceSprite.addChild(this.oldPriceLabel);
var local1:int = 2;
var local2:int = local1 + this.oldPriceLabel.textWidth;
var local3:int = int(this.oldPriceLabel.height / 2);
var local4:Shape = new Shape();
local4.graphics.lineStyle(this.strikeoutLineThickness,this.strikeoutLineColor,1,true,LineScaleMode.NONE,CapsStyle.NONE);
local4.graphics.moveTo(local1,local3);
local4.graphics.lineTo(local2,local3);
this.oldPriceSprite.addChild(local4);
}
private function getPriceLabelSize() : int {
switch(localeService.language) {
case "fa":
return 16;
default:
return 22;
}
}
protected function addPriceLabel() : void {
this.priceLabel = new LabelBase();
this.priceLabel.text = this.getPriceLabelText();
this.priceLabel.color = ColorConstants.SHOP_MONEY_TEXT_LABEL_COLOR;
this.priceLabel.size = this.getPriceLabelSize();
this.priceLabel.autoSize = TextFieldAutoSize.LEFT;
this.priceLabel.bold = true;
this.priceLabel.mouseEnabled = false;
addChild(this.priceLabel);
this.fixChineseCurrencyLabelRendering(this.priceLabel);
}
public function setPreviewResource(param1:ImageResource) : void {
this.preview = new Bitmap(param1.data);
this.updateLazyLoadedPreview();
}
protected function updateLazyLoadedPreview() : void {
this.setPreview();
this.align();
}
protected function initPreview() : void {
if(this.preview != null) {
this.setPreview();
}
}
protected function setPreview() : void {
addChildAt(this.preview,2);
}
protected function get shopItem() : ShopItem {
return ShopItem(this.item.adapt(ShopItem));
}
protected function fixChineseCurrencyLabelRendering(param1:LabelBase) : void {
if(this.shopItem.getCurrencyName() == "元") {
param1.embedFonts = fontService.isEmbeddedFontsInLang("cn");
param1.setTextFormat(fontService.getFontsFormatInLang("cn"));
}
}
private function onMouseClick(param1:MouseEvent) : void {
dispatchEvent(new ShopItemChosen(this.item));
}
public function applyPayModeDiscountAndUpdatePriceLabel(param1:IGameObject) : void {
if(this.item.hasModel(SpecialKitPackage)) {
this.priceLabel.text = this.getPriceLabelText();
return;
}
var local2:ShopDiscount = ShopDiscount(param1.adapt(ShopDiscount));
this.priceWithDiscount = local2.applyDiscount(this.priceWithDiscount);
this.discountEnabled = this.discountEnabled || Boolean(local2.isEnabled());
if(this.isShopItemDiscountEnabled()) {
this.priceLabel.text = this.getPriceLabelText();
} else {
this.addDiscountLabelIfHasDiscount();
}
}
private function addDiscountLabelIfHasDiscount() : void {
var local1:Bitmap = null;
if(this.hasDiscount()) {
this.priceLabel.text = this.getPriceLabelText();
addChild(this.oldPriceSprite);
this.align();
local1 = salesIcon;
}
if(paymentWindowService.hasBonusForItem(this.item)) {
if(this is CountableItemButton) {
if(CountableItemButton(this).getCount() > 1) {
local1 = this.bonusIcon;
}
} else {
local1 = this.bonusIcon;
}
}
if(local1 != null) {
this.addCornerIcon(local1);
}
}
private function addCornerIcon(param1:Bitmap) : void {
param1.x = x + this.buttonSkin.normalState.width - param1.width - 8;
param1.y = y + 7;
addChild(param1);
}
protected function getPriceWithDiscount() : Number {
return this.priceWithDiscount;
}
protected function hasDiscount() : Boolean {
return this.discountEnabled;
}
private function isShopItemDiscountEnabled() : Boolean {
return ShopDiscount(this.item.adapt(ShopDiscount)).isEnabled();
}
protected function getPriceLabelText() : String {
return this.getFormattedPriceText(this.getPriceWithDiscount()) + " " + this.shopItem.getCurrencyName();
}
protected function getOldPriceLabelText() : String {
return this.getFormattedPriceText(this.shopItem.getPrice()) + " " + this.shopItem.getCurrencyName();
}
protected function getFormattedPriceText(param1:Number) : String {
return FormatUtils.valueToString(param1,this.shopItem.getCurrencyRoundingPrecision(),false);
}
protected function align() : void {
}
override public function get width() : Number {
return WIDTH;
}
override public function get height() : Number {
return HEIGHT;
}
override public function destroy() : void {
super.destroy();
this.item = null;
removeEventListener(MouseEvent.CLICK,this.onMouseClick);
}
public function disableClick() : * {
alpha = 0.9;
mouseEnabled = false;
}
}
}
|
package projects.tanks.client.entrance.model.entrance.notificationtoken {
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 NotificationTokenModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:NotificationTokenModelServer;
private var client:INotificationTokenModelBase = INotificationTokenModelBase(this);
private var modelId:Long = Long.getLong(185921630,-1096375880);
public function NotificationTokenModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new NotificationTokenModelServer(IModel(this));
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
var local3:* = param1;
switch(false ? 0 : 0) {
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.engine3d.loaders.collada {
use namespace collada;
public class DaeInstanceMaterial extends DaeElement {
public function DaeInstanceMaterial(param1:XML, param2:DaeDocument) {
super(param1,param2);
}
public function get symbol() : String {
var local1:XML = data.@symbol[0];
return local1 == null ? null : local1.toString();
}
private function get target() : XML {
return data.@target[0];
}
public function get material() : DaeMaterial {
var local1:DaeMaterial = document.findMaterial(this.target);
if(local1 == null) {
document.logger.logNotFoundError(this.target);
}
return local1;
}
public function getBindVertexInputSetNum(param1:String) : int {
var bindVertexInputXML:XML = null;
var setNumXML:XML = null;
var semantic:String = param1;
bindVertexInputXML = data.bind_vertex_input.(@semantic == semantic)[0];
if(bindVertexInputXML == null) {
return 0;
}
setNumXML = bindVertexInputXML.@input_set[0];
return setNumXML == null ? 0 : int(parseInt(setNumXML.toString(),10));
}
}
}
|
package utils.tweener.core
{
public class SimpleTimeline extends TweenCore
{
protected var _firstChild:TweenCore;
protected var _lastChild:TweenCore;
public var autoRemoveChildren:Boolean;
public function SimpleTimeline(param1:Object = null)
{
super(0,param1);
}
public function insert(param1:TweenCore, param2:* = 0) : TweenCore
{
var _loc3_:SimpleTimeline = param1.timeline;
if(!param1.cachedOrphan && _loc3_)
{
_loc3_.remove(param1,true);
}
param1.timeline = this;
param1.cachedStartTime = Number(param2) + param1.delay;
if(param1.gc)
{
param1.setEnabled(true,true);
}
if(param1.cachedPaused && _loc3_ != this)
{
param1.cachedPauseTime = param1.cachedStartTime + (this.rawTime - param1.cachedStartTime) / param1.cachedTimeScale;
}
if(this._lastChild)
{
this._lastChild.nextNode = param1;
}
else
{
this._firstChild = param1;
}
param1.prevNode = this._lastChild;
this._lastChild = param1;
param1.nextNode = null;
param1.cachedOrphan = false;
return param1;
}
public function remove(param1:TweenCore, param2:Boolean = false) : void
{
if(param1.cachedOrphan)
{
return;
}
if(!param2)
{
param1.setEnabled(false,true);
}
if(param1.nextNode)
{
param1.nextNode.prevNode = param1.prevNode;
}
else if(this._lastChild == param1)
{
this._lastChild = param1.prevNode;
}
if(param1.prevNode)
{
param1.prevNode.nextNode = param1.nextNode;
}
else if(this._firstChild == param1)
{
this._firstChild = param1.nextNode;
}
param1.cachedOrphan = true;
}
override public function renderTime(param1:Number, param2:Boolean = false, param3:Boolean = false) : void
{
var _loc4_:Number = NaN;
var _loc5_:TweenCore = null;
var _loc6_:TweenCore = this._firstChild;
this.cachedTotalTime = param1;
this.cachedTime = param1;
while(_loc6_)
{
_loc5_ = _loc6_.nextNode;
if(_loc6_.active || param1 >= _loc6_.cachedStartTime && !_loc6_.cachedPaused && !_loc6_.gc)
{
if(!_loc6_.cachedReversed)
{
_loc6_.renderTime((param1 - _loc6_.cachedStartTime) * _loc6_.cachedTimeScale,param2,false);
}
else
{
_loc4_ = !!_loc6_.cacheIsDirty ? Number(Number(Number(_loc6_.totalDuration))) : Number(Number(Number(_loc6_.cachedTotalDuration)));
_loc6_.renderTime(_loc4_ - (param1 - _loc6_.cachedStartTime) * _loc6_.cachedTimeScale,param2,false);
}
}
_loc6_ = _loc5_;
}
}
public function get rawTime() : Number
{
return this.cachedTotalTime;
}
}
}
|
package alternativa.tanks.servermodels.partners {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class ICompositePartnerModelAdapt implements ICompositePartnerModel {
private var object:IGameObject;
private var impl:ICompositePartnerModel;
public function ICompositePartnerModelAdapt(param1:IGameObject, param2:ICompositePartnerModel) {
super();
this.object = param1;
this.impl = param2;
}
public function loadPartnerObject(param1:String) : void {
var partnerId:String = param1;
try {
Model.object = this.object;
this.impl.loadPartnerObject(partnerId);
}
finally {
Model.popObject();
}
}
public function finishRegistration(param1:String, param2:String) : void {
var uid:String = param1;
var domain:String = param2;
try {
Model.object = this.object;
this.impl.finishRegistration(uid,domain);
}
finally {
Model.popObject();
}
}
public function bindAccount(param1:String, param2:String) : void {
var login:String = param1;
var password:String = param2;
try {
Model.object = this.object;
this.impl.bindAccount(login,password);
}
finally {
Model.popObject();
}
}
}
}
|
package alternativa.tanks.model.item.container.gui.opening {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.model.item.container.gui.opening.ContainerOpenDialog_Shine.jpg")]
public class ContainerOpenDialog_Shine extends BitmapAsset {
public function ContainerOpenDialog_Shine() {
super();
}
}
}
|
package alternativa.tanks.services.performance {
public class PerformanceDataServiceImpl implements PerformanceDataService {
private var _qualityFPSThreshold:Number;
private var _qualityRatioThreshold:Number;
private var _qualityIdleTime:Number;
private var _qualityTestTime:Number;
private var _qualityVisualizationSpeed:Number;
private var _qualityMaxAttempts:int;
private var _alertFPSThreshold:Number;
private var _alertFPSRatioThreshold:Number;
private var _alertPingThreshold:Number;
private var _alertPingRatioThreshold:Number;
private var _alertMinTestTime:Number;
private var _indicatorVeryLowFPS:int;
private var _indicatorVeryLowFPSColor:String;
private var _indicatorLowFPS:int;
private var _indicatorLowFPSColor:String;
private var _indicatorHighFPS:int;
private var _indicatorHighFPSColor:String;
private var _indicatorLowPing:int;
private var _indicatorLowPingColor:String;
private var _indicatorHighPing:int;
private var _indicatorHighPingColor:String;
private var _indicatorVeryHighPing:int;
private var _indicatorVeryHighPingColor:String;
public function PerformanceDataServiceImpl() {
super();
}
public function getQualityFPSThreshold() : Number {
return this._qualityFPSThreshold;
}
public function setQualityFPSThreshold(param1:Number) : void {
this._qualityFPSThreshold = param1;
}
public function getQualityRatioThreshold() : Number {
return this._qualityRatioThreshold;
}
public function setQualityRatioThreshold(param1:Number) : void {
this._qualityRatioThreshold = param1;
}
public function getQualityIdleTime() : Number {
return this._qualityIdleTime;
}
public function setQualityIdleTime(param1:Number) : void {
this._qualityIdleTime = param1;
}
public function getQualityTestTime() : Number {
return this._qualityTestTime;
}
public function setQualityTestTime(param1:Number) : void {
this._qualityTestTime = param1;
}
public function getQualityVisualizationSpeed() : Number {
return this._qualityVisualizationSpeed;
}
public function setQualityVisualizationSpeed(param1:Number) : void {
this._qualityVisualizationSpeed = param1;
}
public function getQualityMaxAttempts() : int {
return this._qualityMaxAttempts;
}
public function setQualityMaxAttempts(param1:int) : void {
this._qualityMaxAttempts = param1;
}
public function getAlertFPSThreshold() : Number {
return this._alertFPSThreshold;
}
public function setAlertFPSThreshold(param1:Number) : void {
this._alertFPSThreshold = param1;
}
public function getAlertFPSRatioThreshold() : Number {
return this._alertFPSRatioThreshold;
}
public function setAlertFPSRatioThreshold(param1:Number) : void {
this._alertFPSRatioThreshold = param1;
}
public function getAlertPingThreshold() : Number {
return this._alertPingThreshold;
}
public function setAlertPingThreshold(param1:Number) : void {
this._alertPingThreshold = param1;
}
public function getAlertPingRatioThreshold() : Number {
return this._alertPingRatioThreshold;
}
public function setAlertPingRatioThreshold(param1:Number) : void {
this._alertPingRatioThreshold = param1;
}
public function getAlertMinTestTime() : Number {
return this._alertMinTestTime;
}
public function setAlertMinTestTime(param1:Number) : void {
this._alertMinTestTime = param1;
}
public function getIndicatorVeryLowFPS() : int {
return this._indicatorVeryLowFPS;
}
public function setIndicatorVeryLowFPS(param1:int) : void {
this._indicatorVeryLowFPS = param1;
}
public function getIndicatorVeryLowFPSColor() : String {
return this._indicatorVeryLowFPSColor;
}
public function setIndicatorVeryLowFPSColor(param1:String) : void {
this._indicatorVeryLowFPSColor = param1;
}
public function getIndicatorLowFPS() : int {
return this._indicatorLowFPS;
}
public function setIndicatorLowFPS(param1:int) : void {
this._indicatorLowFPS = param1;
}
public function getIndicatorLowFPSColor() : String {
return this._indicatorLowFPSColor;
}
public function setIndicatorLowFPSColor(param1:String) : void {
this._indicatorLowFPSColor = param1;
}
public function getIndicatorHighFPS() : int {
return this._indicatorHighFPS;
}
public function setIndicatorHighFPS(param1:int) : void {
this._indicatorHighFPS = param1;
}
public function getIndicatorHighFPSColor() : String {
return this._indicatorHighFPSColor;
}
public function setIndicatorHighFPSColor(param1:String) : void {
this._indicatorHighFPSColor = param1;
}
public function getIndicatorLowPing() : int {
return this._indicatorLowPing;
}
public function setIndicatorLowPing(param1:int) : void {
this._indicatorLowPing = param1;
}
public function getIndicatorLowPingColor() : String {
return this._indicatorLowPingColor;
}
public function setIndicatorLowPingColor(param1:String) : void {
this._indicatorLowPingColor = param1;
}
public function getIndicatorHighPing() : int {
return this._indicatorHighPing;
}
public function setIndicatorHighPing(param1:int) : void {
this._indicatorHighPing = param1;
}
public function getIndicatorHighPingColor() : String {
return this._indicatorHighPingColor;
}
public function setIndicatorHighPingColor(param1:String) : void {
this._indicatorHighPingColor = param1;
}
public function getIndicatorVeryHighPing() : int {
return this._indicatorVeryHighPing;
}
public function setIndicatorVeryHighPing(param1:int) : void {
this._indicatorVeryHighPing = param1;
}
public function getIndicatorVeryHighPingColor() : String {
return this._indicatorVeryHighPingColor;
}
public function setIndicatorVeryHighPingColor(param1:String) : void {
this._indicatorVeryHighPingColor = param1;
}
}
}
|
package scpacker.gui
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class GTanksI_coldload6 extends BitmapAsset
{
public function GTanksI_coldload6()
{
super();
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.weapon.shaft {
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battlefield.types.Vector3d;
public interface IShaftModelBase {
function activateManualTargeting(param1:IGameObject) : void;
function fire(param1:IGameObject, param2:Vector3d, param3:IGameObject, param4:Vector3d, param5:Number) : void;
function reconfigureWeapon(param1:Number, param2:Number, param3:Boolean) : void;
function stopManulaTargeting(param1:IGameObject) : void;
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.engine {
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.tankparts.engine.EngineCC;
public class CodecEngineCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_engineIdleSound:ICodec;
private var codec_engineMovingSound:ICodec;
private var codec_engineStartMovingSound:ICodec;
private var codec_engineStartSound:ICodec;
private var codec_engineStopMovingSound:ICodec;
public function CodecEngineCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_engineIdleSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_engineMovingSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_engineStartMovingSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_engineStartSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_engineStopMovingSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:EngineCC = new EngineCC();
local2.engineIdleSound = this.codec_engineIdleSound.decode(param1) as SoundResource;
local2.engineMovingSound = this.codec_engineMovingSound.decode(param1) as SoundResource;
local2.engineStartMovingSound = this.codec_engineStartMovingSound.decode(param1) as SoundResource;
local2.engineStartSound = this.codec_engineStartSound.decode(param1) as SoundResource;
local2.engineStopMovingSound = this.codec_engineStopMovingSound.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:EngineCC = EngineCC(param2);
this.codec_engineIdleSound.encode(param1,local3.engineIdleSound);
this.codec_engineMovingSound.encode(param1,local3.engineMovingSound);
this.codec_engineStartMovingSound.encode(param1,local3.engineStartMovingSound);
this.codec_engineStartSound.encode(param1,local3.engineStartSound);
this.codec_engineStopMovingSound.encode(param1,local3.engineStopMovingSound);
}
}
}
|
package alternativa.tanks.models.battle.battlefield {
import alternativa.tanks.battle.UserTitleRenderer;
import alternativa.tanks.battle.events.BattleEventDispatcher;
import alternativa.tanks.battle.events.BattleEventSupport;
import alternativa.tanks.battle.events.TankAddedToBattleEvent;
import alternativa.tanks.battle.events.TankRemovedFromBattleEvent;
import alternativa.tanks.battle.objects.tank.Tank;
import alternativa.tanks.services.spectatorservice.SpectatorService;
import alternativa.utils.clearDictionary;
import flash.utils.Dictionary;
import platform.client.fp10.core.type.AutoClosable;
public class SpectatorUserTitleRenderer implements UserTitleRenderer, AutoClosable {
[Inject]
public static var battleEventDispatcher:BattleEventDispatcher;
[Inject]
public static var spectatorService:SpectatorService;
private var battleEventSupport:BattleEventSupport;
private const tanksInBattle:Dictionary = new Dictionary();
public function SpectatorUserTitleRenderer() {
super();
this.battleEventSupport = new BattleEventSupport(battleEventDispatcher);
this.battleEventSupport.addEventHandler(TankAddedToBattleEvent,this.onTankAddedToBattle);
this.battleEventSupport.addEventHandler(TankRemovedFromBattleEvent,this.onTankRemovedFromBattle);
this.battleEventSupport.activateHandlers();
}
[Obfuscation(rename="false")]
public function close() : void {
this.battleEventSupport.deactivateHandlers();
clearDictionary(this.tanksInBattle);
}
private function onTankAddedToBattle(param1:TankAddedToBattleEvent) : void {
this.tanksInBattle[param1.tank] = true;
}
private function onTankRemovedFromBattle(param1:TankRemovedFromBattleEvent) : void {
delete this.tanksInBattle[param1.tank];
}
public function renderUserTitles() : void {
var local1:* = undefined;
for(local1 in this.tanksInBattle) {
this.updateTitleVisibility(local1);
}
}
private function updateTitleVisibility(param1:Tank) : void {
if(param1.health > 0 && Boolean(spectatorService.getUserTitlesVisible())) {
param1.showTitle();
} else {
param1.hideTitle();
}
}
}
}
|
package controls.scroller.red {
import controls.scroller.*;
public class ScrollThumbSkinRed extends ScrollThumbSkin {
public function ScrollThumbSkinRed() {
super();
}
override public function initSkin() : void {
toppng = new ScrollSkinRed.thumbTop().bitmapData;
midpng = new ScrollSkinRed.thumbMiddle().bitmapData;
}
}
}
|
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;
import alternativa.gfx.agal.SamplerType;
public class DepthRendererDepthFragmentShader extends FragmentShader {
public function DepthRendererDepthFragmentShader(param1:Boolean, param2:Boolean, param3:Boolean, param4:Boolean, param5:Boolean) {
var local6:SamplerRepeat = null;
var local7:SamplerFilter = null;
var local8:SamplerMipMap = null;
var local9:SamplerType = null;
super();
if(param2) {
local6 = param4 ? SamplerRepeat.WRAP : SamplerRepeat.CLAMP;
local7 = param3 ? SamplerFilter.LINEAR : SamplerFilter.NEAREST;
local8 = param5 ? (param3 ? SamplerMipMap.LINEAR : SamplerMipMap.NEAREST) : SamplerMipMap.NONE;
local9 = SamplerType.RGBA;
tex(ft0,v1,fs1.dim(SamplerDim.D2).repeat(local6).filter(local7).mipmap(local8).type(local9));
sub(ft0.w,ft0,v1);
kil(ft0.w);
}
frc(ft0,v0.z);
sub(ft0.x,v0.z,ft0);
mul(ft0.x,ft0,fc[0]);
if(param1) {
mov(ft1.zw,fc[0]);
mov(ft1.xy,v0);
nrm(ft1.xyz,ft1.xyz);
mul(ft1.xy,ft1,fc[1]);
add(ft1.xy,ft1,fc[1]);
tex(ft2,ft1,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE));
mov(ft0.w,ft2.z);
mul(ft1.xy,v0,v0);
add(ft1.x,ft1,ft1.y);
sqt(ft1.x,ft1);
neg(ft1.y,v0.w);
mul(ft1.xy,ft1,fc[1]);
add(ft1.xy,ft1,fc[1]);
tex(ft2,ft1,fs0.dim(SamplerDim.D2).repeat(SamplerRepeat.CLAMP).filter(SamplerFilter.NEAREST).mipmap(SamplerMipMap.NONE));
mov(ft0.z,ft2.z);
}
mov(oc,ft0);
}
}
}
|
package alternativa.tanks.models.battlefield.effects.levelup.rangs
{
import flash.display.BitmapData;
public class BigRangIcon
{
[Embed(source="1183.png")]
private static const rang_1:Class;
[Embed(source="1182.png")]
private static const rang_2:Class;
[Embed(source="1181.png")]
private static const rang_3:Class;
[Embed(source="1180.png")]
private static const rang_4:Class;
private static const rang_5:Class = BigRangIcon_rang_5;
private static const rang_6:Class = BigRangIcon_rang_6;
private static const rang_7:Class = BigRangIcon_rang_7;
private static const rang_8:Class = BigRangIcon_rang_8;
private static const rang_9:Class = BigRangIcon_rang_9;
[Embed(source="771.png")]
private static const rang_10:Class;
[Embed(source="772.png")]
private static const rang_11:Class;
[Embed(source="768.png")]
private static const rang_12:Class;
[Embed(source="769.png")]
private static const rang_13:Class;
[Embed(source="765.png")]
private static const rang_14:Class;
[Embed(source="767.png")]
private static const rang_15:Class;
[Embed(source="762.png")]
private static const rang_16:Class;
[Embed(source="764.png")]
private static const rang_17:Class;
[Embed(source="760.png")]
private static const rang_18:Class;
[Embed(source="761.png")]
private static const rang_19:Class;
[Embed(source="795.png")]
private static const rang_20:Class;
[Embed(source="797.png")]
private static const rang_21:Class;
[Embed(source="798.png")]
private static const rang_22:Class;
[Embed(source="799.png")]
private static const rang_23:Class;
[Embed(source="800.png")]
private static const rang_24:Class;
[Embed(source="789.png")]
private static const rang_25:Class;
[Embed(source="790.png")]
private static const rang_26:Class;
[Embed(source="791.png")]
private static const rang_27:Class;
[Embed(source="792.png")]
private static const rang_28:Class;
[Embed(source="793.png")]
private static const rang_29:Class;
[Embed(source="783.png")]
private static const rang_30:Class;
private static var rangs:Array = [new rang_1(),new rang_2(),new rang_3(),new rang_4(),new rang_5(),new rang_6(),new rang_7(),new rang_8(),new rang_9(),new rang_10(),new rang_11(),new rang_12(),new rang_13(),new rang_14(),new rang_15(),new rang_16(),new rang_17(),new rang_18(),new rang_19(),new rang_20(),new rang_21(),new rang_22(),new rang_23(),new rang_24(),new rang_25(),new rang_26(),new rang_27(),new rang_28(),new rang_29(),new rang_30()];
public function BigRangIcon()
{
super();
}
public static function getRangIcon(rang:int) : BitmapData
{
return rangs[rang - 1].bitmapData;
}
}
}
|
package alternativa.tanks.controller.events {
import flash.events.Event;
public class FightWithoutRegistrationEvent extends Event {
public static const FIGHT_WITHOUT_REGISTRATION:String = "FIGHT_WITHOUT_REGISTRATION";
public function FightWithoutRegistrationEvent() {
super(FIGHT_WITHOUT_REGISTRATION);
}
override public function clone() : Event {
return new FightWithoutRegistrationEvent();
}
}
}
|
package projects.tanks.clients.fp10.libraries.tanksservices.model {
import alternativa.types.Long;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.clients.fp10.libraries.tanksservices.model.notifier.UserInfoConsumer;
public class UserRefreshAdapt implements UserRefresh {
private var object:IGameObject;
private var impl:UserRefresh;
public function UserRefreshAdapt(param1:IGameObject, param2:UserRefresh) {
super();
this.object = param1;
this.impl = param2;
}
public function refresh(param1:Long, param2:UserInfoConsumer) : void {
var userId:Long = param1;
var consumer:UserInfoConsumer = param2;
try {
Model.object = this.object;
this.impl.refresh(userId,consumer);
}
finally {
Model.popObject();
}
}
public function remove(param1:Long) : void {
var userId:Long = param1;
try {
Model.object = this.object;
this.impl.remove(userId);
}
finally {
Model.popObject();
}
}
}
}
|
package projects.tanks.client.users.model.friends.incoming {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
import projects.tanks.client.users.model.friends.container.UserContainerCC;
public class FriendsIncomingModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:FriendsIncomingModelServer;
private var client:IFriendsIncomingModelBase = IFriendsIncomingModelBase(this);
private var modelId:Long = Long.getLong(1552139010,1361964288);
private var _onAddingId:Long = Long.getLong(1433634624,1589914165);
private var _onAdding_userIdCodec:ICodec;
private var _onRemovedId:Long = Long.getLong(1493000398,-12480436);
private var _onRemoved_userIdCodec:ICodec;
public function FriendsIncomingModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new FriendsIncomingModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(UserContainerCC,false)));
this._onAdding_userIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false));
this._onRemoved_userIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false));
}
protected function getInitParam() : UserContainerCC {
return UserContainerCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._onAddingId:
this.client.onAdding(Long(this._onAdding_userIdCodec.decode(param2)));
break;
case this._onRemovedId:
this.client.onRemoved(Long(this._onRemoved_userIdCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.battle.jgr.killstreak {
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.jgr.killstreak.KillStreakCC;
public class VectorCodecKillStreakCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecKillStreakCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(KillStreakCC,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.<KillStreakCC> = new Vector.<KillStreakCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = KillStreakCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:KillStreakCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<KillStreakCC> = Vector.<KillStreakCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package alternativa.tanks.model.payment.shop.onetimepurchase {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class ShopItemOneTimePurchaseEvents implements ShopItemOneTimePurchase {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function ShopItemOneTimePurchaseEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function isOneTimePurchase() : Boolean {
var result:Boolean = false;
var i:int = 0;
var m:ShopItemOneTimePurchase = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ShopItemOneTimePurchase(this.impl[i]);
result = Boolean(m.isOneTimePurchase());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function isTriedToBuy() : Boolean {
var result:Boolean = false;
var i:int = 0;
var m:ShopItemOneTimePurchase = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ShopItemOneTimePurchase(this.impl[i]);
result = Boolean(m.isTriedToBuy());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.service.battlelist {
import alternativa.tanks.view.battleinfo.BattleInfoBaseParams;
import alternativa.types.Long;
import flash.events.IEventDispatcher;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battleservice.model.types.BattleSuspicionLevel;
public interface IBattleListFormService extends IEventDispatcher {
function createAndShow() : void;
function hideAndDestroy() : void;
function battleItemRecord(param1:BattleInfoBaseParams) : void;
function removeBattleItem(param1:Long) : void;
function selectBattleItemFromServer(param1:IGameObject) : void;
function updateSuspicious(param1:Long, param2:BattleSuspicionLevel) : void;
function updateUsersCount(param1:Long) : void;
function updateBattleName(param1:Long) : void;
function swapTeams(param1:Long) : void;
function battleItemsPacketJoinSuccess() : void;
function checkBattleButton() : void;
}
}
|
package platform.client.fp10.core.registry {
import alternativa.protocol.ICodec;
import alternativa.protocol.ProtocolBuffer;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.type.IGameObject;
public interface ModelRegistry {
function register(param1:Long, param2:Long) : void;
function add(param1:IModel) : void;
function registerModelConstructorCodec(param1:Long, param2:ICodec) : void;
function getModelConstructorCodec(param1:Long) : ICodec;
function invoke(param1:IGameObject, param2:Long, param3:ProtocolBuffer) : void;
function getModel(param1:Long) : IModel;
function registerAdapt(param1:Class, param2:Class) : void;
function registerEvents(param1:Class, param2:Class) : void;
function getAdaptClass(param1:Class) : Class;
function getEventsClass(param1:Class) : Class;
function get models() : Vector.<IModel>;
}
}
|
package _codec.projects.tanks.client.battleselect.model.map {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battleselect.model.map.MapInfoCC;
public class VectorCodecMapInfoCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecMapInfoCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(MapInfoCC,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.<MapInfoCC> = new Vector.<MapInfoCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = MapInfoCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:MapInfoCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<MapInfoCC> = Vector.<MapInfoCC>(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.bonus.region {
import alternativa.tanks.battle.events.BattleEventDispatcher;
import alternativa.tanks.battle.events.BattleEventSupport;
import alternativa.tanks.battle.events.TankLoadedEvent;
import alternativa.tanks.models.bonus.goldbonus.IGoldBonus;
import alternativa.tanks.services.bonusregion.IBonusRegionService;
import platform.client.fp10.core.model.ObjectLoadListener;
import platform.client.fp10.core.model.ObjectLoadPostListener;
import platform.client.fp10.core.model.ObjectUnloadListener;
import projects.tanks.client.battlefield.models.bonus.battle.bonusregions.BonusRegionsModelBase;
import projects.tanks.client.battlefield.models.bonus.battle.bonusregions.IBonusRegionsModelBase;
import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService;
[ModelInfo]
public class BonusRegionsModel extends BonusRegionsModelBase implements IBonusRegionsModelBase, ObjectLoadListener, ObjectLoadPostListener, ObjectUnloadListener {
[Inject]
public static var battleInfoService:IBattleInfoService;
[Inject]
public static var battleEventDispatcher:BattleEventDispatcher;
[Inject]
public static var bonusRegionService:IBonusRegionService;
private var battleEventSupport:BattleEventSupport;
public function BonusRegionsModel() {
super();
this.init();
}
private static function onTankLoaded(param1:TankLoadedEvent) : void {
if(param1.isLocal) {
bonusRegionService.setTank(param1.tank);
}
}
private function init() : void {
this.battleEventSupport = new BattleEventSupport(battleEventDispatcher);
this.battleEventSupport.addEventHandler(TankLoadedEvent,onTankLoaded);
}
[Obfuscation(rename="false")]
public function objectLoaded() : void {
bonusRegionService.prepare(getInitParam().bonusRegionResources);
}
[Obfuscation(rename="false")]
public function objectLoadedPost() : void {
bonusRegionService.addFewRegions(getInitParam().bonusRegions);
var local1:IGoldBonus = IGoldBonus(object.adapt(IGoldBonus));
bonusRegionService.addFewRegions(local1.getRegions());
if(battleInfoService.isSpectatorMode()) {
bonusRegionService.showAll();
} else {
this.battleEventSupport.activateHandlers();
}
}
[Obfuscation(rename="false")]
public function objectUnloaded() : void {
if(!battleInfoService.isSpectatorMode()) {
this.battleEventSupport.deactivateHandlers();
}
bonusRegionService.destroy();
}
}
}
|
package alternativa.tanks.gui.shop.windows {
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.commons.types.ShopCategoryEnum;
public class ShopWindowParams {
public var paymentObject:IGameObject;
public var categoriesWithBonus:Vector.<IGameObject>;
public var currentShopCategoryType:ShopCategoryEnum;
public var shopCategories:Vector.<IGameObject>;
public var shopItems:Vector.<IGameObject>;
public var paymentModes:Vector.<IGameObject>;
public function ShopWindowParams() {
super();
}
}
}
|
package projects.tanks.clients.fp10.models.battlefieldmodelflash {
import alternativa.osgi.OSGi;
import alternativa.osgi.bundle.IBundleActivator;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.osgi.service.command.CommandService;
import alternativa.osgi.service.display.IDisplay;
import alternativa.osgi.service.dump.IDumpService;
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.osgi.service.logging.LogService;
import alternativa.tanks.battle.BattleRunner;
import alternativa.tanks.battle.BattleRunnerProvider;
import alternativa.tanks.battle.BattleService;
import alternativa.tanks.battle.BattleUtils;
import alternativa.tanks.battle.BattleView;
import alternativa.tanks.battle.PerformanceControllerWithThrottling;
import alternativa.tanks.battle.SpeedHackChecker;
import alternativa.tanks.battle.events.BattleEventDispatcher;
import alternativa.tanks.battle.notificationpausefinish.EndsPauseAlert;
import alternativa.tanks.battle.notificationpausefinish.NotificationEndsPauseSupport;
import alternativa.tanks.battle.objects.tank.controllers.LocalChassisController;
import alternativa.tanks.battle.objects.tank.controllers.LocalCheatController;
import alternativa.tanks.battle.objects.tank.controllers.LocalShaftController;
import alternativa.tanks.battle.objects.tank.controllers.LocalTurretController;
import alternativa.tanks.battle.objects.tank.controllers.ShaftReticleDisplayController;
import alternativa.tanks.battle.objects.tank.skintexturesregistry.TankSkinTextureRegistry;
import alternativa.tanks.battle.objects.tank.tankskin.TankSkin;
import alternativa.tanks.battle.objects.tank.tankskin.materialfactory.DebugBitmapLayer;
import alternativa.tanks.battle.objects.tank.tankskin.materialfactory.DefaultTankSkinMaterialsFactory;
import alternativa.tanks.battle.objects.tank.tankskin.turret.ArtilleryTurretSkin;
import alternativa.tanks.battle.objects.tank.tankskin.turret.CustomTurretSkin;
import alternativa.tanks.battle.objects.tank.tankskin.turret.CustomTurretSkinAdapt;
import alternativa.tanks.battle.objects.tank.tankskin.turret.CustomTurretSkinEvents;
import alternativa.tanks.battle.objects.tank.tankskin.turret.TurretSkin;
import alternativa.tanks.battle.scene3d.BattleScene3DDebugCommands;
import alternativa.tanks.battle.scene3d.FadingDecalsRenderer;
import alternativa.tanks.bg.IBackgroundService;
import alternativa.tanks.bonuses.BattleBonus;
import alternativa.tanks.bonuses.BonusMesh;
import alternativa.tanks.bonuses.BonusObject3DBase;
import alternativa.tanks.bonuses.BonusPickupAnimation;
import alternativa.tanks.bonuses.GroundSpawnRenderer;
import alternativa.tanks.bonuses.ParachuteDetachAnimation;
import alternativa.tanks.bonuses.RemovalAnimation;
import alternativa.tanks.bonuses.SpawnAnimation;
import alternativa.tanks.bonuses.SpawnFlashRenderer;
import alternativa.tanks.camera.CameraBookmark;
import alternativa.tanks.camera.FollowCameraController;
import alternativa.tanks.camera.controllers.spectator.PlayerCamera;
import alternativa.tanks.camera.controllers.spectator.SpectatorBonusRegionController;
import alternativa.tanks.camera.controllers.spectator.SpectatorCameraController;
import alternativa.tanks.camera.controllers.spectator.SpectatorSupport;
import alternativa.tanks.engine3d.EffectsMaterialRegistry;
import alternativa.tanks.engine3d.TextureMaterialRegistryBase;
import alternativa.tanks.loader.ILoaderWindowService;
import alternativa.tanks.loader.IModalLoaderService;
import alternativa.tanks.models.battle.assault.AssaultHudIndicators;
import alternativa.tanks.models.battle.assault.AssaultMessages;
import alternativa.tanks.models.battle.assault.AssaultModel;
import alternativa.tanks.models.battle.assault.PointBaseIndicatorPlane;
import alternativa.tanks.models.battle.battlefield.BattleModel;
import alternativa.tanks.models.battle.battlefield.BattleModelAdapt;
import alternativa.tanks.models.battle.battlefield.BattleModelEvents;
import alternativa.tanks.models.battle.battlefield.BattleSfx;
import alternativa.tanks.models.battle.battlefield.BattleSfxAdapt;
import alternativa.tanks.models.battle.battlefield.BattleSfxEvents;
import alternativa.tanks.models.battle.battlefield.BattleUserInfoService;
import alternativa.tanks.models.battle.battlefield.BattlefieldEvents;
import alternativa.tanks.models.battle.battlefield.BattlefieldEventsAdapt;
import alternativa.tanks.models.battle.battlefield.BattlefieldEventsEvents;
import alternativa.tanks.models.battle.battlefield.BattlefieldModel;
import alternativa.tanks.models.battle.battlefield.FollowCameraControllerLocker;
import alternativa.tanks.models.battle.battlefield.FreeCameraSupport;
import alternativa.tanks.models.battle.battlefield.SpectatorFogToggleSupport;
import alternativa.tanks.models.battle.battlefield.SpectatorUserTitleRenderer;
import alternativa.tanks.models.battle.battlefield.StageFrameRateController;
import alternativa.tanks.models.battle.battlefield.billboard.BillboardsDebugCommands;
import alternativa.tanks.models.battle.battlefield.billboard.BillboardsModel;
import alternativa.tanks.models.battle.battlefield.billboard.billboardimage.BillboardImageModel;
import alternativa.tanks.models.battle.battlefield.keyboard.AdditionUserTitleSwitcher;
import alternativa.tanks.models.battle.battlefield.map.Billboards;
import alternativa.tanks.models.battle.battlefield.map.MapBuilder;
import alternativa.tanks.models.battle.battlefield.mine.BattleMinesModel;
import alternativa.tanks.models.battle.battlefield.mine.IBattleMinesModel;
import alternativa.tanks.models.battle.battlefield.mine.IBattleMinesModelAdapt;
import alternativa.tanks.models.battle.battlefield.mine.IBattleMinesModelEvents;
import alternativa.tanks.models.battle.battlefield.mine.ProximityMine;
import alternativa.tanks.models.battle.commonflag.CommonFlag;
import alternativa.tanks.models.battle.commonflag.Flag;
import alternativa.tanks.models.battle.commonflag.FlagNotification;
import alternativa.tanks.models.battle.commonflag.FlagNotificationAdapt;
import alternativa.tanks.models.battle.commonflag.FlagNotificationEvents;
import alternativa.tanks.models.battle.commonflag.ICommonFlagModeModel;
import alternativa.tanks.models.battle.commonflag.ICommonFlagModeModelAdapt;
import alternativa.tanks.models.battle.commonflag.ICommonFlagModeModelEvents;
import alternativa.tanks.models.battle.commonflag.IFlagModeInitilizer;
import alternativa.tanks.models.battle.commonflag.IFlagModeInitilizerAdapt;
import alternativa.tanks.models.battle.commonflag.IFlagModeInitilizerEvents;
import alternativa.tanks.models.battle.commonflag.MarkersUtils;
import alternativa.tanks.models.battle.commonflag.PointBasedBattleModel;
import alternativa.tanks.models.battle.ctf.CTFHudIndicators;
import alternativa.tanks.models.battle.ctf.CTFMessages;
import alternativa.tanks.models.battle.ctf.CTFModel;
import alternativa.tanks.models.battle.ctf.FlagMessage;
import alternativa.tanks.models.battle.ctf.FlagPickupTimeoutTask;
import alternativa.tanks.models.battle.debug.BattleDebugModel;
import alternativa.tanks.models.battle.dm.BattleDMModel;
import alternativa.tanks.models.battle.facilities.BattleFacilities;
import alternativa.tanks.models.battle.facilities.BattleFacilitiesAdapt;
import alternativa.tanks.models.battle.facilities.BattleFacilitiesChecker;
import alternativa.tanks.models.battle.facilities.BattleFacilitiesCheckerAdapt;
import alternativa.tanks.models.battle.facilities.BattleFacilitiesCheckerEvents;
import alternativa.tanks.models.battle.facilities.BattleFacilitiesEvents;
import alternativa.tanks.models.battle.facilities.BattleFacilitiesModel;
import alternativa.tanks.models.battle.facilities.BattleUnloadListener;
import alternativa.tanks.models.battle.facilities.BattleUnloadListenerAdapt;
import alternativa.tanks.models.battle.facilities.BattleUnloadListenerEvents;
import alternativa.tanks.models.battle.facilities.CommonFacilityModel;
import alternativa.tanks.models.battle.facilities.FacilityDispellEffect;
import alternativa.tanks.models.battle.facilities.FacilityDispellEffectAdapt;
import alternativa.tanks.models.battle.facilities.FacilityDispellEffectEvents;
import alternativa.tanks.models.battle.facilities.FacilitySphericalZone;
import alternativa.tanks.models.battle.facilities.FacilitySphericalZoneAdapt;
import alternativa.tanks.models.battle.facilities.FacilitySphericalZoneEvents;
import alternativa.tanks.models.battle.facilities.FacilitySphericalZoneModel;
import alternativa.tanks.models.battle.facilities.ICommonFacility;
import alternativa.tanks.models.battle.facilities.ICommonFacilityAdapt;
import alternativa.tanks.models.battle.facilities.ICommonFacilityEvents;
import alternativa.tanks.models.battle.gui.BattlefieldGUI;
import alternativa.tanks.models.battle.gui.BattlefieldGUIAdapt;
import alternativa.tanks.models.battle.gui.BattlefieldGUIEvents;
import alternativa.tanks.models.battle.gui.chat.BattleChat;
import alternativa.tanks.models.battle.gui.chat.BattleChatLine;
import alternativa.tanks.models.battle.gui.chat.BattleChatModel;
import alternativa.tanks.models.battle.gui.chat.ChatLocker;
import alternativa.tanks.models.battle.gui.chat.IBattleChat;
import alternativa.tanks.models.battle.gui.chat.IBattleChatAdapt;
import alternativa.tanks.models.battle.gui.chat.IBattleChatEvents;
import alternativa.tanks.models.battle.gui.chat.cmdhandlers.BlockCommandHandler;
import alternativa.tanks.models.battle.gui.chat.cmdhandlers.UnblockCommandHandler;
import alternativa.tanks.models.battle.gui.drone.DroneIndicatorModel;
import alternativa.tanks.models.battle.gui.drone.IDroneModel;
import alternativa.tanks.models.battle.gui.drone.IDroneModelAdapt;
import alternativa.tanks.models.battle.gui.drone.IDroneModelEvents;
import alternativa.tanks.models.battle.gui.group.MatchmakingGroupInfoModel;
import alternativa.tanks.models.battle.gui.gui.help.ControlsHelper;
import alternativa.tanks.models.battle.gui.gui.help.ControlsMiniHelp;
import alternativa.tanks.models.battle.gui.gui.statistics.field.fund.FundField;
import alternativa.tanks.models.battle.gui.gui.statistics.fps.FPSText;
import alternativa.tanks.models.battle.gui.gui.statistics.messages.BattleMessages;
import alternativa.tanks.models.battle.gui.gui.statistics.table.StatisticsListRenderer;
import alternativa.tanks.models.battle.gui.gui.statistics.table.StatisticsTable;
import alternativa.tanks.models.battle.gui.gui.statistics.table.ViewStatistics;
import alternativa.tanks.models.battle.gui.indicators.ReloaderIndicator;
import alternativa.tanks.models.battle.gui.indicators.SuicideIndicator;
import alternativa.tanks.models.battle.gui.indicators.TurnOverIndicator;
import alternativa.tanks.models.battle.gui.inventory.IInventoryItem;
import alternativa.tanks.models.battle.gui.inventory.IInventoryItemAdapt;
import alternativa.tanks.models.battle.gui.inventory.IInventoryItemEvents;
import alternativa.tanks.models.battle.gui.inventory.IInventoryPanel;
import alternativa.tanks.models.battle.gui.inventory.InventoryItemModel;
import alternativa.tanks.models.battle.gui.inventory.InventoryModel;
import alternativa.tanks.models.battle.gui.inventory.InventoryPanelSlot;
import alternativa.tanks.models.battle.gui.inventory.InventorySfxModel;
import alternativa.tanks.models.battle.gui.inventory.InventorySoundService;
import alternativa.tanks.models.battle.gui.inventory.cooldown.InventoryCooldownModel;
import alternativa.tanks.models.battle.gui.markers.PointMarker;
import alternativa.tanks.models.battle.gui.statistics.DefaultLayout;
import alternativa.tanks.models.battle.gui.ultimate.UltimateIndicator;
import alternativa.tanks.models.battle.gui.userlabel.BattleChatUserLabel;
import alternativa.tanks.models.battle.jgr.BattleJGRModel;
import alternativa.tanks.models.battle.jgr.Juggernaut;
import alternativa.tanks.models.battle.jgr.JuggernautAdapt;
import alternativa.tanks.models.battle.jgr.JuggernautEvents;
import alternativa.tanks.models.battle.jgr.JuggernautHudIndicator;
import alternativa.tanks.models.battle.jgr.JuggernautModel;
import alternativa.tanks.models.battle.jgr.killstreak.KillStreakModel;
import alternativa.tanks.models.battle.meteor.MeteorStormModel;
import alternativa.tanks.models.battle.rugby.Ball;
import alternativa.tanks.models.battle.rugby.RugbyMessages;
import alternativa.tanks.models.battle.rugby.RugbyModel;
import alternativa.tanks.models.battle.rugby.explosion.BallExplosion;
import alternativa.tanks.models.battle.rugby.explosion.BallExplosionAdapt;
import alternativa.tanks.models.battle.rugby.explosion.BallExplosionEvents;
import alternativa.tanks.models.battle.rugby.explosion.BallExplosionModel;
import alternativa.tanks.models.battle.statistics.MemoryStatisticsModel;
import alternativa.tanks.models.battle.statistics.fps.CameraStatisticFeature;
import alternativa.tanks.models.battle.statistics.fps.FpsStatisticsModel;
import alternativa.tanks.models.battle.statistics.targetingmode.TargetingStatisticsModel;
import alternativa.tanks.models.battle.tdm.BattleTDMModel;
import alternativa.tanks.models.bonus.battlefield.BattlefieldBonusesModel;
import alternativa.tanks.models.bonus.bonuslight.BonusLightModel;
import alternativa.tanks.models.bonus.bonuslight.IBonusLight;
import alternativa.tanks.models.bonus.bonuslight.IBonusLightAdapt;
import alternativa.tanks.models.bonus.bonuslight.IBonusLightEvents;
import alternativa.tanks.models.bonus.common.BonusCommonModel;
import alternativa.tanks.models.bonus.gold.BattleGoldBonusesModel;
import alternativa.tanks.models.bonus.goldbonus.GoldBonusesModel;
import alternativa.tanks.models.bonus.goldbonus.IGoldBonus;
import alternativa.tanks.models.bonus.goldbonus.IGoldBonusAdapt;
import alternativa.tanks.models.bonus.goldbonus.IGoldBonusEvents;
import alternativa.tanks.models.bonus.notification.BonusNotification;
import alternativa.tanks.models.bonus.notification.BonusNotificationAdapt;
import alternativa.tanks.models.bonus.notification.BonusNotificationEvents;
import alternativa.tanks.models.bonus.notification.BonusNotificationModel;
import alternativa.tanks.models.bonus.notification.RandomGoldBonusTakeModel;
import alternativa.tanks.models.bonus.region.BonusRegion;
import alternativa.tanks.models.bonus.region.BonusRegionsModel;
import alternativa.tanks.models.coloradjust.ColorAdjustModel;
import alternativa.tanks.models.coloradjust.IColorAdjust;
import alternativa.tanks.models.coloradjust.IColorAdjustAdapt;
import alternativa.tanks.models.coloradjust.IColorAdjustEvents;
import alternativa.tanks.models.continuebattle.ContinueBattle;
import alternativa.tanks.models.continuebattle.ContinueBattleAdapt;
import alternativa.tanks.models.continuebattle.ContinueBattleEvents;
import alternativa.tanks.models.continuebattle.ContinueBattleModel;
import alternativa.tanks.models.continuebattle.MatchmakingContinueBattleModel;
import alternativa.tanks.models.controlpoints.ControlPointsModel;
import alternativa.tanks.models.controlpoints.hud.KeyPointView;
import alternativa.tanks.models.controlpoints.hud.marker.KeyPointHUDMarkers;
import alternativa.tanks.models.controlpoints.message.ControlPointMessage;
import alternativa.tanks.models.controlpoints.sfx.BeamEffects;
import alternativa.tanks.models.drones.DroneEffects;
import alternativa.tanks.models.drones.DroneMaterialFactory;
import alternativa.tanks.models.effects.activeafetrdeath.ActiveAfterDeathModel;
import alternativa.tanks.models.effects.activeafetrdeath.IActiveAfterDeath;
import alternativa.tanks.models.effects.activeafetrdeath.IActiveAfterDeathAdapt;
import alternativa.tanks.models.effects.activeafetrdeath.IActiveAfterDeathEvents;
import alternativa.tanks.models.effects.common.IBonusCommonModel;
import alternativa.tanks.models.effects.common.IBonusCommonModelAdapt;
import alternativa.tanks.models.effects.common.IBonusCommonModelEvents;
import alternativa.tanks.models.effects.description.EffectDescriptionModel;
import alternativa.tanks.models.effects.durationTime.DurationModel;
import alternativa.tanks.models.effects.durationTime.IDuration;
import alternativa.tanks.models.effects.durationTime.IDurationAdapt;
import alternativa.tanks.models.effects.durationTime.IDurationEvents;
import alternativa.tanks.models.effects.effectlevel.EffectLevelModel;
import alternativa.tanks.models.effects.effectlevel.IEffectLevel;
import alternativa.tanks.models.effects.effectlevel.IEffectLevelAdapt;
import alternativa.tanks.models.effects.effectlevel.IEffectLevelEvents;
import alternativa.tanks.models.inventory.IInventoryModel;
import alternativa.tanks.models.inventory.IInventoryModelAdapt;
import alternativa.tanks.models.inventory.IInventoryModelEvents;
import alternativa.tanks.models.latency.LatencyModel;
import alternativa.tanks.models.map.BattleMapModel;
import alternativa.tanks.models.map.IBattleMap;
import alternativa.tanks.models.map.IBattleMapAdapt;
import alternativa.tanks.models.map.IBattleMapEvents;
import alternativa.tanks.models.mapbonuslight.IMapBonusLight;
import alternativa.tanks.models.mapbonuslight.IMapBonusLightAdapt;
import alternativa.tanks.models.mapbonuslight.IMapBonusLightEvents;
import alternativa.tanks.models.mapbonuslight.MapBonusLightModel;
import alternativa.tanks.models.performance.PerformanceModel;
import alternativa.tanks.models.sfx.colortransform.ColorTransformConsumer;
import alternativa.tanks.models.sfx.colortransform.ColorTransformConsumerAdapt;
import alternativa.tanks.models.sfx.colortransform.ColorTransformConsumerEvents;
import alternativa.tanks.models.sfx.colortransform.ColorTransformModel;
import alternativa.tanks.models.sfx.effectsfx.TankEffectSFXModel;
import alternativa.tanks.models.sfx.smoke.HullSmoke;
import alternativa.tanks.models.sfx.smoke.HullSmokeAdapt;
import alternativa.tanks.models.sfx.smoke.HullSmokeEvents;
import alternativa.tanks.models.sfx.smoke.HullSmokeModel;
import alternativa.tanks.models.sfx.smoke.HullSmokeRenderer;
import alternativa.tanks.models.statistics.BattlefieldMessagesAligner;
import alternativa.tanks.models.statistics.ControlsHelpSupport;
import alternativa.tanks.models.statistics.ControlsMiniHelpSupport;
import alternativa.tanks.models.statistics.FpsIndicatorToggleSupport;
import alternativa.tanks.models.statistics.IClientUserInfo;
import alternativa.tanks.models.statistics.IClientUserInfoAdapt;
import alternativa.tanks.models.statistics.IClientUserInfoEvents;
import alternativa.tanks.models.statistics.IStatisticRound;
import alternativa.tanks.models.statistics.IStatisticRoundAdapt;
import alternativa.tanks.models.statistics.IStatisticRoundEvents;
import alternativa.tanks.models.statistics.IStatisticsModel;
import alternativa.tanks.models.statistics.IStatisticsModelAdapt;
import alternativa.tanks.models.statistics.IStatisticsModelEvents;
import alternativa.tanks.models.statistics.PauseIndicatorSupport;
import alternativa.tanks.models.statistics.SpectatorScreenLayouts;
import alternativa.tanks.models.statistics.StatisticsModel;
import alternativa.tanks.models.statistics.TankKillLogger;
import alternativa.tanks.models.statistics.dm.StatisticsDmModel;
import alternativa.tanks.models.statistics.team.StatisticsTeamModel;
import alternativa.tanks.models.tank.AddToBattleListener;
import alternativa.tanks.models.tank.AddToBattleListenerAdapt;
import alternativa.tanks.models.tank.AddToBattleListenerEvents;
import alternativa.tanks.models.tank.ChassisStateCorrectionTask;
import alternativa.tanks.models.tank.DestroyTankPart;
import alternativa.tanks.models.tank.DestroyTankPartAdapt;
import alternativa.tanks.models.tank.DestroyTankPartEvents;
import alternativa.tanks.models.tank.ITankModel;
import alternativa.tanks.models.tank.ITankModelAdapt;
import alternativa.tanks.models.tank.ITankModelEvents;
import alternativa.tanks.models.tank.InitTankPart;
import alternativa.tanks.models.tank.InitTankPartAdapt;
import alternativa.tanks.models.tank.InitTankPartEvents;
import alternativa.tanks.models.tank.LocalTankInfoService;
import alternativa.tanks.models.tank.LocalWeaponController;
import alternativa.tanks.models.tank.MainLoopExecutionErrorHandler;
import alternativa.tanks.models.tank.PositionBookmarks;
import alternativa.tanks.models.tank.RegularUserTitleRenderer;
import alternativa.tanks.models.tank.RemoveFromBattleListener;
import alternativa.tanks.models.tank.RemoveFromBattleListenerAdapt;
import alternativa.tanks.models.tank.RemoveFromBattleListenerEvents;
import alternativa.tanks.models.tank.SpawnCameraConfigurator;
import alternativa.tanks.models.tank.TankDataValidatorWrapper;
import alternativa.tanks.models.tank.TankModel;
import alternativa.tanks.models.tank.TankPartReset;
import alternativa.tanks.models.tank.TankPartResetAdapt;
import alternativa.tanks.models.tank.TankPartResetEvents;
import alternativa.tanks.models.tank.TankUserInfoUpdater;
import alternativa.tanks.models.tank.WeaponMountProvider;
import alternativa.tanks.models.tank.WeaponMountProviderAdapt;
import alternativa.tanks.models.tank.WeaponMountProviderEvents;
import alternativa.tanks.models.tank.armor.Armor;
import alternativa.tanks.models.tank.armor.ArmorAdapt;
import alternativa.tanks.models.tank.armor.ArmorEvents;
import alternativa.tanks.models.tank.armor.SimpleArmorModel;
import alternativa.tanks.models.tank.armor.chassis.tracked.ITrackedChassis;
import alternativa.tanks.models.tank.armor.chassis.tracked.ITrackedChassisAdapt;
import alternativa.tanks.models.tank.armor.chassis.tracked.ITrackedChassisEvents;
import alternativa.tanks.models.tank.armor.chassis.tracked.TrackedChassisModel;
import alternativa.tanks.models.tank.bosstate.BossStateModel;
import alternativa.tanks.models.tank.bosstate.IBossState;
import alternativa.tanks.models.tank.bosstate.IBossStateAdapt;
import alternativa.tanks.models.tank.bosstate.IBossStateEvents;
import alternativa.tanks.models.tank.configuration.TankConfiguration;
import alternativa.tanks.models.tank.configuration.TankConfigurationAdapt;
import alternativa.tanks.models.tank.configuration.TankConfigurationEvents;
import alternativa.tanks.models.tank.configuration.TankConfigurationModel;
import alternativa.tanks.models.tank.damageindicator.DamageIndicatorModel;
import alternativa.tanks.models.tank.device.TankDevice;
import alternativa.tanks.models.tank.device.TankDeviceAdapt;
import alternativa.tanks.models.tank.device.TankDeviceEvents;
import alternativa.tanks.models.tank.device.TankDeviceModel;
import alternativa.tanks.models.tank.engine.Engine;
import alternativa.tanks.models.tank.engine.EngineAdapt;
import alternativa.tanks.models.tank.engine.EngineEvents;
import alternativa.tanks.models.tank.engine.EngineModel;
import alternativa.tanks.models.tank.event.LocalTankLoadListener;
import alternativa.tanks.models.tank.event.LocalTankLoadListenerAdapt;
import alternativa.tanks.models.tank.event.LocalTankLoadListenerEvents;
import alternativa.tanks.models.tank.event.LocalTankUnloadListener;
import alternativa.tanks.models.tank.event.LocalTankUnloadListenerAdapt;
import alternativa.tanks.models.tank.event.LocalTankUnloadListenerEvents;
import alternativa.tanks.models.tank.event.TankEntityCreationListener;
import alternativa.tanks.models.tank.event.TankEntityCreationListenerAdapt;
import alternativa.tanks.models.tank.event.TankEntityCreationListenerEvents;
import alternativa.tanks.models.tank.explosion.ITankExplosionModel;
import alternativa.tanks.models.tank.explosion.ITankExplosionModelAdapt;
import alternativa.tanks.models.tank.explosion.ITankExplosionModelEvents;
import alternativa.tanks.models.tank.explosion.TankExplosionModel;
import alternativa.tanks.models.tank.gearscore.BattleGearScoreModel;
import alternativa.tanks.models.tank.gearscore.GearScoreInfo;
import alternativa.tanks.models.tank.gearscore.GearScoreInfoAdapt;
import alternativa.tanks.models.tank.gearscore.GearScoreInfoEvents;
import alternativa.tanks.models.tank.hullcommon.HullCommon;
import alternativa.tanks.models.tank.hullcommon.HullCommonAdapt;
import alternativa.tanks.models.tank.hullcommon.HullCommonEvents;
import alternativa.tanks.models.tank.hullcommon.HullCommonModel;
import alternativa.tanks.models.tank.killhandlers.CommonTankDieHandler;
import alternativa.tanks.models.tank.killhandlers.DeathConfirmationTimeoutTask;
import alternativa.tanks.models.tank.pause.ITankPause;
import alternativa.tanks.models.tank.pause.ITankPauseAdapt;
import alternativa.tanks.models.tank.pause.ITankPauseEvents;
import alternativa.tanks.models.tank.pause.TankPauseModel;
import alternativa.tanks.models.tank.rankup.ITankRankUpEffectModel;
import alternativa.tanks.models.tank.rankup.ITankRankUpEffectModelAdapt;
import alternativa.tanks.models.tank.rankup.ITankRankUpEffectModelEvents;
import alternativa.tanks.models.tank.rankup.RankChangeListener;
import alternativa.tanks.models.tank.rankup.ScheduledTankRankChangeEffect;
import alternativa.tanks.models.tank.rankup.TankRankUpEffectModel;
import alternativa.tanks.models.tank.reloader.TankReloaderModel;
import alternativa.tanks.models.tank.resistance.TankResistances;
import alternativa.tanks.models.tank.resistance.TankResistancesAdapt;
import alternativa.tanks.models.tank.resistance.TankResistancesEvents;
import alternativa.tanks.models.tank.resistance.TankResistancesModel;
import alternativa.tanks.models.tank.spawn.ITankSpawner;
import alternativa.tanks.models.tank.spawn.ITankSpawnerAdapt;
import alternativa.tanks.models.tank.spawn.ITankSpawnerEvents;
import alternativa.tanks.models.tank.spawn.ReadyToPlaceTask;
import alternativa.tanks.models.tank.spawn.ReadyToSpawnTask;
import alternativa.tanks.models.tank.spawn.TankSpawnerModel;
import alternativa.tanks.models.tank.spawn.spawnhandlers.LocalTankFirstTimeSpawner;
import alternativa.tanks.models.tank.spawn.spawnhandlers.ready2spawn.LocalReadyToSpawnHandler;
import alternativa.tanks.models.tank.spawn.spawnhandlers.spawn.LocalSpawnHandler;
import alternativa.tanks.models.tank.spawn.spawnhandlers.spawn.SpectatorSpawnHandler;
import alternativa.tanks.models.tank.speedcharacteristics.SpeedCharacteristics;
import alternativa.tanks.models.tank.speedcharacteristics.SpeedCharacteristicsAdapt;
import alternativa.tanks.models.tank.speedcharacteristics.SpeedCharacteristicsEvents;
import alternativa.tanks.models.tank.speedcharacteristics.SpeedCharacteristicsModel;
import alternativa.tanks.models.tank.suicude.SuicideModel;
import alternativa.tanks.models.tank.support.AutoExitSupport;
import alternativa.tanks.models.tank.support.ClientDeactivationSupport;
import alternativa.tanks.models.tank.support.DialogWindowSupport;
import alternativa.tanks.models.tank.support.PauseSupport;
import alternativa.tanks.models.tank.support.StateCorrectionSupport;
import alternativa.tanks.models.tank.support.SuicideSupport;
import alternativa.tanks.models.tank.support.TankReloaderSupport;
import alternativa.tanks.models.tank.support.TankSettingsSupport;
import alternativa.tanks.models.tank.support.TurnOverIndicatorSupport;
import alternativa.tanks.models.tank.temperature.TankTemperatureModel;
import alternativa.tanks.models.tank.turnover.TankTurnOverModel;
import alternativa.tanks.models.tank.ultimate.IUltimateModel;
import alternativa.tanks.models.tank.ultimate.IUltimateModelAdapt;
import alternativa.tanks.models.tank.ultimate.IUltimateModelEvents;
import alternativa.tanks.models.tank.ultimate.UltimateModel;
import alternativa.tanks.models.tank.ultimate.dictator.DictatorUltimateModel;
import alternativa.tanks.models.tank.ultimate.hornet.HornetUltimateModel;
import alternativa.tanks.models.tank.ultimate.hornet.radar.BattleRadarHudIndicators;
import alternativa.tanks.models.tank.ultimate.hornet.radar.BattleUltimateRadarModel;
import alternativa.tanks.models.tank.ultimate.hunter.HunterUltimateModel;
import alternativa.tanks.models.tank.ultimate.hunter.TankStunModel;
import alternativa.tanks.models.tank.ultimate.hunter.stun.UltimateStunListener;
import alternativa.tanks.models.tank.ultimate.hunter.stun.UltimateStunListenerAdapt;
import alternativa.tanks.models.tank.ultimate.hunter.stun.UltimateStunListenerEvents;
import alternativa.tanks.models.tank.ultimate.juggernaut.JuggernautUltimateModel;
import alternativa.tanks.models.tank.ultimate.mammoth.ImpactEnable;
import alternativa.tanks.models.tank.ultimate.mammoth.ImpactEnableAdapt;
import alternativa.tanks.models.tank.ultimate.mammoth.ImpactEnableEvents;
import alternativa.tanks.models.tank.ultimate.mammoth.MammothUltimateModel;
import alternativa.tanks.models.tank.ultimate.titan.generator.TitanUltimateGeneratorModel;
import alternativa.tanks.models.tank.ultimate.viking.VikingUltimateModel;
import alternativa.tanks.models.tank.ultimate.wasp.bomb.WaspUltimateBombModel;
import alternativa.tanks.models.teamlight.IModeLight;
import alternativa.tanks.models.teamlight.IModeLightAdapt;
import alternativa.tanks.models.teamlight.IModeLightEvents;
import alternativa.tanks.models.teamlight.TeamLightModel;
import alternativa.tanks.models.timechecker.TimeCheckerModel;
import alternativa.tanks.models.weapon.IWeaponModel;
import alternativa.tanks.models.weapon.IWeaponModelAdapt;
import alternativa.tanks.models.weapon.IWeaponModelEvents;
import alternativa.tanks.models.weapon.angles.verticals.VerticalAngles;
import alternativa.tanks.models.weapon.angles.verticals.VerticalAnglesAdapt;
import alternativa.tanks.models.weapon.angles.verticals.VerticalAnglesEvents;
import alternativa.tanks.models.weapon.angles.verticals.WeaponVerticalAnglesModel;
import alternativa.tanks.models.weapon.angles.verticals.autoaiming.VerticalAutoAiming;
import alternativa.tanks.models.weapon.angles.verticals.autoaiming.VerticalAutoAimingAdapt;
import alternativa.tanks.models.weapon.angles.verticals.autoaiming.VerticalAutoAimingEvents;
import alternativa.tanks.models.weapon.angles.verticals.autoaiming.VerticalAutoAimingModel;
import alternativa.tanks.models.weapon.artillery.ArtilleryCannonEffect;
import alternativa.tanks.models.weapon.artillery.ArtilleryEffectsProvider;
import alternativa.tanks.models.weapon.artillery.ArtilleryEffectsProviderAdapt;
import alternativa.tanks.models.weapon.artillery.ArtilleryEffectsProviderEvents;
import alternativa.tanks.models.weapon.artillery.ArtilleryModel;
import alternativa.tanks.models.weapon.artillery.ArtilleryShell;
import alternativa.tanks.models.weapon.artillery.ArtillerySkin;
import alternativa.tanks.models.weapon.artillery.ArtillerySkinAdapt;
import alternativa.tanks.models.weapon.artillery.ArtillerySkinEvents;
import alternativa.tanks.models.weapon.artillery.ArtilleryVariant;
import alternativa.tanks.models.weapon.artillery.ArtilleryVariantAdapt;
import alternativa.tanks.models.weapon.artillery.ArtilleryVariantEvents;
import alternativa.tanks.models.weapon.artillery.IArtilleryModel;
import alternativa.tanks.models.weapon.artillery.IArtilleryModelAdapt;
import alternativa.tanks.models.weapon.artillery.IArtilleryModelEvents;
import alternativa.tanks.models.weapon.artillery.VerticalAngleView;
import alternativa.tanks.models.weapon.artillery.rotation.ArtilleryElevatingBarrelModel;
import alternativa.tanks.models.weapon.artillery.rotation.ArtilleryRotatingTurretModel;
import alternativa.tanks.models.weapon.artillery.rotation.BarrelElevationController;
import alternativa.tanks.models.weapon.artillery.sfx.ArtilleryEffects;
import alternativa.tanks.models.weapon.artillery.sfx.ArtilleryFlame;
import alternativa.tanks.models.weapon.artillery.sfx.ArtillerySfx;
import alternativa.tanks.models.weapon.artillery.sfx.ArtillerySfxAdapt;
import alternativa.tanks.models.weapon.artillery.sfx.ArtillerySfxData;
import alternativa.tanks.models.weapon.artillery.sfx.ArtillerySfxEvents;
import alternativa.tanks.models.weapon.artillery.sfx.ArtillerySfxModel;
import alternativa.tanks.models.weapon.artillery.sfx.ArtilleryShellEffects;
import alternativa.tanks.models.weapon.artillery.sfx.ArtilleryShotEffect;
import alternativa.tanks.models.weapon.artillery.sfx.ArtilleryTrailEffect;
import alternativa.tanks.models.weapon.common.IWeaponCommonModel;
import alternativa.tanks.models.weapon.common.IWeaponCommonModelAdapt;
import alternativa.tanks.models.weapon.common.IWeaponCommonModelEvents;
import alternativa.tanks.models.weapon.common.WeaponBuffListener;
import alternativa.tanks.models.weapon.common.WeaponBuffListenerAdapt;
import alternativa.tanks.models.weapon.common.WeaponBuffListenerEvents;
import alternativa.tanks.models.weapon.common.WeaponCommonModel;
import alternativa.tanks.models.weapon.common.WeaponSound;
import alternativa.tanks.models.weapon.common.WeaponSoundAdapt;
import alternativa.tanks.models.weapon.common.WeaponSoundEvents;
import alternativa.tanks.models.weapon.flamethrower.FlamethrowerEffects;
import alternativa.tanks.models.weapon.flamethrower.FlamethrowerModel;
import alternativa.tanks.models.weapon.flamethrower.FlamethrowerSFXModel;
import alternativa.tanks.models.weapon.flamethrower.IFlamethrowerSFXModel;
import alternativa.tanks.models.weapon.flamethrower.IFlamethrowerSFXModelAdapt;
import alternativa.tanks.models.weapon.flamethrower.IFlamethrowerSFXModelEvents;
import alternativa.tanks.models.weapon.freeze.FreezeModel;
import alternativa.tanks.models.weapon.freeze.FreezeSFXModel;
import alternativa.tanks.models.weapon.freeze.IFreezeSFXModel;
import alternativa.tanks.models.weapon.freeze.IFreezeSFXModelAdapt;
import alternativa.tanks.models.weapon.freeze.IFreezeSFXModelEvents;
import alternativa.tanks.models.weapon.gauss.CommonGaussWeapon;
import alternativa.tanks.models.weapon.gauss.GaussModel;
import alternativa.tanks.models.weapon.gauss.GaussSkin;
import alternativa.tanks.models.weapon.gauss.GaussSkinAdapt;
import alternativa.tanks.models.weapon.gauss.GaussSkinEvents;
import alternativa.tanks.models.weapon.gauss.GaussWeaponCallback;
import alternativa.tanks.models.weapon.gauss.GaussWeaponCallbackAdapt;
import alternativa.tanks.models.weapon.gauss.GaussWeaponCallbackEvents;
import alternativa.tanks.models.weapon.gauss.sfx.GaussAntennaAimingEffect;
import alternativa.tanks.models.weapon.gauss.sfx.GaussEffects;
import alternativa.tanks.models.weapon.gauss.sfx.GaussMuzzleEffect;
import alternativa.tanks.models.weapon.gauss.sfx.GaussPowerShotEffect;
import alternativa.tanks.models.weapon.gauss.sfx.GaussSFXModel;
import alternativa.tanks.models.weapon.gauss.sfx.IGaussSFXModel;
import alternativa.tanks.models.weapon.gauss.sfx.IGaussSFXModelAdapt;
import alternativa.tanks.models.weapon.gauss.sfx.IGaussSFXModelEvents;
import alternativa.tanks.models.weapon.healing.HealingGunCallback;
import alternativa.tanks.models.weapon.healing.HealingGunCallbackAdapt;
import alternativa.tanks.models.weapon.healing.HealingGunCallbackEvents;
import alternativa.tanks.models.weapon.healing.HealingGunModel;
import alternativa.tanks.models.weapon.healing.HealingGunSFXModel;
import alternativa.tanks.models.weapon.healing.IHealingGunSFXModel;
import alternativa.tanks.models.weapon.healing.IHealingGunSFXModelAdapt;
import alternativa.tanks.models.weapon.healing.IHealingGunSFXModelEvents;
import alternativa.tanks.models.weapon.healing.targeting.IsisTargetPriorityCalculator;
import alternativa.tanks.models.weapon.laser.LaserPointer;
import alternativa.tanks.models.weapon.laser.LaserPointerAdapt;
import alternativa.tanks.models.weapon.laser.LaserPointerEffect;
import alternativa.tanks.models.weapon.laser.LaserPointerEvents;
import alternativa.tanks.models.weapon.laser.LaserPointerModel;
import alternativa.tanks.models.weapon.machinegun.MachineGunCommonWeapon;
import alternativa.tanks.models.weapon.machinegun.MachineGunModel;
import alternativa.tanks.models.weapon.machinegun.MachineGunRemoteWeapon;
import alternativa.tanks.models.weapon.machinegun.MachineGunWeapon;
import alternativa.tanks.models.weapon.machinegun.sfx.IMachineGunSFXModel;
import alternativa.tanks.models.weapon.machinegun.sfx.IMachineGunSFXModelAdapt;
import alternativa.tanks.models.weapon.machinegun.sfx.IMachineGunSFXModelEvents;
import alternativa.tanks.models.weapon.machinegun.sfx.MachineGunEffects;
import alternativa.tanks.models.weapon.machinegun.sfx.MachineGunSFXData;
import alternativa.tanks.models.weapon.machinegun.sfx.MachineGunSFXModel;
import alternativa.tanks.models.weapon.machinegun.sfx.MachineGunShotEffect;
import alternativa.tanks.models.weapon.machinegun.sfx.ParticleSystem;
import alternativa.tanks.models.weapon.machinegun.sfx.sound.MachineGunSoundManager;
import alternativa.tanks.models.weapon.railgun.IRailgunSFXModel;
import alternativa.tanks.models.weapon.railgun.IRailgunSFXModelAdapt;
import alternativa.tanks.models.weapon.railgun.IRailgunSFXModelEvents;
import alternativa.tanks.models.weapon.railgun.RailgunCallback;
import alternativa.tanks.models.weapon.railgun.RailgunCallbackAdapt;
import alternativa.tanks.models.weapon.railgun.RailgunCallbackEvents;
import alternativa.tanks.models.weapon.railgun.RailgunModel;
import alternativa.tanks.models.weapon.railgun.RailgunSFXModel;
import alternativa.tanks.models.weapon.ricochet.IRicochetSFXModel;
import alternativa.tanks.models.weapon.ricochet.IRicochetSFXModelAdapt;
import alternativa.tanks.models.weapon.ricochet.IRicochetSFXModelEvents;
import alternativa.tanks.models.weapon.ricochet.RicochetAmmunition;
import alternativa.tanks.models.weapon.ricochet.RicochetModel;
import alternativa.tanks.models.weapon.ricochet.RicochetSFXModel;
import alternativa.tanks.models.weapon.ricochet.RicochetWeapon;
import alternativa.tanks.models.weapon.ricochet.RicochetWeaponCallback;
import alternativa.tanks.models.weapon.ricochet.RicochetWeaponCallbackAdapt;
import alternativa.tanks.models.weapon.ricochet.RicochetWeaponCallbackEvents;
import alternativa.tanks.models.weapon.rocketlauncher.RocketLauncherModel;
import alternativa.tanks.models.weapon.rocketlauncher.radio.RocketExplosion;
import alternativa.tanks.models.weapon.rocketlauncher.radio.RocketExplosionAdapt;
import alternativa.tanks.models.weapon.rocketlauncher.radio.RocketExplosionEvents;
import alternativa.tanks.models.weapon.rocketlauncher.radio.RocketLauncherRadioExplosionModel;
import alternativa.tanks.models.weapon.rocketlauncher.sfx.RocketFlightEffect;
import alternativa.tanks.models.weapon.rocketlauncher.sfx.RocketLauncherEffects;
import alternativa.tanks.models.weapon.rocketlauncher.sfx.RocketLauncherSfx;
import alternativa.tanks.models.weapon.rocketlauncher.sfx.RocketLauncherSfxAdapt;
import alternativa.tanks.models.weapon.rocketlauncher.sfx.RocketLauncherSfxData;
import alternativa.tanks.models.weapon.rocketlauncher.sfx.RocketLauncherSfxEvents;
import alternativa.tanks.models.weapon.rocketlauncher.sfx.RocketLauncherSfxModel;
import alternativa.tanks.models.weapon.rocketlauncher.sfx.RocketSmoke;
import alternativa.tanks.models.weapon.rocketlauncher.weapon.RemoteRocketLauncherWeapon;
import alternativa.tanks.models.weapon.rocketlauncher.weapon.RocketLauncherWeapon;
import alternativa.tanks.models.weapon.rocketlauncher.weapon.RocketLauncherWeaponProvider;
import alternativa.tanks.models.weapon.rocketlauncher.weapon.RocketLauncherWeaponProviderAdapt;
import alternativa.tanks.models.weapon.rocketlauncher.weapon.RocketLauncherWeaponProviderEvents;
import alternativa.tanks.models.weapon.rocketlauncher.weapon.salvo.aim.RocketLauncherAim;
import alternativa.tanks.models.weapon.rotation.WeaponRotationLimit;
import alternativa.tanks.models.weapon.rotation.WeaponRotationLimitAdapt;
import alternativa.tanks.models.weapon.rotation.WeaponRotationLimitEvents;
import alternativa.tanks.models.weapon.rotation.WeaponRotationLimitModel;
import alternativa.tanks.models.weapon.shaft.IShaftSFXModel;
import alternativa.tanks.models.weapon.shaft.IShaftSFXModelAdapt;
import alternativa.tanks.models.weapon.shaft.IShaftSFXModelEvents;
import alternativa.tanks.models.weapon.shaft.IShaftWeaponCallback;
import alternativa.tanks.models.weapon.shaft.IShaftWeaponCallbackAdapt;
import alternativa.tanks.models.weapon.shaft.IShaftWeaponCallbackEvents;
import alternativa.tanks.models.weapon.shaft.ReticleDisplay;
import alternativa.tanks.models.weapon.shaft.ShaftModel;
import alternativa.tanks.models.weapon.shaft.ShaftSFXModel;
import alternativa.tanks.models.weapon.shaft.ShaftWeapon;
import alternativa.tanks.models.weapon.shaft.cameracontrollers.AimingCameraController;
import alternativa.tanks.models.weapon.shared.MarginalCollider;
import alternativa.tanks.models.weapon.shared.SimpleWeaponController;
import alternativa.tanks.models.weapon.shared.shot.DiscreteShotModel;
import alternativa.tanks.models.weapon.shared.shot.IShotModel;
import alternativa.tanks.models.weapon.shared.shot.IShotModelAdapt;
import alternativa.tanks.models.weapon.shared.shot.IShotModelEvents;
import alternativa.tanks.models.weapon.shared.shot.WeaponReloadTimeChangedListener;
import alternativa.tanks.models.weapon.shared.shot.WeaponReloadTimeChangedListenerAdapt;
import alternativa.tanks.models.weapon.shared.shot.WeaponReloadTimeChangedListenerEvents;
import alternativa.tanks.models.weapon.shared.streamweapon.IStreamWeaponCallback;
import alternativa.tanks.models.weapon.shared.streamweapon.IStreamWeaponCallbackAdapt;
import alternativa.tanks.models.weapon.shared.streamweapon.IStreamWeaponCallbackEvents;
import alternativa.tanks.models.weapon.shotgun.ShotgunModel;
import alternativa.tanks.models.weapon.shotgun.ShotgunRicochetTargetingSystem;
import alternativa.tanks.models.weapon.shotgun.aiming.ShotgunAiming;
import alternativa.tanks.models.weapon.shotgun.aiming.ShotgunAimingAdapt;
import alternativa.tanks.models.weapon.shotgun.aiming.ShotgunAimingEvents;
import alternativa.tanks.models.weapon.shotgun.aiming.ShotgunAimingModel;
import alternativa.tanks.models.weapon.shotgun.sfx.ShotgunEffects;
import alternativa.tanks.models.weapon.shotgun.sfx.ShotgunSFX;
import alternativa.tanks.models.weapon.shotgun.sfx.ShotgunSFXAdapt;
import alternativa.tanks.models.weapon.shotgun.sfx.ShotgunSFXData;
import alternativa.tanks.models.weapon.shotgun.sfx.ShotgunSFXEvents;
import alternativa.tanks.models.weapon.shotgun.sfx.ShotgunSFXModel;
import alternativa.tanks.models.weapon.shotgun.sfx.ShotgunShotEffect;
import alternativa.tanks.models.weapon.smoky.SmokyCallback;
import alternativa.tanks.models.weapon.smoky.SmokyCallbackAdapt;
import alternativa.tanks.models.weapon.smoky.SmokyCallbackEvents;
import alternativa.tanks.models.weapon.smoky.SmokyModel;
import alternativa.tanks.models.weapon.smoky.sfx.ISmokySFXModel;
import alternativa.tanks.models.weapon.smoky.sfx.ISmokySFXModelAdapt;
import alternativa.tanks.models.weapon.smoky.sfx.ISmokySFXModelEvents;
import alternativa.tanks.models.weapon.smoky.sfx.SmokyEffects;
import alternativa.tanks.models.weapon.smoky.sfx.SmokySFXModel;
import alternativa.tanks.models.weapon.splash.Splash;
import alternativa.tanks.models.weapon.splash.SplashAdapt;
import alternativa.tanks.models.weapon.splash.SplashEvents;
import alternativa.tanks.models.weapon.splash.SplashModel;
import alternativa.tanks.models.weapon.streamweapon.IStreamWeaponModel;
import alternativa.tanks.models.weapon.streamweapon.IStreamWeaponModelAdapt;
import alternativa.tanks.models.weapon.streamweapon.IStreamWeaponModelEvents;
import alternativa.tanks.models.weapon.streamweapon.StreamWeaponModel;
import alternativa.tanks.models.weapon.streamweapon.StreamWeaponReconfiguredListener;
import alternativa.tanks.models.weapon.streamweapon.StreamWeaponReconfiguredListenerAdapt;
import alternativa.tanks.models.weapon.streamweapon.StreamWeaponReconfiguredListenerEvents;
import alternativa.tanks.models.weapon.terminator.RemoteTerminatorWeapon;
import alternativa.tanks.models.weapon.terminator.Terminator;
import alternativa.tanks.models.weapon.terminator.TerminatorAdapt;
import alternativa.tanks.models.weapon.terminator.TerminatorEvents;
import alternativa.tanks.models.weapon.terminator.TerminatorModel;
import alternativa.tanks.models.weapon.terminator.TerminatorSkin;
import alternativa.tanks.models.weapon.terminator.TerminatorSkinAdapt;
import alternativa.tanks.models.weapon.terminator.TerminatorSkinEvents;
import alternativa.tanks.models.weapon.terminator.sfx.TerminatorEffects;
import alternativa.tanks.models.weapon.terminator.sfx.TerminatorOpenEffect;
import alternativa.tanks.models.weapon.terminator.sfx.TerminatorRecoilEffect;
import alternativa.tanks.models.weapon.terminator.sfx.TerminatorSFX;
import alternativa.tanks.models.weapon.terminator.sfx.TerminatorSFXAdapt;
import alternativa.tanks.models.weapon.terminator.sfx.TerminatorSFXEvents;
import alternativa.tanks.models.weapon.terminator.sfx.TerminatorSFXModel;
import alternativa.tanks.models.weapon.thunder.IThunderSFXModel;
import alternativa.tanks.models.weapon.thunder.IThunderSFXModelAdapt;
import alternativa.tanks.models.weapon.thunder.IThunderSFXModelEvents;
import alternativa.tanks.models.weapon.thunder.ThunderCallback;
import alternativa.tanks.models.weapon.thunder.ThunderCallbackAdapt;
import alternativa.tanks.models.weapon.thunder.ThunderCallbackEvents;
import alternativa.tanks.models.weapon.thunder.ThunderModel;
import alternativa.tanks.models.weapon.thunder.ThunderSFXModel;
import alternativa.tanks.models.weapon.turret.IRotatingTurretModel;
import alternativa.tanks.models.weapon.turret.IRotatingTurretModelAdapt;
import alternativa.tanks.models.weapon.turret.IRotatingTurretModelEvents;
import alternativa.tanks.models.weapon.turret.RotatingTurretModel;
import alternativa.tanks.models.weapon.turret.TurretStateSender;
import alternativa.tanks.models.weapon.turret.TurretStateSenderAdapt;
import alternativa.tanks.models.weapon.turret.TurretStateSenderEvents;
import alternativa.tanks.models.weapon.twins.ITwinsSFXModel;
import alternativa.tanks.models.weapon.twins.ITwinsSFXModelAdapt;
import alternativa.tanks.models.weapon.twins.ITwinsSFXModelEvents;
import alternativa.tanks.models.weapon.twins.TwinsAmmunition;
import alternativa.tanks.models.weapon.twins.TwinsModel;
import alternativa.tanks.models.weapon.twins.TwinsSFXModel;
import alternativa.tanks.models.weapon.twins.TwinsWeaponCallback;
import alternativa.tanks.models.weapon.twins.TwinsWeaponCallbackAdapt;
import alternativa.tanks.models.weapon.twins.TwinsWeaponCallbackEvents;
import alternativa.tanks.models.weapon.weakening.IWeaponWeakeningModel;
import alternativa.tanks.models.weapon.weakening.IWeaponWeakeningModelAdapt;
import alternativa.tanks.models.weapon.weakening.IWeaponWeakeningModelEvents;
import alternativa.tanks.models.weapon.weakening.WeaponWeakeningModel;
import alternativa.tanks.models.weapons.charging.WeaponChargingCommunication;
import alternativa.tanks.models.weapons.charging.WeaponChargingCommunicationAdapt;
import alternativa.tanks.models.weapons.charging.WeaponChargingCommunicationEvents;
import alternativa.tanks.models.weapons.charging.WeaponChargingCommunicationModel;
import alternativa.tanks.models.weapons.charging.WeaponChargingListener;
import alternativa.tanks.models.weapons.charging.WeaponChargingListenerAdapt;
import alternativa.tanks.models.weapons.charging.WeaponChargingListenerEvents;
import alternativa.tanks.models.weapons.common.CommonLocalWeapon;
import alternativa.tanks.models.weapons.discrete.DiscreteWeapon;
import alternativa.tanks.models.weapons.discrete.DiscreteWeaponAdapt;
import alternativa.tanks.models.weapons.discrete.DiscreteWeaponCommunicationModel;
import alternativa.tanks.models.weapons.discrete.DiscreteWeaponEvents;
import alternativa.tanks.models.weapons.discrete.DiscreteWeaponListener;
import alternativa.tanks.models.weapons.discrete.DiscreteWeaponListenerAdapt;
import alternativa.tanks.models.weapons.discrete.DiscreteWeaponListenerEvents;
import alternativa.tanks.models.weapons.shell.Shell;
import alternativa.tanks.models.weapons.shell.ShellWeaponCommunication;
import alternativa.tanks.models.weapons.shell.ShellWeaponCommunicationAdapt;
import alternativa.tanks.models.weapons.shell.ShellWeaponCommunicationEvents;
import alternativa.tanks.models.weapons.shell.ShellWeaponCommunicationModel;
import alternativa.tanks.models.weapons.shell.ShellWeaponListener;
import alternativa.tanks.models.weapons.shell.ShellWeaponListenerAdapt;
import alternativa.tanks.models.weapons.shell.ShellWeaponListenerEvents;
import alternativa.tanks.models.weapons.shell.TargetShellWeaponListener;
import alternativa.tanks.models.weapons.shell.TargetShellWeaponListenerAdapt;
import alternativa.tanks.models.weapons.shell.TargetShellWeaponListenerEvents;
import alternativa.tanks.models.weapons.shell.states.ShellStates;
import alternativa.tanks.models.weapons.stream.StreamWeaponCommunication;
import alternativa.tanks.models.weapons.stream.StreamWeaponCommunicationAdapt;
import alternativa.tanks.models.weapons.stream.StreamWeaponCommunicationEvents;
import alternativa.tanks.models.weapons.stream.StreamWeaponCommunicationModel;
import alternativa.tanks.models.weapons.stream.StreamWeaponListener;
import alternativa.tanks.models.weapons.stream.StreamWeaponListenerAdapt;
import alternativa.tanks.models.weapons.stream.StreamWeaponListenerEvents;
import alternativa.tanks.models.weapons.targeting.debug.TargetingVisualDebug;
import alternativa.tanks.models.weapons.targeting.direction.sector.TargetingSectorsCalculator;
import alternativa.tanks.models.weapons.targeting.priority.targeting.CommonTargetPriorityCalculator;
import alternativa.tanks.models.weapons.targeting.priority.targeting.PenetratingTargetPriorityCalculator;
import alternativa.tanks.models.weapons.targeting.priority.targeting.ShaftTargetPriorityCalculator;
import alternativa.tanks.models.weapons.targeting.processor.CommonDirectionProcessor;
import alternativa.tanks.models.weapons.targeting.processor.DirectionProcessorForPenetratingWeapons;
import alternativa.tanks.models.weapons.targeting.processor.SingleTargetDirectionProcessor;
import alternativa.tanks.models.weapons.targeting.processor.SingleTargetPrecisionDirectionProcessor;
import alternativa.tanks.physics.SoaringChecker;
import alternativa.tanks.service.matchmaking.MatchmakingFormService;
import alternativa.tanks.service.panel.IPanelView;
import alternativa.tanks.service.settings.ISettingsService;
import alternativa.tanks.service.settings.keybinding.KeysBindingService;
import alternativa.tanks.services.battlegui.BattleGUIService;
import alternativa.tanks.services.battlegui.BattleGUIServiceImpl;
import alternativa.tanks.services.battleinput.BattleInputService;
import alternativa.tanks.services.battleinput.BattleInputServiceImpl;
import alternativa.tanks.services.battlereadiness.BattleReadinessService;
import alternativa.tanks.services.battlereadiness.BattleReadinessServiceImpl;
import alternativa.tanks.services.bonusregion.BonusRegionService;
import alternativa.tanks.services.bonusregion.IBonusRegionService;
import alternativa.tanks.services.colortransform.ColorTransformService;
import alternativa.tanks.services.initialeffects.IInitialEffectsService;
import alternativa.tanks.services.lightingeffects.ILightingEffectsService;
import alternativa.tanks.services.memoryleakguard.MemoryLeakTrackerService;
import alternativa.tanks.services.mipmapping.MipMappingService;
import alternativa.tanks.services.performance.PerformanceDataService;
import alternativa.tanks.services.ping.PingService;
import alternativa.tanks.services.spectatorservice.SpectatorService;
import alternativa.tanks.services.tankregistry.TankUsersRegistry;
import alternativa.tanks.sfx.BonusCrystalsEffectUtils;
import alternativa.tanks.sfx.DecalEffect;
import alternativa.tanks.sfx.LevelUpEffectFactory;
import alternativa.tanks.sfx.Sound3DEffect;
import alternativa.tanks.sfx.damageindicator.DamageIndicatorEffect;
import alternativa.tanks.sfx.drone.DroneExplosionModel;
import alternativa.tanks.sfx.drone.DroneSFX;
import alternativa.tanks.sfx.drone.DroneSFXAdapt;
import alternativa.tanks.sfx.drone.DroneSFXEvents;
import alternativa.tanks.sfx.drone.DroneSFXModel;
import alternativa.tanks.sfx.floatingmessage.FloatingTextEffect;
import alternativa.tanks.utils.DataValidator;
import alternativa.utils.TextureMaterialRegistry;
import platform.client.fp10.core.registry.ModelRegistry;
import projects.tanks.clients.flash.commons.models.challenge.ChallengeInfoService;
import projects.tanks.clients.flash.commons.services.autobattleenter.AutomaticEnterExitService;
import projects.tanks.clients.flash.commons.services.layout.LobbyLayoutService;
import projects.tanks.clients.flash.commons.services.notification.INotificationService;
import projects.tanks.clients.flash.commons.services.payment.PaymentDisplayService;
import projects.tanks.clients.flash.commons.services.serverhalt.IServerHaltService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.address.TanksAddressService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.blockuser.IBlockUserService;
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.IDialogWindowsDispatcherService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.fullscreen.FullscreenService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.fullscreen.FullscreenStateService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.group.IGroupInfoService;
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.settings.UserSettingsChangedService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.premium.BattleUserPremiumService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.reconnect.ReconnectService;
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.contextmenu.IContextMenuService;
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(BattleService,function(param1:Object):void {
BattleRunner.battleService = BattleService(param1);
},function():BattleService {
return BattleRunner.battleService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
BattleRunner.localTankInfoService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return BattleRunner.localTankInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleRunnerProvider.battleService = BattleService(param1);
},function():BattleService {
return BattleRunnerProvider.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleUtils.battleService = BattleService(param1);
},function():BattleService {
return BattleUtils.battleService;
});
osgi.injectService(IBackgroundService,function(param1:Object):void {
BattleView.backgroundService = IBackgroundService(param1);
},function():IBackgroundService {
return BattleView.backgroundService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
BattleView.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return BattleView.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleView.battleService = BattleService(param1);
},function():BattleService {
return BattleView.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
BattleView.display = IDisplay(param1);
},function():IDisplay {
return BattleView.display;
});
osgi.injectService(IStorageService,function(param1:Object):void {
BattleView.storageService = IStorageService(param1);
},function():IStorageService {
return BattleView.storageService;
});
osgi.injectService(PerformanceDataService,function(param1:Object):void {
PerformanceControllerWithThrottling.performanceDataService = PerformanceDataService(param1);
},function():PerformanceDataService {
return PerformanceControllerWithThrottling.performanceDataService;
});
osgi.injectService(IClientLog,function(param1:Object):void {
SpeedHackChecker.clientLog = IClientLog(param1);
},function():IClientLog {
return SpeedHackChecker.clientLog;
});
osgi.injectService(IBlurService,function(param1:Object):void {
EndsPauseAlert.blurService = IBlurService(param1);
},function():IBlurService {
return EndsPauseAlert.blurService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
EndsPauseAlert.display = IDisplay(param1);
},function():IDisplay {
return EndsPauseAlert.display;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
EndsPauseAlert.localeService = ILocaleService(param1);
},function():ILocaleService {
return EndsPauseAlert.localeService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
NotificationEndsPauseSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return NotificationEndsPauseSupport.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
NotificationEndsPauseSupport.battleService = BattleService(param1);
},function():BattleService {
return NotificationEndsPauseSupport.battleService;
});
osgi.injectService(IDialogWindowsDispatcherService,function(param1:Object):void {
NotificationEndsPauseSupport.dialogWindowsDispatcherService = IDialogWindowsDispatcherService(param1);
},function():IDialogWindowsDispatcherService {
return NotificationEndsPauseSupport.dialogWindowsDispatcherService;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
NotificationEndsPauseSupport.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return NotificationEndsPauseSupport.lobbyLayoutService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
LocalChassisController.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return LocalChassisController.battleEventDispatcher;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
LocalChassisController.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return LocalChassisController.battleInputService;
});
osgi.injectService(CommandService,function(param1:Object):void {
LocalChassisController.commandService = CommandService(param1);
},function():CommandService {
return LocalChassisController.commandService;
});
osgi.injectService(BattleService,function(param1:Object):void {
LocalCheatController.battleService = BattleService(param1);
},function():BattleService {
return LocalCheatController.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
LocalCheatController.display = IDisplay(param1);
},function():IDisplay {
return LocalCheatController.display;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
LocalShaftController.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return LocalShaftController.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
LocalShaftController.battleService = BattleService(param1);
},function():BattleService {
return LocalShaftController.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
LocalShaftController.display = IDisplay(param1);
},function():IDisplay {
return LocalShaftController.display;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
LocalShaftController.settings = ISettingsService(param1);
},function():ISettingsService {
return LocalShaftController.settings;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
LocalTurretController.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return LocalTurretController.battleInputService;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
LocalTurretController.settingsService = ISettingsService(param1);
},function():ISettingsService {
return LocalTurretController.settingsService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShaftReticleDisplayController.battleService = BattleService(param1);
},function():BattleService {
return ShaftReticleDisplayController.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankSkin.battleService = BattleService(param1);
},function():BattleService {
return TankSkin.battleService;
});
osgi.injectService(ColorTransformService,function(param1:Object):void {
TankSkin.colorTransformService = ColorTransformService(param1);
},function():ColorTransformService {
return TankSkin.colorTransformService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
TankSkin.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return TankSkin.textureMaterialRegistry;
});
osgi.injectService(IDisplay,function(param1:Object):void {
DebugBitmapLayer.display = IDisplay(param1);
},function():IDisplay {
return DebugBitmapLayer.display;
});
osgi.injectService(BattleService,function(param1:Object):void {
DefaultTankSkinMaterialsFactory.battleService = BattleService(param1);
},function():BattleService {
return DefaultTankSkinMaterialsFactory.battleService;
});
osgi.injectService(TankSkinTextureRegistry,function(param1:Object):void {
DefaultTankSkinMaterialsFactory.skinTextureRegistry = TankSkinTextureRegistry(param1);
},function():TankSkinTextureRegistry {
return DefaultTankSkinMaterialsFactory.skinTextureRegistry;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
DefaultTankSkinMaterialsFactory.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return DefaultTankSkinMaterialsFactory.textureMaterialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
ArtilleryTurretSkin.battleService = BattleService(param1);
},function():BattleService {
return ArtilleryTurretSkin.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TurretSkin.battleService = BattleService(param1);
},function():BattleService {
return TurretSkin.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleScene3DDebugCommands.battleService = BattleService(param1);
},function():BattleService {
return BattleScene3DDebugCommands.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
FadingDecalsRenderer.battleService = BattleService(param1);
},function():BattleService {
return FadingDecalsRenderer.battleService;
});
osgi.injectService(ILightingEffectsService,function(param1:Object):void {
BattleBonus.lightingService = ILightingEffectsService(param1);
},function():ILightingEffectsService {
return BattleBonus.lightingService;
});
osgi.injectService(ILightingEffectsService,function(param1:Object):void {
BonusMesh.lightingService = ILightingEffectsService(param1);
},function():ILightingEffectsService {
return BonusMesh.lightingService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BonusObject3DBase.battleService = BattleService(param1);
},function():BattleService {
return BonusObject3DBase.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BonusPickupAnimation.battleService = BattleService(param1);
},function():BattleService {
return BonusPickupAnimation.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
GroundSpawnRenderer.battleService = BattleService(param1);
},function():BattleService {
return GroundSpawnRenderer.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ParachuteDetachAnimation.battleService = BattleService(param1);
},function():BattleService {
return ParachuteDetachAnimation.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RemovalAnimation.battleService = BattleService(param1);
},function():BattleService {
return RemovalAnimation.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SpawnAnimation.battleService = BattleService(param1);
},function():BattleService {
return SpawnAnimation.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SpawnFlashRenderer.battleService = BattleService(param1);
},function():BattleService {
return SpawnFlashRenderer.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
CameraBookmark.battleService = BattleService(param1);
},function():BattleService {
return CameraBookmark.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
FollowCameraController.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return FollowCameraController.battleEventDispatcher;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
FollowCameraController.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return FollowCameraController.battleInputService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
FollowCameraController.display = IDisplay(param1);
},function():IDisplay {
return FollowCameraController.display;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
FollowCameraController.settings = ISettingsService(param1);
},function():ISettingsService {
return FollowCameraController.settings;
});
osgi.injectService(IStorageService,function(param1:Object):void {
FollowCameraController.storageService = IStorageService(param1);
},function():IStorageService {
return FollowCameraController.storageService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
PlayerCamera.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return PlayerCamera.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
PlayerCamera.battleService = BattleService(param1);
},function():BattleService {
return PlayerCamera.battleService;
});
osgi.injectService(IBonusRegionService,function(param1:Object):void {
PlayerCamera.bonusRegionService = IBonusRegionService(param1);
},function():IBonusRegionService {
return PlayerCamera.bonusRegionService;
});
osgi.injectService(IContextMenuService,function(param1:Object):void {
PlayerCamera.contextMenuService = IContextMenuService(param1);
},function():IContextMenuService {
return PlayerCamera.contextMenuService;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
PlayerCamera.tankUsersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return PlayerCamera.tankUsersRegistry;
});
osgi.injectService(IBonusRegionService,function(param1:Object):void {
SpectatorBonusRegionController.bonusRegionService = IBonusRegionService(param1);
},function():IBonusRegionService {
return SpectatorBonusRegionController.bonusRegionService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SpectatorCameraController.battleService = BattleService(param1);
},function():BattleService {
return SpectatorCameraController.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
SpectatorCameraController.display = IDisplay(param1);
},function():IDisplay {
return SpectatorCameraController.display;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
SpectatorSupport.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return SpectatorSupport.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SpectatorSupport.battleService = BattleService(param1);
},function():BattleService {
return SpectatorSupport.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
SpectatorSupport.display = IDisplay(param1);
},function():IDisplay {
return SpectatorSupport.display;
});
osgi.injectService(BattleService,function(param1:Object):void {
TextureMaterialRegistryBase.battleService = BattleService(param1);
},function():BattleService {
return TextureMaterialRegistryBase.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
AssaultHudIndicators.battleService = BattleService(param1);
},function():BattleService {
return AssaultHudIndicators.battleService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
AssaultMessages.localeService = ILocaleService(param1);
},function():ILocaleService {
return AssaultMessages.localeService;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
AssaultMessages.userInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return AssaultMessages.userInfoService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
AssaultModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return AssaultModel.battleEventDispatcher;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
AssaultModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return AssaultModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
AssaultModel.battleService = BattleService(param1);
},function():BattleService {
return AssaultModel.battleService;
});
osgi.injectService(ILightingEffectsService,function(param1:Object):void {
AssaultModel.lightingEffectsService = ILightingEffectsService(param1);
},function():ILightingEffectsService {
return AssaultModel.lightingEffectsService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
AssaultModel.localeService = ILocaleService(param1);
},function():ILocaleService {
return AssaultModel.localeService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
AssaultModel.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return AssaultModel.materialRegistry;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
AssaultModel.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return AssaultModel.userPropertiesService;
});
osgi.injectService(ILightingEffectsService,function(param1:Object):void {
PointBaseIndicatorPlane.lightingEffectsService = ILightingEffectsService(param1);
},function():ILightingEffectsService {
return PointBaseIndicatorPlane.lightingEffectsService;
});
osgi.injectService(TanksAddressService,function(param1:Object):void {
BattlefieldModel.addressService = TanksAddressService(param1);
},function():TanksAddressService {
return BattlefieldModel.addressService;
});
osgi.injectService(IBackgroundService,function(param1:Object):void {
BattlefieldModel.backgroundService = IBackgroundService(param1);
},function():IBackgroundService {
return BattlefieldModel.backgroundService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
BattlefieldModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return BattlefieldModel.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
BattlefieldModel.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return BattlefieldModel.battleGuiService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
BattlefieldModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return BattlefieldModel.battleInfoService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
BattlefieldModel.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return BattlefieldModel.battleInputService;
});
osgi.injectService(BattleReadinessService,function(param1:Object):void {
BattlefieldModel.battleReadinessService = BattleReadinessService(param1);
},function():BattleReadinessService {
return BattlefieldModel.battleReadinessService;
});
osgi.injectService(ColorTransformService,function(param1:Object):void {
BattlefieldModel.colorTransformService = ColorTransformService(param1);
},function():ColorTransformService {
return BattlefieldModel.colorTransformService;
});
osgi.injectService(DataValidator,function(param1:Object):void {
BattlefieldModel.dataValidator = DataValidator(param1);
},function():DataValidator {
return BattlefieldModel.dataValidator;
});
osgi.injectService(IDisplay,function(param1:Object):void {
BattlefieldModel.display = IDisplay(param1);
},function():IDisplay {
return BattlefieldModel.display;
});
osgi.injectService(ILightingEffectsService,function(param1:Object):void {
BattlefieldModel.lightingAdjustService = ILightingEffectsService(param1);
},function():ILightingEffectsService {
return BattlefieldModel.lightingAdjustService;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
BattlefieldModel.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return BattlefieldModel.lobbyLayoutService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
BattlefieldModel.localeService = ILocaleService(param1);
},function():ILocaleService {
return BattlefieldModel.localeService;
});
osgi.injectService(LogService,function(param1:Object):void {
BattlefieldModel.logService = LogService(param1);
},function():LogService {
return BattlefieldModel.logService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
BattlefieldModel.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return BattlefieldModel.materialRegistry;
});
osgi.injectService(MemoryLeakTrackerService,function(param1:Object):void {
BattlefieldModel.memoryLeakTrackerService = MemoryLeakTrackerService(param1);
},function():MemoryLeakTrackerService {
return BattlefieldModel.memoryLeakTrackerService;
});
osgi.injectService(MipMappingService,function(param1:Object):void {
BattlefieldModel.mipMappingService = MipMappingService(param1);
},function():MipMappingService {
return BattlefieldModel.mipMappingService;
});
osgi.injectService(INotificationService,function(param1:Object):void {
BattlefieldModel.notificationService = INotificationService(param1);
},function():INotificationService {
return BattlefieldModel.notificationService;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
BattlefieldModel.settings = ISettingsService(param1);
},function():ISettingsService {
return BattlefieldModel.settings;
});
osgi.injectService(IStorageService,function(param1:Object):void {
BattlefieldModel.storageService = IStorageService(param1);
},function():IStorageService {
return BattlefieldModel.storageService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
FollowCameraControllerLocker.battleInputLockService = BattleInputService(param1);
},function():BattleInputService {
return FollowCameraControllerLocker.battleInputLockService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
FreeCameraSupport.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return FreeCameraSupport.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
FreeCameraSupport.battleService = BattleService(param1);
},function():BattleService {
return FreeCameraSupport.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
FreeCameraSupport.display = IDisplay(param1);
},function():IDisplay {
return FreeCameraSupport.display;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
SpectatorFogToggleSupport.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return SpectatorFogToggleSupport.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SpectatorFogToggleSupport.battleService = BattleService(param1);
},function():BattleService {
return SpectatorFogToggleSupport.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
SpectatorUserTitleRenderer.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return SpectatorUserTitleRenderer.battleEventDispatcher;
});
osgi.injectService(SpectatorService,function(param1:Object):void {
SpectatorUserTitleRenderer.spectatorService = SpectatorService(param1);
},function():SpectatorService {
return SpectatorUserTitleRenderer.spectatorService;
});
osgi.injectService(IClientLog,function(param1:Object):void {
StageFrameRateController.clientLog = IClientLog(param1);
},function():IClientLog {
return StageFrameRateController.clientLog;
});
osgi.injectService(IDisplay,function(param1:Object):void {
StageFrameRateController.display = IDisplay(param1);
},function():IDisplay {
return StageFrameRateController.display;
});
osgi.injectService(BattleService,function(param1:Object):void {
BillboardsDebugCommands.battleService = BattleService(param1);
},function():BattleService {
return BillboardsDebugCommands.battleService;
});
osgi.injectService(CommandService,function(param1:Object):void {
BillboardsDebugCommands.commandService = CommandService(param1);
},function():CommandService {
return BillboardsDebugCommands.commandService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BillboardsModel.battleService = BattleService(param1);
},function():BattleService {
return BillboardsModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BillboardImageModel.battleService = BattleService(param1);
},function():BattleService {
return BillboardImageModel.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
AdditionUserTitleSwitcher.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return AdditionUserTitleSwitcher.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
AdditionUserTitleSwitcher.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return AdditionUserTitleSwitcher.battleGuiService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
AdditionUserTitleSwitcher.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return AdditionUserTitleSwitcher.battleInputService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
AdditionUserTitleSwitcher.display = IDisplay(param1);
},function():IDisplay {
return AdditionUserTitleSwitcher.display;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
AdditionUserTitleSwitcher.localTankService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return AdditionUserTitleSwitcher.localTankService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
Billboards.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return Billboards.textureMaterialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
MapBuilder.battleService = BattleService(param1);
},function():BattleService {
return MapBuilder.battleService;
});
osgi.injectService(CommandService,function(param1:Object):void {
MapBuilder.commandService = CommandService(param1);
},function():CommandService {
return MapBuilder.commandService;
});
osgi.injectService(DataValidator,function(param1:Object):void {
MapBuilder.dataValidator = DataValidator(param1);
},function():DataValidator {
return MapBuilder.dataValidator;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
BattleMinesModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return BattleMinesModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleMinesModel.battleService = BattleService(param1);
},function():BattleService {
return BattleMinesModel.battleService;
});
osgi.injectService(IDumpService,function(param1:Object):void {
BattleMinesModel.dumperService = IDumpService(param1);
},function():IDumpService {
return BattleMinesModel.dumperService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
BattleMinesModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return BattleMinesModel.textureMaterialRegistry;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
ProximityMine.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return ProximityMine.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
CommonFlag.battleService = BattleService(param1);
},function():BattleService {
return CommonFlag.battleService;
});
osgi.injectService(ILightingEffectsService,function(param1:Object):void {
CommonFlag.lightingEffectsService = ILightingEffectsService(param1);
},function():ILightingEffectsService {
return CommonFlag.lightingEffectsService;
});
osgi.injectService(BattleService,function(param1:Object):void {
Flag.battleService = BattleService(param1);
},function():BattleService {
return Flag.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
Flag.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return Flag.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
MarkersUtils.battleService = BattleService(param1);
},function():BattleService {
return MarkersUtils.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
MarkersUtils.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return MarkersUtils.materialRegistry;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
PointBasedBattleModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return PointBasedBattleModel.battleEventDispatcher;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
PointBasedBattleModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return PointBasedBattleModel.battleInfoService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
PointBasedBattleModel.battleInputLockService = BattleInputService(param1);
},function():BattleInputService {
return PointBasedBattleModel.battleInputLockService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
PointBasedBattleModel.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return PointBasedBattleModel.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
PointBasedBattleModel.battleService = BattleService(param1);
},function():BattleService {
return PointBasedBattleModel.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
PointBasedBattleModel.display = IDisplay(param1);
},function():IDisplay {
return PointBasedBattleModel.display;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
PointBasedBattleModel.localeService = ILocaleService(param1);
},function():ILocaleService {
return PointBasedBattleModel.localeService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
PointBasedBattleModel.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return PointBasedBattleModel.materialRegistry;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
PointBasedBattleModel.userInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return PointBasedBattleModel.userInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
CTFHudIndicators.battleService = BattleService(param1);
},function():BattleService {
return CTFHudIndicators.battleService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
CTFMessages.localeService = ILocaleService(param1);
},function():ILocaleService {
return CTFMessages.localeService;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
CTFMessages.userInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return CTFMessages.userInfoService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
CTFModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return CTFModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
CTFModel.battleService = BattleService(param1);
},function():BattleService {
return CTFModel.battleService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
CTFModel.localeService = ILocaleService(param1);
},function():ILocaleService {
return CTFModel.localeService;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
CTFModel.userInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return CTFModel.userInfoService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
FlagMessage.localeService = ILocaleService(param1);
},function():ILocaleService {
return FlagMessage.localeService;
});
osgi.injectService(BattleService,function(param1:Object):void {
FlagPickupTimeoutTask.battleService = BattleService(param1);
},function():BattleService {
return FlagPickupTimeoutTask.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleDebugModel.battleService = BattleService(param1);
},function():BattleService {
return BattleDebugModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleDMModel.battleService = BattleService(param1);
},function():BattleService {
return BattleDMModel.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
BattleFacilitiesModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return BattleFacilitiesModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleFacilitiesModel.battleService = BattleService(param1);
},function():BattleService {
return BattleFacilitiesModel.battleService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
BattleFacilitiesModel.localTankInfoService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return BattleFacilitiesModel.localTankInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
CommonFacilityModel.battleService = BattleService(param1);
},function():BattleService {
return CommonFacilityModel.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
BattleChat.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return BattleChat.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
BattleChat.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return BattleChat.battleGuiService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
BattleChat.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return BattleChat.battleInfoService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
BattleChat.battleInputLockService = BattleInputService(param1);
},function():BattleInputService {
return BattleChat.battleInputLockService;
});
osgi.injectService(IBlockUserService,function(param1:Object):void {
BattleChat.blockUserService = IBlockUserService(param1);
},function():IBlockUserService {
return BattleChat.blockUserService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
BattleChat.display = IDisplay(param1);
},function():IDisplay {
return BattleChat.display;
});
osgi.injectService(FullscreenService,function(param1:Object):void {
BattleChat.fullscreenService = FullscreenService(param1);
},function():FullscreenService {
return BattleChat.fullscreenService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
BattleChat.localeService = ILocaleService(param1);
},function():ILocaleService {
return BattleChat.localeService;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
BattleChat.userInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return BattleChat.userInfoService;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
BattleChat.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return BattleChat.userPropertiesService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
BattleChatLine.localeService = ILocaleService(param1);
},function():ILocaleService {
return BattleChatLine.localeService;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
BattleChatModel.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return BattleChatModel.battleGuiService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
BattleChatModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return BattleChatModel.battleInfoService;
});
osgi.injectService(IContextMenuService,function(param1:Object):void {
BattleChatModel.contextMenuService = IContextMenuService(param1);
},function():IContextMenuService {
return BattleChatModel.contextMenuService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
BattleChatModel.display = IDisplay(param1);
},function():IDisplay {
return BattleChatModel.display;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
ChatLocker.battleInputLockService = BattleInputService(param1);
},function():BattleInputService {
return ChatLocker.battleInputLockService;
});
osgi.injectService(IBlockUserService,function(param1:Object):void {
BlockCommandHandler.blockUserService = IBlockUserService(param1);
},function():IBlockUserService {
return BlockCommandHandler.blockUserService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
BlockCommandHandler.localeService = ILocaleService(param1);
},function():ILocaleService {
return BlockCommandHandler.localeService;
});
osgi.injectService(IBlockUserService,function(param1:Object):void {
UnblockCommandHandler.blockUserService = IBlockUserService(param1);
},function():IBlockUserService {
return UnblockCommandHandler.blockUserService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
UnblockCommandHandler.localeService = ILocaleService(param1);
},function():ILocaleService {
return UnblockCommandHandler.localeService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
DroneIndicatorModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return DroneIndicatorModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
DroneIndicatorModel.battleService = BattleService(param1);
},function():BattleService {
return DroneIndicatorModel.battleService;
});
osgi.injectService(IInventoryPanel,function(param1:Object):void {
DroneIndicatorModel.inventoryPanel = IInventoryPanel(param1);
},function():IInventoryPanel {
return DroneIndicatorModel.inventoryPanel;
});
osgi.injectService(UserSettingsChangedService,function(param1:Object):void {
DroneIndicatorModel.settingsChangedService = UserSettingsChangedService(param1);
},function():UserSettingsChangedService {
return DroneIndicatorModel.settingsChangedService;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
DroneIndicatorModel.settingsService = ISettingsService(param1);
},function():ISettingsService {
return DroneIndicatorModel.settingsService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
DroneIndicatorModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return DroneIndicatorModel.textureMaterialRegistry;
});
osgi.injectService(IGroupInfoService,function(param1:Object):void {
MatchmakingGroupInfoModel.groupInfoService = IGroupInfoService(param1);
},function():IGroupInfoService {
return MatchmakingGroupInfoModel.groupInfoService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
ControlsHelper.localeService = ILocaleService(param1);
},function():ILocaleService {
return ControlsHelper.localeService;
});
osgi.injectService(IHelpService,function(param1:Object):void {
ControlsMiniHelp.helpService = IHelpService(param1);
},function():IHelpService {
return ControlsMiniHelp.helpService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
ControlsMiniHelp.localeService = ILocaleService(param1);
},function():ILocaleService {
return ControlsMiniHelp.localeService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
FundField.localeService = ILocaleService(param1);
},function():ILocaleService {
return FundField.localeService;
});
osgi.injectService(PerformanceDataService,function(param1:Object):void {
FPSText.performanceDataService = PerformanceDataService(param1);
},function():PerformanceDataService {
return FPSText.performanceDataService;
});
osgi.injectService(PingService,function(param1:Object):void {
FPSText.pingService = PingService(param1);
},function():PingService {
return FPSText.pingService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
BattleMessages.display = IDisplay(param1);
},function():IDisplay {
return BattleMessages.display;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
StatisticsListRenderer.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return StatisticsListRenderer.battleInfoService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
StatisticsTable.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return StatisticsTable.battleInputService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
StatisticsTable.display = IDisplay(param1);
},function():IDisplay {
return StatisticsTable.display;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
StatisticsTable.localeService = ILocaleService(param1);
},function():ILocaleService {
return StatisticsTable.localeService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
ViewStatistics.localeService = ILocaleService(param1);
},function():ILocaleService {
return ViewStatistics.localeService;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
ReloaderIndicator.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return ReloaderIndicator.battleGUIService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
ReloaderIndicator.display = IDisplay(param1);
},function():IDisplay {
return ReloaderIndicator.display;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
ReloaderIndicator.localeService = ILocaleService(param1);
},function():ILocaleService {
return ReloaderIndicator.localeService;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
SuicideIndicator.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return SuicideIndicator.battleGUIService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
SuicideIndicator.display = IDisplay(param1);
},function():IDisplay {
return SuicideIndicator.display;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
SuicideIndicator.localeService = ILocaleService(param1);
},function():ILocaleService {
return SuicideIndicator.localeService;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
TurnOverIndicator.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return TurnOverIndicator.battleGUIService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
TurnOverIndicator.display = IDisplay(param1);
},function():IDisplay {
return TurnOverIndicator.display;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
TurnOverIndicator.localeService = ILocaleService(param1);
},function():ILocaleService {
return TurnOverIndicator.localeService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
InventoryItemModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return InventoryItemModel.battleEventDispatcher;
});
osgi.injectService(IInventoryPanel,function(param1:Object):void {
InventoryItemModel.inventoryPanel = IInventoryPanel(param1);
},function():IInventoryPanel {
return InventoryItemModel.inventoryPanel;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
InventoryModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return InventoryModel.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
InventoryModel.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return InventoryModel.battleGuiService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
InventoryModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return InventoryModel.battleInfoService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
InventoryModel.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return InventoryModel.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
InventoryModel.battleService = BattleService(param1);
},function():BattleService {
return InventoryModel.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
InventoryModel.display = IDisplay(param1);
},function():IDisplay {
return InventoryModel.display;
});
osgi.injectService(InventorySoundService,function(param1:Object):void {
InventoryModel.inventorySoundService = InventorySoundService(param1);
},function():InventorySoundService {
return InventoryModel.inventorySoundService;
});
osgi.injectService(ModelRegistry,function(param1:Object):void {
InventoryModel.modelRegistry = ModelRegistry(param1);
},function():ModelRegistry {
return InventoryModel.modelRegistry;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
InventoryModel.tankUsersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return InventoryModel.tankUsersRegistry;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
InventoryPanelSlot.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return InventoryPanelSlot.battleEventDispatcher;
});
osgi.injectService(InventorySoundService,function(param1:Object):void {
InventoryPanelSlot.inventorySoundService = InventorySoundService(param1);
},function():InventorySoundService {
return InventoryPanelSlot.inventorySoundService;
});
osgi.injectService(BattleService,function(param1:Object):void {
InventorySfxModel.battleService = BattleService(param1);
},function():BattleService {
return InventorySfxModel.battleService;
});
osgi.injectService(IInventoryPanel,function(param1:Object):void {
InventoryCooldownModel.inventoryPanel = IInventoryPanel(param1);
},function():IInventoryPanel {
return InventoryCooldownModel.inventoryPanel;
});
osgi.injectService(BattleService,function(param1:Object):void {
PointMarker.battleService = BattleService(param1);
},function():BattleService {
return PointMarker.battleService;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
DefaultLayout.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return DefaultLayout.battleGUIService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
DefaultLayout.display = IDisplay(param1);
},function():IDisplay {
return DefaultLayout.display;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
UltimateIndicator.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return UltimateIndicator.battleGuiService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
UltimateIndicator.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return UltimateIndicator.battleInputService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
UltimateIndicator.display = IDisplay(param1);
},function():IDisplay {
return UltimateIndicator.display;
});
osgi.injectService(IInventoryPanel,function(param1:Object):void {
UltimateIndicator.inventoryPanel = IInventoryPanel(param1);
},function():IInventoryPanel {
return UltimateIndicator.inventoryPanel;
});
osgi.injectService(InventorySoundService,function(param1:Object):void {
UltimateIndicator.inventorySoundService = InventorySoundService(param1);
},function():InventorySoundService {
return UltimateIndicator.inventorySoundService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
BattleChatUserLabel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return BattleChatUserLabel.battleInfoService;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
BattleChatUserLabel.tankUsersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return BattleChatUserLabel.tankUsersRegistry;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
BattleChatUserLabel.userInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return BattleChatUserLabel.userInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleJGRModel.battleService = BattleService(param1);
},function():BattleService {
return BattleJGRModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
JuggernautHudIndicator.battleService = BattleService(param1);
},function():BattleService {
return JuggernautHudIndicator.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
JuggernautModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return JuggernautModel.battleEventDispatcher;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
JuggernautModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return JuggernautModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
JuggernautModel.battleService = BattleService(param1);
},function():BattleService {
return JuggernautModel.battleService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
JuggernautModel.localeService = ILocaleService(param1);
},function():ILocaleService {
return JuggernautModel.localeService;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
JuggernautModel.usersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return JuggernautModel.usersRegistry;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
KillStreakModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return KillStreakModel.battleInfoService;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
KillStreakModel.usersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return KillStreakModel.usersRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
MeteorStormModel.battleService = BattleService(param1);
},function():BattleService {
return MeteorStormModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
MeteorStormModel.effectsMaterialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return MeteorStormModel.effectsMaterialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
Ball.battleService = BattleService(param1);
},function():BattleService {
return Ball.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
Ball.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return Ball.materialRegistry;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
RugbyMessages.localeService = ILocaleService(param1);
},function():ILocaleService {
return RugbyMessages.localeService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
RugbyModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return RugbyModel.battleEventDispatcher;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
RugbyModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return RugbyModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RugbyModel.battleService = BattleService(param1);
},function():BattleService {
return RugbyModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
RugbyModel.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return RugbyModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
BallExplosionModel.battleService = BattleService(param1);
},function():BattleService {
return BallExplosionModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
BallExplosionModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return BallExplosionModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
CameraStatisticFeature.battleService = BattleService(param1);
},function():BattleService {
return CameraStatisticFeature.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
FpsStatisticsModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return FpsStatisticsModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
FpsStatisticsModel.battleService = BattleService(param1);
},function():BattleService {
return FpsStatisticsModel.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
FpsStatisticsModel.display = IDisplay(param1);
},function():IDisplay {
return FpsStatisticsModel.display;
});
osgi.injectService(LobbyLayoutService,function(param1:Object):void {
FpsStatisticsModel.lobbyLayoutService = LobbyLayoutService(param1);
},function():LobbyLayoutService {
return FpsStatisticsModel.lobbyLayoutService;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
FpsStatisticsModel.settingsService = ISettingsService(param1);
},function():ISettingsService {
return FpsStatisticsModel.settingsService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TargetingStatisticsModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TargetingStatisticsModel.battleEventDispatcher;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
BattleTDMModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return BattleTDMModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleTDMModel.battleService = BattleService(param1);
},function():BattleService {
return BattleTDMModel.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
BattlefieldBonusesModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return BattlefieldBonusesModel.battleEventDispatcher;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
BattlefieldBonusesModel.userInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return BattlefieldBonusesModel.userInfoService;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
BattlefieldBonusesModel.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return BattlefieldBonusesModel.userPropertiesService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BonusCommonModel.battleService = BattleService(param1);
},function():BattleService {
return BonusCommonModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
BonusCommonModel.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return BonusCommonModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleGoldBonusesModel.battleService = BattleService(param1);
},function():BattleService {
return BattleGoldBonusesModel.battleService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
BattleGoldBonusesModel.localeService = ILocaleService(param1);
},function():ILocaleService {
return BattleGoldBonusesModel.localeService;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
BattleGoldBonusesModel.userInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return BattleGoldBonusesModel.userInfoService;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
BattleGoldBonusesModel.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return BattleGoldBonusesModel.userPropertiesService;
});
osgi.injectService(BattleService,function(param1:Object):void {
GoldBonusesModel.battleService = BattleService(param1);
},function():BattleService {
return GoldBonusesModel.battleService;
});
osgi.injectService(IBonusRegionService,function(param1:Object):void {
GoldBonusesModel.bonusRegionService = IBonusRegionService(param1);
},function():IBonusRegionService {
return GoldBonusesModel.bonusRegionService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BonusRegion.battleService = BattleService(param1);
},function():BattleService {
return BonusRegion.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
BonusRegionsModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return BonusRegionsModel.battleEventDispatcher;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
BonusRegionsModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return BonusRegionsModel.battleInfoService;
});
osgi.injectService(IBonusRegionService,function(param1:Object):void {
BonusRegionsModel.bonusRegionService = IBonusRegionService(param1);
},function():IBonusRegionService {
return BonusRegionsModel.bonusRegionService;
});
osgi.injectService(MatchmakingFormService,function(param1:Object):void {
MatchmakingContinueBattleModel.matchmakingFormService = MatchmakingFormService(param1);
},function():MatchmakingFormService {
return MatchmakingContinueBattleModel.matchmakingFormService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
ControlPointsModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return ControlPointsModel.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
ControlPointsModel.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return ControlPointsModel.battleGuiService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
ControlPointsModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return ControlPointsModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ControlPointsModel.battleService = BattleService(param1);
},function():BattleService {
return ControlPointsModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
ControlPointsModel.effectsMaterialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return ControlPointsModel.effectsMaterialRegistry;
});
osgi.injectService(ColorTransformService,function(param1:Object):void {
KeyPointView.colorTransformService = ColorTransformService(param1);
},function():ColorTransformService {
return KeyPointView.colorTransformService;
});
osgi.injectService(ILightingEffectsService,function(param1:Object):void {
KeyPointView.lightingEffectsService = ILightingEffectsService(param1);
},function():ILightingEffectsService {
return KeyPointView.lightingEffectsService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
KeyPointView.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return KeyPointView.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
KeyPointHUDMarkers.battleService = BattleService(param1);
},function():BattleService {
return KeyPointHUDMarkers.battleService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
ControlPointMessage.localeService = ILocaleService(param1);
},function():ILocaleService {
return ControlPointMessage.localeService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BeamEffects.battleService = BattleService(param1);
},function():BattleService {
return BeamEffects.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
DroneEffects.battleService = BattleService(param1);
},function():BattleService {
return DroneEffects.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
DroneMaterialFactory.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return DroneMaterialFactory.textureMaterialRegistry;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
EffectDescriptionModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return EffectDescriptionModel.battleEventDispatcher;
});
osgi.injectService(InventorySoundService,function(param1:Object):void {
EffectDescriptionModel.inventorySoundService = InventorySoundService(param1);
},function():InventorySoundService {
return EffectDescriptionModel.inventorySoundService;
});
osgi.injectService(PerformanceDataService,function(param1:Object):void {
PerformanceModel.performanceDataService = PerformanceDataService(param1);
},function():PerformanceDataService {
return PerformanceModel.performanceDataService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankEffectSFXModel.battleService = BattleService(param1);
},function():BattleService {
return TankEffectSFXModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
TankEffectSFXModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return TankEffectSFXModel.textureMaterialRegistry;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
HullSmokeModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return HullSmokeModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
HullSmokeModel.battleService = BattleService(param1);
},function():BattleService {
return HullSmokeModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
HullSmokeRenderer.battleService = BattleService(param1);
},function():BattleService {
return HullSmokeRenderer.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
HullSmokeRenderer.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return HullSmokeRenderer.materialRegistry;
});
osgi.injectService(IDisplay,function(param1:Object):void {
BattlefieldMessagesAligner.display = IDisplay(param1);
},function():IDisplay {
return BattlefieldMessagesAligner.display;
});
osgi.injectService(IHelpService,function(param1:Object):void {
ControlsHelpSupport.helpService = IHelpService(param1);
},function():IHelpService {
return ControlsHelpSupport.helpService;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
ControlsHelpSupport.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return ControlsHelpSupport.lobbyLayoutService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
ControlsMiniHelpSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return ControlsMiniHelpSupport.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
ControlsMiniHelpSupport.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return ControlsMiniHelpSupport.battleGuiService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
ControlsMiniHelpSupport.display = IDisplay(param1);
},function():IDisplay {
return ControlsMiniHelpSupport.display;
});
osgi.injectService(IStorageService,function(param1:Object):void {
ControlsMiniHelpSupport.storageService = IStorageService(param1);
},function():IStorageService {
return ControlsMiniHelpSupport.storageService;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
ControlsMiniHelpSupport.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return ControlsMiniHelpSupport.userPropertiesService;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
FpsIndicatorToggleSupport.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return FpsIndicatorToggleSupport.battleGuiService;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
FpsIndicatorToggleSupport.settingsService = ISettingsService(param1);
},function():ISettingsService {
return FpsIndicatorToggleSupport.settingsService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
PauseIndicatorSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return PauseIndicatorSupport.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
PauseIndicatorSupport.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return PauseIndicatorSupport.battleGUIService;
});
osgi.injectService(BattleService,function(param1:Object):void {
PauseIndicatorSupport.battleService = BattleService(param1);
},function():BattleService {
return PauseIndicatorSupport.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
PauseIndicatorSupport.display = IDisplay(param1);
},function():IDisplay {
return PauseIndicatorSupport.display;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
PauseIndicatorSupport.localeService = ILocaleService(param1);
},function():ILocaleService {
return PauseIndicatorSupport.localeService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
SpectatorScreenLayouts.battleInput = BattleInputService(param1);
},function():BattleInputService {
return SpectatorScreenLayouts.battleInput;
});
osgi.injectService(IDisplay,function(param1:Object):void {
SpectatorScreenLayouts.display = IDisplay(param1);
},function():IDisplay {
return SpectatorScreenLayouts.display;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
SpectatorScreenLayouts.guiService = BattleGUIService(param1);
},function():BattleGUIService {
return SpectatorScreenLayouts.guiService;
});
osgi.injectService(IPanelView,function(param1:Object):void {
SpectatorScreenLayouts.panelView = IPanelView(param1);
},function():IPanelView {
return SpectatorScreenLayouts.panelView;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
SpectatorScreenLayouts.settingsService = ISettingsService(param1);
},function():ISettingsService {
return SpectatorScreenLayouts.settingsService;
});
osgi.injectService(SpectatorService,function(param1:Object):void {
SpectatorScreenLayouts.spectatorService = SpectatorService(param1);
},function():SpectatorService {
return SpectatorScreenLayouts.spectatorService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
StatisticsModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return StatisticsModel.battleEventDispatcher;
});
osgi.injectService(BattleFormatUtil,function(param1:Object):void {
StatisticsModel.battleFormatUtil = BattleFormatUtil(param1);
},function():BattleFormatUtil {
return StatisticsModel.battleFormatUtil;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
StatisticsModel.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return StatisticsModel.battleGUIService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
StatisticsModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return StatisticsModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
StatisticsModel.battleService = BattleService(param1);
},function():BattleService {
return StatisticsModel.battleService;
});
osgi.injectService(IHelpService,function(param1:Object):void {
StatisticsModel.helpService = IHelpService(param1);
},function():IHelpService {
return StatisticsModel.helpService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
StatisticsModel.localTankInfoService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return StatisticsModel.localTankInfoService;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
StatisticsModel.localeService = ILocaleService(param1);
},function():ILocaleService {
return StatisticsModel.localeService;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
StatisticsModel.settingsService = ISettingsService(param1);
},function():ISettingsService {
return StatisticsModel.settingsService;
});
osgi.injectService(IStorageService,function(param1:Object):void {
StatisticsModel.storageService = IStorageService(param1);
},function():IStorageService {
return StatisticsModel.storageService;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
StatisticsModel.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return StatisticsModel.userPropertiesService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TankKillLogger.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TankKillLogger.battleEventDispatcher;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
TankKillLogger.localeService = ILocaleService(param1);
},function():ILocaleService {
return TankKillLogger.localeService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
StatisticsDmModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return StatisticsDmModel.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
StatisticsDmModel.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return StatisticsDmModel.battleGUIService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
StatisticsDmModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return StatisticsDmModel.battleInfoService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
StatisticsDmModel.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return StatisticsDmModel.battleInputService;
});
osgi.injectService(BattleUserPremiumService,function(param1:Object):void {
StatisticsDmModel.battlePremiumService = BattleUserPremiumService(param1);
},function():BattleUserPremiumService {
return StatisticsDmModel.battlePremiumService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
StatisticsDmModel.display = IDisplay(param1);
},function():IDisplay {
return StatisticsDmModel.display;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
StatisticsDmModel.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return StatisticsDmModel.lobbyLayoutService;
});
osgi.injectService(INotificationService,function(param1:Object):void {
StatisticsDmModel.notificationService = INotificationService(param1);
},function():INotificationService {
return StatisticsDmModel.notificationService;
});
osgi.injectService(ReconnectService,function(param1:Object):void {
StatisticsDmModel.reconnectService = ReconnectService(param1);
},function():ReconnectService {
return StatisticsDmModel.reconnectService;
});
osgi.injectService(IServerHaltService,function(param1:Object):void {
StatisticsDmModel.serverHaltService = IServerHaltService(param1);
},function():IServerHaltService {
return StatisticsDmModel.serverHaltService;
});
osgi.injectService(ChallengeInfoService,function(param1:Object):void {
StatisticsDmModel.starsEventService = ChallengeInfoService(param1);
},function():ChallengeInfoService {
return StatisticsDmModel.starsEventService;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
StatisticsDmModel.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return StatisticsDmModel.userPropertiesService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
StatisticsTeamModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return StatisticsTeamModel.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
StatisticsTeamModel.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return StatisticsTeamModel.battleGUIService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
StatisticsTeamModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return StatisticsTeamModel.battleInfoService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
StatisticsTeamModel.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return StatisticsTeamModel.battleInputService;
});
osgi.injectService(BattleUserPremiumService,function(param1:Object):void {
StatisticsTeamModel.battlePremiumService = BattleUserPremiumService(param1);
},function():BattleUserPremiumService {
return StatisticsTeamModel.battlePremiumService;
});
osgi.injectService(ChallengeInfoService,function(param1:Object):void {
StatisticsTeamModel.challengeInfoService = ChallengeInfoService(param1);
},function():ChallengeInfoService {
return StatisticsTeamModel.challengeInfoService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
StatisticsTeamModel.display = IDisplay(param1);
},function():IDisplay {
return StatisticsTeamModel.display;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
StatisticsTeamModel.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return StatisticsTeamModel.lobbyLayoutService;
});
osgi.injectService(INotificationService,function(param1:Object):void {
StatisticsTeamModel.notificationService = INotificationService(param1);
},function():INotificationService {
return StatisticsTeamModel.notificationService;
});
osgi.injectService(IServerHaltService,function(param1:Object):void {
StatisticsTeamModel.serverHaltService = IServerHaltService(param1);
},function():IServerHaltService {
return StatisticsTeamModel.serverHaltService;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
StatisticsTeamModel.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return StatisticsTeamModel.userPropertiesService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
ChassisStateCorrectionTask.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return ChassisStateCorrectionTask.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
LocalWeaponController.battleService = BattleService(param1);
},function():BattleService {
return LocalWeaponController.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
MainLoopExecutionErrorHandler.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return MainLoopExecutionErrorHandler.battleEventDispatcher;
});
osgi.injectService(IDisplay,function(param1:Object):void {
PositionBookmarks.display = IDisplay(param1);
},function():IDisplay {
return PositionBookmarks.display;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
RegularUserTitleRenderer.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return RegularUserTitleRenderer.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
RegularUserTitleRenderer.battleService = BattleService(param1);
},function():BattleService {
return RegularUserTitleRenderer.battleService;
});
osgi.injectService(BattleReadinessService,function(param1:Object):void {
SpawnCameraConfigurator.battleReadinessService = BattleReadinessService(param1);
},function():BattleReadinessService {
return SpawnCameraConfigurator.battleReadinessService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SpawnCameraConfigurator.battleService = BattleService(param1);
},function():BattleService {
return SpawnCameraConfigurator.battleService;
});
osgi.injectService(DataValidator,function(param1:Object):void {
TankDataValidatorWrapper.dataValidator = DataValidator(param1);
},function():DataValidator {
return TankDataValidatorWrapper.dataValidator;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TankModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TankModel.battleEventDispatcher;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
TankModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return TankModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankModel.battleService = BattleService(param1);
},function():BattleService {
return TankModel.battleService;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
TankModel.battleUserInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return TankModel.battleUserInfoService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
TankModel.display = IDisplay(param1);
},function():IDisplay {
return TankModel.display;
});
osgi.injectService(IInitialEffectsService,function(param1:Object):void {
TankModel.initialEffectsService = IInitialEffectsService(param1);
},function():IInitialEffectsService {
return TankModel.initialEffectsService;
});
osgi.injectService(IInventoryPanel,function(param1:Object):void {
TankModel.inventoryPanel = IInventoryPanel(param1);
},function():IInventoryPanel {
return TankModel.inventoryPanel;
});
osgi.injectService(LogService,function(param1:Object):void {
TankModel.logService = LogService(param1);
},function():LogService {
return TankModel.logService;
});
osgi.injectService(MemoryLeakTrackerService,function(param1:Object):void {
TankModel.memoryLeakTrackerService = MemoryLeakTrackerService(param1);
},function():MemoryLeakTrackerService {
return TankModel.memoryLeakTrackerService;
});
osgi.injectService(ModelRegistry,function(param1:Object):void {
TankModel.modelRegistry = ModelRegistry(param1);
},function():ModelRegistry {
return TankModel.modelRegistry;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
TankModel.settings = ISettingsService(param1);
},function():ISettingsService {
return TankModel.settings;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
TankModel.tankUsersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return TankModel.tankUsersRegistry;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
TankModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return TankModel.textureMaterialRegistry;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
TankUserInfoUpdater.usersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return TankUserInfoUpdater.usersRegistry;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
BossStateModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return BossStateModel.battleInfoService;
});
osgi.injectService(IInventoryPanel,function(param1:Object):void {
BossStateModel.inventoryPanel = IInventoryPanel(param1);
},function():IInventoryPanel {
return BossStateModel.inventoryPanel;
});
osgi.injectService(ILocaleService,function(param1:Object):void {
BossStateModel.localeService = ILocaleService(param1);
},function():ILocaleService {
return BossStateModel.localeService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankExplosionModel.battleService = BattleService(param1);
},function():BattleService {
return TankExplosionModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
TankExplosionModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return TankExplosionModel.materialRegistry;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
CommonTankDieHandler.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return CommonTankDieHandler.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
CommonTankDieHandler.battleService = BattleService(param1);
},function():BattleService {
return CommonTankDieHandler.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
DeathConfirmationTimeoutTask.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return DeathConfirmationTimeoutTask.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
DeathConfirmationTimeoutTask.battleService = BattleService(param1);
},function():BattleService {
return DeathConfirmationTimeoutTask.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankPauseModel.battleService = BattleService(param1);
},function():BattleService {
return TankPauseModel.battleService;
});
osgi.injectService(BattleUserInfoService,function(param1:Object):void {
RankChangeListener.battleUserInfoService = BattleUserInfoService(param1);
},function():BattleUserInfoService {
return RankChangeListener.battleUserInfoService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
ScheduledTankRankChangeEffect.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return ScheduledTankRankChangeEffect.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankRankUpEffectModel.battleService = BattleService(param1);
},function():BattleService {
return TankRankUpEffectModel.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TankReloaderModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TankReloaderModel.battleEventDispatcher;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
TankResistancesModel.usersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return TankResistancesModel.usersRegistry;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
ReadyToPlaceTask.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return ReadyToPlaceTask.lobbyLayoutService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
ReadyToSpawnTask.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return ReadyToSpawnTask.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
ReadyToSpawnTask.battleService = BattleService(param1);
},function():BattleService {
return ReadyToSpawnTask.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TankSpawnerModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TankSpawnerModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankSpawnerModel.battleService = BattleService(param1);
},function():BattleService {
return TankSpawnerModel.battleService;
});
osgi.injectService(LogService,function(param1:Object):void {
TankSpawnerModel.logService = LogService(param1);
},function():LogService {
return TankSpawnerModel.logService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
LocalTankFirstTimeSpawner.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return LocalTankFirstTimeSpawner.battleEventDispatcher;
});
osgi.injectService(BattleReadinessService,function(param1:Object):void {
LocalTankFirstTimeSpawner.battleReadinessService = BattleReadinessService(param1);
},function():BattleReadinessService {
return LocalTankFirstTimeSpawner.battleReadinessService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
LocalReadyToSpawnHandler.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return LocalReadyToSpawnHandler.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
LocalSpawnHandler.battleService = BattleService(param1);
},function():BattleService {
return LocalSpawnHandler.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SpectatorSpawnHandler.battleService = BattleService(param1);
},function():BattleService {
return SpectatorSpawnHandler.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
SuicideModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return SuicideModel.battleEventDispatcher;
});
osgi.injectService(AutomaticEnterExitService,function(param1:Object):void {
AutoExitSupport.autoEnterExitService = AutomaticEnterExitService(param1);
},function():AutomaticEnterExitService {
return AutoExitSupport.autoEnterExitService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
AutoExitSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return AutoExitSupport.battleEventDispatcher;
});
osgi.injectService(IDisplay,function(param1:Object):void {
ClientDeactivationSupport.display = IDisplay(param1);
},function():IDisplay {
return ClientDeactivationSupport.display;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
DialogWindowSupport.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return DialogWindowSupport.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
DialogWindowSupport.battleService = BattleService(param1);
},function():BattleService {
return DialogWindowSupport.battleService;
});
osgi.injectService(IBlurService,function(param1:Object):void {
DialogWindowSupport.blurService = IBlurService(param1);
},function():IBlurService {
return DialogWindowSupport.blurService;
});
osgi.injectService(IDialogsService,function(param1:Object):void {
DialogWindowSupport.dialogService = IDialogsService(param1);
},function():IDialogsService {
return DialogWindowSupport.dialogService;
});
osgi.injectService(IDialogWindowsDispatcherService,function(param1:Object):void {
DialogWindowSupport.dialogWindowsDispatcherService = IDialogWindowsDispatcherService(param1);
},function():IDialogWindowsDispatcherService {
return DialogWindowSupport.dialogWindowsDispatcherService;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
DialogWindowSupport.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return DialogWindowSupport.lobbyLayoutService;
});
osgi.injectService(PaymentDisplayService,function(param1:Object):void {
DialogWindowSupport.paymentDisplayService = PaymentDisplayService(param1);
},function():PaymentDisplayService {
return DialogWindowSupport.paymentDisplayService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
PauseSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return PauseSupport.battleEventDispatcher;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
PauseSupport.battleGUIService = BattleGUIService(param1);
},function():BattleGUIService {
return PauseSupport.battleGUIService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
PauseSupport.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return PauseSupport.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
PauseSupport.battleService = BattleService(param1);
},function():BattleService {
return PauseSupport.battleService;
});
osgi.injectService(IDialogWindowsDispatcherService,function(param1:Object):void {
PauseSupport.dialogWindowsDispatcherService = IDialogWindowsDispatcherService(param1);
},function():IDialogWindowsDispatcherService {
return PauseSupport.dialogWindowsDispatcherService;
});
osgi.injectService(IDialogsService,function(param1:Object):void {
PauseSupport.dialogsService = IDialogsService(param1);
},function():IDialogsService {
return PauseSupport.dialogsService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
PauseSupport.display = IDisplay(param1);
},function():IDisplay {
return PauseSupport.display;
});
osgi.injectService(FullscreenStateService,function(param1:Object):void {
PauseSupport.fullscreenStateService = FullscreenStateService(param1);
},function():FullscreenStateService {
return PauseSupport.fullscreenStateService;
});
osgi.injectService(KeysBindingService,function(param1:Object):void {
PauseSupport.keysBindingService = KeysBindingService(param1);
},function():KeysBindingService {
return PauseSupport.keysBindingService;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
PauseSupport.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return PauseSupport.lobbyLayoutService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
StateCorrectionSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return StateCorrectionSupport.battleEventDispatcher;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
SuicideSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return SuicideSupport.battleEventDispatcher;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
SuicideSupport.battleInputLockService = BattleInputService(param1);
},function():BattleInputService {
return SuicideSupport.battleInputLockService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SuicideSupport.battleService = BattleService(param1);
},function():BattleService {
return SuicideSupport.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
SuicideSupport.display = IDisplay(param1);
},function():IDisplay {
return SuicideSupport.display;
});
osgi.injectService(KeysBindingService,function(param1:Object):void {
SuicideSupport.keysBindingService = KeysBindingService(param1);
},function():KeysBindingService {
return SuicideSupport.keysBindingService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TankReloaderSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TankReloaderSupport.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankReloaderSupport.battleService = BattleService(param1);
},function():BattleService {
return TankReloaderSupport.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
TankReloaderSupport.display = IDisplay(param1);
},function():IDisplay {
return TankReloaderSupport.display;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
TankSettingsSupport.settings = ISettingsService(param1);
},function():ISettingsService {
return TankSettingsSupport.settings;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TurnOverIndicatorSupport.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TurnOverIndicatorSupport.battleEventDispatcher;
});
osgi.injectService(IDialogWindowsDispatcherService,function(param1:Object):void {
TurnOverIndicatorSupport.dialogWindowsDispatcherService = IDialogWindowsDispatcherService(param1);
},function():IDialogWindowsDispatcherService {
return TurnOverIndicatorSupport.dialogWindowsDispatcherService;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
TurnOverIndicatorSupport.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return TurnOverIndicatorSupport.lobbyLayoutService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TankTurnOverModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TankTurnOverModel.battleEventDispatcher;
});
osgi.injectService(IUserPropertiesService,function(param1:Object):void {
TankTurnOverModel.userPropertiesService = IUserPropertiesService(param1);
},function():IUserPropertiesService {
return TankTurnOverModel.userPropertiesService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
UltimateModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return UltimateModel.battleEventDispatcher;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
UltimateModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return UltimateModel.battleInfoService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
UltimateModel.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return UltimateModel.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
UltimateModel.battleService = BattleService(param1);
},function():BattleService {
return UltimateModel.battleService;
});
osgi.injectService(InventorySoundService,function(param1:Object):void {
UltimateModel.inventorySoundService = InventorySoundService(param1);
},function():InventorySoundService {
return UltimateModel.inventorySoundService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
UltimateModel.localTankInfoService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return UltimateModel.localTankInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
DictatorUltimateModel.battleService = BattleService(param1);
},function():BattleService {
return DictatorUltimateModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
DictatorUltimateModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return DictatorUltimateModel.textureMaterialRegistry;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
HornetUltimateModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return HornetUltimateModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
HornetUltimateModel.battleService = BattleService(param1);
},function():BattleService {
return HornetUltimateModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
HornetUltimateModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return HornetUltimateModel.textureMaterialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleRadarHudIndicators.battleService = BattleService(param1);
},function():BattleService {
return BattleRadarHudIndicators.battleService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
BattleRadarHudIndicators.localTankInfoService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return BattleRadarHudIndicators.localTankInfoService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
BattleUltimateRadarModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return BattleUltimateRadarModel.battleEventDispatcher;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
BattleUltimateRadarModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return BattleUltimateRadarModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleUltimateRadarModel.battleService = BattleService(param1);
},function():BattleService {
return BattleUltimateRadarModel.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
HunterUltimateModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return HunterUltimateModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
HunterUltimateModel.battleService = BattleService(param1);
},function():BattleService {
return HunterUltimateModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
HunterUltimateModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return HunterUltimateModel.textureMaterialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
TankStunModel.battleService = BattleService(param1);
},function():BattleService {
return TankStunModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
TankStunModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return TankStunModel.textureMaterialRegistry;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
JuggernautUltimateModel.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return JuggernautUltimateModel.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
JuggernautUltimateModel.battleService = BattleService(param1);
},function():BattleService {
return JuggernautUltimateModel.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
MammothUltimateModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return MammothUltimateModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
MammothUltimateModel.battleService = BattleService(param1);
},function():BattleService {
return MammothUltimateModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
MammothUltimateModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return MammothUltimateModel.textureMaterialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
TitanUltimateGeneratorModel.battleService = BattleService(param1);
},function():BattleService {
return TitanUltimateGeneratorModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
TitanUltimateGeneratorModel.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return TitanUltimateGeneratorModel.materialRegistry;
});
osgi.injectService(IUserInfoService,function(param1:Object):void {
TitanUltimateGeneratorModel.userInfoService = IUserInfoService(param1);
},function():IUserInfoService {
return TitanUltimateGeneratorModel.userInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
VikingUltimateModel.battleService = BattleService(param1);
},function():BattleService {
return VikingUltimateModel.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
VikingUltimateModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return VikingUltimateModel.textureMaterialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
WaspUltimateBombModel.battleService = BattleService(param1);
},function():BattleService {
return WaspUltimateBombModel.battleService;
});
osgi.injectService(InventorySoundService,function(param1:Object):void {
WaspUltimateBombModel.inventorySoundService = InventorySoundService(param1);
},function():InventorySoundService {
return WaspUltimateBombModel.inventorySoundService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
WaspUltimateBombModel.localTankInfoService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return WaspUltimateBombModel.localTankInfoService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
WaspUltimateBombModel.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return WaspUltimateBombModel.textureMaterialRegistry;
});
osgi.injectService(ILightingEffectsService,function(param1:Object):void {
TeamLightModel.lightingEffectsService = ILightingEffectsService(param1);
},function():ILightingEffectsService {
return TeamLightModel.lightingEffectsService;
});
osgi.injectService(PingService,function(param1:Object):void {
TimeCheckerModel.pingService = PingService(param1);
},function():PingService {
return TimeCheckerModel.pingService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ArtilleryCannonEffect.battleService = BattleService(param1);
},function():BattleService {
return ArtilleryCannonEffect.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
ArtilleryShell.textureMaterialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return ArtilleryShell.textureMaterialRegistry;
});
osgi.injectService(BattleGUIService,function(param1:Object):void {
VerticalAngleView.battleGuiService = BattleGUIService(param1);
},function():BattleGUIService {
return VerticalAngleView.battleGuiService;
});
osgi.injectService(BattleService,function(param1:Object):void {
VerticalAngleView.battleService = BattleService(param1);
},function():BattleService {
return VerticalAngleView.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
VerticalAngleView.display = IDisplay(param1);
},function():IDisplay {
return VerticalAngleView.display;
});
osgi.injectService(BattleService,function(param1:Object):void {
ArtilleryElevatingBarrelModel.battleService = BattleService(param1);
},function():BattleService {
return ArtilleryElevatingBarrelModel.battleService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
BarrelElevationController.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return BarrelElevationController.battleInputService;
});
osgi.injectService(FullscreenService,function(param1:Object):void {
BarrelElevationController.fullScreenService = FullscreenService(param1);
},function():FullscreenService {
return BarrelElevationController.fullScreenService;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
BarrelElevationController.settingsService = ISettingsService(param1);
},function():ISettingsService {
return BarrelElevationController.settingsService;
});
osgi.injectService(IBattleInfoService,function(param1:Object):void {
ArtilleryEffects.battleInfoService = IBattleInfoService(param1);
},function():IBattleInfoService {
return ArtilleryEffects.battleInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ArtilleryEffects.battleService = BattleService(param1);
},function():BattleService {
return ArtilleryEffects.battleService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
ArtilleryEffects.localTankService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return ArtilleryEffects.localTankService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ArtilleryFlame.battleService = BattleService(param1);
},function():BattleService {
return ArtilleryFlame.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
ArtillerySfxData.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return ArtillerySfxData.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
ArtilleryShellEffects.battleService = BattleService(param1);
},function():BattleService {
return ArtilleryShellEffects.battleService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
ArtilleryShellEffects.localTankService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return ArtilleryShellEffects.localTankService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ArtilleryShotEffect.battleService = BattleService(param1);
},function():BattleService {
return ArtilleryShotEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ArtilleryTrailEffect.battleService = BattleService(param1);
},function():BattleService {
return ArtilleryTrailEffect.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
WeaponCommonModel.display = IDisplay(param1);
},function():IDisplay {
return WeaponCommonModel.display;
});
osgi.injectService(BattleService,function(param1:Object):void {
FlamethrowerEffects.battleService = BattleService(param1);
},function():BattleService {
return FlamethrowerEffects.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
FlamethrowerModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return FlamethrowerModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
FlamethrowerModel.battleService = BattleService(param1);
},function():BattleService {
return FlamethrowerModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
FlamethrowerSFXModel.battleService = BattleService(param1);
},function():BattleService {
return FlamethrowerSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
FlamethrowerSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return FlamethrowerSFXModel.materialRegistry;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
FreezeModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return FreezeModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
FreezeModel.battleService = BattleService(param1);
},function():BattleService {
return FreezeModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
FreezeSFXModel.battleService = BattleService(param1);
},function():BattleService {
return FreezeSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
FreezeSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return FreezeSFXModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
CommonGaussWeapon.battleService = BattleService(param1);
},function():BattleService {
return CommonGaussWeapon.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
GaussModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return GaussModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
GaussModel.battleService = BattleService(param1);
},function():BattleService {
return GaussModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
GaussAntennaAimingEffect.battleService = BattleService(param1);
},function():BattleService {
return GaussAntennaAimingEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
GaussEffects.battleService = BattleService(param1);
},function():BattleService {
return GaussEffects.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
GaussMuzzleEffect.battleService = BattleService(param1);
},function():BattleService {
return GaussMuzzleEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
GaussPowerShotEffect.battleService = BattleService(param1);
},function():BattleService {
return GaussPowerShotEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
GaussSFXModel.battleService = BattleService(param1);
},function():BattleService {
return GaussSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
GaussSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return GaussSFXModel.materialRegistry;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
HealingGunModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return HealingGunModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
HealingGunModel.battleService = BattleService(param1);
},function():BattleService {
return HealingGunModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
HealingGunSFXModel.battleService = BattleService(param1);
},function():BattleService {
return HealingGunSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
HealingGunSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return HealingGunSFXModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
IsisTargetPriorityCalculator.battleService = BattleService(param1);
},function():BattleService {
return IsisTargetPriorityCalculator.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
LaserPointerEffect.battleService = BattleService(param1);
},function():BattleService {
return LaserPointerEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
LaserPointerModel.battleService = BattleService(param1);
},function():BattleService {
return LaserPointerModel.battleService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
LaserPointerModel.localTankInfoService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return LaserPointerModel.localTankInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
MachineGunCommonWeapon.battleService = BattleService(param1);
},function():BattleService {
return MachineGunCommonWeapon.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
MachineGunModel.battleService = BattleService(param1);
},function():BattleService {
return MachineGunModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
MachineGunRemoteWeapon.battleService = BattleService(param1);
},function():BattleService {
return MachineGunRemoteWeapon.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
MachineGunWeapon.battleService = BattleService(param1);
},function():BattleService {
return MachineGunWeapon.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
MachineGunEffects.battleService = BattleService(param1);
},function():BattleService {
return MachineGunEffects.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
MachineGunSFXData.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return MachineGunSFXData.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
MachineGunShotEffect.battleService = BattleService(param1);
},function():BattleService {
return MachineGunShotEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ParticleSystem.battleService = BattleService(param1);
},function():BattleService {
return ParticleSystem.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
MachineGunSoundManager.battleService = BattleService(param1);
},function():BattleService {
return MachineGunSoundManager.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
RailgunModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return RailgunModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
RailgunModel.battleService = BattleService(param1);
},function():BattleService {
return RailgunModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RailgunSFXModel.battleService = BattleService(param1);
},function():BattleService {
return RailgunSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
RailgunSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return RailgunSFXModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
RicochetAmmunition.battleService = BattleService(param1);
},function():BattleService {
return RicochetAmmunition.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
RicochetModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return RicochetModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
RicochetModel.battleService = BattleService(param1);
},function():BattleService {
return RicochetModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RicochetSFXModel.battleService = BattleService(param1);
},function():BattleService {
return RicochetSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
RicochetSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return RicochetSFXModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
RicochetWeapon.battleService = BattleService(param1);
},function():BattleService {
return RicochetWeapon.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RocketFlightEffect.battleService = BattleService(param1);
},function():BattleService {
return RocketFlightEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RocketLauncherEffects.battleService = BattleService(param1);
},function():BattleService {
return RocketLauncherEffects.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
RocketLauncherSfxData.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return RocketLauncherSfxData.materialRegistry;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
RocketSmoke.settings = ISettingsService(param1);
},function():ISettingsService {
return RocketSmoke.settings;
});
osgi.injectService(BattleService,function(param1:Object):void {
RemoteRocketLauncherWeapon.battleService = BattleService(param1);
},function():BattleService {
return RemoteRocketLauncherWeapon.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RocketLauncherWeapon.battleService = BattleService(param1);
},function():BattleService {
return RocketLauncherWeapon.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RocketLauncherAim.battleService = BattleService(param1);
},function():BattleService {
return RocketLauncherAim.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ReticleDisplay.battleService = BattleService(param1);
},function():BattleService {
return ReticleDisplay.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
ShaftModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return ShaftModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShaftModel.battleService = BattleService(param1);
},function():BattleService {
return ShaftModel.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
ShaftModel.display = IDisplay(param1);
},function():IDisplay {
return ShaftModel.display;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShaftSFXModel.battleService = BattleService(param1);
},function():BattleService {
return ShaftSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
ShaftSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return ShaftSFXModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShaftWeapon.battleService = BattleService(param1);
},function():BattleService {
return ShaftWeapon.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
ShaftWeapon.display = IDisplay(param1);
},function():IDisplay {
return ShaftWeapon.display;
});
osgi.injectService(BattleService,function(param1:Object):void {
AimingCameraController.battleService = BattleService(param1);
},function():BattleService {
return AimingCameraController.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
AimingCameraController.display = IDisplay(param1);
},function():IDisplay {
return AimingCameraController.display;
});
osgi.injectService(BattleService,function(param1:Object):void {
MarginalCollider.battleService = BattleService(param1);
},function():BattleService {
return MarginalCollider.battleService;
});
osgi.injectService(BattleInputService,function(param1:Object):void {
SimpleWeaponController.battleInputService = BattleInputService(param1);
},function():BattleInputService {
return SimpleWeaponController.battleInputService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShotgunModel.battleService = BattleService(param1);
},function():BattleService {
return ShotgunModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShotgunRicochetTargetingSystem.battleService = BattleService(param1);
},function():BattleService {
return ShotgunRicochetTargetingSystem.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShotgunEffects.battleService = BattleService(param1);
},function():BattleService {
return ShotgunEffects.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
ShotgunSFXData.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return ShotgunSFXData.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShotgunSFXModel.battleService = BattleService(param1);
},function():BattleService {
return ShotgunSFXModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShotgunShotEffect.battleService = BattleService(param1);
},function():BattleService {
return ShotgunShotEffect.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
SmokyModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return SmokyModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
SmokyModel.battleService = BattleService(param1);
},function():BattleService {
return SmokyModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SmokyEffects.battleService = BattleService(param1);
},function():BattleService {
return SmokyEffects.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SmokySFXModel.battleService = BattleService(param1);
},function():BattleService {
return SmokySFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
SmokySFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return SmokySFXModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
SplashModel.battleService = BattleService(param1);
},function():BattleService {
return SplashModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
RemoteTerminatorWeapon.battleService = BattleService(param1);
},function():BattleService {
return RemoteTerminatorWeapon.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TerminatorModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TerminatorModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
TerminatorModel.battleService = BattleService(param1);
},function():BattleService {
return TerminatorModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TerminatorEffects.battleService = BattleService(param1);
},function():BattleService {
return TerminatorEffects.battleService;
});
osgi.injectService(LocalTankInfoService,function(param1:Object):void {
TerminatorEffects.localTankService = LocalTankInfoService(param1);
},function():LocalTankInfoService {
return TerminatorEffects.localTankService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TerminatorOpenEffect.battleService = BattleService(param1);
},function():BattleService {
return TerminatorOpenEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TerminatorRecoilEffect.battleService = BattleService(param1);
},function():BattleService {
return TerminatorRecoilEffect.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
ThunderModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return ThunderModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
ThunderModel.battleService = BattleService(param1);
},function():BattleService {
return ThunderModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ThunderSFXModel.battleService = BattleService(param1);
},function():BattleService {
return ThunderSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
ThunderSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return ThunderSFXModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
RotatingTurretModel.battleService = BattleService(param1);
},function():BattleService {
return RotatingTurretModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TwinsAmmunition.battleService = BattleService(param1);
},function():BattleService {
return TwinsAmmunition.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
TwinsModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return TwinsModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
TwinsModel.battleService = BattleService(param1);
},function():BattleService {
return TwinsModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
TwinsSFXModel.battleService = BattleService(param1);
},function():BattleService {
return TwinsSFXModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
TwinsSFXModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return TwinsSFXModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
CommonLocalWeapon.battleService = BattleService(param1);
},function():BattleService {
return CommonLocalWeapon.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
DiscreteWeaponCommunicationModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return DiscreteWeaponCommunicationModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
Shell.battleService = BattleService(param1);
},function():BattleService {
return Shell.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
ShellWeaponCommunicationModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return ShellWeaponCommunicationModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShellWeaponCommunicationModel.battleService = BattleService(param1);
},function():BattleService {
return ShellWeaponCommunicationModel.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShellStates.battleService = BattleService(param1);
},function():BattleService {
return ShellStates.battleService;
});
osgi.injectService(BattleEventDispatcher,function(param1:Object):void {
StreamWeaponCommunicationModel.battleEventDispatcher = BattleEventDispatcher(param1);
},function():BattleEventDispatcher {
return StreamWeaponCommunicationModel.battleEventDispatcher;
});
osgi.injectService(BattleService,function(param1:Object):void {
TargetingVisualDebug.battleService = BattleService(param1);
},function():BattleService {
return TargetingVisualDebug.battleService;
});
osgi.injectService(TankUsersRegistry,function(param1:Object):void {
TargetingSectorsCalculator.tankUsersRegistry = TankUsersRegistry(param1);
},function():TankUsersRegistry {
return TargetingSectorsCalculator.tankUsersRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
CommonTargetPriorityCalculator.battleService = BattleService(param1);
},function():BattleService {
return CommonTargetPriorityCalculator.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
PenetratingTargetPriorityCalculator.battleService = BattleService(param1);
},function():BattleService {
return PenetratingTargetPriorityCalculator.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
ShaftTargetPriorityCalculator.battleService = BattleService(param1);
},function():BattleService {
return ShaftTargetPriorityCalculator.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
CommonDirectionProcessor.battleService = BattleService(param1);
},function():BattleService {
return CommonDirectionProcessor.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
DirectionProcessorForPenetratingWeapons.battleService = BattleService(param1);
},function():BattleService {
return DirectionProcessorForPenetratingWeapons.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SingleTargetDirectionProcessor.battleService = BattleService(param1);
},function():BattleService {
return SingleTargetDirectionProcessor.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SingleTargetPrecisionDirectionProcessor.battleService = BattleService(param1);
},function():BattleService {
return SingleTargetPrecisionDirectionProcessor.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
SoaringChecker.battleService = BattleService(param1);
},function():BattleService {
return SoaringChecker.battleService;
});
osgi.injectService(IDisplay,function(param1:Object):void {
BattleGUIServiceImpl.display = IDisplay(param1);
},function():IDisplay {
return BattleGUIServiceImpl.display;
});
osgi.injectService(FullscreenService,function(param1:Object):void {
BattleInputServiceImpl.fullScreenService = FullscreenService(param1);
},function():FullscreenService {
return BattleInputServiceImpl.fullScreenService;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
BattleInputServiceImpl.settingsService = ISettingsService(param1);
},function():ISettingsService {
return BattleInputServiceImpl.settingsService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BattleReadinessServiceImpl.battleSerivce = BattleService(param1);
},function():BattleService {
return BattleReadinessServiceImpl.battleSerivce;
});
osgi.injectService(ILoaderWindowService,function(param1:Object):void {
BattleReadinessServiceImpl.loaderWindowService = ILoaderWindowService(param1);
},function():ILoaderWindowService {
return BattleReadinessServiceImpl.loaderWindowService;
});
osgi.injectService(ILobbyLayoutService,function(param1:Object):void {
BattleReadinessServiceImpl.lobbyLayoutService = ILobbyLayoutService(param1);
},function():ILobbyLayoutService {
return BattleReadinessServiceImpl.lobbyLayoutService;
});
osgi.injectService(IModalLoaderService,function(param1:Object):void {
BattleReadinessServiceImpl.modalLoaderService = IModalLoaderService(param1);
},function():IModalLoaderService {
return BattleReadinessServiceImpl.modalLoaderService;
});
osgi.injectService(BattleService,function(param1:Object):void {
BonusRegionService.battleService = BattleService(param1);
},function():BattleService {
return BonusRegionService.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
BonusRegionService.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return BonusRegionService.materialRegistry;
});
osgi.injectService(ISettingsService,function(param1:Object):void {
BonusRegionService.settings = ISettingsService(param1);
},function():ISettingsService {
return BonusRegionService.settings;
});
osgi.injectService(BattleService,function(param1:Object):void {
BonusCrystalsEffectUtils.battleService = BattleService(param1);
},function():BattleService {
return BonusCrystalsEffectUtils.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
BonusCrystalsEffectUtils.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return BonusCrystalsEffectUtils.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
DecalEffect.battleService = BattleService(param1);
},function():BattleService {
return DecalEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
LevelUpEffectFactory.battleService = BattleService(param1);
},function():BattleService {
return LevelUpEffectFactory.battleService;
});
osgi.injectService(TextureMaterialRegistry,function(param1:Object):void {
LevelUpEffectFactory.materialRegistry = TextureMaterialRegistry(param1);
},function():TextureMaterialRegistry {
return LevelUpEffectFactory.materialRegistry;
});
osgi.injectService(IUserInfoService,function(param1:Object):void {
LevelUpEffectFactory.userInfoService = IUserInfoService(param1);
},function():IUserInfoService {
return LevelUpEffectFactory.userInfoService;
});
osgi.injectService(BattleService,function(param1:Object):void {
Sound3DEffect.battleService = BattleService(param1);
},function():BattleService {
return Sound3DEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
DamageIndicatorEffect.battleService = BattleService(param1);
},function():BattleService {
return DamageIndicatorEffect.battleService;
});
osgi.injectService(BattleService,function(param1:Object):void {
DroneExplosionModel.battleService = BattleService(param1);
},function():BattleService {
return DroneExplosionModel.battleService;
});
osgi.injectService(EffectsMaterialRegistry,function(param1:Object):void {
DroneExplosionModel.materialRegistry = EffectsMaterialRegistry(param1);
},function():EffectsMaterialRegistry {
return DroneExplosionModel.materialRegistry;
});
osgi.injectService(BattleService,function(param1:Object):void {
FloatingTextEffect.battleService = BattleService(param1);
},function():BattleService {
return FloatingTextEffect.battleService;
});
modelRegisterAdapt = osgi.getService(ModelRegistry) as ModelRegistry;
modelRegisterAdapt.registerAdapt(CustomTurretSkin,CustomTurretSkinAdapt);
modelRegisterAdapt.registerEvents(CustomTurretSkin,CustomTurretSkinEvents);
modelRegister = osgi.getService(ModelRegistry) as ModelRegistry;
modelRegister.add(new AssaultModel());
modelRegisterAdapt.registerAdapt(BattleModel,BattleModelAdapt);
modelRegisterAdapt.registerEvents(BattleModel,BattleModelEvents);
modelRegisterAdapt.registerAdapt(BattleSfx,BattleSfxAdapt);
modelRegisterAdapt.registerEvents(BattleSfx,BattleSfxEvents);
modelRegisterAdapt.registerAdapt(BattlefieldEvents,BattlefieldEventsAdapt);
modelRegisterAdapt.registerEvents(BattlefieldEvents,BattlefieldEventsEvents);
modelRegister.add(new BattlefieldModel());
modelRegister.add(new BillboardsModel());
modelRegister.add(new BillboardImageModel());
modelRegister.add(new BattleMinesModel());
modelRegisterAdapt.registerAdapt(IBattleMinesModel,IBattleMinesModelAdapt);
modelRegisterAdapt.registerEvents(IBattleMinesModel,IBattleMinesModelEvents);
modelRegisterAdapt.registerAdapt(FlagNotification,FlagNotificationAdapt);
modelRegisterAdapt.registerEvents(FlagNotification,FlagNotificationEvents);
modelRegisterAdapt.registerAdapt(ICommonFlagModeModel,ICommonFlagModeModelAdapt);
modelRegisterAdapt.registerEvents(ICommonFlagModeModel,ICommonFlagModeModelEvents);
modelRegisterAdapt.registerAdapt(IFlagModeInitilizer,IFlagModeInitilizerAdapt);
modelRegisterAdapt.registerEvents(IFlagModeInitilizer,IFlagModeInitilizerEvents);
modelRegister.add(new PointBasedBattleModel());
modelRegister.add(new CTFModel());
modelRegister.add(new BattleDebugModel());
modelRegister.add(new BattleDMModel());
modelRegisterAdapt.registerAdapt(BattleFacilities,BattleFacilitiesAdapt);
modelRegisterAdapt.registerEvents(BattleFacilities,BattleFacilitiesEvents);
modelRegisterAdapt.registerAdapt(BattleFacilitiesChecker,BattleFacilitiesCheckerAdapt);
modelRegisterAdapt.registerEvents(BattleFacilitiesChecker,BattleFacilitiesCheckerEvents);
modelRegister.add(new BattleFacilitiesModel());
modelRegisterAdapt.registerAdapt(BattleUnloadListener,BattleUnloadListenerAdapt);
modelRegisterAdapt.registerEvents(BattleUnloadListener,BattleUnloadListenerEvents);
modelRegister.add(new CommonFacilityModel());
modelRegisterAdapt.registerAdapt(FacilityDispellEffect,FacilityDispellEffectAdapt);
modelRegisterAdapt.registerEvents(FacilityDispellEffect,FacilityDispellEffectEvents);
modelRegisterAdapt.registerAdapt(FacilitySphericalZone,FacilitySphericalZoneAdapt);
modelRegisterAdapt.registerEvents(FacilitySphericalZone,FacilitySphericalZoneEvents);
modelRegister.add(new FacilitySphericalZoneModel());
modelRegisterAdapt.registerAdapt(ICommonFacility,ICommonFacilityAdapt);
modelRegisterAdapt.registerEvents(ICommonFacility,ICommonFacilityEvents);
modelRegisterAdapt.registerAdapt(BattlefieldGUI,BattlefieldGUIAdapt);
modelRegisterAdapt.registerEvents(BattlefieldGUI,BattlefieldGUIEvents);
modelRegister.add(new BattleChatModel());
modelRegisterAdapt.registerAdapt(IBattleChat,IBattleChatAdapt);
modelRegisterAdapt.registerEvents(IBattleChat,IBattleChatEvents);
modelRegister.add(new DroneIndicatorModel());
modelRegisterAdapt.registerAdapt(IDroneModel,IDroneModelAdapt);
modelRegisterAdapt.registerEvents(IDroneModel,IDroneModelEvents);
modelRegister.add(new MatchmakingGroupInfoModel());
modelRegisterAdapt.registerAdapt(IInventoryItem,IInventoryItemAdapt);
modelRegisterAdapt.registerEvents(IInventoryItem,IInventoryItemEvents);
modelRegister.add(new InventoryItemModel());
modelRegister.add(new InventoryModel());
modelRegister.add(new InventorySfxModel());
modelRegister.add(new InventoryCooldownModel());
modelRegister.add(new BattleJGRModel());
modelRegisterAdapt.registerAdapt(Juggernaut,JuggernautAdapt);
modelRegisterAdapt.registerEvents(Juggernaut,JuggernautEvents);
modelRegister.add(new JuggernautModel());
modelRegister.add(new KillStreakModel());
modelRegister.add(new MeteorStormModel());
modelRegister.add(new RugbyModel());
modelRegisterAdapt.registerAdapt(BallExplosion,BallExplosionAdapt);
modelRegisterAdapt.registerEvents(BallExplosion,BallExplosionEvents);
modelRegister.add(new BallExplosionModel());
modelRegister.add(new MemoryStatisticsModel());
modelRegister.add(new FpsStatisticsModel());
modelRegister.add(new TargetingStatisticsModel());
modelRegister.add(new BattleTDMModel());
modelRegister.add(new BattlefieldBonusesModel());
modelRegister.add(new BonusLightModel());
modelRegisterAdapt.registerAdapt(IBonusLight,IBonusLightAdapt);
modelRegisterAdapt.registerEvents(IBonusLight,IBonusLightEvents);
modelRegister.add(new BonusCommonModel());
modelRegister.add(new BattleGoldBonusesModel());
modelRegister.add(new GoldBonusesModel());
modelRegisterAdapt.registerAdapt(IGoldBonus,IGoldBonusAdapt);
modelRegisterAdapt.registerEvents(IGoldBonus,IGoldBonusEvents);
modelRegisterAdapt.registerAdapt(BonusNotification,BonusNotificationAdapt);
modelRegisterAdapt.registerEvents(BonusNotification,BonusNotificationEvents);
modelRegister.add(new BonusNotificationModel());
modelRegister.add(new RandomGoldBonusTakeModel());
modelRegister.add(new BonusRegionsModel());
modelRegister.add(new ColorAdjustModel());
modelRegisterAdapt.registerAdapt(IColorAdjust,IColorAdjustAdapt);
modelRegisterAdapt.registerEvents(IColorAdjust,IColorAdjustEvents);
modelRegisterAdapt.registerAdapt(ContinueBattle,ContinueBattleAdapt);
modelRegisterAdapt.registerEvents(ContinueBattle,ContinueBattleEvents);
modelRegister.add(new ContinueBattleModel());
modelRegister.add(new MatchmakingContinueBattleModel());
modelRegister.add(new ControlPointsModel());
modelRegister.add(new ActiveAfterDeathModel());
modelRegisterAdapt.registerAdapt(IActiveAfterDeath,IActiveAfterDeathAdapt);
modelRegisterAdapt.registerEvents(IActiveAfterDeath,IActiveAfterDeathEvents);
modelRegisterAdapt.registerAdapt(IBonusCommonModel,IBonusCommonModelAdapt);
modelRegisterAdapt.registerEvents(IBonusCommonModel,IBonusCommonModelEvents);
modelRegister.add(new EffectDescriptionModel());
modelRegister.add(new DurationModel());
modelRegisterAdapt.registerAdapt(IDuration,IDurationAdapt);
modelRegisterAdapt.registerEvents(IDuration,IDurationEvents);
modelRegister.add(new EffectLevelModel());
modelRegisterAdapt.registerAdapt(IEffectLevel,IEffectLevelAdapt);
modelRegisterAdapt.registerEvents(IEffectLevel,IEffectLevelEvents);
modelRegisterAdapt.registerAdapt(IInventoryModel,IInventoryModelAdapt);
modelRegisterAdapt.registerEvents(IInventoryModel,IInventoryModelEvents);
modelRegister.add(new LatencyModel());
modelRegister.add(new BattleMapModel());
modelRegisterAdapt.registerAdapt(IBattleMap,IBattleMapAdapt);
modelRegisterAdapt.registerEvents(IBattleMap,IBattleMapEvents);
modelRegisterAdapt.registerAdapt(IMapBonusLight,IMapBonusLightAdapt);
modelRegisterAdapt.registerEvents(IMapBonusLight,IMapBonusLightEvents);
modelRegister.add(new MapBonusLightModel());
modelRegister.add(new PerformanceModel());
modelRegisterAdapt.registerAdapt(ColorTransformConsumer,ColorTransformConsumerAdapt);
modelRegisterAdapt.registerEvents(ColorTransformConsumer,ColorTransformConsumerEvents);
modelRegister.add(new ColorTransformModel());
modelRegister.add(new TankEffectSFXModel());
modelRegisterAdapt.registerAdapt(HullSmoke,HullSmokeAdapt);
modelRegisterAdapt.registerEvents(HullSmoke,HullSmokeEvents);
modelRegister.add(new HullSmokeModel());
modelRegisterAdapt.registerAdapt(IClientUserInfo,IClientUserInfoAdapt);
modelRegisterAdapt.registerEvents(IClientUserInfo,IClientUserInfoEvents);
modelRegisterAdapt.registerAdapt(IStatisticRound,IStatisticRoundAdapt);
modelRegisterAdapt.registerEvents(IStatisticRound,IStatisticRoundEvents);
modelRegisterAdapt.registerAdapt(IStatisticsModel,IStatisticsModelAdapt);
modelRegisterAdapt.registerEvents(IStatisticsModel,IStatisticsModelEvents);
modelRegister.add(new StatisticsModel());
modelRegister.add(new StatisticsDmModel());
modelRegister.add(new StatisticsTeamModel());
modelRegisterAdapt.registerAdapt(AddToBattleListener,AddToBattleListenerAdapt);
modelRegisterAdapt.registerEvents(AddToBattleListener,AddToBattleListenerEvents);
modelRegisterAdapt.registerAdapt(DestroyTankPart,DestroyTankPartAdapt);
modelRegisterAdapt.registerEvents(DestroyTankPart,DestroyTankPartEvents);
modelRegisterAdapt.registerAdapt(ITankModel,ITankModelAdapt);
modelRegisterAdapt.registerEvents(ITankModel,ITankModelEvents);
modelRegisterAdapt.registerAdapt(InitTankPart,InitTankPartAdapt);
modelRegisterAdapt.registerEvents(InitTankPart,InitTankPartEvents);
modelRegisterAdapt.registerAdapt(RemoveFromBattleListener,RemoveFromBattleListenerAdapt);
modelRegisterAdapt.registerEvents(RemoveFromBattleListener,RemoveFromBattleListenerEvents);
modelRegister.add(new TankModel());
modelRegisterAdapt.registerAdapt(TankPartReset,TankPartResetAdapt);
modelRegisterAdapt.registerEvents(TankPartReset,TankPartResetEvents);
modelRegisterAdapt.registerAdapt(WeaponMountProvider,WeaponMountProviderAdapt);
modelRegisterAdapt.registerEvents(WeaponMountProvider,WeaponMountProviderEvents);
modelRegisterAdapt.registerAdapt(Armor,ArmorAdapt);
modelRegisterAdapt.registerEvents(Armor,ArmorEvents);
modelRegister.add(new SimpleArmorModel());
modelRegisterAdapt.registerAdapt(ITrackedChassis,ITrackedChassisAdapt);
modelRegisterAdapt.registerEvents(ITrackedChassis,ITrackedChassisEvents);
modelRegister.add(new TrackedChassisModel());
modelRegister.add(new BossStateModel());
modelRegisterAdapt.registerAdapt(IBossState,IBossStateAdapt);
modelRegisterAdapt.registerEvents(IBossState,IBossStateEvents);
modelRegisterAdapt.registerAdapt(TankConfiguration,TankConfigurationAdapt);
modelRegisterAdapt.registerEvents(TankConfiguration,TankConfigurationEvents);
modelRegister.add(new TankConfigurationModel());
modelRegister.add(new DamageIndicatorModel());
modelRegisterAdapt.registerAdapt(TankDevice,TankDeviceAdapt);
modelRegisterAdapt.registerEvents(TankDevice,TankDeviceEvents);
modelRegister.add(new TankDeviceModel());
modelRegisterAdapt.registerAdapt(Engine,EngineAdapt);
modelRegisterAdapt.registerEvents(Engine,EngineEvents);
modelRegister.add(new EngineModel());
modelRegisterAdapt.registerAdapt(LocalTankLoadListener,LocalTankLoadListenerAdapt);
modelRegisterAdapt.registerEvents(LocalTankLoadListener,LocalTankLoadListenerEvents);
modelRegisterAdapt.registerAdapt(LocalTankUnloadListener,LocalTankUnloadListenerAdapt);
modelRegisterAdapt.registerEvents(LocalTankUnloadListener,LocalTankUnloadListenerEvents);
modelRegisterAdapt.registerAdapt(TankEntityCreationListener,TankEntityCreationListenerAdapt);
modelRegisterAdapt.registerEvents(TankEntityCreationListener,TankEntityCreationListenerEvents);
modelRegisterAdapt.registerAdapt(ITankExplosionModel,ITankExplosionModelAdapt);
modelRegisterAdapt.registerEvents(ITankExplosionModel,ITankExplosionModelEvents);
modelRegister.add(new TankExplosionModel());
modelRegister.add(new BattleGearScoreModel());
modelRegisterAdapt.registerAdapt(GearScoreInfo,GearScoreInfoAdapt);
modelRegisterAdapt.registerEvents(GearScoreInfo,GearScoreInfoEvents);
modelRegisterAdapt.registerAdapt(HullCommon,HullCommonAdapt);
modelRegisterAdapt.registerEvents(HullCommon,HullCommonEvents);
modelRegister.add(new HullCommonModel());
modelRegisterAdapt.registerAdapt(ITankPause,ITankPauseAdapt);
modelRegisterAdapt.registerEvents(ITankPause,ITankPauseEvents);
modelRegister.add(new TankPauseModel());
modelRegisterAdapt.registerAdapt(ITankRankUpEffectModel,ITankRankUpEffectModelAdapt);
modelRegisterAdapt.registerEvents(ITankRankUpEffectModel,ITankRankUpEffectModelEvents);
modelRegister.add(new TankRankUpEffectModel());
modelRegister.add(new TankReloaderModel());
modelRegisterAdapt.registerAdapt(TankResistances,TankResistancesAdapt);
modelRegisterAdapt.registerEvents(TankResistances,TankResistancesEvents);
modelRegister.add(new TankResistancesModel());
modelRegisterAdapt.registerAdapt(ITankSpawner,ITankSpawnerAdapt);
modelRegisterAdapt.registerEvents(ITankSpawner,ITankSpawnerEvents);
modelRegister.add(new TankSpawnerModel());
modelRegisterAdapt.registerAdapt(SpeedCharacteristics,SpeedCharacteristicsAdapt);
modelRegisterAdapt.registerEvents(SpeedCharacteristics,SpeedCharacteristicsEvents);
modelRegister.add(new SpeedCharacteristicsModel());
modelRegister.add(new SuicideModel());
modelRegister.add(new TankTemperatureModel());
modelRegister.add(new TankTurnOverModel());
modelRegisterAdapt.registerAdapt(IUltimateModel,IUltimateModelAdapt);
modelRegisterAdapt.registerEvents(IUltimateModel,IUltimateModelEvents);
modelRegister.add(new UltimateModel());
modelRegister.add(new DictatorUltimateModel());
modelRegister.add(new HornetUltimateModel());
modelRegister.add(new BattleUltimateRadarModel());
modelRegister.add(new HunterUltimateModel());
modelRegister.add(new TankStunModel());
modelRegisterAdapt.registerAdapt(UltimateStunListener,UltimateStunListenerAdapt);
modelRegisterAdapt.registerEvents(UltimateStunListener,UltimateStunListenerEvents);
modelRegister.add(new JuggernautUltimateModel());
modelRegisterAdapt.registerAdapt(ImpactEnable,ImpactEnableAdapt);
modelRegisterAdapt.registerEvents(ImpactEnable,ImpactEnableEvents);
modelRegister.add(new MammothUltimateModel());
modelRegister.add(new TitanUltimateGeneratorModel());
modelRegister.add(new VikingUltimateModel());
modelRegister.add(new WaspUltimateBombModel());
modelRegisterAdapt.registerAdapt(IModeLight,IModeLightAdapt);
modelRegisterAdapt.registerEvents(IModeLight,IModeLightEvents);
modelRegister.add(new TeamLightModel());
modelRegister.add(new TimeCheckerModel());
modelRegisterAdapt.registerAdapt(IWeaponModel,IWeaponModelAdapt);
modelRegisterAdapt.registerEvents(IWeaponModel,IWeaponModelEvents);
modelRegisterAdapt.registerAdapt(VerticalAngles,VerticalAnglesAdapt);
modelRegisterAdapt.registerEvents(VerticalAngles,VerticalAnglesEvents);
modelRegister.add(new WeaponVerticalAnglesModel());
modelRegisterAdapt.registerAdapt(VerticalAutoAiming,VerticalAutoAimingAdapt);
modelRegisterAdapt.registerEvents(VerticalAutoAiming,VerticalAutoAimingEvents);
modelRegister.add(new VerticalAutoAimingModel());
modelRegisterAdapt.registerAdapt(ArtilleryEffectsProvider,ArtilleryEffectsProviderAdapt);
modelRegisterAdapt.registerEvents(ArtilleryEffectsProvider,ArtilleryEffectsProviderEvents);
modelRegister.add(new ArtilleryModel());
modelRegisterAdapt.registerAdapt(ArtillerySkin,ArtillerySkinAdapt);
modelRegisterAdapt.registerEvents(ArtillerySkin,ArtillerySkinEvents);
modelRegisterAdapt.registerAdapt(ArtilleryVariant,ArtilleryVariantAdapt);
modelRegisterAdapt.registerEvents(ArtilleryVariant,ArtilleryVariantEvents);
modelRegisterAdapt.registerAdapt(IArtilleryModel,IArtilleryModelAdapt);
modelRegisterAdapt.registerEvents(IArtilleryModel,IArtilleryModelEvents);
modelRegister.add(new ArtilleryElevatingBarrelModel());
modelRegister.add(new ArtilleryRotatingTurretModel());
modelRegisterAdapt.registerAdapt(ArtillerySfx,ArtillerySfxAdapt);
modelRegisterAdapt.registerEvents(ArtillerySfx,ArtillerySfxEvents);
modelRegister.add(new ArtillerySfxModel());
modelRegisterAdapt.registerAdapt(IWeaponCommonModel,IWeaponCommonModelAdapt);
modelRegisterAdapt.registerEvents(IWeaponCommonModel,IWeaponCommonModelEvents);
modelRegisterAdapt.registerAdapt(WeaponBuffListener,WeaponBuffListenerAdapt);
modelRegisterAdapt.registerEvents(WeaponBuffListener,WeaponBuffListenerEvents);
modelRegister.add(new WeaponCommonModel());
modelRegisterAdapt.registerAdapt(WeaponSound,WeaponSoundAdapt);
modelRegisterAdapt.registerEvents(WeaponSound,WeaponSoundEvents);
modelRegister.add(new FlamethrowerModel());
modelRegister.add(new FlamethrowerSFXModel());
modelRegisterAdapt.registerAdapt(IFlamethrowerSFXModel,IFlamethrowerSFXModelAdapt);
modelRegisterAdapt.registerEvents(IFlamethrowerSFXModel,IFlamethrowerSFXModelEvents);
modelRegister.add(new FreezeModel());
modelRegister.add(new FreezeSFXModel());
modelRegisterAdapt.registerAdapt(IFreezeSFXModel,IFreezeSFXModelAdapt);
modelRegisterAdapt.registerEvents(IFreezeSFXModel,IFreezeSFXModelEvents);
modelRegister.add(new GaussModel());
modelRegisterAdapt.registerAdapt(GaussSkin,GaussSkinAdapt);
modelRegisterAdapt.registerEvents(GaussSkin,GaussSkinEvents);
modelRegisterAdapt.registerAdapt(GaussWeaponCallback,GaussWeaponCallbackAdapt);
modelRegisterAdapt.registerEvents(GaussWeaponCallback,GaussWeaponCallbackEvents);
modelRegister.add(new GaussSFXModel());
modelRegisterAdapt.registerAdapt(IGaussSFXModel,IGaussSFXModelAdapt);
modelRegisterAdapt.registerEvents(IGaussSFXModel,IGaussSFXModelEvents);
modelRegisterAdapt.registerAdapt(HealingGunCallback,HealingGunCallbackAdapt);
modelRegisterAdapt.registerEvents(HealingGunCallback,HealingGunCallbackEvents);
modelRegister.add(new HealingGunModel());
modelRegister.add(new HealingGunSFXModel());
modelRegisterAdapt.registerAdapt(IHealingGunSFXModel,IHealingGunSFXModelAdapt);
modelRegisterAdapt.registerEvents(IHealingGunSFXModel,IHealingGunSFXModelEvents);
modelRegisterAdapt.registerAdapt(LaserPointer,LaserPointerAdapt);
modelRegisterAdapt.registerEvents(LaserPointer,LaserPointerEvents);
modelRegister.add(new LaserPointerModel());
modelRegister.add(new MachineGunModel());
modelRegisterAdapt.registerAdapt(IMachineGunSFXModel,IMachineGunSFXModelAdapt);
modelRegisterAdapt.registerEvents(IMachineGunSFXModel,IMachineGunSFXModelEvents);
modelRegister.add(new MachineGunSFXModel());
modelRegisterAdapt.registerAdapt(IRailgunSFXModel,IRailgunSFXModelAdapt);
modelRegisterAdapt.registerEvents(IRailgunSFXModel,IRailgunSFXModelEvents);
modelRegisterAdapt.registerAdapt(RailgunCallback,RailgunCallbackAdapt);
modelRegisterAdapt.registerEvents(RailgunCallback,RailgunCallbackEvents);
modelRegister.add(new RailgunModel());
modelRegister.add(new RailgunSFXModel());
modelRegisterAdapt.registerAdapt(IRicochetSFXModel,IRicochetSFXModelAdapt);
modelRegisterAdapt.registerEvents(IRicochetSFXModel,IRicochetSFXModelEvents);
modelRegister.add(new RicochetModel());
modelRegister.add(new RicochetSFXModel());
modelRegisterAdapt.registerAdapt(RicochetWeaponCallback,RicochetWeaponCallbackAdapt);
modelRegisterAdapt.registerEvents(RicochetWeaponCallback,RicochetWeaponCallbackEvents);
modelRegister.add(new RocketLauncherModel());
modelRegisterAdapt.registerAdapt(RocketExplosion,RocketExplosionAdapt);
modelRegisterAdapt.registerEvents(RocketExplosion,RocketExplosionEvents);
modelRegister.add(new RocketLauncherRadioExplosionModel());
modelRegisterAdapt.registerAdapt(RocketLauncherSfx,RocketLauncherSfxAdapt);
modelRegisterAdapt.registerEvents(RocketLauncherSfx,RocketLauncherSfxEvents);
modelRegister.add(new RocketLauncherSfxModel());
modelRegisterAdapt.registerAdapt(RocketLauncherWeaponProvider,RocketLauncherWeaponProviderAdapt);
modelRegisterAdapt.registerEvents(RocketLauncherWeaponProvider,RocketLauncherWeaponProviderEvents);
modelRegisterAdapt.registerAdapt(WeaponRotationLimit,WeaponRotationLimitAdapt);
modelRegisterAdapt.registerEvents(WeaponRotationLimit,WeaponRotationLimitEvents);
modelRegister.add(new WeaponRotationLimitModel());
modelRegisterAdapt.registerAdapt(IShaftSFXModel,IShaftSFXModelAdapt);
modelRegisterAdapt.registerEvents(IShaftSFXModel,IShaftSFXModelEvents);
modelRegisterAdapt.registerAdapt(IShaftWeaponCallback,IShaftWeaponCallbackAdapt);
modelRegisterAdapt.registerEvents(IShaftWeaponCallback,IShaftWeaponCallbackEvents);
modelRegister.add(new ShaftModel());
modelRegister.add(new ShaftSFXModel());
modelRegister.add(new DiscreteShotModel());
modelRegisterAdapt.registerAdapt(IShotModel,IShotModelAdapt);
modelRegisterAdapt.registerEvents(IShotModel,IShotModelEvents);
modelRegisterAdapt.registerAdapt(WeaponReloadTimeChangedListener,WeaponReloadTimeChangedListenerAdapt);
modelRegisterAdapt.registerEvents(WeaponReloadTimeChangedListener,WeaponReloadTimeChangedListenerEvents);
modelRegisterAdapt.registerAdapt(IStreamWeaponCallback,IStreamWeaponCallbackAdapt);
modelRegisterAdapt.registerEvents(IStreamWeaponCallback,IStreamWeaponCallbackEvents);
modelRegister.add(new ShotgunModel());
modelRegisterAdapt.registerAdapt(ShotgunAiming,ShotgunAimingAdapt);
modelRegisterAdapt.registerEvents(ShotgunAiming,ShotgunAimingEvents);
modelRegister.add(new ShotgunAimingModel());
modelRegisterAdapt.registerAdapt(ShotgunSFX,ShotgunSFXAdapt);
modelRegisterAdapt.registerEvents(ShotgunSFX,ShotgunSFXEvents);
modelRegister.add(new ShotgunSFXModel());
modelRegisterAdapt.registerAdapt(SmokyCallback,SmokyCallbackAdapt);
modelRegisterAdapt.registerEvents(SmokyCallback,SmokyCallbackEvents);
modelRegister.add(new SmokyModel());
modelRegisterAdapt.registerAdapt(ISmokySFXModel,ISmokySFXModelAdapt);
modelRegisterAdapt.registerEvents(ISmokySFXModel,ISmokySFXModelEvents);
modelRegister.add(new SmokySFXModel());
modelRegisterAdapt.registerAdapt(Splash,SplashAdapt);
modelRegisterAdapt.registerEvents(Splash,SplashEvents);
modelRegister.add(new SplashModel());
modelRegisterAdapt.registerAdapt(IStreamWeaponModel,IStreamWeaponModelAdapt);
modelRegisterAdapt.registerEvents(IStreamWeaponModel,IStreamWeaponModelEvents);
modelRegister.add(new StreamWeaponModel());
modelRegisterAdapt.registerAdapt(StreamWeaponReconfiguredListener,StreamWeaponReconfiguredListenerAdapt);
modelRegisterAdapt.registerEvents(StreamWeaponReconfiguredListener,StreamWeaponReconfiguredListenerEvents);
modelRegisterAdapt.registerAdapt(Terminator,TerminatorAdapt);
modelRegisterAdapt.registerEvents(Terminator,TerminatorEvents);
modelRegister.add(new TerminatorModel());
modelRegisterAdapt.registerAdapt(TerminatorSkin,TerminatorSkinAdapt);
modelRegisterAdapt.registerEvents(TerminatorSkin,TerminatorSkinEvents);
modelRegisterAdapt.registerAdapt(TerminatorSFX,TerminatorSFXAdapt);
modelRegisterAdapt.registerEvents(TerminatorSFX,TerminatorSFXEvents);
modelRegister.add(new TerminatorSFXModel());
modelRegisterAdapt.registerAdapt(IThunderSFXModel,IThunderSFXModelAdapt);
modelRegisterAdapt.registerEvents(IThunderSFXModel,IThunderSFXModelEvents);
modelRegisterAdapt.registerAdapt(ThunderCallback,ThunderCallbackAdapt);
modelRegisterAdapt.registerEvents(ThunderCallback,ThunderCallbackEvents);
modelRegister.add(new ThunderModel());
modelRegister.add(new ThunderSFXModel());
modelRegisterAdapt.registerAdapt(IRotatingTurretModel,IRotatingTurretModelAdapt);
modelRegisterAdapt.registerEvents(IRotatingTurretModel,IRotatingTurretModelEvents);
modelRegister.add(new RotatingTurretModel());
modelRegisterAdapt.registerAdapt(TurretStateSender,TurretStateSenderAdapt);
modelRegisterAdapt.registerEvents(TurretStateSender,TurretStateSenderEvents);
modelRegisterAdapt.registerAdapt(ITwinsSFXModel,ITwinsSFXModelAdapt);
modelRegisterAdapt.registerEvents(ITwinsSFXModel,ITwinsSFXModelEvents);
modelRegister.add(new TwinsModel());
modelRegister.add(new TwinsSFXModel());
modelRegisterAdapt.registerAdapt(TwinsWeaponCallback,TwinsWeaponCallbackAdapt);
modelRegisterAdapt.registerEvents(TwinsWeaponCallback,TwinsWeaponCallbackEvents);
modelRegisterAdapt.registerAdapt(IWeaponWeakeningModel,IWeaponWeakeningModelAdapt);
modelRegisterAdapt.registerEvents(IWeaponWeakeningModel,IWeaponWeakeningModelEvents);
modelRegister.add(new WeaponWeakeningModel());
modelRegisterAdapt.registerAdapt(WeaponChargingCommunication,WeaponChargingCommunicationAdapt);
modelRegisterAdapt.registerEvents(WeaponChargingCommunication,WeaponChargingCommunicationEvents);
modelRegister.add(new WeaponChargingCommunicationModel());
modelRegisterAdapt.registerAdapt(WeaponChargingListener,WeaponChargingListenerAdapt);
modelRegisterAdapt.registerEvents(WeaponChargingListener,WeaponChargingListenerEvents);
modelRegisterAdapt.registerAdapt(DiscreteWeapon,DiscreteWeaponAdapt);
modelRegisterAdapt.registerEvents(DiscreteWeapon,DiscreteWeaponEvents);
modelRegister.add(new DiscreteWeaponCommunicationModel());
modelRegisterAdapt.registerAdapt(DiscreteWeaponListener,DiscreteWeaponListenerAdapt);
modelRegisterAdapt.registerEvents(DiscreteWeaponListener,DiscreteWeaponListenerEvents);
modelRegisterAdapt.registerAdapt(ShellWeaponCommunication,ShellWeaponCommunicationAdapt);
modelRegisterAdapt.registerEvents(ShellWeaponCommunication,ShellWeaponCommunicationEvents);
modelRegister.add(new ShellWeaponCommunicationModel());
modelRegisterAdapt.registerAdapt(ShellWeaponListener,ShellWeaponListenerAdapt);
modelRegisterAdapt.registerEvents(ShellWeaponListener,ShellWeaponListenerEvents);
modelRegisterAdapt.registerAdapt(TargetShellWeaponListener,TargetShellWeaponListenerAdapt);
modelRegisterAdapt.registerEvents(TargetShellWeaponListener,TargetShellWeaponListenerEvents);
modelRegisterAdapt.registerAdapt(StreamWeaponCommunication,StreamWeaponCommunicationAdapt);
modelRegisterAdapt.registerEvents(StreamWeaponCommunication,StreamWeaponCommunicationEvents);
modelRegister.add(new StreamWeaponCommunicationModel());
modelRegisterAdapt.registerAdapt(StreamWeaponListener,StreamWeaponListenerAdapt);
modelRegisterAdapt.registerEvents(StreamWeaponListener,StreamWeaponListenerEvents);
modelRegister.add(new DroneExplosionModel());
modelRegisterAdapt.registerAdapt(DroneSFX,DroneSFXAdapt);
modelRegisterAdapt.registerEvents(DroneSFX,DroneSFXEvents);
modelRegister.add(new DroneSFXModel());
}
public function stop(param1:OSGi) : void {
}
}
}
|
package alternativa.proplib
{
import alternativa.engine3d.objects.Mesh;
import alternativa.proplib.objects.PropMesh;
import alternativa.proplib.objects.PropObject;
import alternativa.proplib.objects.PropSprite;
import alternativa.proplib.types.PropData;
import alternativa.proplib.types.PropGroup;
import alternativa.proplib.types.PropState;
import alternativa.proplib.utils.TextureByteDataMap;
import alternativa.utils.ByteArrayMap;
import alternativa.utils.XMLUtils;
import alternativa.utils.textureutils.TextureByteData;
import flash.utils.ByteArray;
public class PropLibrary
{
public static const LIB_FILE_NAME:String = "library.xml";
public static const IMG_FILE_NAME:String = "images.xml";
private var _rootGroup:PropGroup;
private var files:ByteArrayMap;
private var imageMap:TextureByteDataMap;
public function PropLibrary(files:ByteArrayMap)
{
super();
if(files == null)
{
throw new ArgumentError("Parameter files is null");
}
this.files = files;
var imageMapData:ByteArray = files.getValue(IMG_FILE_NAME);
if(imageMapData != null)
{
this.imageMap = this.parseImageMap(XML(imageMapData.toString()));
}
imageMapData = null;
this._rootGroup = this.parseGroup(XML(files.getValue(LIB_FILE_NAME).toString()));
prepareMeshes(this._rootGroup);
}
private static function prepareMeshes(param1:PropGroup) : void
{
var _loc2_:PropGroup = null;
var _loc3_:PropData = null;
var _loc4_:PropObject = null;
if(param1.groups != null)
{
for each(_loc2_ in param1.groups)
{
prepareMeshes(_loc2_);
}
}
if(param1.props != null)
{
for each(_loc3_ in param1.props)
{
_loc4_ = _loc3_.getDefaultState().getDefaultObject();
if(_loc4_.object is Mesh)
{
Mesh(_loc4_.object).calculateFacesNormals();
Mesh(_loc4_.object).calculateVerticesNormalsByAngle(65 / 180 * Math.PI,0.01);
}
}
}
}
public function get name() : String
{
return this._rootGroup == null ? null : this._rootGroup.name;
}
public function get rootGroup() : PropGroup
{
return this._rootGroup;
}
private function parseImageMap(imagesXml:XML) : TextureByteDataMap
{
var image:XML = null;
var originalTextureFileName:String = null;
var diffuseName:String = null;
var opacityName:String = null;
var imageFiles:TextureByteDataMap = new TextureByteDataMap();
for each(image in imagesXml.image)
{
originalTextureFileName = image.@name;
diffuseName = image.attribute("new-name").toString().toLowerCase();
opacityName = XMLUtils.getAttributeAsString(image,"alpha",null);
if(opacityName != null)
{
opacityName = opacityName.toLowerCase();
}
imageFiles.putValue(originalTextureFileName,new TextureByteData(this.files.getValue(diffuseName),this.files.getValue(opacityName)));
}
return imageFiles;
}
private function parseGroup(groupXML:XML) : PropGroup
{
var propElement:XML = null;
var groupElement:XML = null;
var group:PropGroup = new PropGroup(XMLUtils.copyXMLString(groupXML.@name));
for each(propElement in groupXML.prop)
{
group.addProp(this.parseProp(propElement));
}
for each(groupElement in groupXML.elements("prop-group"))
{
group.addGroup(this.parseGroup(groupElement));
}
return group;
}
private function parseProp(propXml:XML) : PropData
{
var stateXml:XML = null;
var prop:PropData = new PropData(XMLUtils.copyXMLString(propXml.@name));
var states:XMLList = propXml.state;
if(states.length() > 0)
{
for each(stateXml in states)
{
prop.addState(XMLUtils.copyXMLString(stateXml.@name),this.parseState(stateXml));
}
}
else
{
prop.addState(PropState.DEFAULT_NAME,this.parseState(propXml));
}
return prop;
}
private function parseState(stateXml:XML) : PropState
{
var lodXml:XML = null;
var state:PropState = new PropState();
var lods:XMLList = stateXml.lod;
if(lods.length() > 0)
{
for each(lodXml in lods)
{
state.addLOD(this.parsePropObject(lodXml),Number(lodXml.@distance));
}
}
else
{
state.addLOD(this.parsePropObject(stateXml),0);
}
return state;
}
private function parsePropObject(parentXmlElement:XML) : PropObject
{
if(parentXmlElement.mesh.length() > 0)
{
return this.parsePropMesh(parentXmlElement.mesh[0]);
}
if(parentXmlElement.sprite.length() > 0)
{
return this.parsePropSprite(parentXmlElement.sprite[0]);
}
throw new Error("Unknown prop type");
}
private function parsePropMesh(propXml:XML) : PropMesh
{
var textureXml:XML = null;
var modelData:ByteArray = this.files.getValue(propXml.@file.toString().toLowerCase());
var textureFiles:Object = null;
if(propXml.texture.length() > 0)
{
textureFiles = {};
for each(textureXml in propXml.texture)
{
textureFiles[XMLUtils.copyXMLString(textureXml.@name)] = textureXml.attribute("diffuse-map").toString().toLowerCase();
}
}
var objectName:String = XMLUtils.getAttributeAsString(propXml,"object",null);
return new PropMesh(modelData,objectName,textureFiles,this.files,this.imageMap);
}
private function parsePropSprite(propXml:XML) : PropSprite
{
var textureFile:String = propXml.@file.toString().toLowerCase();
var textureData:TextureByteData = this.imageMap == null ? new TextureByteData(this.files.getValue(textureFile)) : this.imageMap.getValue(textureFile);
var originX:Number = XMLUtils.getAttributeAsNumber(propXml,"origin-x",0.5);
var originY:Number = XMLUtils.getAttributeAsNumber(propXml,"origin-y",0.5);
var scale:Number = XMLUtils.getAttributeAsNumber(propXml,"scale",1);
return new PropSprite(textureData,originX,originY,scale);
}
public function freeMemory() : *
{
this.files.destroy();
}
}
}
|
package assets.windowinner.bitmaps {
import flash.display.BitmapData;
[Embed(source="/_assets/assets.windowinner.bitmaps.WindowComboBG.png")]
public class WindowComboBG extends BitmapData {
public function WindowComboBG() {
super(0,0);
}
}
}
|
package _codec.projects.tanks.client.panel.model.payment.modes.paygarden {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.panel.model.payment.modes.paygarden.PayGardenPaymentCC;
public class VectorCodecPayGardenPaymentCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecPayGardenPaymentCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(PayGardenPaymentCC,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.<PayGardenPaymentCC> = new Vector.<PayGardenPaymentCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = PayGardenPaymentCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:PayGardenPaymentCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<PayGardenPaymentCC> = Vector.<PayGardenPaymentCC>(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.friends.list {
import alternativa.tanks.gui.friends.list.dataprovider.FriendsDataProvider;
import alternativa.types.Long;
import fl.controls.List;
import flash.display.Sprite;
import flash.utils.Dictionary;
import projects.tanks.clients.fp10.libraries.tanksservices.model.friends.FriendState;
import projects.tanks.clients.fp10.libraries.tanksservices.service.friend.IFriendInfoService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.user.IUserInfoService;
import utils.ScrollStyleUtils;
public class FriendsList extends Sprite {
[Inject]
public static var friendInfoService:IFriendInfoService;
[Inject]
public static var userInfoService:IUserInfoService;
protected var _dataProvider:FriendsDataProvider;
protected var _list:List;
protected var _width:Number;
protected var _height:Number;
protected var _viewed:Dictionary;
public function FriendsList() {
super();
}
protected function init(param1:Object) : void {
this._viewed = new Dictionary();
this._list = new List();
this._list.rowHeight = 20;
this._list.setStyle("cellRenderer",param1);
this._list.focusEnabled = true;
this._list.selectable = false;
ScrollStyleUtils.setGreenStyle(this._list);
this._dataProvider = new FriendsDataProvider();
this._list.dataProvider = this._dataProvider;
addChild(this._list);
ScrollStyleUtils.setGreenStyle(this._list);
}
protected function isViewed(param1:Object) : Boolean {
return param1 in this._viewed;
}
protected function setAsViewed(param1:Object) : void {
this._viewed[param1] = true;
}
protected function fillFriendsList(param1:FriendState) : void {
var local3:Long = null;
this._dataProvider.removeAll();
this._dataProvider.resetFilter(false);
var local2:Vector.<Long> = friendInfoService.getFriendsIdByState(param1);
for each(local3 in local2) {
this._dataProvider.addUser(local3,false);
}
this._dataProvider.refresh();
}
protected function filterByProperty(param1:String, param2:String) : void {
this._dataProvider.setFilter(param1,param2);
this.resize(this._width,this._height);
}
public function resize(param1:Number, param2:Number) : void {
this._width = param1;
this._height = param2;
var local3:Boolean = this._list.verticalScrollBar.visible;
this._list.width = local3 ? this._width + 6 : this._width;
this._list.height = this._height;
}
}
}
|
package alternativa.tanks.model.challenge.greenpanel.black
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class BlackPack_left_botom_corner extends BitmapAsset
{
public function BlackPack_left_botom_corner()
{
super();
}
}
}
|
package projects.tanks.client.entrance.model.entrance.login {
public interface ILoginModelBase {
function wrongPassword() : void;
}
}
|
package _codec.projects.tanks.client.battleservice.model.statistics {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battleservice.model.statistics.StatisticsModelCC;
public class VectorCodecStatisticsModelCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecStatisticsModelCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(StatisticsModelCC,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.<StatisticsModelCC> = new Vector.<StatisticsModelCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = StatisticsModelCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:StatisticsModelCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<StatisticsModelCC> = Vector.<StatisticsModelCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package controls.statassets
{
import controls.Label;
import flash.display.Sprite;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormatAlign;
public class StatHeaderButton extends Sprite
{
private var _bg:StatLineHeader;
private var _label:Label;
public var numSort:int = 0;
protected var _selected:Boolean = false;
protected var _width:int = 100;
protected var _height:int = 20;
public function StatHeaderButton(right:Boolean = true)
{
this._bg = new StatLineHeader();
this._label = new Label();
super();
this._bg.width = this._width;
this._bg.height = this._height;
addChild(this._bg);
addChild(this._label);
this._label.color = 860685;
this._label.x = 2;
this._label.y = 0;
this._label.mouseEnabled = false;
this._label.autoSize = TextFieldAutoSize.NONE;
this._label.align = !!right ? TextFormatAlign.RIGHT : TextFormatAlign.LEFT;
this._label.height = 19;
}
public function set selected(value:Boolean) : void
{
this._selected = value;
this._bg.selected = this._selected;
}
public function set label(text:String) : void
{
this._label.text = text;
}
override public function set width(w:Number) : void
{
this._width = Math.floor(w);
this._bg.width = w;
this._label.width = this._width - 4;
}
override public function set height(h:Number) : void
{
this._height = Math.floor(h);
this._bg.height = h;
}
}
}
|
package controls.windowinner {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.windowinner.WindowInner_bottomLeftClass.png")]
public class WindowInner_bottomLeftClass extends BitmapAsset {
public function WindowInner_bottomLeftClass() {
super();
}
}
}
|
package alternativa.tanks.model.payment.modes.qiwi {
import projects.tanks.client.panel.model.payment.modes.qiwi.CountryPhoneInfo;
[ModelInterface]
public interface QiwiPayment {
function getPaymentUrlAsync(param1:String) : void;
function getCountryPhoneInfo() : Vector.<CountryPhoneInfo>;
}
}
|
package projects.tanks.client.battlefield.models.tankparts.weapon.smoky {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.OptionalMap;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import alternativa.types.Short;
import flash.utils.ByteArray;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.network.command.SpaceCommand;
import platform.client.fp10.core.type.IGameObject;
import platform.client.fp10.core.type.ISpace;
import projects.tanks.client.battlefield.types.Vector3d;
public class SmokyModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var _fireCommandId:Long = Long.getLong(158866586,759986797);
private var _fireCommand_clientTimeCodec:ICodec;
private var _fireStaticCommandId:Long = Long.getLong(1766359006,1664614075);
private var _fireStaticCommand_clientTimeCodec:ICodec;
private var _fireStaticCommand_hitPointCodec:ICodec;
private var _fireTargetCommandId:Long = Long.getLong(1692205066,-158539970);
private var _fireTargetCommand_clientTimeCodec:ICodec;
private var _fireTargetCommand_targetCodec:ICodec;
private var _fireTargetCommand_targetIncarnationCodec:ICodec;
private var _fireTargetCommand_targetPositionCodec:ICodec;
private var _fireTargetCommand_hitPointCodec:ICodec;
private var _fireTargetCommand_hitPointWorldCodec:ICodec;
private var model:IModel;
public function SmokyModelServer(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._fireCommand_clientTimeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false));
this._fireStaticCommand_clientTimeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false));
this._fireStaticCommand_hitPointCodec = this.protocol.getCodec(new TypeCodecInfo(Vector3d,false));
this._fireTargetCommand_clientTimeCodec = this.protocol.getCodec(new TypeCodecInfo(int,false));
this._fireTargetCommand_targetCodec = this.protocol.getCodec(new TypeCodecInfo(IGameObject,false));
this._fireTargetCommand_targetIncarnationCodec = this.protocol.getCodec(new TypeCodecInfo(Short,false));
this._fireTargetCommand_targetPositionCodec = this.protocol.getCodec(new TypeCodecInfo(Vector3d,false));
this._fireTargetCommand_hitPointCodec = this.protocol.getCodec(new TypeCodecInfo(Vector3d,false));
this._fireTargetCommand_hitPointWorldCodec = this.protocol.getCodec(new TypeCodecInfo(Vector3d,false));
}
public function fireCommand(param1:int) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._fireCommand_clientTimeCodec.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._fireCommandId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
public function fireStaticCommand(param1:int, param2:Vector3d) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._fireStaticCommand_clientTimeCodec.encode(this.protocolBuffer,param1);
this._fireStaticCommand_hitPointCodec.encode(this.protocolBuffer,param2);
ByteArray(this.protocolBuffer.writer).position = 0;
if(Model.object == null) {
throw new Error("Execute method without model context.");
}
var local3:SpaceCommand = new SpaceCommand(Model.object.id,this._fireStaticCommandId,this.protocolBuffer);
var local4:IGameObject = Model.object;
var local5:ISpace = local4.space;
local5.commandSender.sendCommand(local3);
this.protocolBuffer.optionalMap.clear();
}
public function fireTargetCommand(param1:int, param2:IGameObject, param3:int, param4:Vector3d, param5:Vector3d, param6:Vector3d) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._fireTargetCommand_clientTimeCodec.encode(this.protocolBuffer,param1);
this._fireTargetCommand_targetCodec.encode(this.protocolBuffer,param2);
this._fireTargetCommand_targetIncarnationCodec.encode(this.protocolBuffer,param3);
this._fireTargetCommand_targetPositionCodec.encode(this.protocolBuffer,param4);
this._fireTargetCommand_hitPointCodec.encode(this.protocolBuffer,param5);
this._fireTargetCommand_hitPointWorldCodec.encode(this.protocolBuffer,param6);
ByteArray(this.protocolBuffer.writer).position = 0;
if(Model.object == null) {
throw new Error("Execute method without model context.");
}
var local7:SpaceCommand = new SpaceCommand(Model.object.id,this._fireTargetCommandId,this.protocolBuffer);
var local8:IGameObject = Model.object;
var local9:ISpace = local8.space;
local9.commandSender.sendCommand(local7);
this.protocolBuffer.optionalMap.clear();
}
}
}
|
package controls.rangicons
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class RangIconNormal_p26 extends BitmapAsset
{
public function RangIconNormal_p26()
{
super();
}
}
}
|
package forms.buttons
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class MainPanelDonateButton_iconN extends BitmapAsset
{
public function MainPanelDonateButton_iconN()
{
super();
}
}
}
|
package alternativa.tanks.battle.objects.tank {
import alternativa.tanks.utils.EncryptedNumber;
import alternativa.tanks.utils.EncryptedNumberImpl;
public class EncryptedValueSmoother implements ValueSmoother {
private var currentValue:EncryptedNumber;
private var targetValue:EncryptedNumber;
private var smoothingSpeedUp:Number;
private var smoothingSpeedDown:Number;
public function EncryptedValueSmoother(param1:Number, param2:Number, param3:Number, param4:Number) {
super();
this.smoothingSpeedUp = param1;
this.smoothingSpeedDown = param2;
this.targetValue = new EncryptedNumberImpl(param3);
this.currentValue = new EncryptedNumberImpl(param4);
}
public function reset(param1:Number) : void {
this.currentValue.setNumber(param1);
this.targetValue.setNumber(param1);
}
public function update(param1:Number) : Number {
var local2:Number = Number(this.currentValue.getNumber());
var local3:Number = Number(this.targetValue.getNumber());
if(local2 < local3) {
local2 += this.smoothingSpeedUp * param1;
if(local2 > local3) {
local2 = local3;
}
} else if(local2 > local3) {
local2 -= this.smoothingSpeedDown * param1;
if(local2 < local3) {
local2 = local3;
}
}
this.currentValue.setNumber(local2);
return local2;
}
public function setTargetValue(param1:Number) : void {
this.targetValue.setNumber(param1);
}
public function getTargetValue() : Number {
return this.targetValue.getNumber();
}
}
}
|
package projects.tanks.client.panel.model.shop.challenges.battlepass {
public class BattlePassPackageCC {
private var _description:String;
private var _name:String;
public function BattlePassPackageCC(param1:String = null, param2:String = null) {
super();
this._description = param1;
this._name = param2;
}
public function get description() : String {
return this._description;
}
public function set description(param1:String) : void {
this._description = param1;
}
public function get name() : String {
return this._name;
}
public function set name(param1:String) : void {
this._name = param1;
}
public function toString() : String {
var local1:String = "BattlePassPackageCC [";
local1 += "description = " + this.description + " ";
local1 += "name = " + this.name + " ";
return local1 + "]";
}
}
}
|
package projects.tanks.client.panel.model.referals
{
public class RefererIncomeData
{
public var rank:int;
public var callsign:int;
public var income:int;
public function RefererIncomeData()
{
super();
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity {
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.battlefield.models.tankparts.sfx.lighting.entity.LightingEffectEntity;
import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingSFXEntity;
public class CodecLightingSFXEntity implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_effects:ICodec;
public function CodecLightingSFXEntity() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_effects = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(LightingEffectEntity,false),false,1));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:LightingSFXEntity = new LightingSFXEntity();
local2.effects = this.codec_effects.decode(param1) as Vector.<LightingEffectEntity>;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:LightingSFXEntity = LightingSFXEntity(param2);
this.codec_effects.encode(param1,local3.effects);
}
}
}
|
package forms.ranks {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapBigRank05.png")]
public class DefaultRanksBitmaps_bitmapBigRank05 extends BitmapAsset {
public function DefaultRanksBitmaps_bitmapBigRank05() {
super();
}
}
}
|
package com.alternativaplatform.client.models.core.community.chat
{
import scpacker.Base;
public class ChatModelBase extends Base
{
public function ChatModelBase()
{
super();
}
}
}
|
package alternativa.tanks.models.service {
import alternativa.tanks.gui.clanmanagement.ClanManagementPanel;
import alternativa.tanks.gui.notinclan.NotInClanPanel;
import alternativa.tanks.models.panel.clanpanel.IClanPanelModel;
import alternativa.tanks.service.panel.IPanelView;
import alternativa.types.Long;
import flash.events.EventDispatcher;
import platform.client.fp10.core.network.connection.ConnectionCloseStatus;
import platform.client.fp10.core.network.handler.OnConnectionClosedServiceListener;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.clans.clan.clanflag.ClanFlag;
public class ClanServiceImpl extends EventDispatcher implements ClanService, OnConnectionClosedServiceListener {
[Inject]
public static var panelView:IPanelView;
private var _clanMembers:Vector.<Long>;
private var _name:String;
private var _tag:String;
private var _creationDate:String;
private var _creatorId:Long;
private var _clanPanelModel:IClanPanelModel;
private var _clanObject:IGameObject;
private var _isSelf:Boolean;
private var _isBlocked:Boolean;
private var _notInClanPanel:NotInClanPanel;
private var _clanManagementPanel:ClanManagementPanel;
private var _minRankForCreateClan:int;
private var _minRankForRequest:int;
private var _requestsEnabled:Boolean;
private var _maxCharactersDescription:int;
public function ClanServiceImpl() {
super();
}
public function onConnectionClosed(param1:ConnectionCloseStatus) : void {
this.clanMembers = new Vector.<Long>();
}
public function unloadMembers() : void {
this.clanMembers = new Vector.<Long>();
}
public function get clanMembers() : Vector.<Long> {
return this._clanMembers;
}
public function set clanMembers(param1:Vector.<Long>) : void {
this._clanMembers = param1;
}
public function get name() : String {
return this._name;
}
public function set name(param1:String) : void {
this._name = param1;
}
public function get tag() : String {
return this._tag;
}
public function set tag(param1:String) : void {
this._tag = param1;
}
public function updateClanInfo(param1:String, param2:int, param3:ClanFlag, param4:Boolean) : void {
dispatchEvent(new ClanServiceUpdateEvent(ClanServiceUpdateEvent.UPDATE,param1,param2,param3,param4));
}
public function get clanObject() : IGameObject {
return this._clanObject;
}
public function set clanObject(param1:IGameObject) : void {
this._clanObject = param1;
this._clanManagementPanel = new ClanManagementPanel(this._clanObject);
}
public function objectUnloaded() : void {
this._clanObject = null;
this._clanManagementPanel.destroy();
}
public function maxMembers() : void {
this._clanManagementPanel.maxMembers();
}
public function get clanManagementPanel() : ClanManagementPanel {
return this._clanManagementPanel;
}
public function get creatorId() : Long {
return this._creatorId;
}
public function set creatorId(param1:Long) : void {
this._creatorId = param1;
}
public function get creationDate() : String {
return this._creationDate;
}
public function set creationDate(param1:String) : void {
this._creationDate = param1;
}
public function get isSelf() : Boolean {
return this._isSelf;
}
public function set isSelf(param1:Boolean) : void {
this._isSelf = param1;
}
public function get membersCount() : int {
return this.clanMembers.length;
}
public function get isBlocked() : Boolean {
return this._isBlocked;
}
public function set isBlocked(param1:Boolean) : void {
this._isBlocked = param1;
}
public function clanBlock(param1:String) : void {
this._isBlocked = true;
dispatchEvent(new ClanServiceEvent(ClanServiceEvent.CLAN_BLOCK,param1));
}
public function set minRankForCreateClan(param1:int) : void {
this._minRankForCreateClan = param1;
}
public function get minRankForCreateClan() : int {
return this._minRankForCreateClan;
}
public function get notInClanPanel() : NotInClanPanel {
return this._notInClanPanel;
}
public function set notInClanPanel(param1:NotInClanPanel) : void {
this._notInClanPanel = param1;
}
public function get clanPanelModel() : IClanPanelModel {
return this._clanPanelModel;
}
public function set clanPanelModel(param1:IClanPanelModel) : void {
this._clanPanelModel = param1;
}
public function get minRankForRequest() : int {
return this._minRankForRequest;
}
public function set minRankForRequest(param1:int) : void {
this._minRankForRequest = param1;
}
public function get requestsEnabled() : Boolean {
return this._requestsEnabled;
}
public function set requestsEnabled(param1:Boolean) : void {
this._requestsEnabled = param1;
}
public function get maxCharactersDescription() : int {
return this._maxCharactersDescription;
}
public function set maxCharactersDescription(param1:int) : void {
this._maxCharactersDescription = param1;
}
}
}
|
package alternativa.tanks.loader {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.loader.ModalLoader_WindowRGB.png")]
public class ModalLoader_WindowRGB extends BitmapAsset {
public function ModalLoader_WindowRGB() {
super();
}
}
}
|
package controls.dropdownlist {
import flash.display.BitmapData;
public class AccountsBackground extends DPLBackground {
private static const bitmapBG:Class = AccountsBackground_bitmapBG;
public function AccountsBackground() {
super(100,275);
}
override protected function get bgBMP() : BitmapData {
if(!_bgBMP) {
_bgBMP = new bitmapBG().bitmapData;
}
return _bgBMP;
}
}
}
|
package alternativa.tanks.model.news
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class NewsIcons_shaft_targeting extends BitmapAsset
{
public function NewsIcons_shaft_targeting()
{
super();
}
}
}
|
package controls.base {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.base.TankInput_centerClass.png")]
public class TankInput_centerClass extends BitmapAsset {
public function TankInput_centerClass() {
super();
}
}
}
|
package alternativa.tanks.models.clan.block {
import alternativa.tanks.gui.clanmanagement.ClanActionsManager;
import alternativa.tanks.models.service.ClanService;
import projects.tanks.client.clans.clan.block.ClanBlockModelBase;
import projects.tanks.client.clans.clan.block.IClanBlockModelBase;
[ModelInfo]
public class ClanBlockModel extends ClanBlockModelBase implements IClanBlockModelBase {
[Inject]
public static var clanService:ClanService;
public function ClanBlockModel() {
super();
}
public function clanBaned(param1:String) : void {
clanService.clanBlock(param1);
ClanActionsManager.updateActions();
}
}
}
|
package projects.tanks.client.panel.model.payment.loader {
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 PaymentLoaderModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:PaymentLoaderModelServer;
private var client:IPaymentLoaderModelBase = IPaymentLoaderModelBase(this);
private var modelId:Long = Long.getLong(235042838,289855486);
public function PaymentLoaderModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new PaymentLoaderModelServer(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 {
import adobe.utils.*;
import fl.controls.Slider;
import flash.accessibility.*;
import flash.desktop.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.media.*;
import flash.net.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.*;
import flash.text.engine.*;
import flash.text.ime.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
[Embed(source="/_assets/assets.swf", symbol="symbol1209")]
public dynamic class tankGUI extends MovieClip {
public var __id4_:Slider;
public function tankGUI() {
super();
this.__setProp___id4__tankGUI_Controls_0();
}
internal function __setProp___id4__tankGUI_Controls_0() : * {
try {
this.__id4_["componentInspectorSetting"] = true;
}
catch(e:Error) {
}
this.__id4_.direction = "vertical";
this.__id4_.enabled = true;
this.__id4_.liveDragging = true;
this.__id4_.maximum = 10;
this.__id4_.minimum = 0;
this.__id4_.snapInterval = 0;
this.__id4_.tickInterval = 1;
this.__id4_.value = 0;
this.__id4_.visible = true;
try {
this.__id4_["componentInspectorSetting"] = false;
}
catch(e:Error) {
}
}
}
}
|
package controls.buttons.skins {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.buttons.skins.GoldBigButtonSkin_middleOverClass.png")]
public class GoldBigButtonSkin_middleOverClass extends BitmapAsset {
public function GoldBigButtonSkin_middleOverClass() {
super();
}
}
}
|
package alternativa.init
{
import alternativa.osgi.bundle.IBundleActivator;
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.locale.en.Image;
import alternativa.tanks.locale.en.Text;
import scpacker.gui.GTanksLoaderImages;
import scpacker.gui.en.GTanksIEN;
public class TanksLocaleEnActivator implements IBundleActivator
{
public static var osgi:OSGi;
public function TanksLocaleEnActivator()
{
super();
}
public function start(osgi:OSGi) : void
{
TanksLocaleEnActivator.osgi = osgi;
Text.init(osgi.getService(ILocaleService) as ILocaleService);
Image.init(osgi.getService(ILocaleService) as ILocaleService);
Main.osgi.registerService(GTanksLoaderImages,new GTanksIEN());
}
public function stop(osgi:OSGi) : void
{
TanksLocaleEnActivator.osgi = null;
}
}
}
|
package alternativa.tanks.gui {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.ItemInfoPanelBitmaps_cooldownDoublePowerClass.png")]
public class ItemInfoPanelBitmaps_cooldownDoublePowerClass extends BitmapAsset {
public function ItemInfoPanelBitmaps_cooldownDoublePowerClass() {
super();
}
}
}
|
package alternativa.engine3d.objects {
import alternativa.engine3d.alternativa3d;
import alternativa.engine3d.core.Camera3D;
import alternativa.engine3d.core.Canvas;
import alternativa.engine3d.core.Debug;
import alternativa.engine3d.core.Face;
import alternativa.engine3d.core.Object3D;
import alternativa.engine3d.core.RayIntersectionData;
import alternativa.engine3d.core.Vertex;
import alternativa.engine3d.core.Wrapper;
import alternativa.engine3d.materials.Material;
import flash.geom.Vector3D;
import flash.utils.Dictionary;
use namespace alternativa3d;
public class Skin extends Mesh {
alternativa3d var jointList:Joint;
alternativa3d var localList:Face;
public function Skin() {
super();
shadowMapAlphaThreshold = 100;
}
public function addJoint(param1:Joint) : Joint {
var local2:Joint = null;
if(param1 == null) {
throw new TypeError("Parameter joint must be non-null.");
}
if(param1.alternativa3d::_parentJoint != null) {
param1.alternativa3d::_parentJoint.removeChild(param1);
} else if(param1.alternativa3d::_skin != null) {
param1.alternativa3d::_skin.removeJoint(param1);
}
param1.alternativa3d::_parentJoint = null;
param1.alternativa3d::setSkin(this);
if(this.alternativa3d::jointList == null) {
this.alternativa3d::jointList = param1;
} else {
local2 = this.alternativa3d::jointList;
while(local2 != null) {
if(local2.alternativa3d::nextJoint == null) {
local2.alternativa3d::nextJoint = param1;
break;
}
local2 = local2.alternativa3d::nextJoint;
}
}
return param1;
}
public function removeJoint(param1:Joint) : Joint {
var local2:Joint = null;
var local3:Joint = null;
if(param1 == null) {
throw new TypeError("Parameter joint must be non-null.");
}
if(param1.alternativa3d::_parentJoint != null || param1.alternativa3d::_skin != this) {
throw new ArgumentError("The supplied Joint must be contained in the caller.");
}
local3 = this.alternativa3d::jointList;
while(local3 != null) {
if(local3 == param1) {
if(local2 != null) {
local2.alternativa3d::nextJoint = local3.alternativa3d::nextJoint;
} else {
this.alternativa3d::jointList = local3.alternativa3d::nextJoint;
}
local3.alternativa3d::nextJoint = null;
local3.alternativa3d::_parentJoint = null;
local3.alternativa3d::setSkin(null);
return param1;
}
local2 = local3;
local3 = local3.alternativa3d::nextJoint;
}
return null;
}
public function getJointAt(param1:int) : Joint {
if(param1 < 0) {
throw new RangeError("The supplied index is out of bounds.");
}
var local2:Joint = this.alternativa3d::jointList;
var local3:int = 0;
while(local3 < param1) {
if(local2 == null) {
throw new RangeError("The supplied index is out of bounds.");
}
local2 = local2.alternativa3d::nextJoint;
local3++;
}
if(local2 == null) {
throw new RangeError("The supplied index is out of bounds.");
}
return local2;
}
public function get numJoints() : int {
var local1:int = 0;
var local2:Joint = this.alternativa3d::jointList;
while(local2 != null) {
local1++;
local2 = local2.alternativa3d::nextJoint;
}
return local1;
}
public function getJointByName(param1:String) : Joint {
var local4:Joint = null;
var local6:int = 0;
var local7:Vector.<Joint> = null;
var local8:Joint = null;
if(param1 == null) {
throw new TypeError("Parameter name must be non-null.");
}
var local2:Vector.<Joint> = new Vector.<Joint>();
var local3:Vector.<Joint> = new Vector.<Joint>();
local4 = this.alternativa3d::jointList;
while(local4 != null) {
if(local4.name == param1) {
return local4;
}
local2.push(local4);
local4 = local4.alternativa3d::nextJoint;
}
var local5:int = this.numJoints;
while(local5 > 0) {
local6 = 0;
while(local6 < local5) {
local4 = local2[local6];
local8 = local4.alternativa3d::childrenList;
while(local8 != null) {
if(local8.name == param1) {
return local8;
}
if(local8.alternativa3d::childrenList != null) {
local3.push(local8);
}
local8 = local8.alternativa3d::nextJoint;
}
local6++;
}
local7 = local2;
local2 = local3;
local3 = local7;
local3.length = 0;
local5 = int(local2.length);
}
return null;
}
override public function addVertex(param1:Number, param2:Number, param3:Number, param4:Number = 0, param5:Number = 0, param6:Object = null) : Vertex {
this.alternativa3d::clearLocal();
return super.addVertex(param1,param2,param3,param4,param5,param6);
}
override public function removeVertex(param1:Vertex) : Vertex {
this.alternativa3d::clearLocal();
var local2:Vertex = super.removeVertex(param1);
var local3:Joint = this.alternativa3d::jointList;
while(local3 != null) {
this.unbindVertex(local3,local2);
local3 = local3.alternativa3d::nextJoint;
}
return local2;
}
override public function removeVertexById(param1:Object) : Vertex {
this.alternativa3d::clearLocal();
var local2:Vertex = super.removeVertexById(param1);
var local3:Joint = this.alternativa3d::jointList;
while(local3 != null) {
this.unbindVertex(local3,local2);
local3 = local3.alternativa3d::nextJoint;
}
return local2;
}
private function unbindVertex(param1:Joint, param2:Vertex) : void {
param1.unbindVertex(param2);
var local3:Joint = param1.alternativa3d::childrenList;
while(local3 != null) {
this.unbindVertex(local3,param2);
local3 = local3.alternativa3d::nextJoint;
}
}
override public function addFace(param1:Vector.<Vertex>, param2:Material = null, param3:Object = null) : Face {
this.alternativa3d::clearLocal();
return super.addFace(param1,param2,param3);
}
override public function addFaceByIds(param1:Array, param2:Material = null, param3:Object = null) : Face {
this.alternativa3d::clearLocal();
return super.addFaceByIds(param1,param2,param3);
}
override public function addTriFace(param1:Vertex, param2:Vertex, param3:Vertex, param4:Material = null, param5:Object = null) : Face {
this.alternativa3d::clearLocal();
return super.addTriFace(param1,param2,param3,param4,param5);
}
override public function addQuadFace(param1:Vertex, param2:Vertex, param3:Vertex, param4:Vertex, param5:Material = null, param6:Object = null) : Face {
this.alternativa3d::clearLocal();
return super.addQuadFace(param1,param2,param3,param4,param5,param6);
}
override public function removeFace(param1:Face) : Face {
this.alternativa3d::clearLocal();
return super.removeFace(param1);
}
override public function removeFaceById(param1:Object) : Face {
this.alternativa3d::clearLocal();
return super.removeFaceById(param1);
}
override public function addVerticesAndFaces(param1:Vector.<Number>, param2:Vector.<Number>, param3:Vector.<int>, param4:Boolean = false, param5:Material = null) : void {
this.alternativa3d::clearLocal();
super.addVerticesAndFaces(param1,param2,param3,param4,param5);
}
override public function weldVertices(param1:Number = 0, param2:Number = 0) : void {
var local3:Vertex = null;
var local5:* = undefined;
var local6:Joint = null;
this.alternativa3d::clearLocal();
var local4:Dictionary = new Dictionary();
local3 = alternativa3d::vertexList;
while(local3 != null) {
local4[local3] = true;
local3 = local3.alternativa3d::next;
}
super.weldVertices(param1,param2);
local3 = alternativa3d::vertexList;
while(local3 != null) {
delete local4[local3];
local3 = local3.alternativa3d::next;
}
for(local5 in local4) {
local3 = local5;
local6 = this.alternativa3d::jointList;
while(local6 != null) {
this.unbindVertex(local6,local3);
local6 = local6.alternativa3d::nextJoint;
}
}
}
override public function weldFaces(param1:Number = 0, param2:Number = 0, param3:Number = 0, param4:Boolean = false) : void {
this.alternativa3d::clearLocal();
super.weldFaces(param1,param2,param3,param4);
}
override public function optimizeForDynamicBSP(param1:int = 1) : void {
this.alternativa3d::clearLocal();
super.optimizeForDynamicBSP(param1);
}
public function calculateBindingMatrices() : void {
alternativa3d::ma = 1;
alternativa3d::mb = 0;
alternativa3d::mc = 0;
alternativa3d::md = 0;
alternativa3d::me = 0;
alternativa3d::mf = 1;
alternativa3d::mg = 0;
alternativa3d::mh = 0;
alternativa3d::mi = 0;
alternativa3d::mj = 0;
alternativa3d::mk = 1;
alternativa3d::ml = 0;
var local1:Joint = this.alternativa3d::jointList;
while(local1 != null) {
local1.alternativa3d::calculateBindingMatrix(this);
local1 = local1.alternativa3d::nextJoint;
}
}
public function normalizeWeights() : void {
var local2:Joint = null;
var local1:Vertex = alternativa3d::vertexList;
while(local1 != null) {
local1.alternativa3d::offset = 0;
local1 = local1.alternativa3d::next;
}
local2 = this.alternativa3d::jointList;
while(local2 != null) {
local2.alternativa3d::addWeights();
local2 = local2.alternativa3d::nextJoint;
}
local2 = this.alternativa3d::jointList;
while(local2 != null) {
local2.alternativa3d::normalizeWeights();
local2 = local2.alternativa3d::nextJoint;
}
}
override public function intersectRay(param1:Vector3D, param2:Vector3D, param3:Dictionary = null, param4:Camera3D = null) : RayIntersectionData {
var local7:Face = null;
var local8:Face = null;
if(param3 != null && Boolean(param3[this])) {
return null;
}
if(!alternativa3d::boundIntersectRay(param1,param2,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ)) {
return null;
}
this.alternativa3d::updateLocal();
var local5:Face = alternativa3d::faceList;
alternativa3d::faceList = this.alternativa3d::localList;
calculateFacesNormals(true);
var local6:RayIntersectionData = super.intersectRay(param1,param2,param3,param4);
alternativa3d::faceList = local5;
if(local6 != null) {
local7 = alternativa3d::faceList;
local8 = this.alternativa3d::localList;
while(local7 != null) {
if(local8 == local6.face) {
local6.face = local7;
break;
}
local7 = local7.alternativa3d::next;
local8 = local8.alternativa3d::next;
}
}
return local6;
}
override alternativa3d function checkIntersection(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Dictionary) : Boolean {
this.alternativa3d::updateLocal();
var local9:Face = alternativa3d::faceList;
alternativa3d::faceList = this.alternativa3d::localList;
calculateFacesNormals(true);
var local10:Boolean = super.alternativa3d::checkIntersection(param1,param2,param3,param4,param5,param6,param7,param8);
alternativa3d::faceList = local9;
return local10;
}
override alternativa3d function collectPlanes(param1:Vector3D, param2:Vector3D, param3:Vector3D, param4:Vector3D, param5:Vector3D, param6:Vector.<Face>, param7:Dictionary = null) : void {
if(param7 != null && Boolean(param7[this])) {
return;
}
var local8:Vector3D = alternativa3d::calculateSphere(param1,param2,param3,param4,param5);
if(!alternativa3d::boundIntersectSphere(local8,boundMinX,boundMinY,boundMinZ,boundMaxX,boundMaxY,boundMaxZ)) {
return;
}
var local9:Face = alternativa3d::faceList;
alternativa3d::faceList = this.alternativa3d::localList;
calculateFacesNormals(true);
super.alternativa3d::collectPlanes(param1,param2,param3,param4,param5,param6,param7);
alternativa3d::faceList = local9;
}
public function attach(param1:Skin) : void {
var local3:Vertex = null;
var local4:Face = null;
var local5:Joint = null;
this.alternativa3d::clearLocal();
param1.alternativa3d::clearLocal();
if(alternativa3d::vertexList == null) {
alternativa3d::vertexList = param1.alternativa3d::vertexList;
} else {
local3 = alternativa3d::vertexList;
while(local3.alternativa3d::next != null) {
local3 = local3.alternativa3d::next;
}
local3.alternativa3d::next = param1.alternativa3d::vertexList;
}
param1.alternativa3d::vertexList = null;
if(alternativa3d::faceList == null) {
alternativa3d::faceList = param1.alternativa3d::faceList;
} else {
local4 = alternativa3d::faceList;
while(local4.alternativa3d::next != null) {
local4 = local4.alternativa3d::next;
}
local4.alternativa3d::next = param1.alternativa3d::faceList;
}
param1.alternativa3d::faceList = null;
var local2:Joint = param1.alternativa3d::jointList;
while(local2 != null) {
if(local2.name == null || local2.name == "") {
this.addJointFast(local2);
} else {
local5 = this.getJointByName(local2.name);
if(local5 != null) {
this.mergeJoints(local2,local5);
} else {
this.addJointFast(local2);
}
}
local2 = local2.alternativa3d::nextJoint;
}
param1.alternativa3d::jointList = null;
}
private function addJointFast(param1:Joint) : Joint {
var local2:Joint = null;
param1.alternativa3d::_parentJoint = null;
param1.alternativa3d::setSkinFast(this);
if(this.alternativa3d::jointList == null) {
this.alternativa3d::jointList = param1;
} else {
local2 = this.alternativa3d::jointList;
while(local2 != null) {
if(local2.alternativa3d::nextJoint == null) {
local2.alternativa3d::nextJoint = param1;
break;
}
local2 = local2.alternativa3d::nextJoint;
}
}
return param1;
}
private function mergeJoints(param1:Joint, param2:Joint) : void {
var local5:Joint = null;
var local3:VertexBinding = param1.alternativa3d::vertexBindingList;
if(local3 != null) {
while(local3.alternativa3d::next != null) {
local3 = local3.alternativa3d::next;
}
local3.alternativa3d::next = param2.alternativa3d::vertexBindingList;
param2.alternativa3d::vertexBindingList = param1.alternativa3d::vertexBindingList;
}
param1.alternativa3d::vertexBindingList = null;
var local4:Joint = param1.alternativa3d::childrenList;
while(local4 != null) {
if(local4.name == null || local4.name.length == 0) {
param2.alternativa3d::addChildFast(local4);
} else {
local5 = this.findJointChildByName(local4.name,param2);
if(local5 != null) {
this.mergeJoints(local4,local5);
} else {
param2.alternativa3d::addChildFast(local4);
}
}
local4 = local4.alternativa3d::nextJoint;
}
param1.alternativa3d::childrenList = null;
}
private function findJointChildByName(param1:String, param2:Joint) : Joint {
var local3:Joint = param2.alternativa3d::childrenList;
while(local3 != null) {
if(local3.name == param1) {
return local3;
}
local3 = local3.alternativa3d::nextJoint;
}
return null;
}
override public function clone() : Object3D {
this.alternativa3d::clearLocal();
var local1:Skin = new Skin();
local1.clonePropertiesFrom(this);
return local1;
}
override protected function clonePropertiesFrom(param1:Object3D) : void {
var local3:Vertex = null;
var local4:Vertex = null;
var local6:Joint = null;
var local7:Joint = null;
super.clonePropertiesFrom(param1);
var local2:Skin = param1 as Skin;
local3 = local2.alternativa3d::vertexList;
local4 = alternativa3d::vertexList;
while(local3 != null) {
local3.alternativa3d::value = local4;
local3 = local3.alternativa3d::next;
local4 = local4.alternativa3d::next;
}
var local5:Joint = local2.alternativa3d::jointList;
while(local5 != null) {
local7 = this.cloneJoint(local5);
if(this.alternativa3d::jointList != null) {
local6.alternativa3d::nextJoint = local7;
} else {
this.alternativa3d::jointList = local7;
}
local6 = local7;
local7.alternativa3d::_parentJoint = null;
local7.alternativa3d::setSkinFast(this);
local5 = local5.alternativa3d::nextJoint;
}
local3 = local2.alternativa3d::vertexList;
while(local3 != null) {
local3.alternativa3d::value = null;
local3 = local3.alternativa3d::next;
}
}
alternativa3d function updateLocal() : void {
var local1:Vertex = null;
var local2:Face = null;
var local3:Face = null;
var local6:Face = null;
var local7:Wrapper = null;
var local8:Wrapper = null;
var local9:Wrapper = null;
var local10:Material = null;
var local11:Vertex = null;
if(this.alternativa3d::localList == null) {
local1 = alternativa3d::vertexList;
while(local1 != null) {
local1.alternativa3d::value = new Vertex();
local1 = local1.alternativa3d::next;
}
local2 = alternativa3d::faceList;
while(local2 != null) {
local3 = new Face();
local7 = null;
local8 = local2.alternativa3d::wrapper;
while(local8 != null) {
local9 = new Wrapper();
local9.alternativa3d::vertex = local8.alternativa3d::vertex.alternativa3d::value;
if(local7 != null) {
local7.alternativa3d::next = local9;
} else {
local3.alternativa3d::wrapper = local9;
}
local7 = local9;
local8 = local8.alternativa3d::next;
}
if(local6 != null) {
local6.alternativa3d::next = local3;
} else {
this.alternativa3d::localList = local3;
}
local6 = local3;
local2 = local2.alternativa3d::next;
}
}
var local4:Boolean = false;
local2 = alternativa3d::faceList;
local3 = this.alternativa3d::localList;
while(local2 != null) {
local10 = local2.material;
local4 ||= local10 != null && Boolean(local10.alternativa3d::useVerticesNormals);
local3.material = local2.material;
local2 = local2.alternativa3d::next;
local3 = local3.alternativa3d::next;
}
local1 = alternativa3d::vertexList;
while(local1 != null) {
local11 = local1.alternativa3d::value;
local11.x = 0;
local11.y = 0;
local11.z = 0;
local11.u = local1.u;
local11.v = local1.v;
local11.normalX = 0;
local11.normalY = 0;
local11.normalZ = 0;
local11.alternativa3d::drawId = 0;
local1 = local1.alternativa3d::next;
}
var local5:Joint = this.alternativa3d::jointList;
while(local5 != null) {
local5.alternativa3d::composeMatrix();
local5.alternativa3d::calculateVertices(local4,false);
local5 = local5.alternativa3d::nextJoint;
}
}
alternativa3d function clearLocal() : void {
var local1:Vertex = alternativa3d::vertexList;
while(local1 != null) {
local1.alternativa3d::value = null;
local1 = local1.alternativa3d::next;
}
this.alternativa3d::localList = null;
}
override alternativa3d function prepareFaces(param1:Camera3D) : Face {
this.alternativa3d::updateLocal();
var local2:Face = alternativa3d::faceList;
alternativa3d::faceList = this.alternativa3d::localList;
calculateFacesNormals(false);
var local3:Face = super.alternativa3d::prepareFaces(param1);
alternativa3d::faceList = local2;
return local3;
}
override alternativa3d function drawDebug(param1:Camera3D, param2:Canvas, param3:Face, param4:int) : void {
var local5:Joint = null;
if(Boolean(param4 & Debug.BONES)) {
local5 = this.alternativa3d::jointList;
while(local5 != null) {
local5.alternativa3d::drawDebug(param1,param2);
local5 = local5.alternativa3d::nextJoint;
}
}
super.alternativa3d::drawDebug(param1,param2,param3,param4);
}
override alternativa3d function updateBounds(param1:Object3D, param2:Object3D = null) : void {
this.alternativa3d::updateLocal();
var local3:Face = alternativa3d::faceList;
alternativa3d::faceList = this.alternativa3d::localList;
super.alternativa3d::updateBounds(param1,param2);
alternativa3d::faceList = local3;
}
override alternativa3d function split(param1:Vector3D, param2:Vector3D, param3:Vector3D, param4:Number) : Vector.<Object3D> {
return new Vector.<Object3D>(2);
}
private function cloneJoint(param1:Joint) : Joint {
var local3:VertexBinding = null;
var local6:Joint = null;
var local7:VertexBinding = null;
var local8:Joint = null;
var local2:Joint = new Joint();
local2.name = param1.name;
local2.x = param1.x;
local2.y = param1.y;
local2.z = param1.z;
local2.rotationX = param1.rotationX;
local2.rotationY = param1.rotationY;
local2.rotationZ = param1.rotationZ;
local2.scaleX = param1.scaleX;
local2.scaleY = param1.scaleY;
local2.scaleZ = param1.scaleZ;
local2.alternativa3d::bma = param1.alternativa3d::bma;
local2.alternativa3d::bmb = param1.alternativa3d::bmb;
local2.alternativa3d::bmc = param1.alternativa3d::bmc;
local2.alternativa3d::bmd = param1.alternativa3d::bmd;
local2.alternativa3d::bme = param1.alternativa3d::bme;
local2.alternativa3d::bmf = param1.alternativa3d::bmf;
local2.alternativa3d::bmg = param1.alternativa3d::bmg;
local2.alternativa3d::bmh = param1.alternativa3d::bmh;
local2.alternativa3d::bmi = param1.alternativa3d::bmi;
local2.alternativa3d::bmj = param1.alternativa3d::bmj;
local2.alternativa3d::bmk = param1.alternativa3d::bmk;
local2.alternativa3d::bml = param1.alternativa3d::bml;
if(param1 is Bone) {
Bone(local2).length = Bone(param1).length;
Bone(local2).alternativa3d::distance = Bone(param1).alternativa3d::distance;
Bone(local2).alternativa3d::lx = Bone(param1).alternativa3d::lx;
Bone(local2).alternativa3d::ly = Bone(param1).alternativa3d::ly;
Bone(local2).alternativa3d::lz = Bone(param1).alternativa3d::lz;
Bone(local2).alternativa3d::ldot = Bone(param1).alternativa3d::ldot;
}
var local4:VertexBinding = param1.alternativa3d::vertexBindingList;
while(local4 != null) {
local7 = new VertexBinding();
local7.alternativa3d::vertex = local4.alternativa3d::vertex.alternativa3d::value;
local7.alternativa3d::weight = local4.alternativa3d::weight;
if(local3 != null) {
local3.alternativa3d::next = local7;
} else {
local2.alternativa3d::vertexBindingList = local7;
}
local3 = local7;
local4 = local4.alternativa3d::next;
}
var local5:Joint = param1.alternativa3d::childrenList;
while(local5 != null) {
local8 = this.cloneJoint(local5);
if(local2.alternativa3d::childrenList != null) {
local6.alternativa3d::nextJoint = local8;
} else {
local2.alternativa3d::childrenList = local8;
}
local6 = local8;
local8.alternativa3d::_parentJoint = local2;
local5 = local5.alternativa3d::nextJoint;
}
return local2;
}
}
}
|
package alternativa.tanks.gui.friends.list.renderer.background {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.friends.list.renderer.background.FriendCellSelected_centerIconClass.png")]
public class FriendCellSelected_centerIconClass extends BitmapAsset {
public function FriendCellSelected_centerIconClass() {
super();
}
}
}
|
package alternativa.tanks.materials {
import alternativa.gfx.agal.VertexShader;
public class TrackMaterialVertexShader extends VertexShader {
public function TrackMaterialVertexShader(param1:Boolean, param2:Boolean, param3:Boolean, param4:Boolean, param5:Boolean, param6:Boolean, param7:Boolean, param8:Boolean, param9:Boolean, param10:Boolean) {
super();
mov(vt0,vc[4]);
if(param1) {
dp4(vt0.x,va0,vc[0]);
dp4(vt0.y,va0,vc[1]);
dp4(vt0.z,va0,vc[2]);
mov(vt1,vc[4]);
dp3(vt1.x,va1,vc[14]);
dp3(vt1.y,va1,vc[15]);
add(vt1.x,vt1.x,vc[14].z);
add(vt1.y,vt1.y,vc[15].z);
mov(v0,vt1);
} else {
mov(vt0.xyz,cc.rel(va0.x,0));
mov(vt1,cc.rel(va0.x,1));
mul(v0,vt1,vc[4]);
}
if(param2 || param3) {
mov(v1,vt0);
}
if(param3) {
if(param1) {
if(param4) {
mul(vt1,va2,vc[11]);
nrm(vt1.xyz,vt1.xyz);
div(vt1,vt1,vc[11]);
} else {
mov(vt1,vc[4]);
dp3(vt1.x,va2,vc[0]);
dp3(vt1.y,va2,vc[1]);
dp3(vt1.z,va2,vc[2]);
}
} else {
mov(vt2,vc[4]);
mov(vt2.x,cc.rel(va0.x,0).w);
mov(vt2.y,cc.rel(va0.x,1).z);
mov(vt2.z,cc.rel(va0.x,1).w);
if(param4) {
mul(vt1,vt2,vc[11]);
nrm(vt1.xyz,vt1.xyz);
div(vt1,vt1,vc[11]);
} else {
mov(vt1,vc[4]);
dp3(vt1.x,vt2,vc[0]);
dp3(vt1.y,vt2,vc[1]);
dp3(vt1.z,vt2,vc[2]);
}
}
dp3(vt1.w,vt1,vc[10]);
if(param4) {
sub(vt1.w,vc[4],vt1);
mul(v1.w,vt1,vc[11]);
} else {
sub(v1.w,vc[4],vt1);
}
} else if(param5 || param6 || param9 || param10) {
mov(vt1,vc[4]);
}
if(param5) {
dp4(v2.x,vt0,vc[6]);
dp4(v2.y,vt0,vc[7]);
dp4(v2.z,vt0,vc[8]);
sub(vt1.w,vt0.z,vc[9].x);
div(vt1.w,vt1,vc[9].y);
sub(v2.w,vc[4],vt1);
}
if(param6) {
sub(vt1.w,vt0.z,vc[5].z);
div(v0.w,vt1,vc[5]);
}
if(param8) {
mov(vt1,vt0);
mul(vt1.x,vt1,vc[11].w);
mul(vt1.y,vt1,vc[12].w);
sub(vt1,vt1,vc[11]);
dp3(v0.z,vt1,vc[12]);
}
if(param7) {
mul(vt0.xyz,vt0,vc[11]);
}
if(param9) {
div(vt1.z,vc[3].w,vt0);
add(vt1.z,vt1,vc[3]);
mul(vt1.z,vt1,vc[3].x);
sub(vt1.z,vt1,vc[3].y);
div(vt1.z,vt1,vc[3].x);
sub(vt1.z,vt1,vc[3]);
div(vt1.z,vc[3].w,vt1);
mov(vt2,vc[4]);
nrm(vt2.xyz,vt0.xyz);
sub(vt1.z,vt0,vt1);
div(vt1.z,vt1,vt2);
mul(vt2,vt2,vt1.z);
sub(vt0,vt0,vt2);
}
if(param10) {
mul(vt0.xy,vt0,vc[13]);
mul(vt1.xy,vc[13].zw,vt0.z);
add(vt0.xy,vt0,vt1);
}
mov(op.xw,vt0.xz);
neg(op.y,vt0);
mul(vt0.z,vt0,vc[3]);
add(op.z,vt0,vc[3].w);
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.weapon.freeze {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
import platform.client.fp10.core.type.IGameObject;
public class FreezeModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:FreezeModelServer;
private var client:IFreezeModelBase = IFreezeModelBase(this);
private var modelId:Long = Long.getLong(2120141642,699496177);
private var _startFireId:Long = Long.getLong(1609604139,228512172);
private var _startFire_shooterCodec:ICodec;
private var _stopFireId:Long = Long.getLong(1853038031,-1082989884);
private var _stopFire_shooterCodec:ICodec;
public function FreezeModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new FreezeModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(FreezeCC,false)));
this._startFire_shooterCodec = this._protocol.getCodec(new TypeCodecInfo(IGameObject,false));
this._stopFire_shooterCodec = this._protocol.getCodec(new TypeCodecInfo(IGameObject,false));
}
protected function getInitParam() : FreezeCC {
return FreezeCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._startFireId:
this.client.startFire(IGameObject(this._startFire_shooterCodec.decode(param2)));
break;
case this._stopFireId:
this.client.stopFire(IGameObject(this._stopFire_shooterCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package projects.tanks.clients.flash.resourcesflash {
import alternativa.osgi.OSGi;
import alternativa.osgi.bundle.IBundleActivator;
import platform.client.fp10.core.registry.ModelRegistry;
import platform.client.fp10.core.registry.ResourceRegistry;
import platform.client.fp10.core.service.localstorage.IResourceLocalStorage;
import projects.tanks.clients.flash.resources.object3ds.IObject3DS;
import projects.tanks.clients.flash.resources.object3ds.IObject3DSAdapt;
import projects.tanks.clients.flash.resources.object3ds.IObject3DSEvents;
import projects.tanks.clients.flash.resources.resource.MapResource;
import projects.tanks.clients.flash.resources.resource.PropLibResource;
import projects.tanks.clients.flash.resources.resource.Tanks3DSResource;
public class Activator implements IBundleActivator {
public static var osgi:OSGi;
public function Activator() {
super();
}
public function start(param1:OSGi) : void {
var modelRegisterAdapt:ModelRegistry;
var _osgi:OSGi = param1;
osgi = _osgi;
osgi.injectService(ResourceRegistry,function(param1:Object):void {
MapResource.resourceRegistry = ResourceRegistry(param1);
},function():ResourceRegistry {
return MapResource.resourceRegistry;
});
osgi.injectService(IResourceLocalStorage,function(param1:Object):void {
PropLibResource.resourceLocalStorage = IResourceLocalStorage(param1);
},function():IResourceLocalStorage {
return PropLibResource.resourceLocalStorage;
});
osgi.injectService(IResourceLocalStorage,function(param1:Object):void {
Tanks3DSResource.resourceLocalStorage = IResourceLocalStorage(param1);
},function():IResourceLocalStorage {
return Tanks3DSResource.resourceLocalStorage;
});
modelRegisterAdapt = osgi.getService(ModelRegistry) as ModelRegistry;
modelRegisterAdapt.registerAdapt(IObject3DS,IObject3DSAdapt);
modelRegisterAdapt.registerEvents(IObject3DS,IObject3DSEvents);
}
public function stop(param1:OSGi) : void {
}
}
}
|
package alternativa.tanks.service.impl {
import alternativa.tanks.controller.events.CaptchaUpdatedEvent;
import alternativa.tanks.service.ICaptchaService;
import alternativa.tanks.service.IEntranceServerFacade;
import flash.display.Bitmap;
import flash.utils.Dictionary;
import org.robotlegs.mvcs.Actor;
import projects.tanks.client.commons.models.captcha.CaptchaLocation;
import projects.tanks.clients.flash.commons.models.captcha.CaptchaParser;
public class CaptchaService extends Actor implements ICaptchaService {
[Inject]
public var serverFacade:IEntranceServerFacade;
private var _correctAnswerCallbacks:Dictionary = new Dictionary();
private var _enabledByCaptchaLocation:Dictionary = new Dictionary();
public function CaptchaService() {
super();
}
public function checkAnswer(param1:CaptchaLocation, param2:String, param3:Function) : void {
this._correctAnswerCallbacks[param1] = param3;
this.serverFacade.checkCaptcha(param2,param1);
}
public function answerCorrect(param1:CaptchaLocation) : void {
this._correctAnswerCallbacks[param1].apply();
}
public function setNewCaptchaBytes(param1:Vector.<int>, param2:CaptchaLocation) : void {
this._enabledByCaptchaLocation[param2] = true;
CaptchaParser.parse(param1,this.onCaptchaParsed,param2);
}
private function onCaptchaParsed(param1:Bitmap, param2:CaptchaLocation) : void {
switch(param2) {
case CaptchaLocation.CLIENT_STARTUP:
dispatch(new CaptchaUpdatedEvent(CaptchaUpdatedEvent.STAND_ALONE_CAPTCHA_UPDATED,param1));
break;
case CaptchaLocation.LOGIN_FORM:
dispatch(new CaptchaUpdatedEvent(CaptchaUpdatedEvent.LOGIN_FORM_CAPTCHA_UPDATED,param1));
break;
case CaptchaLocation.REGISTER_FORM:
dispatch(new CaptchaUpdatedEvent(CaptchaUpdatedEvent.REGISTRATION_FORM_CAPTCHA_UPDATED,param1));
break;
case CaptchaLocation.RESTORE_PASSWORD_FORM:
dispatch(new CaptchaUpdatedEvent(CaptchaUpdatedEvent.RESTORE_PASSWORD_FORM_CAPTCHA_UPDATED,param1));
break;
case CaptchaLocation.EMAIL_CHANGE_HASH:
dispatch(new CaptchaUpdatedEvent(CaptchaUpdatedEvent.EMAIL_CHANGE_HASH_CAPTCHA_UPDATED,param1));
}
}
public function get loginCaptchaEnabled() : Boolean {
return Boolean(this._enabledByCaptchaLocation[CaptchaLocation.LOGIN_FORM]);
}
}
}
|
package alternativa.init
{
import alternativa.osgi.bundle.IBundleActivator;
import alternativa.service.IModelService;
import alternativa.tanks.model.ChatModel;
import com.alternativaplatform.client.models.core.community.chat.IChatModelBase;
public class ChatModelActivator implements IBundleActivator
{
public static var osgi:OSGi;
public var chatModel:ChatModel;
public function ChatModelActivator()
{
super();
}
public function start(osgi:OSGi) : void
{
ChatModelActivator.osgi = osgi;
Main.writeToConsole("ChatModel init");
var modelRegister:IModelService = osgi.getService(IModelService) as IModelService;
this.chatModel = new ChatModel();
osgi.registerService(IChatModelBase,this.chatModel);
modelRegister.add(this.chatModel);
}
public function stop(osgi:OSGi) : void
{
var modelRegister:IModelService = osgi.getService(IModelService) as IModelService;
modelRegister.remove(this.chatModel.id);
this.chatModel = null;
ChatModelActivator.osgi = null;
}
}
}
|
package alternativa.tanks.help {
import projects.tanks.clients.fp10.libraries.TanksLocale;
import projects.tanks.clients.fp10.libraries.tanksservices.service.helper.HelperAlign;
public class MainMenuHelper extends PanelBubbleHelper {
public function MainMenuHelper(param1:Number, param2:Number, param3:Number) {
super(param1,param2,param3);
text = localeService.getText(TanksLocale.TEXT_HELP_PANEL_MAIN_MENU_HELPER_TEXT);
arrowLehgth = int(localeService.getText(TanksLocale.TEXT_HELP_PANEL_MAIN_MENU_HELPER_ARROW_LENGTH));
arrowAlign = HelperAlign.TOP_LEFT;
}
}
}
|
package alternativa.tanks.models.tank {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class AddToBattleListenerEvents implements AddToBattleListener {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function AddToBattleListenerEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function onAddToBattle() : void {
var i:int = 0;
var m:AddToBattleListener = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = AddToBattleListener(this.impl[i]);
m.onAddToBattle();
i++;
}
}
finally {
Model.popObject();
}
}
}
}
|
package com.alternativaplatform.projects.tanks.client.warfare.models.tankparts.weapon.freeze
{
public interface IFreezeModelBase
{
}
}
|
package alternativa.tanks.models.battle.rugby.explosion {
import alternativa.math.Vector3;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class BallExplosionEvents implements BallExplosion {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function BallExplosionEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function createExplosionEffects(param1:Vector3) : void {
var i:int = 0;
var m:BallExplosion = null;
var position:Vector3 = param1;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = BallExplosion(this.impl[i]);
m.createExplosionEffects(position);
i++;
}
}
finally {
Model.popObject();
}
}
}
}
|
package _codec.projects.tanks.client.battlefield.types {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import projects.tanks.client.battlefield.types.DamageType;
public class CodecDamageType implements ICodec {
public function CodecDamageType() {
super();
}
public function init(param1:IProtocol) : void {
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:DamageType = null;
var local3:int = int(param1.reader.readInt());
switch(local3) {
case 0:
local2 = DamageType.SMOKY;
break;
case 1:
local2 = DamageType.SMOKY_CRITICAL;
break;
case 2:
local2 = DamageType.FIREBIRD;
break;
case 3:
local2 = DamageType.FIREBIRD_OVERHEAT;
break;
case 4:
local2 = DamageType.TWINS;
break;
case 5:
local2 = DamageType.RAILGUN;
break;
case 6:
local2 = DamageType.ISIS;
break;
case 7:
local2 = DamageType.MINE;
break;
case 8:
local2 = DamageType.THUNDER;
break;
case 9:
local2 = DamageType.RICOCHET;
break;
case 10:
local2 = DamageType.FREEZE;
break;
case 11:
local2 = DamageType.SHAFT;
break;
case 12:
local2 = DamageType.MACHINE_GUN;
break;
case 13:
local2 = DamageType.SHOTGUN;
break;
case 14:
local2 = DamageType.ROCKET;
break;
case 15:
local2 = DamageType.ARTILLERY;
break;
case 16:
local2 = DamageType.TERMINATOR;
break;
case 17:
local2 = DamageType.BOMB;
break;
case 18:
local2 = DamageType.AT_FIELD;
break;
case 19:
local2 = DamageType.NUCLEAR;
break;
case 20:
local2 = DamageType.GAUSS;
}
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:int = int(param2.value);
param1.writer.writeInt(local3);
}
}
}
|
package projects.tanks.clients.flash.commons.models.coloring {
import platform.client.fp10.core.registry.ResourceRegistry;
import platform.client.fp10.core.resource.types.MultiframeTextureResource;
import platform.client.fp10.core.resource.types.TextureResource;
import projects.tanks.client.commons.models.coloring.ColoringModelBase;
import projects.tanks.client.commons.models.coloring.IColoringModelBase;
[ModelInfo]
public class ColoringModel extends ColoringModelBase implements IColoringModelBase, IColoring {
[Inject]
public static var resourceRegistry:ResourceRegistry;
public function ColoringModel() {
super();
}
public function isAnimated() : Boolean {
return getInitParam().animatedColoring != null;
}
public function getColoring() : TextureResource {
if(getInitParam().coloring != null) {
return getInitParam().coloring;
}
return null;
}
public function getAnimatedColoring() : MultiframeTextureResource {
return getInitParam().animatedColoring;
}
}
}
|
package forms.ranks {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/forms.ranks.PremiumRankBitmaps_bitmapSmallRank06.png")]
public class PremiumRankBitmaps_bitmapSmallRank06 extends BitmapAsset {
public function PremiumRankBitmaps_bitmapSmallRank06() {
super();
}
}
}
|
package forms.events
{
import flash.events.Event;
public class LoginFormEvent extends Event
{
public static const TEXT_CHANGED:String = "LoginChanged";
public static const PLAY_PRESSED:String = "PlayButtonPressed";
public static const RESTORE_PRESSED:String = "RestoreButtonPressed";
public static const SHOW_RULES:String = "ShowRules";
public static const SHOW_TERMS:String = "ShowTerms";
public static const CHANGE_STATE:String = "LoginFormStateChanged";
public function LoginFormEvent(type:String)
{
super(type,true,false);
}
}
}
|
package _codec.projects.tanks.client.garage.models.item.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.garage.models.item.device.ItemDevicesCC;
public class VectorCodecItemDevicesCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecItemDevicesCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ItemDevicesCC,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.<ItemDevicesCC> = new Vector.<ItemDevicesCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ItemDevicesCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ItemDevicesCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ItemDevicesCC> = Vector.<ItemDevicesCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package alternativa.tanks.model.item.skins {
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.garage.skins.shot.AvailableShotSkinsModelBase;
import projects.tanks.client.garage.skins.shot.IAvailableShotSkinsModelBase;
[ModelInfo]
public class AvailableShotSkinsModel extends AvailableShotSkinsModelBase implements IAvailableShotSkinsModelBase, AvailableShotSkins {
public function AvailableShotSkinsModel() {
super();
}
public function getSkins() : Vector.<IGameObject> {
return getInitParam().skins;
}
}
}
|
package alternativa.tanks.view.battlelist {
import alternativa.osgi.service.locale.ILocaleService;
import projects.tanks.clients.fp10.libraries.TanksLocale;
public class LocaleBattleList {
[Inject]
public static var localeService:ILocaleService;
public function LocaleBattleList() {
super();
}
public static function get showBattleCreateFormLabel() : String {
return localeService.getText(TanksLocale.TEXT_BATTLELIST_PANEL_BUTTON_CREATE);
}
public static function get battleSelectLockedMapHelperName() : String {
return localeService.getText(TanksLocale.TEXT_HELP_BATTLE_SELECT_LOCKED_MAP_HELPER_TEXT);
}
public static function get findBattleText() : String {
return localeService.getText(TanksLocale.TEXT_FIND_BATTLE_BUTTON_TEXT);
}
public static function get battleSelectLockedMapHelperArrowLength() : int {
return int(localeService.getText(TanksLocale.TEXT_HELP_BATTLE_SELECT_LOCKED_MAP_HELPER_ARROW_LENGTH));
}
}
}
|
package scpacker.gui
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class GTanksI_coldload5 extends BitmapAsset
{
public function GTanksI_coldload5()
{
super();
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.weapon.shot {
import alternativa.osgi.OSGi;
import alternativa.protocol.IProtocol;
import alternativa.protocol.OptionalMap;
import alternativa.protocol.ProtocolBuffer;
import flash.utils.ByteArray;
import platform.client.fp10.core.model.IModel;
public class DiscreteShotModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function DiscreteShotModelServer(param1:IModel) {
super();
this.model = param1;
var local2:ByteArray = new ByteArray();
this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol));
this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap());
}
}
}
|
package alternativa.tanks.models.battle.jgr {
import alternativa.tanks.battle.BattleService;
import alternativa.tanks.models.battle.battlefield.BattleModel;
import alternativa.tanks.models.battle.battlefield.BattleType;
import alternativa.tanks.models.battle.dm.DMCommonTargetEvaluator;
import alternativa.tanks.models.battle.dm.DMHealingGunTargetEvaluator;
import alternativa.tanks.models.battle.dm.DMRailgunTargetEvaluator;
import alternativa.tanks.models.weapon.ricochet.DMRicochetTargetEvaluator;
import platform.client.fp10.core.model.ObjectLoadPostListener;
import projects.tanks.client.battleservice.model.battle.jgr.BattleJGRModelBase;
import projects.tanks.client.battleservice.model.battle.jgr.IBattleJGRModelBase;
[ModelInfo]
public class BattleJGRModel extends BattleJGRModelBase implements IBattleJGRModelBase, BattleModel, ObjectLoadPostListener {
[Inject]
public static var battleService:BattleService;
public function BattleJGRModel() {
super();
}
public function getBattleType() : BattleType {
return BattleType.JGR;
}
public function objectLoadedPost() : void {
battleService.setCommonTargetEvaluator(new DMCommonTargetEvaluator());
battleService.setHealingGunTargetEvaluator(new DMHealingGunTargetEvaluator());
battleService.setRailgunTargetEvaluator(new DMRailgunTargetEvaluator());
battleService.setRicochetTargetEvaluator(new DMRicochetTargetEvaluator());
}
}
}
|
package scpacker.resource
{
public class ResourceType
{
public static var SOUND:ResourceType = new ResourceType();
public static var IMAGE:ResourceType = new ResourceType();
public static var MODEL:ResourceType = new ResourceType();
public static var MAP:ResourceType = new ResourceType();
public function ResourceType()
{
super();
}
}
}
|
package projects.tanks.client.garage.models.garage.present {
public interface IPresentGivenModelBase {
}
}
|
package alternativa.tanks.model.shop.items.base
{
import alternativa.tanks.model.shop.ItemBase;
import flash.display.Bitmap;
import flash.events.MouseEvent;
public class ButtonItemBase extends ItemBase
{
private static const DOWN_PIXELS:int = 1;
protected var normalState:Bitmap;
protected var overState:Bitmap;
protected var previousY:int;
public function ButtonItemBase(param1:ButtonItemSkin)
{
super();
this.initAndAppendSkin(param1);
this.init();
}
private function initAndAppendSkin(param1:ButtonItemSkin) : void
{
this.normalState = new Bitmap(param1.normalState);
this.overState = new Bitmap(param1.overState);
addChildAt(this.overState,0);
addChildAt(this.normalState,0);
this.overState.visible = false;
}
protected function init() : void
{
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER,this.onMouseEvent);
addEventListener(MouseEvent.MOUSE_OUT,this.onMouseEvent);
addEventListener(MouseEvent.MOUSE_DOWN,this.onMouseEvent);
addEventListener(MouseEvent.MOUSE_UP,this.onMouseEvent);
}
public function setSkin(param1:ButtonItemSkin) : void
{
removeChild(this.normalState);
removeChild(this.overState);
this.initAndAppendSkin(param1);
}
private function onMouseEvent(param1:MouseEvent) : void
{
this.overState.visible = param1.type == MouseEvent.MOUSE_OVER;
this.normalState.visible = !this.overState.visible;
switch(param1.type)
{
case MouseEvent.MOUSE_OVER:
this.previousY = y;
break;
case MouseEvent.MOUSE_OUT:
y = this.previousY;
break;
case MouseEvent.MOUSE_UP:
y = this.previousY;
break;
case MouseEvent.MOUSE_DOWN:
y = this.previousY + DOWN_PIXELS;
}
}
override public function destroy() : void
{
removeEventListener(MouseEvent.MOUSE_OVER,this.onMouseEvent);
removeEventListener(MouseEvent.MOUSE_OUT,this.onMouseEvent);
removeEventListener(MouseEvent.MOUSE_DOWN,this.onMouseEvent);
removeEventListener(MouseEvent.MOUSE_UP,this.onMouseEvent);
}
}
}
|
package _codec.projects.tanks.client.battleservice.model.battle.team {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.EnumCodecInfo;
import projects.tanks.client.battleservice.model.battle.team.BattleTeam;
public class VectorCodecBattleTeamLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecBattleTeamLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new EnumCodecInfo(BattleTeam,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.<BattleTeam> = new Vector.<BattleTeam>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = BattleTeam(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:BattleTeam = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<BattleTeam> = Vector.<BattleTeam>(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++;
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.