code stringlengths 57 237k |
|---|
package projects.tanks.clients.fp10.Prelauncher.makeup {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/projects.tanks.clients.fp10.Prelauncher.makeup.MakeUp_vkIcon.png")]
public class MakeUp_vkIcon extends BitmapAsset {
public function MakeUp_vkIcon() {
super();
}
}
}
|
package alternativa.tanks.model.quest.challenge.stars {
import flash.events.IEventDispatcher;
public interface StarsInfoService extends IEventDispatcher {
function setStars(param1:int) : void;
function getStars() : int;
}
}
|
package alternativa.tanks.models.weapon.shared.streamweapon {
import alternativa.math.Vector3;
import alternativa.physics.Body;
import alternativa.tanks.battle.BattleRunnerProvider;
import alternativa.tanks.battle.LogicUnit;
import alternativa.tanks.battle.objects.tank.LocalWeapon;
import alternativa.tanks.battle.objects.tank.Weapon;
import alternativa.tanks.battle.objects.tank.WeaponPlatform;
import alternativa.tanks.models.weapon.AllGlobalGunParams;
import alternativa.tanks.models.weapon.shared.ConicAreaTargetingSystem;
import alternativa.tanks.models.weapon.shared.SimpleWeaponController;
import alternativa.tanks.utils.EncryptedInt;
import alternativa.tanks.utils.EncryptedIntImpl;
import alternativa.tanks.utils.EncryptedNumber;
import alternativa.tanks.utils.EncryptedNumberImpl;
import flash.utils.getTimer;
import projects.tanks.client.garage.models.item.properties.ItemProperty;
public class StreamWeapon extends BattleRunnerProvider implements Weapon, LogicUnit, LocalWeapon {
private static const milliseconds:EncryptedInt = new EncryptedIntImpl(1000);
private static const FIRE_ORIGIN_OFFSET_COEFF:Number = 0.3;
private static const allGunParams:AllGlobalGunParams = new AllGlobalGunParams();
private static const targetBodies:Vector.<Body> = new Vector.<Body>();
private static const targetDistances:Vector.<Number> = new Vector.<Number>();
private static const targetHitPoints:Vector.<Vector3> = new Vector.<Vector3>();
private static const ALMOST_ZERO:Number = 0.001;
private var energyCapacity:EncryptedNumber = new EncryptedNumberImpl();
private var energyDrainSpeed:EncryptedNumber = new EncryptedNumberImpl();
private var energyRechargeSpeed:EncryptedNumber = new EncryptedNumberImpl();
private var tickInterval:EncryptedInt = new EncryptedIntImpl();
private var targetingSystem:ConicAreaTargetingSystem;
private var controller:SimpleWeaponController;
private var callback:IStreamWeaponCallback;
private var effects:StreamWeaponEffects;
private var weaponPlatform:WeaponPlatform;
private var nextTickTime:EncryptedInt = new EncryptedIntImpl();
private var enabled:Boolean;
private var triggerPulled:Boolean;
private var shooting:Boolean;
private var currentTime:int;
private var baseTime:EncryptedInt = new EncryptedIntImpl();
private var numTicksLeft:EncryptedInt = new EncryptedIntImpl();
private var resistanceProperty:ItemProperty;
private var stunStatus:Number;
private var stunned:Boolean;
public function StreamWeapon(param1:Number, param2:Number, param3:Number, param4:int, param5:ConicAreaTargetingSystem, param6:SimpleWeaponController, param7:IStreamWeaponCallback, param8:StreamWeaponEffects, param9:ItemProperty) {
super();
this.energyCapacity.setNumber(param1);
this.energyDrainSpeed.setNumber(param2);
this.energyRechargeSpeed.setNumber(param3);
this.tickInterval.setInt(param4);
this.targetingSystem = param5;
this.controller = param6;
this.callback = param7;
this.effects = param8;
this.resistanceProperty = param9;
}
public function init(param1:WeaponPlatform) : void {
this.weaponPlatform = param1;
this.controller.init();
this.controller.setWeapon(this);
}
public function destroy() : void {
this.targetingSystem = null;
this.effects = null;
this.callback = null;
this.controller.destroy();
this.controller = null;
this.weaponPlatform = null;
}
public function activate() : void {
getBattleRunner().addLogicUnit(this);
}
public function deactivate() : void {
this.disable(false);
getBattleRunner().removeLogicUnit(this);
}
public function enable() : void {
if(!this.enabled) {
this.enabled = true;
this.triggerPulled = this.controller.isTriggerPulled();
}
}
public function disable(param1:Boolean) : void {
if(this.enabled) {
this.enabled = false;
this.stop(getBattleRunner().getPhysicsTime(),param1);
}
}
public function reset() : void {
this.shooting = false;
this.triggerPulled = false;
this.baseTime.setInt(0);
this.nextTickTime.setInt(0);
this.numTicksLeft.setInt(0);
}
public function pullTrigger() : void {
if(this.enabled) {
this.triggerPulled = true;
}
}
public function releaseTrigger() : void {
this.triggerPulled = false;
}
public function getStatus() : Number {
var local1:Number = NaN;
if(this.stunned) {
return this.stunStatus;
}
if(this.triggerPulled) {
local1 = this.getCurrentEnergyInShootingMode(getTimer());
} else {
local1 = this.getCurrentEnergyInIdleMode(getTimer());
}
return local1 / this.energyCapacity.getNumber();
}
public function runLogic(param1:int, param2:int) : void {
this.currentTime = param1;
if(this.enabled && !this.stunned) {
if(this.shooting) {
this.runLogicForShootingMode(param1);
} else {
this.runLogicForIdleMode(param1);
}
}
}
private function runLogicForShootingMode(param1:int) : void {
if(this.triggerPulled) {
this.tryToTick(param1);
this.stopIfNecessary(param1);
} else {
this.stop(param1,true);
}
}
private function tryToTick(param1:int) : void {
if(this.numTicksLeft.getInt() > 0) {
if(this.nextTickTime.getInt() <= param1) {
this.tick(param1);
this.numTicksLeft.setInt(this.numTicksLeft.getInt() - 1);
}
}
}
private function stopIfNecessary(param1:int) : void {
if(this.numTicksLeft.getInt() == 0) {
if(this.getCurrentEnergyInShootingMode(param1) <= 0) {
this.stop(param1,true);
}
}
}
private function runLogicForIdleMode(param1:int) : void {
if(this.triggerPulled) {
this.start(param1);
}
}
private function start(param1:int) : void {
var local2:Number = NaN;
if(!this.shooting) {
this.shooting = true;
local2 = this.getCurrentEnergyInIdleMode(param1);
this.baseTime.setInt(this.getBaseTimeForShootingMode(param1,local2));
this.calculateTicksNumber(local2);
this.nextTickTime.setInt(param1 + this.tickInterval.getInt());
this.effects.startEffects(this.weaponPlatform.getBody(),this.weaponPlatform.getLocalMuzzlePosition(),this.weaponPlatform.getTurret3D());
this.callback.start(param1);
}
}
private function calculateTicksNumber(param1:Number) : void {
if(this.energyDrainSpeed.getNumber() > ALMOST_ZERO) {
this.numTicksLeft.setInt(milliseconds.getInt() * param1 / (this.energyDrainSpeed.getNumber() * this.tickInterval.getInt()));
} else {
this.numTicksLeft.setInt(int.MAX_VALUE);
}
}
private function stop(param1:int, param2:Boolean) : void {
if(this.shooting) {
this.triggerPulled = false;
this.shooting = false;
this.baseTime.setInt(param1 - this.getCurrentEnergyInShootingMode(param1) / this.energyRechargeSpeed.getNumber() * milliseconds.getInt());
this.numTicksLeft.setInt(0);
this.effects.stopEffects();
if(param2) {
this.callback.stop(param1);
}
}
}
private function tick(param1:int) : void {
var local6:Body = null;
this.nextTickTime.setInt(param1 + this.tickInterval.getInt());
var local2:Vector3 = this.weaponPlatform.getLocalMuzzlePosition();
this.weaponPlatform.getAllGunParams(allGunParams);
var local3:Number = local2.y;
targetBodies.length = 0;
targetDistances.length = 0;
targetHitPoints.length = 0;
this.targetingSystem.getTargets(this.weaponPlatform.getBody(),local3,FIRE_ORIGIN_OFFSET_COEFF,allGunParams.barrelOrigin,allGunParams.direction,allGunParams.elevationAxis,targetBodies,targetDistances,targetHitPoints);
var local4:int = int(targetBodies.length);
if(local4 > 0) {
this.callback.onTick(this,targetBodies,targetDistances,targetHitPoints,param1);
}
var local5:int = 0;
while(local5 < targetBodies.length) {
local6 = targetBodies[local5];
local6.tank.setLastHitPoint(targetHitPoints[local5]);
local5++;
}
targetBodies.length = 0;
targetDistances.length = 0;
targetHitPoints.length = 0;
}
private function getCurrentEnergyInIdleMode(param1:int) : Number {
var local2:Number = Number(this.energyCapacity.getNumber());
var local3:Number = this.energyRechargeSpeed.getNumber() * (param1 - this.baseTime.getInt()) / milliseconds.getInt();
return local3 > local2 ? local2 : local3;
}
private function getCurrentEnergyInShootingMode(param1:int) : Number {
var local2:Number = this.energyCapacity.getNumber() - this.energyDrainSpeed.getNumber() * (param1 - this.baseTime.getInt()) / milliseconds.getInt();
return local2 < 0 ? 0 : local2;
}
private function getBaseTimeForShootingMode(param1:int, param2:Number) : int {
if(this.energyDrainSpeed.getNumber() > ALMOST_ZERO) {
return param1 - (this.energyCapacity.getNumber() - param2) / this.energyDrainSpeed.getNumber() * milliseconds.getInt();
}
return param1;
}
public function getResistanceProperty() : ItemProperty {
return this.resistanceProperty;
}
public function updateRange(param1:Number) : void {
this.effects.updateRange(param1);
this.targetingSystem.updateRange(param1);
}
public function setBuffedMode(param1:Boolean) : void {
this.effects.setBuffedMode(param1);
this.tryToResumeShooting();
}
private function tryToResumeShooting() : void {
if(!this.triggerPulled && this.controller.isTriggerPulled()) {
this.pullTrigger();
}
}
public function updateDischargeRate(param1:Number) : void {
this.energyDrainSpeed.setNumber(param1);
}
private function getBaseTime(param1:int, param2:int) : int {
if(this.shooting) {
return this.getBaseTimeForShootingMode(param1,param2);
}
return param1 - param2 / this.energyRechargeSpeed.getNumber() * milliseconds.getInt();
}
public function updateRecoilForce(param1:Number) : void {
}
public function fullyRecharge() : void {
this.calculateTicksNumber(this.energyCapacity.getNumber());
this.baseTime.setInt(this.getBaseTime(this.currentTime,this.energyCapacity.getNumber()));
}
public function weaponReloadTimeChanged(param1:int, param2:int) : void {
}
public function stun() : void {
this.stop(getBattleRunner().getPhysicsTime(),true);
this.triggerPulled = false;
this.stunStatus = this.getStatus();
this.stunned = true;
}
public function calm(param1:int) : void {
this.triggerPulled = this.controller.isTriggerPulled();
this.baseTime.setInt(this.getBaseTime(getTimer(),this.stunStatus * this.energyCapacity.getNumber()));
this.stunned = false;
}
}
}
|
package forms.buttons
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class MainPanelRatingButton_normalBtn extends BitmapAsset
{
public function MainPanelRatingButton_normalBtn()
{
super();
}
}
}
|
package projects.tanks.client.clans.panel.clanpanel {
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 ClanPanelModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:ClanPanelModelServer;
private var client:IClanPanelModelBase = IClanPanelModelBase(this);
private var modelId:Long = Long.getLong(813924329,-50132824);
public function ClanPanelModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new ClanPanelModelServer(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.tanks.view.icons {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.view.icons.BattleParamsBattleInfoIcons_dmClass.png")]
public class BattleParamsBattleInfoIcons_dmClass extends BitmapAsset {
public function BattleParamsBattleInfoIcons_dmClass() {
super();
}
}
}
|
package alternativa.tanks.gui.communication.tabs.clanchat {
import flash.events.EventDispatcher;
public class ClanChatView extends EventDispatcher implements IClanChatView {
private var clanChat:ClanChatTab;
public function ClanChatView() {
super();
}
public function setClanChat(param1:ClanChatTab) : void {
this.clanChat = param1;
dispatchEvent(new ClanChatViewEvent(ClanChatViewEvent.CLAN_CHAT_ADDED));
}
public function getClanChat() : ClanChatTab {
return this.clanChat;
}
public function clear() : void {
this.clanChat = null;
}
public function updateClanChatView() : void {
dispatchEvent(new ClanChatViewEvent(ClanChatViewEvent.UPDATE_CLAN_CHAT_VIEW));
}
}
}
|
package alternativa.tanks.controller.commands {
import alternativa.tanks.controller.events.SendNewPasswordAndEmailToChangeEvent;
import alternativa.tanks.service.IEntranceServerFacade;
import org.robotlegs.mvcs.Command;
public class SendNewPasswordAndEmailToChangeCommand extends Command {
[Inject]
public var serverFacade:IEntranceServerFacade;
[Inject]
public var event:SendNewPasswordAndEmailToChangeEvent;
public function SendNewPasswordAndEmailToChangeCommand() {
super();
}
override public function execute() : void {
this.serverFacade.changePasswordAndEmail(this.event.password,this.event.email);
}
}
}
|
package alternativa.tanks.models.battle.battlefield.map {
import alternativa.engine3d.materials.TextureMaterial;
import alternativa.engine3d.objects.Sprite3D;
import alternativa.proplib.objects.PropSprite;
import alternativa.utils.textureutils.TextureByteData;
import flash.display.BitmapData;
public class TexturedSpritesCollection implements TexturedPropsCollection {
private var propSprite:PropSprite;
private var sprites:Vector.<Sprite3D> = new Vector.<Sprite3D>();
public function TexturedSpritesCollection(param1:PropSprite, param2:String) {
super();
this.propSprite = param1;
}
public function addSprite3D(param1:Sprite3D) : void {
this.sprites.push(param1);
}
public function setMaterial(param1:TextureMaterial) : void {
var local3:Sprite3D = null;
var local4:Number = NaN;
var local2:BitmapData = param1.texture;
for each(local3 in this.sprites) {
local3.material = param1;
local4 = Number(local3.width);
local3.width = local4 * local2.width;
local3.height = local4 * local2.height;
}
}
public function getTextureData() : TextureByteData {
return this.propSprite.textureData;
}
}
}
|
package _codec.projects.tanks.client.tanksservices.model.reconnect {
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.tanksservices.model.reconnect.ReconnectCC;
public class VectorCodecReconnectCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecReconnectCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ReconnectCC,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.<ReconnectCC> = new Vector.<ReconnectCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ReconnectCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ReconnectCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ReconnectCC> = Vector.<ReconnectCC>(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.tank.configuration {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class TankConfigurationEvents implements TankConfiguration {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function TankConfigurationEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function getHullObject() : IGameObject {
var result:IGameObject = null;
var i:int = 0;
var m:TankConfiguration = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = TankConfiguration(this.impl[i]);
result = m.getHullObject();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function getWeaponObject() : IGameObject {
var result:IGameObject = null;
var i:int = 0;
var m:TankConfiguration = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = TankConfiguration(this.impl[i]);
result = m.getWeaponObject();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function getColoringObject() : IGameObject {
var result:IGameObject = null;
var i:int = 0;
var m:TankConfiguration = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = TankConfiguration(this.impl[i]);
result = m.getColoringObject();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function hasDrone() : Boolean {
var result:Boolean = false;
var i:int = 0;
var m:TankConfiguration = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = TankConfiguration(this.impl[i]);
result = Boolean(m.hasDrone());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function getDrone() : IGameObject {
var result:IGameObject = null;
var i:int = 0;
var m:TankConfiguration = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = TankConfiguration(this.impl[i]);
result = m.getDrone();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package projects.tanks.client.battlefield.models.user.device {
import alternativa.osgi.OSGi;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
public class TankDeviceModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:TankDeviceModelServer;
private var client:ITankDeviceModelBase = ITankDeviceModelBase(this);
private var modelId:Long = Long.getLong(354029990,178111282);
public function TankDeviceModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new TankDeviceModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(TankDeviceCC,false)));
}
protected function getInitParam() : TankDeviceCC {
return TankDeviceCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
var local3:* = param1;
switch(false ? 0 : 0) {
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.tanks.battle.objects.tank.tankchassis {
public class SuspensionParams {
public var maxRayLength:Number = 50;
public var nominalRayLength:Number = 25;
public var springCoeff:Number = 0;
public var dampingCoeff:Number = 1000;
public function SuspensionParams() {
super();
}
}
}
|
package alternativa.tanks.gui.shop.shopitems {
import alternativa.tanks.gui.shop.components.itemcategoriesview.ItemCategoriesView;
import alternativa.tanks.gui.shop.components.itemscategory.ItemsCategoryView;
import alternativa.tanks.gui.shop.components.paymentview.PaymentView;
import alternativa.tanks.gui.shop.shopitems.item.base.ShopButton;
import alternativa.tanks.model.payment.paymentstate.PaymentWindowService;
import alternativa.types.Long;
public class GoodsChooseView extends PaymentView {
[Inject]
public static var paymentWindowService:PaymentWindowService;
private var view:ItemCategoriesView;
private var _width:int;
private var _height:int;
public function GoodsChooseView() {
super();
this.view = new ItemCategoriesView();
addChild(this.view);
}
public function addShopCategory(param1:Long, param2:String, param3:String) : void {
var local4:ItemsCategoryView = new ItemsCategoryView(param2,param3,param1);
this.view.addCategory(local4);
}
public function addItem(param1:ShopButton, param2:Long) : void {
this.view.addItem(param2,param1);
}
override public function render(param1:int, param2:int) : void {
this._width = param1;
this._height = param2;
this.view.render(param1,param2);
}
override public function postRender() : void {
this.view.scrollPosition = paymentWindowService.getScrollPosition();
}
override public function destroy() : void {
paymentWindowService.saveScrollPosition(this.view.scrollPosition);
super.destroy();
this.view.destroy();
this.view = null;
}
override public function get width() : Number {
return this._width;
}
override public function get height() : Number {
return this._height;
}
public function jumpToCategory(param1:Long) : void {
this.view.jumpToCategory(param1);
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.weapons.artillery {
import alternativa.osgi.OSGi;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
public class ArtilleryModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:ArtilleryModelServer;
private var client:IArtilleryModelBase = IArtilleryModelBase(this);
private var modelId:Long = Long.getLong(1546475564,-1431010080);
public function ArtilleryModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new ArtilleryModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(ArtilleryCC,false)));
}
protected function getInitParam() : ArtilleryCC {
return ArtilleryCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
var local3:* = param1;
switch(false ? 0 : 0) {
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.init {
import alternativa.osgi.OSGi;
import alternativa.osgi.bundle.IBundleActivator;
import alternativa.tanks.gui.communication.tabs.chat.ChatTabView;
import alternativa.tanks.gui.communication.tabs.chat.IChatTabView;
import alternativa.tanks.services.NewsService;
import alternativa.tanks.services.NewsServiceImpl;
public class ChatModelActivator implements IBundleActivator {
public function ChatModelActivator() {
super();
}
public function start(param1:OSGi) : void {
param1.registerService(NewsService,new NewsServiceImpl());
param1.registerService(IChatTabView,new ChatTabView());
}
public function stop(param1:OSGi) : void {
}
}
}
|
package alternativa.proplib
{
public class PropLibRegistry
{
private var libs:Object;
public function PropLibRegistry()
{
this.libs = {};
super();
}
public function addLibrary(lib:PropLibrary) : void
{
this.libs[lib.name] = lib;
}
public function destroy(b:Boolean = false) : *
{
var lib:PropLibrary = null;
for each(lib in this.libs)
{
lib.freeMemory();
lib = null;
}
}
public function getLibrary(libName:String) : PropLibrary
{
return this.libs[libName];
}
public function get libraries() : Vector.<PropLibrary>
{
var lib:PropLibrary = null;
var res:Vector.<PropLibrary> = new Vector.<PropLibrary>();
for each(lib in this.libs)
{
res.push(lib);
}
return res;
}
}
}
|
package alternativa.tanks.model.payment.shop.description {
[ModelInterface]
public interface ShopItemAdditionalDescription {
function getAdditionalDescription() : String;
}
}
|
package alternativa.gfx.agal
{
public class CommonRegister extends Register
{
protected static const X:int = 0;
protected static const Y:int = 1;
protected static const Z:int = 2;
protected static const W:int = 3;
public var x:Register;
public var y:Register;
public var z:Register;
public var w:Register;
public var xyz:Register;
public var xy:Register;
public var xw:Register;
public var xz:Register;
public var zw:Register;
public function CommonRegister(param1:int, param2:int)
{
super();
this.index = param1;
this.emitCode = param2;
this.x = Register.get(getSwizzle(X,X,X,X),getDestMask(true,false,false,false),this);
this.y = Register.get(getSwizzle(Y,Y,Y,Y),getDestMask(false,true,false,false),this);
this.z = Register.get(getSwizzle(Z,Z,Z,Z),getDestMask(false,false,true,false),this);
this.w = Register.get(getSwizzle(W,W,W,W),getDestMask(false,false,false,true),this);
this.xyz = Register.get(getSwizzle(X,Y,Z,Z),getDestMask(true,true,true,false),this);
this.xy = Register.get(getSwizzle(X,Y,Y,Y),getDestMask(true,true,false,false),this);
this.xz = Register.get(getSwizzle(X,Z,Z,Z),getDestMask(true,false,true,false),this);
this.xw = Register.get(getSwizzle(X,W,W,W),getDestMask(true,false,false,true),this);
this.zw = Register.get(getSwizzle(Z,W,W,W),getDestMask(false,false,true,true),this);
}
}
}
|
package platform.client.core.general.spaces.loading.dispatcher {
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 DispatcherModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var _dependeciesLoadedId:Long = Long.getLong(423004956,1791645716);
private var _dependeciesLoaded_callbackIdCodec:ICodec;
private var model:IModel;
public function DispatcherModelServer(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._dependeciesLoaded_callbackIdCodec = this.protocol.getCodec(new TypeCodecInfo(int,false));
}
public function dependeciesLoaded(param1:int) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._dependeciesLoaded_callbackIdCodec.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._dependeciesLoadedId,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.battlefield.models.tankparts.gearscore {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battlefield.models.tankparts.gearscore.BattleGearScoreCC;
public class CodecBattleGearScoreCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_score:ICodec;
public function CodecBattleGearScoreCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_score = param1.getCodec(new TypeCodecInfo(int,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:BattleGearScoreCC = new BattleGearScoreCC();
local2.score = this.codec_score.decode(param1) as int;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:BattleGearScoreCC = BattleGearScoreCC(param2);
this.codec_score.encode(param1,local3.score);
}
}
}
|
package controls.slider {
import assets.slider.slider_TRACK_CENTER;
import assets.slider.slider_TRACK_LEFT;
import assets.slider.slider_TRACK_RIGHT;
import flash.display.Graphics;
import flash.display.Sprite;
import flash.geom.Matrix;
public class SliderTrack extends Sprite {
protected var track_bmpLeft:slider_TRACK_LEFT = new slider_TRACK_LEFT(1,1);
protected var track_bmpCenter:slider_TRACK_CENTER = new slider_TRACK_CENTER(1,1);
protected var track_bmpRight:slider_TRACK_RIGHT = new slider_TRACK_RIGHT(1,1);
protected var _width:int;
protected var _showTrack:Boolean;
protected var _minValue:Number = 0;
protected var _maxValue:Number = 100;
protected var _tick:Number = 10;
public function SliderTrack(param1:Boolean = true) {
super();
this._showTrack = param1;
}
override public function set width(param1:Number) : void {
this._width = param1;
this.draw();
}
protected function draw() : void {
var local2:Matrix = null;
var local3:Number = NaN;
var local4:Number = NaN;
var local1:Graphics = this.graphics;
local1.clear();
local1.beginBitmapFill(this.track_bmpLeft);
local1.drawRect(0,0,5,30);
local1.endFill();
local2 = new Matrix();
local2.translate(5,0);
local1.beginBitmapFill(this.track_bmpCenter,local2);
local1.drawRect(5,0,this._width - 11,30);
local1.endFill();
local2 = new Matrix();
local2.translate(this._width - 6,0);
local1.beginBitmapFill(this.track_bmpRight,local2);
local1.drawRect(this._width - 6,0,6,30);
local1.endFill();
if(this._showTrack) {
local3 = width / ((this._maxValue - this._minValue) / this._tick);
local4 = local3;
while(local4 < this._width) {
local1.lineStyle(0,16777215,0.4);
local1.moveTo(local4,5);
local1.lineTo(local4,25);
local4 += local3;
}
}
}
public function set minValue(param1:Number) : void {
this._minValue = param1;
this.draw();
}
public function set maxValue(param1:Number) : void {
this._maxValue = param1;
this.draw();
}
public function set tickInterval(param1:Number) : void {
this._tick = param1;
this.draw();
}
}
}
|
package alternativa.tanks.controller.events {
import flash.events.Event;
public class LoginEvent extends Event {
public static const CHECK_CAPTCHA_AND_LOGIN:String = "LoginEvent.CHECK_CAPTCHA_AND_LOGIN";
public static const LOGIN_AFTER_CAPTCHA_CHECKED:String = "LoginEvent.LOGIN_AFTER_CAPTCHA_CHECKED";
private var _callsign:String;
private var _password:String;
private var _rememberMe:Boolean;
private var _captchaAnswer:String;
public function LoginEvent(param1:String, param2:String, param3:String, param4:Boolean, param5:String) {
super(param1);
this._callsign = param2;
this._password = param3;
this._rememberMe = param4;
this._captchaAnswer = param5;
}
public function get callsign() : String {
return this._callsign;
}
public function get password() : String {
return this._password;
}
public function get rememberMe() : Boolean {
return this._rememberMe;
}
public function get captchaAnswer() : String {
return this._captchaAnswer;
}
}
}
|
package controls.buttons.h30px {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.buttons.h30px.OrangeMediumButtonSkin_rightUpClass.png")]
public class OrangeMediumButtonSkin_rightUpClass extends BitmapAsset {
public function OrangeMediumButtonSkin_rightUpClass() {
super();
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.weapon.terminator {
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battlefield.types.Vector3d;
public interface ITerminatorModelBase {
function primaryRemoteCharge(param1:IGameObject, param2:int) : void;
function primaryRemoteDummy(param1:IGameObject, param2:int) : void;
function primaryRemoteShot(param1:IGameObject, param2:Vector3d, param3:Vector.<IGameObject>, param4:Vector.<Vector3d>, param5:int) : void;
function secondaryRemoteHide(param1:IGameObject) : void;
function secondaryRemoteOpen(param1:IGameObject) : void;
}
}
|
package alternativa.tanks.model.payment.modes {
import platform.client.fp10.core.resource.types.ImageResource;
[ModelInterface]
public interface PayMode {
function getName() : String;
function getDescription() : String;
function hasCustomManualDescription() : Boolean;
function getCustomManualDescription() : String;
function getOrderIndex() : int;
function getImage() : ImageResource;
function isDiscount() : Boolean;
function setDiscount(param1:Boolean) : void;
}
}
|
package alternativa.startup {
import alternativa.osgi.service.launcherparams.ILauncherParams;
import flash.display.DisplayObjectContainer;
public interface IClientConfigurator {
function start(param1:DisplayObjectContainer, param2:ILauncherParams, param3:ConnectionParameters, param4:Vector.<String>) : void;
}
}
|
package com.alternativaplatform.client.models.core.users.model.localized
{
import scpacker.Base;
public class LocalizedModelBase extends Base
{
public function LocalizedModelBase()
{
super();
}
}
}
|
package alternativa.tanks.models.sfx.smoke {
import alternativa.tanks.battle.BattleService;
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.models.tank.ITankModel;
import flash.utils.Dictionary;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battlefield.models.tankparts.sfx.smoke.HullSmokeModelBase;
import projects.tanks.client.battlefield.models.tankparts.sfx.smoke.IHullSmokeModelBase;
[ModelInfo]
public class HullSmokeModel extends HullSmokeModelBase implements HullSmoke, IHullSmokeModelBase {
[Inject]
public static var battleEventDispatcher:BattleEventDispatcher;
[Inject]
public static var battleService:BattleService;
private var battleEventSupport:BattleEventSupport;
private var renders:Dictionary = new Dictionary();
private var controlStates:Dictionary = new Dictionary();
public function HullSmokeModel() {
super();
this.battleEventSupport = new BattleEventSupport(battleEventDispatcher);
this.battleEventSupport.addEventHandler(TankAddedToBattleEvent,this.onTankAddedToBattle);
this.battleEventSupport.addEventHandler(TankRemovedFromBattleEvent,this.onTankRemovedFromBattle);
this.battleEventSupport.activateHandlers();
}
private function onTankAddedToBattle(param1:TankAddedToBattleEvent) : void {
var renderer:HullSmokeRenderer = null;
var event:TankAddedToBattleEvent = param1;
var tankModel:ITankModel = ITankModel(event.tank.getUser().adapt(ITankModel));
Model.object = tankModel.getTankSet().hull;
try {
if(!getInitParam().enabled) {
return;
}
renderer = new HullSmokeRenderer(event.tank,getInitParam());
battleService.getBattleScene3D().addRenderer(renderer);
this.renders[event.tank.getUser().id] = renderer;
}
finally {
Model.popObject();
}
}
private function onTankRemovedFromBattle(param1:TankRemovedFromBattleEvent) : void {
var local2:HullSmokeRenderer = HullSmokeRenderer(this.renders[param1.tank.getUser().id]);
if(local2 == null) {
return;
}
battleService.getBattleScene3D().removeRenderer(local2);
delete this.renders[param1.tank.getUser().id];
}
public function controlChanged(param1:IGameObject, param2:int) : void {
var local3:HullSmokeRenderer = HullSmokeRenderer(this.renders[param1.id]);
if(local3 == null) {
return;
}
var local4:int = int(this.controlStates[param1.id]);
var local5:Boolean = this.isForward(param2);
var local6:Boolean = this.isForward(local4);
if(local5 && !local6) {
local3.start();
} else if(!local5 && local6) {
local3.stop();
} else if(local4 != param2) {
local3.changeDirection();
}
this.controlStates[param1.id] = param2;
}
private function isForward(param1:int) : Boolean {
return param1 % 2 != 0;
}
}
}
|
package projects.tanks.client.battleselect
{
public interface IBattleSelectModelBase
{
}
}
|
package projects.tanks.client.battlefield.models.drone.demoman {
import projects.tanks.client.battlefield.types.Vector3d;
public interface IDroneExplosionModelBase {
function addExplosionEffect(param1:Vector3d, param2:Number) : void;
}
}
|
package alternativa.tanks.models.user.incoming {
import alternativa.tanks.gui.notinclan.clanslist.ClansListEvent;
import alternativa.tanks.models.service.ClanUserNotificationsManager;
import alternativa.tanks.models.user.ClanUserService;
import alternativa.tanks.models.user.IClanUserModel;
import alternativa.types.Long;
import platform.client.fp10.core.model.ObjectLoadListener;
import projects.tanks.client.clans.user.incoming.ClanUserIncomingModelBase;
import projects.tanks.client.clans.user.incoming.IClanUserIncomingModelBase;
[ModelInfo]
public class ClanUserIncomingModel extends ClanUserIncomingModelBase implements IClanUserIncomingModelBase, ObjectLoadListener, IClanUserIncomingModel {
[Inject]
public static var clanUserService:ClanUserService;
private var clans:Vector.<Long>;
public function ClanUserIncomingModel() {
super();
}
public function objectLoaded() : void {
if(!this.isServiceSpace()) {
return;
}
this.clans = getInitParam().objects.concat();
}
public function objectUnloaded() : void {
if(!this.isServiceSpace()) {
return;
}
this.clans.length = 0;
}
public function onAdding(param1:Long) : void {
if(!this.isServiceSpace()) {
return;
}
this.clans.push(param1);
ClanUserNotificationsManager.onIncomingNotification(param1);
ClansListEvent.getDispatcher().dispatchEvent(new ClansListEvent(ClansListEvent.INCOMING + ClansListEvent.ADD,param1));
}
public function onRemoved(param1:Long) : void {
if(!this.isServiceSpace()) {
return;
}
var local2:int = int(this.clans.indexOf(param1));
if(local2 >= 0) {
this.clans.splice(local2,1);
ClansListEvent.getDispatcher().dispatchEvent(new ClansListEvent(ClansListEvent.INCOMING + ClansListEvent.REMOVE,param1));
}
}
public function getIncomingClans() : Vector.<Long> {
return this.clans;
}
private function isServiceSpace() : Boolean {
return IClanUserModel(object.adapt(IClanUserModel)).loadingInServiceSpace();
}
}
}
|
package alternativa.tanks.gui {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.ItemInfoPanelBitmaps_cooldownFirstAidClass.png")]
public class ItemInfoPanelBitmaps_cooldownFirstAidClass extends BitmapAsset {
public function ItemInfoPanelBitmaps_cooldownFirstAidClass() {
super();
}
}
}
|
package specter.utils
{
import flash.display.InteractiveObject;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
public class KeyboardBinder
{
protected var keyBindings:Object;
private var eventSource:InteractiveObject;
public function KeyboardBinder(source:InteractiveObject)
{
super();
this.eventSource = source;
this.keyBindings = {};
}
public function enable() : void
{
this.eventSource.addEventListener(KeyboardEvent.KEY_DOWN,this.onKey);
this.eventSource.addEventListener(KeyboardEvent.KEY_UP,this.onKey);
}
public function disable() : void
{
this.eventSource.removeEventListener(KeyboardEvent.KEY_DOWN,this.onKey);
this.eventSource.removeEventListener(KeyboardEvent.KEY_UP,this.onKey);
}
private function onKey(e:KeyboardEvent) : void
{
var func:Function = this.keyBindings[e.keyCode];
if(func != null)
{
func.call(this,e.type == KeyboardEvent.KEY_DOWN);
}
}
public function bindKey(keyCode:uint, func:Function) : void
{
if(func != null)
{
this.keyBindings[keyCode] = func;
}
}
public function bind(keyCode:String, func:Function) : void
{
if(func != null)
{
this.keyBindings[Keyboard[keyCode]] = func;
}
}
public function unbindKey(keyCode:uint) : void
{
delete this.keyBindings[keyCode];
}
public function unbindAll() : void
{
var code:* = null;
for(code in this.keyBindings)
{
delete this.keyBindings[code];
}
}
}
}
|
package projects.tanks.client.panel.model.payment.modes.platbox {
public interface IPlatBoxPaymentModelBase {
function paymentError() : void;
function paymentInited() : void;
function phoneIsInvalid(param1:String) : void;
function phoneIsValid(param1:String) : void;
}
}
|
package platform.client.fp10.core.service.transport {
import flash.utils.ByteArray;
import platform.client.fp10.core.network.connection.ConnectionInitializers;
import platform.client.fp10.core.network.connection.IConnection;
import platform.client.fp10.core.network.handler.ControlCommandHandler;
public interface ITransportService {
function createConnection(param1:ConnectionInitializers) : IConnection;
function get controlCommandHandler() : ControlCommandHandler;
function get controlConnection() : IConnection;
function get hash() : ByteArray;
}
}
|
package alternativa.tanks.service.itempropertyparams.aggregationmodes {
public class UpgradeAggregationModes {
public static const SUM:UpgradeAggregationMode = new SumUpgradeAggregationMode();
public static const RANGE:UpgradeAggregationMode = new RangeUpgradeAggregationMode();
public static const CRIT:UpgradeAggregationMode = new CritUpgradeAggregationMode();
public static const INVERT:UpgradeAggregationMode = new InvertUpgradeAggregationMode();
public function UpgradeAggregationModes() {
super();
}
}
}
|
package projects.tanks.client.tanksservices.model.uidcheck {
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 UidCheckModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var _validateUidId:Long = Long.getLong(668941246,-1113168476);
private var _validateUid_uidCodec:ICodec;
private var model:IModel;
public function UidCheckModelServer(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._validateUid_uidCodec = this.protocol.getCodec(new TypeCodecInfo(String,false));
}
public function validateUid(param1:String) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._validateUid_uidCodec.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._validateUidId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
}
}
|
package alternativa.tanks.models.weapon.shaft {
import alternativa.math.Vector3;
import alternativa.physics.Body;
[ModelInterface]
public interface IShaftWeaponCallback {
function onBeginEnergyDrain(param1:int) : void;
function onAimedShot(param1:int, param2:Vector3, param3:Body, param4:Vector3) : void;
function onQuickShot(param1:int, param2:Vector3, param3:Body, param4:Vector3) : void;
function onManualTargetingStart() : void;
function onManualTargetingStop() : void;
function enteredInManualMode() : void;
}
}
|
package projects.tanks.client.chat.models.clanchat.clanchat {
public class ClanChatCC {
private var _inClan:Boolean;
private var _selfName:String;
public function ClanChatCC(param1:Boolean = false, param2:String = null) {
super();
this._inClan = param1;
this._selfName = param2;
}
public function get inClan() : Boolean {
return this._inClan;
}
public function set inClan(param1:Boolean) : void {
this._inClan = param1;
}
public function get selfName() : String {
return this._selfName;
}
public function set selfName(param1:String) : void {
this._selfName = param1;
}
public function toString() : String {
var local1:String = "ClanChatCC [";
local1 += "inClan = " + this.inClan + " ";
local1 += "selfName = " + this.selfName + " ";
return local1 + "]";
}
}
}
|
package projects.tanks.client.garage.osgi {
import _codec.projects.tanks.client.garage.models.garage.CodecGarageModelCC;
import _codec.projects.tanks.client.garage.models.garage.VectorCodecGarageModelCCLevel1;
import _codec.projects.tanks.client.garage.models.garage.passtoshop.CodecPassToShopCC;
import _codec.projects.tanks.client.garage.models.garage.passtoshop.VectorCodecPassToShopCCLevel1;
import _codec.projects.tanks.client.garage.models.garage.temperature.CodecTemperatureCC;
import _codec.projects.tanks.client.garage.models.garage.temperature.VectorCodecTemperatureCCLevel1;
import _codec.projects.tanks.client.garage.models.garagepreview.CodecGaragePreviewModelCC;
import _codec.projects.tanks.client.garage.models.garagepreview.VectorCodecGaragePreviewModelCCLevel1;
import _codec.projects.tanks.client.garage.models.item.buyable.CodecBuyableCC;
import _codec.projects.tanks.client.garage.models.item.buyable.VectorCodecBuyableCCLevel1;
import _codec.projects.tanks.client.garage.models.item.category.CodecItemCategoryCC;
import _codec.projects.tanks.client.garage.models.item.category.VectorCodecItemCategoryCCLevel1;
import _codec.projects.tanks.client.garage.models.item.container.CodecContainerGivenItem;
import _codec.projects.tanks.client.garage.models.item.container.CodecContainerItemCategory;
import _codec.projects.tanks.client.garage.models.item.container.VectorCodecContainerGivenItemLevel1;
import _codec.projects.tanks.client.garage.models.item.container.VectorCodecContainerItemCategoryLevel1;
import _codec.projects.tanks.client.garage.models.item.container.resources.CodecContainerResourceCC;
import _codec.projects.tanks.client.garage.models.item.container.resources.VectorCodecContainerResourceCCLevel1;
import _codec.projects.tanks.client.garage.models.item.countable.CodecCountableItemCC;
import _codec.projects.tanks.client.garage.models.item.countable.VectorCodecCountableItemCCLevel1;
import _codec.projects.tanks.client.garage.models.item.delaymount.CodecDelayMountCategoryCC;
import _codec.projects.tanks.client.garage.models.item.delaymount.VectorCodecDelayMountCategoryCCLevel1;
import _codec.projects.tanks.client.garage.models.item.device.CodecItemDevicesCC;
import _codec.projects.tanks.client.garage.models.item.device.VectorCodecItemDevicesCCLevel1;
import _codec.projects.tanks.client.garage.models.item.discount.CodecDiscountCC;
import _codec.projects.tanks.client.garage.models.item.discount.VectorCodecDiscountCCLevel1;
import _codec.projects.tanks.client.garage.models.item.discount.proabonement.CodecProAbonementRankDiscountCC;
import _codec.projects.tanks.client.garage.models.item.discount.proabonement.VectorCodecProAbonementRankDiscountCCLevel1;
import _codec.projects.tanks.client.garage.models.item.drone.CodecHasBatteriesNotifyCC;
import _codec.projects.tanks.client.garage.models.item.drone.VectorCodecHasBatteriesNotifyCCLevel1;
import _codec.projects.tanks.client.garage.models.item.droppablegold.CodecDroppableGoldItemCC;
import _codec.projects.tanks.client.garage.models.item.droppablegold.VectorCodecDroppableGoldItemCCLevel1;
import _codec.projects.tanks.client.garage.models.item.grouped.CodecGroupedCC;
import _codec.projects.tanks.client.garage.models.item.grouped.VectorCodecGroupedCCLevel1;
import _codec.projects.tanks.client.garage.models.item.item.CodecItemModelCC;
import _codec.projects.tanks.client.garage.models.item.item.VectorCodecItemModelCCLevel1;
import _codec.projects.tanks.client.garage.models.item.item3d.CodecItem3DCC;
import _codec.projects.tanks.client.garage.models.item.item3d.VectorCodecItem3DCCLevel1;
import _codec.projects.tanks.client.garage.models.item.itemforpartners.CodecItemEnabledForPartnerCC;
import _codec.projects.tanks.client.garage.models.item.itemforpartners.VectorCodecItemEnabledForPartnerCCLevel1;
import _codec.projects.tanks.client.garage.models.item.itempersonaldiscount.CodecDiscountData;
import _codec.projects.tanks.client.garage.models.item.itempersonaldiscount.CodecItemPersonalDiscountCC;
import _codec.projects.tanks.client.garage.models.item.itempersonaldiscount.VectorCodecDiscountDataLevel1;
import _codec.projects.tanks.client.garage.models.item.itempersonaldiscount.VectorCodecItemPersonalDiscountCCLevel1;
import _codec.projects.tanks.client.garage.models.item.kit.CodecGarageKitCC;
import _codec.projects.tanks.client.garage.models.item.kit.CodecKitItem;
import _codec.projects.tanks.client.garage.models.item.kit.VectorCodecGarageKitCCLevel1;
import _codec.projects.tanks.client.garage.models.item.kit.VectorCodecKitItemLevel1;
import _codec.projects.tanks.client.garage.models.item.mobilelootbox.deliverylootbox.CodecMobileLootBoxDeliveryCC;
import _codec.projects.tanks.client.garage.models.item.mobilelootbox.deliverylootbox.VectorCodecMobileLootBoxDeliveryCCLevel1;
import _codec.projects.tanks.client.garage.models.item.mobilelootbox.lootbox.CodecMobileLoot;
import _codec.projects.tanks.client.garage.models.item.mobilelootbox.lootbox.VectorCodecMobileLootLevel1;
import _codec.projects.tanks.client.garage.models.item.modification.CodecModificationCC;
import _codec.projects.tanks.client.garage.models.item.modification.VectorCodecModificationCCLevel1;
import _codec.projects.tanks.client.garage.models.item.object3ds.CodecObject3DSCC;
import _codec.projects.tanks.client.garage.models.item.object3ds.VectorCodecObject3DSCCLevel1;
import _codec.projects.tanks.client.garage.models.item.premium.CodecPremiumItemCC;
import _codec.projects.tanks.client.garage.models.item.premium.VectorCodecPremiumItemCCLevel1;
import _codec.projects.tanks.client.garage.models.item.present.CodecPresentItemCC;
import _codec.projects.tanks.client.garage.models.item.present.VectorCodecPresentItemCCLevel1;
import _codec.projects.tanks.client.garage.models.item.properties.CodecItemGaragePropertyData;
import _codec.projects.tanks.client.garage.models.item.properties.CodecItemPropertiesCC;
import _codec.projects.tanks.client.garage.models.item.properties.CodecItemProperty;
import _codec.projects.tanks.client.garage.models.item.properties.VectorCodecItemGaragePropertyDataLevel1;
import _codec.projects.tanks.client.garage.models.item.properties.VectorCodecItemPropertiesCCLevel1;
import _codec.projects.tanks.client.garage.models.item.properties.VectorCodecItemPropertyLevel1;
import _codec.projects.tanks.client.garage.models.item.rarity.CodecItemRarityCC;
import _codec.projects.tanks.client.garage.models.item.rarity.CodecRarity;
import _codec.projects.tanks.client.garage.models.item.rarity.VectorCodecItemRarityCCLevel1;
import _codec.projects.tanks.client.garage.models.item.rarity.VectorCodecRarityLevel1;
import _codec.projects.tanks.client.garage.models.item.relativeproperties.CodecRelativeProperties;
import _codec.projects.tanks.client.garage.models.item.relativeproperties.CodecRelativePropertiesCC;
import _codec.projects.tanks.client.garage.models.item.relativeproperties.CodecRelativeProperty;
import _codec.projects.tanks.client.garage.models.item.relativeproperties.VectorCodecRelativePropertiesCCLevel1;
import _codec.projects.tanks.client.garage.models.item.relativeproperties.VectorCodecRelativePropertiesLevel1;
import _codec.projects.tanks.client.garage.models.item.relativeproperties.VectorCodecRelativePropertyLevel1;
import _codec.projects.tanks.client.garage.models.item.resistance.CodecMountedResistancesCC;
import _codec.projects.tanks.client.garage.models.item.resistance.VectorCodecMountedResistancesCCLevel1;
import _codec.projects.tanks.client.garage.models.item.temporary.CodecTemporaryItemCC;
import _codec.projects.tanks.client.garage.models.item.temporary.VectorCodecTemporaryItemCCLevel1;
import _codec.projects.tanks.client.garage.models.item.upgradeable.CodecUpgradeParamsCC;
import _codec.projects.tanks.client.garage.models.item.upgradeable.VectorCodecUpgradeParamsCCLevel1;
import _codec.projects.tanks.client.garage.models.item.upgradeable.types.CodecGaragePropertyParams;
import _codec.projects.tanks.client.garage.models.item.upgradeable.types.CodecPropertyData;
import _codec.projects.tanks.client.garage.models.item.upgradeable.types.CodecUpgradeParamsData;
import _codec.projects.tanks.client.garage.models.item.upgradeable.types.VectorCodecGaragePropertyParamsLevel1;
import _codec.projects.tanks.client.garage.models.item.upgradeable.types.VectorCodecPropertyDataLevel1;
import _codec.projects.tanks.client.garage.models.item.upgradeable.types.VectorCodecUpgradeParamsDataLevel1;
import _codec.projects.tanks.client.garage.models.item.videoads.CodecVideoAdsItemUpgradeCC;
import _codec.projects.tanks.client.garage.models.item.videoads.VectorCodecVideoAdsItemUpgradeCCLevel1;
import _codec.projects.tanks.client.garage.models.item.view.CodecItemViewCategoryCC;
import _codec.projects.tanks.client.garage.models.item.view.VectorCodecItemViewCategoryCCLevel1;
import _codec.projects.tanks.client.garage.models.shopabonement.CodecShopAbonementCC;
import _codec.projects.tanks.client.garage.models.shopabonement.VectorCodecShopAbonementCCLevel1;
import _codec.projects.tanks.client.garage.models.user.present.CodecPresentItem;
import _codec.projects.tanks.client.garage.models.user.present.CodecPresentsCC;
import _codec.projects.tanks.client.garage.models.user.present.VectorCodecPresentItemLevel1;
import _codec.projects.tanks.client.garage.models.user.present.VectorCodecPresentsCCLevel1;
import _codec.projects.tanks.client.garage.skins.CodecAvailableSkinsCC;
import _codec.projects.tanks.client.garage.skins.CodecMountedSkinCC;
import _codec.projects.tanks.client.garage.skins.VectorCodecAvailableSkinsCCLevel1;
import _codec.projects.tanks.client.garage.skins.VectorCodecMountedSkinCCLevel1;
import _codec.projects.tanks.client.garage.skins.shot.CodecAvailableShotSkinsCC;
import _codec.projects.tanks.client.garage.skins.shot.VectorCodecAvailableShotSkinsCCLevel1;
import alternativa.osgi.OSGi;
import alternativa.osgi.bundle.IBundleActivator;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.EnumCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.registry.ModelRegistry;
import projects.tanks.client.garage.models.garage.GarageModelCC;
import projects.tanks.client.garage.models.garage.passtoshop.PassToShopCC;
import projects.tanks.client.garage.models.garage.temperature.TemperatureCC;
import projects.tanks.client.garage.models.garagepreview.GaragePreviewModelCC;
import projects.tanks.client.garage.models.item.buyable.BuyableCC;
import projects.tanks.client.garage.models.item.category.ItemCategoryCC;
import projects.tanks.client.garage.models.item.container.ContainerGivenItem;
import projects.tanks.client.garage.models.item.container.ContainerItemCategory;
import projects.tanks.client.garage.models.item.container.resources.ContainerResourceCC;
import projects.tanks.client.garage.models.item.countable.CountableItemCC;
import projects.tanks.client.garage.models.item.delaymount.DelayMountCategoryCC;
import projects.tanks.client.garage.models.item.device.ItemDevicesCC;
import projects.tanks.client.garage.models.item.discount.DiscountCC;
import projects.tanks.client.garage.models.item.discount.proabonement.ProAbonementRankDiscountCC;
import projects.tanks.client.garage.models.item.drone.HasBatteriesNotifyCC;
import projects.tanks.client.garage.models.item.droppablegold.DroppableGoldItemCC;
import projects.tanks.client.garage.models.item.grouped.GroupedCC;
import projects.tanks.client.garage.models.item.item.ItemModelCC;
import projects.tanks.client.garage.models.item.item3d.Item3DCC;
import projects.tanks.client.garage.models.item.itemforpartners.ItemEnabledForPartnerCC;
import projects.tanks.client.garage.models.item.itempersonaldiscount.DiscountData;
import projects.tanks.client.garage.models.item.itempersonaldiscount.ItemPersonalDiscountCC;
import projects.tanks.client.garage.models.item.kit.GarageKitCC;
import projects.tanks.client.garage.models.item.kit.KitItem;
import projects.tanks.client.garage.models.item.mobilelootbox.deliverylootbox.MobileLootBoxDeliveryCC;
import projects.tanks.client.garage.models.item.mobilelootbox.lootbox.MobileLoot;
import projects.tanks.client.garage.models.item.modification.ModificationCC;
import projects.tanks.client.garage.models.item.object3ds.Object3DSCC;
import projects.tanks.client.garage.models.item.premium.PremiumItemCC;
import projects.tanks.client.garage.models.item.present.PresentItemCC;
import projects.tanks.client.garage.models.item.properties.ItemGaragePropertyData;
import projects.tanks.client.garage.models.item.properties.ItemPropertiesCC;
import projects.tanks.client.garage.models.item.properties.ItemProperty;
import projects.tanks.client.garage.models.item.rarity.ItemRarityCC;
import projects.tanks.client.garage.models.item.rarity.Rarity;
import projects.tanks.client.garage.models.item.relativeproperties.RelativeProperties;
import projects.tanks.client.garage.models.item.relativeproperties.RelativePropertiesCC;
import projects.tanks.client.garage.models.item.relativeproperties.RelativeProperty;
import projects.tanks.client.garage.models.item.resistance.MountedResistancesCC;
import projects.tanks.client.garage.models.item.temporary.TemporaryItemCC;
import projects.tanks.client.garage.models.item.upgradeable.UpgradeParamsCC;
import projects.tanks.client.garage.models.item.upgradeable.types.GaragePropertyParams;
import projects.tanks.client.garage.models.item.upgradeable.types.PropertyData;
import projects.tanks.client.garage.models.item.upgradeable.types.UpgradeParamsData;
import projects.tanks.client.garage.models.item.videoads.VideoAdsItemUpgradeCC;
import projects.tanks.client.garage.models.item.view.ItemViewCategoryCC;
import projects.tanks.client.garage.models.shopabonement.ShopAbonementCC;
import projects.tanks.client.garage.models.user.present.PresentItem;
import projects.tanks.client.garage.models.user.present.PresentsCC;
import projects.tanks.client.garage.skins.AvailableSkinsCC;
import projects.tanks.client.garage.skins.MountedSkinCC;
import projects.tanks.client.garage.skins.shot.AvailableShotSkinsCC;
public class Activator implements IBundleActivator {
public static var osgi:OSGi;
public function Activator() {
super();
}
public function start(param1:OSGi) : void {
var local4:ICodec = null;
osgi = param1;
var local2:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(930502521,-307520123));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(1219192892,689165557));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(859726007,514386313));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(933245382,1068161023));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(1177280707,-1253059324));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(1672979457,540290587));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(450776038,1263898393));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(939753622,116528378));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(952716796,14349239));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(2006024142,-2135822943));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(1235090973,1845524944));
local2.register(Long.getLong(1718746868,-1910730614),Long.getLong(1589955723,815412220));
local2.register(Long.getLong(888433053,2115284408),Long.getLong(759000870,-1549014702));
local2.register(Long.getLong(293210276,-627719811),Long.getLong(2126423224,-768730341));
local2.register(Long.getLong(868501559,1837500388),Long.getLong(1619306003,844016486));
local2.register(Long.getLong(104346758,-1948098183),Long.getLong(1773038483,1761949850));
local2.register(Long.getLong(1980083488,639502934),Long.getLong(910382979,820768829));
local2.register(Long.getLong(1980083488,639502934),Long.getLong(447542744,65837337));
local2.register(Long.getLong(895763411,-290717027),Long.getLong(414752496,-1868458890));
local2.register(Long.getLong(895763411,-290717027),Long.getLong(1978161324,62150420));
local2.register(Long.getLong(563557196,-1799629517),Long.getLong(1519071544,-862454895));
local2.register(Long.getLong(793986940,265050196),Long.getLong(812687689,208178107));
local2.register(Long.getLong(793986940,265050196),Long.getLong(857495400,624501804));
local2.register(Long.getLong(793986940,265050196),Long.getLong(1398628694,-1349788069));
local2.register(Long.getLong(1632109435,-443674078),Long.getLong(1354999069,-1103449185));
local2.register(Long.getLong(841189855,-1268110049),Long.getLong(1282635693,192675762));
local2.register(Long.getLong(841189855,-1268110049),Long.getLong(2064863564,657165826));
var local3:IProtocol = IProtocol(osgi.getService(IProtocol));
local4 = new CodecGarageModelCC();
local3.registerCodec(new TypeCodecInfo(GarageModelCC,false),local4);
local3.registerCodec(new TypeCodecInfo(GarageModelCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecPassToShopCC();
local3.registerCodec(new TypeCodecInfo(PassToShopCC,false),local4);
local3.registerCodec(new TypeCodecInfo(PassToShopCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTemperatureCC();
local3.registerCodec(new TypeCodecInfo(TemperatureCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TemperatureCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecGaragePreviewModelCC();
local3.registerCodec(new TypeCodecInfo(GaragePreviewModelCC,false),local4);
local3.registerCodec(new TypeCodecInfo(GaragePreviewModelCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecBuyableCC();
local3.registerCodec(new TypeCodecInfo(BuyableCC,false),local4);
local3.registerCodec(new TypeCodecInfo(BuyableCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemCategoryCC();
local3.registerCodec(new TypeCodecInfo(ItemCategoryCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemCategoryCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecContainerGivenItem();
local3.registerCodec(new TypeCodecInfo(ContainerGivenItem,false),local4);
local3.registerCodec(new TypeCodecInfo(ContainerGivenItem,true),new OptionalCodecDecorator(local4));
local4 = new CodecContainerItemCategory();
local3.registerCodec(new EnumCodecInfo(ContainerItemCategory,false),local4);
local3.registerCodec(new EnumCodecInfo(ContainerItemCategory,true),new OptionalCodecDecorator(local4));
local4 = new CodecContainerResourceCC();
local3.registerCodec(new TypeCodecInfo(ContainerResourceCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ContainerResourceCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecCountableItemCC();
local3.registerCodec(new TypeCodecInfo(CountableItemCC,false),local4);
local3.registerCodec(new TypeCodecInfo(CountableItemCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDelayMountCategoryCC();
local3.registerCodec(new TypeCodecInfo(DelayMountCategoryCC,false),local4);
local3.registerCodec(new TypeCodecInfo(DelayMountCategoryCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemDevicesCC();
local3.registerCodec(new TypeCodecInfo(ItemDevicesCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemDevicesCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDiscountCC();
local3.registerCodec(new TypeCodecInfo(DiscountCC,false),local4);
local3.registerCodec(new TypeCodecInfo(DiscountCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecProAbonementRankDiscountCC();
local3.registerCodec(new TypeCodecInfo(ProAbonementRankDiscountCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ProAbonementRankDiscountCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecHasBatteriesNotifyCC();
local3.registerCodec(new TypeCodecInfo(HasBatteriesNotifyCC,false),local4);
local3.registerCodec(new TypeCodecInfo(HasBatteriesNotifyCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDroppableGoldItemCC();
local3.registerCodec(new TypeCodecInfo(DroppableGoldItemCC,false),local4);
local3.registerCodec(new TypeCodecInfo(DroppableGoldItemCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecGroupedCC();
local3.registerCodec(new TypeCodecInfo(GroupedCC,false),local4);
local3.registerCodec(new TypeCodecInfo(GroupedCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemModelCC();
local3.registerCodec(new TypeCodecInfo(ItemModelCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemModelCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecItem3DCC();
local3.registerCodec(new TypeCodecInfo(Item3DCC,false),local4);
local3.registerCodec(new TypeCodecInfo(Item3DCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemEnabledForPartnerCC();
local3.registerCodec(new TypeCodecInfo(ItemEnabledForPartnerCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemEnabledForPartnerCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecDiscountData();
local3.registerCodec(new TypeCodecInfo(DiscountData,false),local4);
local3.registerCodec(new TypeCodecInfo(DiscountData,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemPersonalDiscountCC();
local3.registerCodec(new TypeCodecInfo(ItemPersonalDiscountCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemPersonalDiscountCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecGarageKitCC();
local3.registerCodec(new TypeCodecInfo(GarageKitCC,false),local4);
local3.registerCodec(new TypeCodecInfo(GarageKitCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecKitItem();
local3.registerCodec(new TypeCodecInfo(KitItem,false),local4);
local3.registerCodec(new TypeCodecInfo(KitItem,true),new OptionalCodecDecorator(local4));
local4 = new CodecMobileLootBoxDeliveryCC();
local3.registerCodec(new TypeCodecInfo(MobileLootBoxDeliveryCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MobileLootBoxDeliveryCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecMobileLoot();
local3.registerCodec(new TypeCodecInfo(MobileLoot,false),local4);
local3.registerCodec(new TypeCodecInfo(MobileLoot,true),new OptionalCodecDecorator(local4));
local4 = new CodecModificationCC();
local3.registerCodec(new TypeCodecInfo(ModificationCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ModificationCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecObject3DSCC();
local3.registerCodec(new TypeCodecInfo(Object3DSCC,false),local4);
local3.registerCodec(new TypeCodecInfo(Object3DSCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecPremiumItemCC();
local3.registerCodec(new TypeCodecInfo(PremiumItemCC,false),local4);
local3.registerCodec(new TypeCodecInfo(PremiumItemCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecPresentItemCC();
local3.registerCodec(new TypeCodecInfo(PresentItemCC,false),local4);
local3.registerCodec(new TypeCodecInfo(PresentItemCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemGaragePropertyData();
local3.registerCodec(new TypeCodecInfo(ItemGaragePropertyData,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemGaragePropertyData,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemPropertiesCC();
local3.registerCodec(new TypeCodecInfo(ItemPropertiesCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemPropertiesCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemProperty();
local3.registerCodec(new EnumCodecInfo(ItemProperty,false),local4);
local3.registerCodec(new EnumCodecInfo(ItemProperty,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemRarityCC();
local3.registerCodec(new TypeCodecInfo(ItemRarityCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemRarityCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRarity();
local3.registerCodec(new EnumCodecInfo(Rarity,false),local4);
local3.registerCodec(new EnumCodecInfo(Rarity,true),new OptionalCodecDecorator(local4));
local4 = new CodecRelativeProperties();
local3.registerCodec(new EnumCodecInfo(RelativeProperties,false),local4);
local3.registerCodec(new EnumCodecInfo(RelativeProperties,true),new OptionalCodecDecorator(local4));
local4 = new CodecRelativePropertiesCC();
local3.registerCodec(new TypeCodecInfo(RelativePropertiesCC,false),local4);
local3.registerCodec(new TypeCodecInfo(RelativePropertiesCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecRelativeProperty();
local3.registerCodec(new TypeCodecInfo(RelativeProperty,false),local4);
local3.registerCodec(new TypeCodecInfo(RelativeProperty,true),new OptionalCodecDecorator(local4));
local4 = new CodecMountedResistancesCC();
local3.registerCodec(new TypeCodecInfo(MountedResistancesCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MountedResistancesCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecTemporaryItemCC();
local3.registerCodec(new TypeCodecInfo(TemporaryItemCC,false),local4);
local3.registerCodec(new TypeCodecInfo(TemporaryItemCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecUpgradeParamsCC();
local3.registerCodec(new TypeCodecInfo(UpgradeParamsCC,false),local4);
local3.registerCodec(new TypeCodecInfo(UpgradeParamsCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecGaragePropertyParams();
local3.registerCodec(new TypeCodecInfo(GaragePropertyParams,false),local4);
local3.registerCodec(new TypeCodecInfo(GaragePropertyParams,true),new OptionalCodecDecorator(local4));
local4 = new CodecPropertyData();
local3.registerCodec(new TypeCodecInfo(PropertyData,false),local4);
local3.registerCodec(new TypeCodecInfo(PropertyData,true),new OptionalCodecDecorator(local4));
local4 = new CodecUpgradeParamsData();
local3.registerCodec(new TypeCodecInfo(UpgradeParamsData,false),local4);
local3.registerCodec(new TypeCodecInfo(UpgradeParamsData,true),new OptionalCodecDecorator(local4));
local4 = new CodecVideoAdsItemUpgradeCC();
local3.registerCodec(new TypeCodecInfo(VideoAdsItemUpgradeCC,false),local4);
local3.registerCodec(new TypeCodecInfo(VideoAdsItemUpgradeCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecItemViewCategoryCC();
local3.registerCodec(new TypeCodecInfo(ItemViewCategoryCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ItemViewCategoryCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecShopAbonementCC();
local3.registerCodec(new TypeCodecInfo(ShopAbonementCC,false),local4);
local3.registerCodec(new TypeCodecInfo(ShopAbonementCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecPresentItem();
local3.registerCodec(new TypeCodecInfo(PresentItem,false),local4);
local3.registerCodec(new TypeCodecInfo(PresentItem,true),new OptionalCodecDecorator(local4));
local4 = new CodecPresentsCC();
local3.registerCodec(new TypeCodecInfo(PresentsCC,false),local4);
local3.registerCodec(new TypeCodecInfo(PresentsCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecAvailableSkinsCC();
local3.registerCodec(new TypeCodecInfo(AvailableSkinsCC,false),local4);
local3.registerCodec(new TypeCodecInfo(AvailableSkinsCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecMountedSkinCC();
local3.registerCodec(new TypeCodecInfo(MountedSkinCC,false),local4);
local3.registerCodec(new TypeCodecInfo(MountedSkinCC,true),new OptionalCodecDecorator(local4));
local4 = new CodecAvailableShotSkinsCC();
local3.registerCodec(new TypeCodecInfo(AvailableShotSkinsCC,false),local4);
local3.registerCodec(new TypeCodecInfo(AvailableShotSkinsCC,true),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGarageModelCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GarageModelCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GarageModelCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGarageModelCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GarageModelCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GarageModelCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPassToShopCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PassToShopCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PassToShopCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPassToShopCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PassToShopCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PassToShopCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTemperatureCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TemperatureCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TemperatureCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTemperatureCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TemperatureCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TemperatureCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGaragePreviewModelCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaragePreviewModelCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaragePreviewModelCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGaragePreviewModelCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaragePreviewModelCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaragePreviewModelCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBuyableCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BuyableCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BuyableCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecBuyableCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BuyableCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(BuyableCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemCategoryCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemCategoryCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemCategoryCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemCategoryCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemCategoryCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemCategoryCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecContainerGivenItemLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerGivenItem,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerGivenItem,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecContainerGivenItemLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerGivenItem,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerGivenItem,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecContainerItemCategoryLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ContainerItemCategory,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ContainerItemCategory,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecContainerItemCategoryLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ContainerItemCategory,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ContainerItemCategory,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecContainerResourceCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerResourceCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerResourceCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecContainerResourceCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerResourceCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerResourceCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecCountableItemCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CountableItemCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CountableItemCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecCountableItemCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CountableItemCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(CountableItemCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDelayMountCategoryCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DelayMountCategoryCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DelayMountCategoryCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDelayMountCategoryCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DelayMountCategoryCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DelayMountCategoryCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemDevicesCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemDevicesCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemDevicesCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemDevicesCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemDevicesCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemDevicesCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDiscountCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DiscountCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DiscountCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDiscountCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DiscountCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DiscountCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecProAbonementRankDiscountCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ProAbonementRankDiscountCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ProAbonementRankDiscountCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecProAbonementRankDiscountCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ProAbonementRankDiscountCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ProAbonementRankDiscountCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHasBatteriesNotifyCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HasBatteriesNotifyCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HasBatteriesNotifyCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecHasBatteriesNotifyCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HasBatteriesNotifyCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(HasBatteriesNotifyCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDroppableGoldItemCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroppableGoldItemCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroppableGoldItemCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDroppableGoldItemCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroppableGoldItemCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DroppableGoldItemCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGroupedCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GroupedCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GroupedCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGroupedCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GroupedCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GroupedCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemModelCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemModelCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemModelCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemModelCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemModelCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemModelCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItem3DCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Item3DCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Item3DCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItem3DCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Item3DCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Item3DCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemEnabledForPartnerCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemEnabledForPartnerCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemEnabledForPartnerCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemEnabledForPartnerCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemEnabledForPartnerCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemEnabledForPartnerCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDiscountDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DiscountData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DiscountData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecDiscountDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DiscountData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(DiscountData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemPersonalDiscountCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemPersonalDiscountCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemPersonalDiscountCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemPersonalDiscountCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemPersonalDiscountCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemPersonalDiscountCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGarageKitCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GarageKitCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GarageKitCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGarageKitCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GarageKitCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GarageKitCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecKitItemLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KitItem,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KitItem,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecKitItemLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KitItem,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(KitItem,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMobileLootBoxDeliveryCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MobileLootBoxDeliveryCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MobileLootBoxDeliveryCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMobileLootBoxDeliveryCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MobileLootBoxDeliveryCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MobileLootBoxDeliveryCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMobileLootLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MobileLoot,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MobileLoot,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMobileLootLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MobileLoot,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MobileLoot,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecModificationCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ModificationCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ModificationCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecModificationCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ModificationCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ModificationCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecObject3DSCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Object3DSCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Object3DSCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecObject3DSCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Object3DSCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(Object3DSCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPremiumItemCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PremiumItemCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PremiumItemCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPremiumItemCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PremiumItemCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PremiumItemCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPresentItemCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItemCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItemCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPresentItemCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItemCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItemCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemGaragePropertyDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemGaragePropertyData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemGaragePropertyData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemGaragePropertyDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemGaragePropertyData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemGaragePropertyData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemPropertiesCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemPropertiesCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemPropertiesCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemPropertiesCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemPropertiesCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemPropertiesCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemPropertyLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemProperty,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemProperty,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemPropertyLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemProperty,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(ItemProperty,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemRarityCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemRarityCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemRarityCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemRarityCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemRarityCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemRarityCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRarityLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(Rarity,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(Rarity,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRarityLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(Rarity,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(Rarity,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRelativePropertiesCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RelativePropertiesCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RelativePropertiesCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRelativePropertiesCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RelativePropertiesCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RelativePropertiesCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRelativePropertiesLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(RelativeProperties,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(RelativeProperties,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRelativePropertiesLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(RelativeProperties,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new EnumCodecInfo(RelativeProperties,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRelativePropertyLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RelativeProperty,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RelativeProperty,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecRelativePropertyLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RelativeProperty,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(RelativeProperty,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMountedResistancesCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MountedResistancesCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MountedResistancesCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMountedResistancesCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MountedResistancesCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MountedResistancesCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTemporaryItemCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TemporaryItemCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TemporaryItemCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecTemporaryItemCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TemporaryItemCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(TemporaryItemCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecUpgradeParamsCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UpgradeParamsCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UpgradeParamsCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecUpgradeParamsCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UpgradeParamsCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UpgradeParamsCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGaragePropertyParamsLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaragePropertyParams,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaragePropertyParams,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecGaragePropertyParamsLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaragePropertyParams,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(GaragePropertyParams,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPropertyDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PropertyData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PropertyData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPropertyDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PropertyData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PropertyData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecUpgradeParamsDataLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UpgradeParamsData,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UpgradeParamsData,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecUpgradeParamsDataLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UpgradeParamsData,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(UpgradeParamsData,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecVideoAdsItemUpgradeCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VideoAdsItemUpgradeCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VideoAdsItemUpgradeCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecVideoAdsItemUpgradeCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VideoAdsItemUpgradeCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(VideoAdsItemUpgradeCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemViewCategoryCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemViewCategoryCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemViewCategoryCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecItemViewCategoryCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemViewCategoryCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ItemViewCategoryCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShopAbonementCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShopAbonementCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShopAbonementCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecShopAbonementCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShopAbonementCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(ShopAbonementCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPresentItemLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItem,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItem,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPresentItemLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItem,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentItem,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPresentsCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentsCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentsCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecPresentsCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentsCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(PresentsCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecAvailableSkinsCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AvailableSkinsCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AvailableSkinsCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecAvailableSkinsCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AvailableSkinsCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AvailableSkinsCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMountedSkinCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MountedSkinCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MountedSkinCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecMountedSkinCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MountedSkinCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(MountedSkinCC,true),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecAvailableShotSkinsCCLevel1(false);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AvailableShotSkinsCC,false),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AvailableShotSkinsCC,false),true,1),new OptionalCodecDecorator(local4));
local4 = new VectorCodecAvailableShotSkinsCCLevel1(true);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AvailableShotSkinsCC,true),false,1),local4);
local3.registerCodec(new CollectionCodecInfo(new TypeCodecInfo(AvailableShotSkinsCC,true),true,1),new OptionalCodecDecorator(local4));
}
public function stop(param1:OSGi) : void {
}
}
}
|
package alternativa.tanks.gui.notinclan.clanslist {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.notinclan.clanslist.AcceptIndicator_iconClass.png")]
public class AcceptIndicator_iconClass extends BitmapAsset {
public function AcceptIndicator_iconClass() {
super();
}
}
}
|
package alternativa.resource
{
import alternativa.init.Main;
import alternativa.osgi.service.log.ILogService;
import alternativa.osgi.service.log.LogLevel;
import flash.events.ErrorEvent;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;
import flash.events.SampleDataEvent;
import flash.events.SecurityErrorEvent;
import flash.media.Sound;
import flash.media.SoundLoaderContext;
import flash.net.URLRequest;
public class SoundResource extends Resource
{
private static const LOADING_STATE_SOUND:int = LOADING_STATE_INFO + 1;
private var _sound:Sound;
public function SoundResource()
{
super("Звук");
}
public function get sound() : Sound
{
return this._sound;
}
override protected function doUnload() : void
{
this._sound = null;
}
override protected function doClose() : void
{
if(loadingState == LOADING_STATE_SOUND)
{
this._sound.close();
}
}
override protected function loadResourceData() : void
{
this._sound = new Sound();
this._sound.addEventListener(Event.OPEN,this.onLoadingOpen);
this._sound.addEventListener(ProgressEvent.PROGRESS,this.onLoadingProgress);
this._sound.addEventListener(Event.COMPLETE,this.onLoadingComplete);
this._sound.addEventListener(IOErrorEvent.IO_ERROR,this.onLoadingError);
this._sound.addEventListener(SecurityErrorEvent.SECURITY_ERROR,this.onLoadingError);
this._sound.load(new URLRequest(url + "sound.mp3"),new SoundLoaderContext());
startTimeoutTimer();
}
override protected function createDummyData() : Boolean
{
this._sound = new Sound();
this._sound.addEventListener(SampleDataEvent.SAMPLE_DATA,this.onSampleData);
return true;
}
private function onSampleData(event:SampleDataEvent) : void
{
}
private function onLoadingOpen(event:Event) : void
{
loadingState = LOADING_STATE_SOUND;
}
private function onLoadingProgress(e:ProgressEvent) : void
{
loadingProgress(e.bytesLoaded,e.bytesTotal);
}
private function onLoadingComplete(e:Event) : void
{
setIdleLoadingState();
completeLoading();
}
private function onLoadingError(e:ErrorEvent) : void
{
ILogService(Main.osgi.getService(ILogService)).log(LogLevel.LOG_ERROR,e.text);
this.createDummyData();
completeLoading();
setStatus("Dummy sound is used");
}
}
}
|
package projects.tanks.client.panel.model.shop.price {
public interface IShopItemModelBase {
}
}
|
package alternativa.osgi.service.locale
{
import flash.display.BitmapData;
import flash.utils.Dictionary;
public class LocaleService implements ILocaleService
{
private var _language:String;
private var texts:Dictionary;
private var images:Dictionary;
public function LocaleService(language:String)
{
super();
this._language = language;
this.texts = new Dictionary();
this.images = new Dictionary();
}
public function registerText(id:String, text:String) : void
{
this.texts[id] = text;
}
public function registerTextArray(id:String, textArray:Array) : void
{
this.texts[id] = textArray;
}
public function registerTextMulty(localeData:Array) : void
{
var len:int = localeData.length;
for(var i:int = 0; i < len; i += 2)
{
this.registerText(localeData[i],localeData[i + 1]);
}
}
public function registerImage(id:String, image:BitmapData) : void
{
this.images[id] = image;
}
public function getText(id:String, ... vars) : String
{
var text:String = this.texts[id] != null ? this.texts[id] : id;
for(var i:int = 0; i < vars.length; i++)
{
text = text.replace("%" + (i + 1),vars[i]);
}
return text;
}
public function getTextArray(id:String) : Array
{
return this.texts[id] != null ? this.texts[id] : new Array();
}
public function getImage(id:String) : BitmapData
{
return this.images[id];
}
public function get language() : String
{
return this._language;
}
}
}
|
package _codec.projects.tanks.client.panel.model.battleinvite {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.panel.model.battleinvite.BattleInviteMessage;
import projects.tanks.client.tanksservices.types.battle.BattleInfoData;
public class CodecBattleInviteMessage implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_availableSlot:ICodec;
private var codec_battleData:ICodec;
public function CodecBattleInviteMessage() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_availableSlot = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_battleData = param1.getCodec(new TypeCodecInfo(BattleInfoData,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:BattleInviteMessage = new BattleInviteMessage();
local2.availableSlot = this.codec_availableSlot.decode(param1) as Boolean;
local2.battleData = this.codec_battleData.decode(param1) as BattleInfoData;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:BattleInviteMessage = BattleInviteMessage(param2);
this.codec_availableSlot.encode(param1,local3.availableSlot);
this.codec_battleData.encode(param1,local3.battleData);
}
}
}
|
package alternativa.tanks.model.item.upgradable {
import projects.tanks.client.garage.models.item.videoads.IVideoAdsItemUpgradeModelBase;
import projects.tanks.client.garage.models.item.videoads.VideoAdsItemUpgradeModelBase;
[ModelInfo]
public class VideoAdsItemUpgradeModel extends VideoAdsItemUpgradeModelBase implements IVideoAdsItemUpgradeModelBase {
public function VideoAdsItemUpgradeModel() {
super();
}
public function maxAdsShowed(param1:int) : void {
}
}
}
|
package alternativa.tanks.model.shop.items.base
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class GreenShopItemSkin_normalStateClass extends BitmapAsset
{
public function GreenShopItemSkin_normalStateClass()
{
super();
}
}
}
|
package alternativa.tanks.battle.events {
public class PauseActivationEvent {
public var idleTimeLeft:int;
public function PauseActivationEvent(param1:int) {
super();
this.idleTimeLeft = param1;
}
}
}
|
package alternativa.tanks.view.battlelist.friends {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.view.battlelist.friends.FriendsIndicator_friendsGreyClass.png")]
public class FriendsIndicator_friendsGreyClass extends BitmapAsset {
public function FriendsIndicator_friendsGreyClass() {
super();
}
}
}
|
package projects.tanks.client.tanksservices.model.logging.gamescreen {
public class GameScreen {
public static const PAYMENT:GameScreen = new GameScreen(0,"PAYMENT");
public static const QUESTS:GameScreen = new GameScreen(1,"QUESTS");
public static const BATTLE_SELECT:GameScreen = new GameScreen(2,"BATTLE_SELECT");
public static const GARAGE:GameScreen = new GameScreen(3,"GARAGE");
public static const FRIENDS:GameScreen = new GameScreen(4,"FRIENDS");
public static const SETTINGS:GameScreen = new GameScreen(5,"SETTINGS");
public static const BATTLE:GameScreen = new GameScreen(6,"BATTLE");
public static const STATISTICS:GameScreen = new GameScreen(7,"STATISTICS");
public static const EXIT_GAME:GameScreen = new GameScreen(8,"EXIT_GAME");
public static const CLAN:GameScreen = new GameScreen(9,"CLAN");
public static const MATCHMAKING:GameScreen = new GameScreen(10,"MATCHMAKING");
public static const ANDROID_SCREEN_HOME:GameScreen = new GameScreen(11,"ANDROID_SCREEN_HOME");
public static const ANDROID_SCREEN_BATTLES:GameScreen = new GameScreen(12,"ANDROID_SCREEN_BATTLES");
public static const ANDROID_SCREEN_QUEST:GameScreen = new GameScreen(13,"ANDROID_SCREEN_QUEST");
public static const ANDROID_SCREEN_WEEKLY_REWARDS:GameScreen = new GameScreen(14,"ANDROID_SCREEN_WEEKLY_REWARDS");
public static const ANDROID_SCREEN_BEGINNER_QUEST:GameScreen = new GameScreen(15,"ANDROID_SCREEN_BEGINNER_QUEST");
public static const ANDROID_SCREEN_COMMUNICATOR_NEWS:GameScreen = new GameScreen(16,"ANDROID_SCREEN_COMMUNICATOR_NEWS");
public static const ANDROID_SCREEN_UNKNOWN:GameScreen = new GameScreen(17,"ANDROID_SCREEN_UNKNOWN");
public static const ANDROID_SCREEN_SETTINGS_ACCOUNT:GameScreen = new GameScreen(18,"ANDROID_SCREEN_SETTINGS_ACCOUNT");
public static const ANDROID_SCREEN_SETTINGS_GRAPHIC:GameScreen = new GameScreen(19,"ANDROID_SCREEN_SETTINGS_GRAPHIC");
public static const ANDROID_SCREEN_SETTINGS_SOUND:GameScreen = new GameScreen(20,"ANDROID_SCREEN_SETTINGS_SOUND");
public static const ANDROID_SCREEN_SETTINGS_GAME:GameScreen = new GameScreen(21,"ANDROID_SCREEN_SETTINGS_GAME");
public static const ANDROID_SCREEN_SETTINGS_CONTROL:GameScreen = new GameScreen(22,"ANDROID_SCREEN_SETTINGS_CONTROL");
public static const ANDROID_SCREEN_SETTINGS_HUD:GameScreen = new GameScreen(23,"ANDROID_SCREEN_SETTINGS_HUD");
public static const ANDROID_SCREEN_GARAGE_WEAPON:GameScreen = new GameScreen(24,"ANDROID_SCREEN_GARAGE_WEAPON");
public static const ANDROID_SCREEN_GARAGE_ARMOR:GameScreen = new GameScreen(25,"ANDROID_SCREEN_GARAGE_ARMOR");
public static const ANDROID_SCREEN_GARAGE_PAINT:GameScreen = new GameScreen(26,"ANDROID_SCREEN_GARAGE_PAINT");
public static const ANDROID_SCREEN_GARAGE_INVENTORY:GameScreen = new GameScreen(27,"ANDROID_SCREEN_GARAGE_INVENTORY");
public static const ANDROID_SCREEN_GARAGE_KIT:GameScreen = new GameScreen(28,"ANDROID_SCREEN_GARAGE_KIT");
public static const ANDROID_SCREEN_GARAGE_SPECIAL:GameScreen = new GameScreen(29,"ANDROID_SCREEN_GARAGE_SPECIAL");
public static const ANDROID_SCREEN_GARAGE_GIVEN_PRESENTS:GameScreen = new GameScreen(30,"ANDROID_SCREEN_GARAGE_GIVEN_PRESENTS");
public static const ANDROID_SCREEN_GARAGE_RESISTANCE:GameScreen = new GameScreen(31,"ANDROID_SCREEN_GARAGE_RESISTANCE");
public static const ANDROID_SCREEN_GARAGE_DRONE:GameScreen = new GameScreen(32,"ANDROID_SCREEN_GARAGE_DRONE");
public static const ANDROID_SCREEN_GARAGE_SKINS:GameScreen = new GameScreen(33,"ANDROID_SCREEN_GARAGE_SKINS");
public static const ANDROID_SCREEN_SHOP_CRYSTALS:GameScreen = new GameScreen(34,"ANDROID_SCREEN_SHOP_CRYSTALS");
public static const ANDROID_SCREEN_SHOP_PREMIUM:GameScreen = new GameScreen(35,"ANDROID_SCREEN_SHOP_PREMIUM");
public static const ANDROID_SCREEN_SHOP_GOLD_BOXES:GameScreen = new GameScreen(36,"ANDROID_SCREEN_SHOP_GOLD_BOXES");
public static const ANDROID_SCREEN_SHOP_PAINTS:GameScreen = new GameScreen(37,"ANDROID_SCREEN_SHOP_PAINTS");
public static const ANDROID_SCREEN_SHOP_KITS:GameScreen = new GameScreen(38,"ANDROID_SCREEN_SHOP_KITS");
public static const ANDROID_SCREEN_SHOP_OTHERS:GameScreen = new GameScreen(39,"ANDROID_SCREEN_SHOP_OTHERS");
public static const ANDROID_SCREEN_SHOP_LOOT_BOXES:GameScreen = new GameScreen(40,"ANDROID_SCREEN_SHOP_LOOT_BOXES");
public static const ANDROID_SCREEN_SHOP_NO_CATEGORY:GameScreen = new GameScreen(41,"ANDROID_SCREEN_SHOP_NO_CATEGORY");
private var _value:int;
private var _name:String;
public function GameScreen(param1:int, param2:String) {
super();
this._value = param1;
this._name = param2;
}
public static function get values() : Vector.<GameScreen> {
var local1:Vector.<GameScreen> = new Vector.<GameScreen>();
local1.push(PAYMENT);
local1.push(QUESTS);
local1.push(BATTLE_SELECT);
local1.push(GARAGE);
local1.push(FRIENDS);
local1.push(SETTINGS);
local1.push(BATTLE);
local1.push(STATISTICS);
local1.push(EXIT_GAME);
local1.push(CLAN);
local1.push(MATCHMAKING);
local1.push(ANDROID_SCREEN_HOME);
local1.push(ANDROID_SCREEN_BATTLES);
local1.push(ANDROID_SCREEN_QUEST);
local1.push(ANDROID_SCREEN_WEEKLY_REWARDS);
local1.push(ANDROID_SCREEN_BEGINNER_QUEST);
local1.push(ANDROID_SCREEN_COMMUNICATOR_NEWS);
local1.push(ANDROID_SCREEN_UNKNOWN);
local1.push(ANDROID_SCREEN_SETTINGS_ACCOUNT);
local1.push(ANDROID_SCREEN_SETTINGS_GRAPHIC);
local1.push(ANDROID_SCREEN_SETTINGS_SOUND);
local1.push(ANDROID_SCREEN_SETTINGS_GAME);
local1.push(ANDROID_SCREEN_SETTINGS_CONTROL);
local1.push(ANDROID_SCREEN_SETTINGS_HUD);
local1.push(ANDROID_SCREEN_GARAGE_WEAPON);
local1.push(ANDROID_SCREEN_GARAGE_ARMOR);
local1.push(ANDROID_SCREEN_GARAGE_PAINT);
local1.push(ANDROID_SCREEN_GARAGE_INVENTORY);
local1.push(ANDROID_SCREEN_GARAGE_KIT);
local1.push(ANDROID_SCREEN_GARAGE_SPECIAL);
local1.push(ANDROID_SCREEN_GARAGE_GIVEN_PRESENTS);
local1.push(ANDROID_SCREEN_GARAGE_RESISTANCE);
local1.push(ANDROID_SCREEN_GARAGE_DRONE);
local1.push(ANDROID_SCREEN_GARAGE_SKINS);
local1.push(ANDROID_SCREEN_SHOP_CRYSTALS);
local1.push(ANDROID_SCREEN_SHOP_PREMIUM);
local1.push(ANDROID_SCREEN_SHOP_GOLD_BOXES);
local1.push(ANDROID_SCREEN_SHOP_PAINTS);
local1.push(ANDROID_SCREEN_SHOP_KITS);
local1.push(ANDROID_SCREEN_SHOP_OTHERS);
local1.push(ANDROID_SCREEN_SHOP_LOOT_BOXES);
local1.push(ANDROID_SCREEN_SHOP_NO_CATEGORY);
return local1;
}
public function toString() : String {
return "GameScreen [" + this._name + "]";
}
public function get value() : int {
return this._value;
}
public function get name() : String {
return this._name;
}
}
}
|
package alternativa.resource
{
import alternativa.types.Long;
public class ResourceInfo
{
public var id:Long;
public var version:Long;
public var type:int;
public var isOptional:Boolean;
public function ResourceInfo(id:Long, version:Long, type:int, isOptional:Boolean)
{
super();
this.id = id;
this.version = version;
this.type = type;
this.isOptional = isOptional;
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.weapon.weakening {
public class WeaponWeakeningCC {
private var _maximumDamageRadius:Number;
private var _minimumDamagePercent:Number;
private var _minimumDamageRadius:Number;
public function WeaponWeakeningCC(param1:Number = 0, param2:Number = 0, param3:Number = 0) {
super();
this._maximumDamageRadius = param1;
this._minimumDamagePercent = param2;
this._minimumDamageRadius = param3;
}
public function get maximumDamageRadius() : Number {
return this._maximumDamageRadius;
}
public function set maximumDamageRadius(param1:Number) : void {
this._maximumDamageRadius = param1;
}
public function get minimumDamagePercent() : Number {
return this._minimumDamagePercent;
}
public function set minimumDamagePercent(param1:Number) : void {
this._minimumDamagePercent = param1;
}
public function get minimumDamageRadius() : Number {
return this._minimumDamageRadius;
}
public function set minimumDamageRadius(param1:Number) : void {
this._minimumDamageRadius = param1;
}
public function toString() : String {
var local1:String = "WeaponWeakeningCC [";
local1 += "maximumDamageRadius = " + this.maximumDamageRadius + " ";
local1 += "minimumDamagePercent = " + this.minimumDamagePercent + " ";
local1 += "minimumDamageRadius = " + this.minimumDamageRadius + " ";
return local1 + "]";
}
}
}
|
package alternativa.tanks.model.payment.shop.quantityrestriction {
import platform.client.fp10.core.type.IGameObject;
public class QuantityRestrictionEvents implements QuantityRestriction {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function QuantityRestrictionEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.ultimate.effects.hunter {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battlefield.models.ultimate.effects.hunter.HunterUltimateCC;
public class VectorCodecHunterUltimateCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecHunterUltimateCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(HunterUltimateCC,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.<HunterUltimateCC> = new Vector.<HunterUltimateCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = HunterUltimateCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:HunterUltimateCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<HunterUltimateCC> = Vector.<HunterUltimateCC>(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
{
import assets.icons.BattleInfoIcons;
import flash.display.Bitmap;
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.FocusEvent;
import flash.events.MouseEvent;
import flash.text.GridFitType;
import flash.text.TextFieldType;
import flash.text.TextFormatAlign;
import forms.events.LoginFormEvent;
public class NumStepper extends MovieClip
{
[Embed(source="959.png")]
private static const pointIcon:Class;
private var tf:TankInput;
private var button:StepperButton;
private var _value:int = 0;
private var _maxValue:int = 10;
private var _minValue:int = 0;
private var _labell:Label;
private var _step:int = 1;
private var _enable:Boolean = true;
public function NumStepper(step:int = 1)
{
this.tf = new TankInput();
this.button = new StepperButton();
super();
addChild(this.tf);
this.tf.width = 55;
this.tf.x = 19;
addChild(this.button);
this.button.x = 75;
this._step = step;
this.tf.restrict = "0-9";
this.tf.maxChars = 5;
this.tf.align = TextFormatAlign.CENTER;
this.tf.textField.addEventListener(FocusEvent.FOCUS_OUT,this.onTextChange);
this.tf.textField.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE,this.onTextChange);
this.tf.addEventListener(LoginFormEvent.TEXT_CHANGED,this.onTextChange);
this.tf.textField.addEventListener(FocusEvent.FOCUS_IN,this.clearTF);
this.draw();
this.enabled = true;
}
public function set minValue(val:int) : void
{
this._minValue = val;
this._value = Math.max(this._value,this._minValue);
this.draw();
}
public function set maxValue(val:int) : void
{
this._maxValue = val;
this._value = Math.min(this._value,this._maxValue);
this.draw();
}
public function set icon(type:int) : void
{
var bitmap:Bitmap = null;
var _icon:BattleInfoIcons = null;
if(type == 100)
{
bitmap = new Bitmap(new pointIcon().bitmapData);
bitmap.y = 5;
bitmap.x = -2;
addChild(bitmap);
}
else
{
_icon = new BattleInfoIcons();
_icon.type = type;
_icon.y = 8;
addChild(_icon);
}
}
public function set label(value:String) : void
{
if(this._labell == null)
{
this._labell = new Label();
this._labell.x = 18;
this._labell.y = -18;
this._labell.gridFitType = GridFitType.SUBPIXEL;
addChild(this._labell);
}
this._labell.text = value;
}
public function get value() : int
{
return this._value;
}
public function set value(value:int) : void
{
this._value = value;
this.draw();
}
override public function set enabled(value:Boolean) : void
{
this._enable = value;
if(this._enable)
{
this.button.addEventListener(MouseEvent.MOUSE_DOWN,this.onMouseDown);
this.button.addEventListener(MouseEvent.MOUSE_UP,this.onMouseUp);
this.button.addEventListener(MouseEvent.MOUSE_OUT,this.onMouseUp);
this.tf.textField.selectable = true;
this.tf.textField.type = TextFieldType.INPUT;
}
else
{
this.button.removeEventListener(MouseEvent.MOUSE_DOWN,this.onMouseDown);
this.button.removeEventListener(MouseEvent.MOUSE_UP,this.onMouseUp);
this.button.removeEventListener(MouseEvent.MOUSE_OUT,this.onMouseUp);
this.tf.textField.selectable = false;
this.tf.textField.type = TextFieldType.DYNAMIC;
}
}
override public function get enabled() : Boolean
{
return this._enable;
}
private function clearTF(e:Event) : void
{
if(this.tf.value == "—")
{
this.tf.clear();
}
}
private function onTextChange(event:Event) : void
{
var tempValue:int = Number(this.tf.value);
this._value = Math.max(this._minValue,Math.min(tempValue,this._maxValue));
this.draw();
}
private function onMouseDown(event:MouseEvent) : void
{
this.button.gotoAndStop(this.button.mouseY < 15 ? 2 : 3);
this._value = Number(this.tf.value);
this._value = Math.min(this._value,this._maxValue);
this._value += this.button.mouseY > 15 ? (this._value > this._minValue ? -this._step : 0) : (this._value < this._maxValue ? this._step : 0);
this.draw();
}
private function onMouseUp(event:MouseEvent) : void
{
this.button.gotoAndStop(1);
}
private function draw() : void
{
if(stage != null)
{
this.tf.value = this._value > 0 || stage.focus == this.tf.textField ? String(this.value) : "—";
if(this.enabled)
{
dispatchEvent(new Event(Event.CHANGE));
}
}
else
{
this.tf.value = this._value > 0 ? String(this.value) : "—";
}
}
}
}
|
package alternativa.tanks.model.item.container.gui.opening {
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.BlendMode;
import flash.display.PixelSnapping;
import flash.display.Sprite;
import flash.geom.ColorTransform;
public class Stars extends Sprite {
private var stars:Array;
private var count:int;
private var radius:Number;
public function Stars(param1:BitmapData, param2:BitmapData, param3:int, param4:Number) {
var local6:Sprite = null;
var local7:Number = NaN;
var local8:Number = NaN;
var local9:Number = NaN;
this.stars = new Array();
super();
this.count = param3;
this.radius = param4;
var local5:int = 0;
while(local5 < param3) {
local6 = new Sprite();
local6.addChild(new Bitmap(param1,PixelSnapping.NEVER,true));
local6.addChild(new Bitmap(param2,PixelSnapping.NEVER,true));
local7 = 0.4 + Math.random();
local6.getChildAt(0).scaleX = local7;
local6.getChildAt(0).scaleY = local7;
local6.getChildAt(0).x = -local6.getChildAt(0).width / 2;
local6.getChildAt(0).y = -local6.getChildAt(0).height / 2;
local6.getChildAt(0).blendMode = BlendMode.ADD;
local6.getChildAt(1).scaleX = local7;
local6.getChildAt(1).scaleY = local7;
local6.getChildAt(1).x = -local6.getChildAt(1).width / 2;
local6.getChildAt(1).y = -local6.getChildAt(1).height / 2;
addChild(local6);
this.stars.push(local6);
local8 = Math.random() * Math.PI * 2;
local9 = param4 / 3 + Math.random() * param4 * 2 / 3;
local6.x = Math.cos(local8) * local9;
local6.y = Math.sin(local8) * local9;
if(local5 == 0) {
local6.x = 0;
local6.y = 0;
}
local6.rotation = Math.random() * 180;
local5++;
}
}
public function update() : void {
var local1:Number = NaN;
var local2:Number = NaN;
var local4:Sprite = null;
var local3:int = 0;
while(local3 < this.count) {
local4 = this.stars[local3];
local4.rotation += 2;
if(local4.rotation > 180) {
local4.rotation = 0;
}
if(local4.rotation < 90) {
local1 = local4.rotation / 90;
} else {
local1 = 1 - (local4.rotation - 90) / 90;
}
local2 = 0.2 + 0.8 * local1;
local4.alpha = local1;
local4.scaleX = local2;
local4.scaleY = local2;
local3++;
}
}
public function colorize(param1:ColorTransform) : void {
var local3:Sprite = null;
var local2:int = 0;
while(local2 < this.count) {
local3 = this.stars[local2];
local3.getChildAt(0).transform.colorTransform = param1;
local2++;
}
}
}
}
|
package projects.tanks.client.battlefield.models.user.temperature {
public interface ITankTemperatureModelBase {
function setTemperature(param1:Number) : void;
}
}
|
package _codec.projects.tanks.client.battlefield.models.battle.pointbased.assault {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.battlefield.models.battle.pointbased.assault.AssaultCC;
public class VectorCodecAssaultCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecAssaultCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(AssaultCC,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.<AssaultCC> = new Vector.<AssaultCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = AssaultCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:AssaultCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<AssaultCC> = Vector.<AssaultCC>(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.buttons.h30px {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.buttons.h30px.GreenMediumButtonSkin_middleOverClass.png")]
public class GreenMediumButtonSkin_middleOverClass extends BitmapAsset {
public function GreenMediumButtonSkin_middleOverClass() {
super();
}
}
}
|
package alternativa.tanks.models.dom.sfx
{
import alternativa.object.ClientObject;
import alternativa.tanks.models.battlefield.BattlefieldModel;
import alternativa.tanks.sfx.IGraphicEffect;
import flash.utils.Dictionary;
public class BeamEffects
{
private var effects:Dictionary;
private var battleService:BattlefieldModel;
public function BeamEffects(battleService:BattlefieldModel)
{
super();
this.effects = new Dictionary();
this.battleService = battleService;
}
public function addEffect(param1:ClientObject, param2:IGraphicEffect) : void
{
this.effects[param1] = param2;
this.battleService.addGraphicEffect(param2);
}
public function removeEffect(param1:ClientObject) : void
{
var _loc2_:IGraphicEffect = this.effects[param1];
if(_loc2_ != null)
{
_loc2_.kill();
delete this.effects[param1];
}
}
}
}
|
package alternativa.tanks.loader.stylishdishonestprogressbar {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.loader.stylishdishonestprogressbar.StylishDishonestProgressBar_progressLineClass.png")]
public class StylishDishonestProgressBar_progressLineClass extends BitmapAsset {
public function StylishDishonestProgressBar_progressLineClass() {
super();
}
}
}
|
package alternativa.protocol.codec
{
import flash.utils.ByteArray;
public class NullMap
{
private var readPosition:int;
private var size:int;
private var map:ByteArray;
public function NullMap(size:int = 0, source:ByteArray = null)
{
super();
this.map = new ByteArray();
if(source != null)
{
this.map.writeBytes(source,0,this.convertSize(size));
}
this.size = size;
this.readPosition = 0;
}
public function reset() : void
{
this.readPosition = 0;
}
public function addBit(isNull:Boolean) : void
{
this.setBit(this.size,isNull);
++this.size;
}
public function hasNextBit() : Boolean
{
return this.readPosition < this.size;
}
public function getNextBit() : Boolean
{
if(this.readPosition >= this.size)
{
throw new Error("Index out of bounds: " + this.readPosition);
}
var res:Boolean = this.getBit(this.readPosition);
++this.readPosition;
return res;
}
public function getMap() : ByteArray
{
return this.map;
}
public function getSize() : int
{
return this.size;
}
private function getBit(position:int) : Boolean
{
var targetByte:int = position >> 3;
var targetBit:int = 7 ^ position & 7;
this.map.position = targetByte;
return (this.map.readByte() & 1 << targetBit) != 0;
}
private function setBit(position:int, value:Boolean) : void
{
var targetByte:int = position >> 3;
var targetBit:int = 7 ^ position & 7;
this.map.position = targetByte;
if(value)
{
this.map.writeByte(int(this.map[targetByte] | 1 << targetBit));
}
else
{
this.map.writeByte(int(this.map[targetByte] & (255 ^ 1 << targetBit)));
}
}
private function convertSize(sizeInBits:int) : int
{
var i:int = sizeInBits >> 3;
var add:int = (sizeInBits & 7) == 0 ? int(int(0)) : int(int(1));
return i + add;
}
public function toString() : String
{
var result:String = "readPosition: " + this.readPosition + " size:" + this.getSize() + " mask:";
var _readPosition:int = this.readPosition;
for(var i:int = this.readPosition; i < this.getSize(); i++)
{
result += !!this.getNextBit() ? 1 : 0;
}
this.readPosition = _readPosition;
return result;
}
public function clone() : NullMap
{
var map:NullMap = new NullMap(this.size,this.map);
map.readPosition = this.readPosition;
return map;
}
}
}
|
package platform.client.fp10.core.logging.serverlog {
import alternativa.osgi.service.logging.LogService;
import alternativa.osgi.service.logging.Logger;
import flash.display.Loader;
import flash.events.ErrorEvent;
import flash.events.UncaughtErrorEvent;
import platform.client.fp10.core.network.ICommandSender;
public class UncaughtErrorServerLogImpl implements UncaughtErrorServerLog {
[Inject]
public static var loggerService:LogService;
private static var channel:String = "UncaughtError";
private var logger:Logger;
public function UncaughtErrorServerLogImpl(param1:ICommandSender) {
super();
loggerService.addLogTarget(new ServerLogTarget(param1,channel + ":i"));
this.logger = loggerService.getLogger(channel);
}
public function addLoader(param1:Loader) : void {
param1.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR,this.eventHandler);
}
private function eventHandler(param1:UncaughtErrorEvent) : void {
var local2:String = null;
if(param1.error is Error) {
local2 = Error(param1.error).message;
} else if(param1.error is ErrorEvent) {
local2 = ErrorEvent(param1.error).text;
} else {
local2 = param1.error.toString();
}
this.logger.info(local2);
}
}
}
|
package projects.tanks.client.clans.clan.info {
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 ClanInfoModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var _changeFlagId:Long = Long.getLong(7985443,1344518925);
private var _changeFlag_flagIdCodec:ICodec;
private var _changeMinRankForAddClanId:Long = Long.getLong(888363060,-1039017893);
private var _changeMinRankForAddClan_rankIndexCodec:ICodec;
private var _incomingRequestEnableId:Long = Long.getLong(1864388665,1550465963);
private var _incomingRequestEnable_enabledCodec:ICodec;
private var _updateDescriptionId:Long = Long.getLong(201719116,-324479452);
private var _updateDescription_descriptionCodec:ICodec;
private var model:IModel;
public function ClanInfoModelServer(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._changeFlag_flagIdCodec = this.protocol.getCodec(new TypeCodecInfo(Long,false));
this._changeMinRankForAddClan_rankIndexCodec = this.protocol.getCodec(new TypeCodecInfo(int,false));
this._incomingRequestEnable_enabledCodec = this.protocol.getCodec(new TypeCodecInfo(Boolean,false));
this._updateDescription_descriptionCodec = this.protocol.getCodec(new TypeCodecInfo(String,false));
}
public function changeFlag(param1:Long) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._changeFlag_flagIdCodec.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._changeFlagId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
public function changeMinRankForAddClan(param1:int) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._changeMinRankForAddClan_rankIndexCodec.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._changeMinRankForAddClanId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
public function incomingRequestEnable(param1:Boolean) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._incomingRequestEnable_enabledCodec.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._incomingRequestEnableId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
public function updateDescription(param1:String) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._updateDescription_descriptionCodec.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._updateDescriptionId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
}
}
|
package projects.tanks.client.clans.clan.accepted {
import alternativa.types.Long;
public interface IClanAcceptedModelBase {
function onAdding(param1:Long) : void;
function onRemoved(param1:Long) : void;
}
}
|
package projects.tanks.client.battlefield.models.ultimate.effects.mammoth {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
public class MammothUltimateModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:MammothUltimateModelServer;
private var client:IMammothUltimateModelBase = IMammothUltimateModelBase(this);
private var modelId:Long = Long.getLong(465096987,1359010901);
private var _activateFieldId:Long = Long.getLong(1909637280,-1045975737);
private var _damageByFieldId:Long = Long.getLong(1848373713,2048092684);
private var _damageByField_enemyIdCodec:ICodec;
private var _deactivateFieldId:Long = Long.getLong(908740500,1614240358);
public function MammothUltimateModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new MammothUltimateModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(MammothUltimateCC,false)));
this._damageByField_enemyIdCodec = this._protocol.getCodec(new TypeCodecInfo(Long,false));
}
protected function getInitParam() : MammothUltimateCC {
return MammothUltimateCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._activateFieldId:
this.client.activateField();
break;
case this._damageByFieldId:
this.client.damageByField(Long(this._damageByField_enemyIdCodec.decode(param2)));
break;
case this._deactivateFieldId:
this.client.deactivateField();
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.gfx.core {
import alternativa.engine3d.materials.TextureResourcesRegistry;
import alternativa.gfx.alternativagfx;
import flash.display.BitmapData;
import flash.display3D.Context3D;
import flash.display3D.Context3DTextureFormat;
import flash.display3D.textures.Texture;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.geom.Rectangle;
use namespace alternativagfx;
public class BitmapTextureResource extends TextureResource {
private static var nullTexture:Texture;
private static var nullTextureContext:Context3D;
private static const point:Point = new Point();
private static const rectangle:Rectangle = new Rectangle();
private static const matrix:Matrix = new Matrix();
private var referencesCount:int = 1;
private var _bitmapData:BitmapData;
private var _mipMapping:Boolean;
private var _stretchNotPowerOf2Textures:Boolean;
private var _calculateMipMapsUsingGPU:Boolean;
private var _correctionU:Number = 1;
private var _correctionV:Number = 1;
private var correctedWidth:int;
private var correctedHeight:int;
public function BitmapTextureResource(param1:BitmapData, param2:Boolean, param3:Boolean = false, param4:Boolean = false) {
super();
this._bitmapData = param1;
this._mipMapping = param2;
this._stretchNotPowerOf2Textures = param3;
this._calculateMipMapsUsingGPU = param4;
this.correctedWidth = Math.pow(2,Math.ceil(Math.log(this._bitmapData.width) / Math.LN2));
this.correctedHeight = Math.pow(2,Math.ceil(Math.log(this._bitmapData.height) / Math.LN2));
if(this.correctedWidth > 2048) {
this.correctedWidth = 2048;
}
if(this.correctedHeight > 2048) {
this.correctedHeight = 2048;
}
if((this._bitmapData.width != this.correctedWidth || this._bitmapData.height != this.correctedHeight) && !this._stretchNotPowerOf2Textures && this._bitmapData.width <= 2048 && this._bitmapData.height <= 2048) {
this._correctionU = this._bitmapData.width / this.correctedWidth;
this._correctionV = this._bitmapData.height / this.correctedHeight;
}
}
public function get bitmapData() : BitmapData {
return this._bitmapData;
}
public function get mipMapping() : Boolean {
return this._mipMapping;
}
public function get stretchNotPowerOf2Textures() : Boolean {
return this._stretchNotPowerOf2Textures;
}
public function get correctionU() : Number {
return this._correctionU;
}
public function get correctionV() : Number {
return this._correctionV;
}
public function get calculateMipMapsUsingGPU() : Boolean {
return this._calculateMipMapsUsingGPU;
}
public function set calculateMipMapsUsingGPU(param1:Boolean) : void {
this._calculateMipMapsUsingGPU = param1;
}
public function forceDispose() : void {
this.referencesCount = 1;
this.dispose();
this._bitmapData = null;
}
override public function dispose() : void {
if(this.referencesCount == 0) {
return;
}
--this.referencesCount;
if(this.referencesCount == 0) {
TextureResourcesRegistry.release(this._bitmapData);
this._bitmapData = null;
super.dispose();
}
}
override public function get available() : Boolean {
return this._bitmapData != null;
}
override protected function getNullTexture() : Texture {
return nullTexture;
}
private function freeMemory() : void {
useNullTexture = true;
this._mipMapping = false;
this.forceDispose();
}
override alternativagfx function create(param1:Context3D) : void {
var context:Context3D = param1;
super.alternativagfx::create(context);
if(nullTexture == null || nullTextureContext != context) {
nullTexture = context.createTexture(1,1,Context3DTextureFormat.BGRA,false);
nullTexture.uploadFromBitmapData(new BitmapData(1,1,true,1439485132));
nullTextureContext = context;
}
if(!useNullTexture) {
try {
texture = context.createTexture(this.correctedWidth,this.correctedHeight,Context3DTextureFormat.BGRA,false);
}
catch(e:Error) {
freeMemory();
}
}
}
override alternativagfx function upload() : void {
var local1:BitmapData = null;
var local2:BitmapData = null;
var local3:int = 0;
var local4:int = 0;
var local5:int = 0;
var local6:BitmapData = null;
if(useNullTexture) {
return;
}
if(this._bitmapData.width == this.correctedWidth && this._bitmapData.height == this.correctedHeight) {
local1 = this._bitmapData;
} else {
local1 = new BitmapData(this.correctedWidth,this.correctedHeight,this._bitmapData.transparent,0);
if(this._bitmapData.width <= 2048 && this._bitmapData.height <= 2048 && !this._stretchNotPowerOf2Textures) {
local1.copyPixels(this._bitmapData,this._bitmapData.rect,point);
if(this._bitmapData.width < local1.width) {
local2 = new BitmapData(1,this._bitmapData.height,this._bitmapData.transparent,0);
rectangle.setTo(this._bitmapData.width - 1,0,1,this._bitmapData.height);
local2.copyPixels(this._bitmapData,rectangle,point);
matrix.setTo(local1.width - this._bitmapData.width,0,0,1,this._bitmapData.width,0);
local1.draw(local2,matrix,null,null,null,false);
local2.dispose();
}
if(this._bitmapData.height < local1.height) {
local2 = new BitmapData(this._bitmapData.width,1,this._bitmapData.transparent,0);
rectangle.setTo(0,this._bitmapData.height - 1,this._bitmapData.width,1);
local2.copyPixels(this._bitmapData,rectangle,point);
matrix.setTo(1,0,0,local1.height - this._bitmapData.height,0,this._bitmapData.height);
local1.draw(local2,matrix,null,null,null,false);
local2.dispose();
}
if(this._bitmapData.width < local1.width && this._bitmapData.height < local1.height) {
local2 = new BitmapData(1,1,this._bitmapData.transparent,0);
rectangle.setTo(this._bitmapData.width - 1,this._bitmapData.height - 1,1,1);
local2.copyPixels(this._bitmapData,rectangle,point);
matrix.setTo(local1.width - this._bitmapData.width,0,0,local1.height - this._bitmapData.height,this._bitmapData.width,this._bitmapData.height);
local1.draw(local2,matrix,null,null,null,false);
local2.dispose();
}
} else {
matrix.setTo(this.correctedWidth / this._bitmapData.width,0,0,this.correctedHeight / this._bitmapData.height,0,0);
local1.draw(this._bitmapData,matrix,null,null,null,true);
}
}
if(this._mipMapping > 0) {
this.uploadTexture(local1,0);
matrix.identity();
local3 = 1;
local4 = local1.width;
local5 = local1.height;
while(local4 % 2 == 0 || local5 % 2 == 0) {
local4 >>= 1;
local5 >>= 1;
if(local4 == 0) {
local4 = 1;
}
if(local5 == 0) {
local5 = 1;
}
local6 = new BitmapData(local4,local5,local1.transparent,0);
matrix.a = local4 / local1.width;
matrix.d = local5 / local1.height;
local6.draw(local1,matrix,null,null,null,false);
this.uploadTexture(local6,local3++);
local6.dispose();
}
} else {
this.uploadTexture(local1,0);
}
if(local1 != this._bitmapData) {
local1.dispose();
}
}
protected function uploadTexture(param1:BitmapData, param2:uint) : void {
var source:BitmapData = param1;
var mipLevel:uint = param2;
try {
if(texture != nullTexture) {
texture.uploadFromBitmapData(source,mipLevel);
}
}
catch(e:Error) {
freeMemory();
}
}
public function increaseReferencesCount() : void {
++this.referencesCount;
}
}
}
|
package projects.tanks.client.battlefield.models.battle.battlefield.meteors {
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 MeteorStormModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function MeteorStormModelServer(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 utils.tweener.easing {
public class Strong {
public static const power:uint = 4;
public function Strong() {
super();
}
public static function easeIn(param1:Number, param2:Number, param3:Number, param4:Number) : Number {
return param3 * (param1 = param1 / param4) * param1 * param1 * param1 * param1 + param2;
}
public static function easeOut(param1:Number, param2:Number, param3:Number, param4:Number) : Number {
return param3 * ((param1 = param1 / param4 - 1) * param1 * param1 * param1 * param1 + 1) + param2;
}
public static function easeInOut(param1:Number, param2:Number, param3:Number, param4:Number) : Number {
param1 = param1 / (param4 * 0.5);
if(param1 < 1) {
return param3 * 0.5 * param1 * param1 * param1 * param1 * param1 + param2;
}
return param3 * 0.5 * ((param1 = param1 - 2) * param1 * param1 * param1 * param1 + 2) + param2;
}
}
}
|
package alternativa.tanks.gui {
public interface IClanNotificationListener {
function updateNotifications() : void;
}
}
|
package alternativa.tanks.model.challenge
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class ChallengeCongratulationWindow_marineBitmap extends BitmapAsset
{
public function ChallengeCongratulationWindow_marineBitmap()
{
super();
}
}
}
|
package alternativa.tanks.models.weapon.terminator.sfx {
[ModelInterface]
public interface TerminatorSFX {
function getSfxData() : TerminatorSFXData;
}
}
|
package projects.tanks.client.panel.model.premiumaccount.alert {
import alternativa.osgi.OSGi;
import alternativa.protocol.IProtocol;
import alternativa.protocol.OptionalMap;
import alternativa.protocol.ProtocolBuffer;
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 PremiumAccountAlertModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var _confirmShowNotificationCompletionPremiumId:Long = Long.getLong(560873126,327330396);
private var _confirmShowReminderCompletionPremiumId:Long = Long.getLong(949918204,289867701);
private var _confirmShowWelcomeAlertId:Long = Long.getLong(1747841083,-1515647086);
private var model:IModel;
public function PremiumAccountAlertModelServer(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());
}
public function confirmShowNotificationCompletionPremium() : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
ByteArray(this.protocolBuffer.writer).position = 0;
if(Model.object == null) {
throw new Error("Execute method without model context.");
}
var local1:SpaceCommand = new SpaceCommand(Model.object.id,this._confirmShowNotificationCompletionPremiumId,this.protocolBuffer);
var local2:IGameObject = Model.object;
var local3:ISpace = local2.space;
local3.commandSender.sendCommand(local1);
this.protocolBuffer.optionalMap.clear();
}
public function confirmShowReminderCompletionPremium() : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
ByteArray(this.protocolBuffer.writer).position = 0;
if(Model.object == null) {
throw new Error("Execute method without model context.");
}
var local1:SpaceCommand = new SpaceCommand(Model.object.id,this._confirmShowReminderCompletionPremiumId,this.protocolBuffer);
var local2:IGameObject = Model.object;
var local3:ISpace = local2.space;
local3.commandSender.sendCommand(local1);
this.protocolBuffer.optionalMap.clear();
}
public function confirmShowWelcomeAlert() : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
ByteArray(this.protocolBuffer.writer).position = 0;
if(Model.object == null) {
throw new Error("Execute method without model context.");
}
var local1:SpaceCommand = new SpaceCommand(Model.object.id,this._confirmShowWelcomeAlertId,this.protocolBuffer);
var local2:IGameObject = Model.object;
var local3:ISpace = local2.space;
local3.commandSender.sendCommand(local1);
this.protocolBuffer.optionalMap.clear();
}
}
}
|
package alternativa.tanks.controller.commands.socialnetwork {
import alternativa.tanks.controller.events.socialnetwork.StartExternalEntranceEvent;
import alternativa.tanks.model.EntranceUrlParamsModel;
import alternativa.tanks.service.IEntranceServerFacade;
import org.robotlegs.mvcs.Command;
public class StartExternalRegisterUserCommand extends Command {
[Inject]
public var event:StartExternalEntranceEvent;
[Inject]
public var serverFacade:IEntranceServerFacade;
[Inject]
public var urlParams:EntranceUrlParamsModel;
public function StartExternalRegisterUserCommand() {
super();
}
override public function execute() : void {
this.serverFacade.startExternalRegisterUser(this.event.socialNetworkId,this.event.rememberMe,this.urlParams.domain);
}
}
}
|
package alternativa.tanks.model.item.skins {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class MountShotSkinEvents implements MountShotSkin {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function MountShotSkinEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function getMountedSkin() : IGameObject {
var result:IGameObject = null;
var i:int = 0;
var m:MountShotSkin = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = MountShotSkin(this.impl[i]);
result = m.getMountedSkin();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function mount(param1:IGameObject) : void {
var i:int = 0;
var m:MountShotSkin = null;
var skin:IGameObject = param1;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = MountShotSkin(this.impl[i]);
m.mount(skin);
i++;
}
}
finally {
Model.popObject();
}
}
}
}
|
package alternativa.tanks.models.tank.bosstate {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battlefield.models.user.bossstate.BossRelationRole;
public class IBossStateEvents implements IBossState {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function IBossStateEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function role() : BossRelationRole {
var result:BossRelationRole = null;
var i:int = 0;
var m:IBossState = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = IBossState(this.impl[i]);
result = m.role();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.models.tank.turret.shaft
{
import alternativa.init.Main;
import alternativa.tanks.models.tank.ITank;
import alternativa.tanks.models.tank.TankData;
import alternativa.tanks.models.tank.TankModel;
import alternativa.tanks.models.tank.turret.TurretController;
import alternativa.tanks.vehicles.tanks.Tank;
public class ShaftTurretController implements TurretController
{
private var tankData:TankData;
private var tankModel:TankModel;
private var playSound:Boolean = true;
public function ShaftTurretController(tankData:TankData)
{
super();
this.tankData = tankData;
this.tankModel = Main.osgi.getService(ITank) as TankModel;
tankData.sounds.playTurretSound(false);
}
public function rotateTurret(deltaSec:Number) : void
{
var tank:Tank = this.tankData.tank;
var turretRotationDir:int = ((int(int(this.tankData.ctrlBits & TankModel.TURRET_LEFT)) || int(int(this.tankData.ctrlBits & TankModel.LEFT))) >> 4) - ((int(int(this.tankData.ctrlBits & TankModel.TURRET_RIGHT)) || int(int(this.tankData.ctrlBits & TankModel.RIGHT))) >> 5);
var turretRotationDirAddition:int = ((this.tankData.ctrlBits & TankModel.LEFT) >> 2) - ((this.tankData.ctrlBits & TankModel.RIGHT) >> 3);
if(turretRotationDir == 0)
{
turretRotationDir = turretRotationDirAddition;
}
if(turretRotationDir != 0)
{
if((this.tankData.ctrlBits & TankModel.CENTER_TURRET) != 0)
{
this.tankData.ctrlBits &= ~TankModel.CENTER_TURRET;
if(this.tankData.local)
{
this.tankModel.controlBits &= ~TankModel.CENTER_TURRET;
}
if(tank.turretDirSign == turretRotationDir)
{
tank.stopTurret();
this.tankData.sounds.playTurretSound(false);
}
}
tank.rotateTurret(turretRotationDir * deltaSec,false);
}
else if((this.tankData.ctrlBits & TankModel.CENTER_TURRET) != 0)
{
if(tank.rotateTurret(-tank.turretDirSign * deltaSec,true))
{
this.tankData.ctrlBits &= ~TankModel.CENTER_TURRET;
tank.stopTurret();
}
}
else
{
tank.stopTurret();
}
if(this.playSound)
{
this.tankData.sounds.playTurretSound(this.tankData.tank.turretTurnSpeed != 0);
}
}
public function enableTurretSound(value:Boolean) : void
{
this.playSound = value;
}
}
}
|
package alternativa.tanks.models.sfx.lighting {
import alternativa.tanks.sfx.LightAnimation;
import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingEffectEntity;
import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingSFXEntity;
public class LightingSfx {
private var entity:LightingSFXEntity = null;
public function LightingSfx(param1:LightingSFXEntity) {
super();
this.entity = param1;
}
public function createAnimation(param1:String) : LightAnimation {
var local2:LightingEffectEntity = null;
for each(local2 in this.entity.effects) {
if(local2.effectName == param1) {
return new LightAnimation(local2.items);
}
}
return null;
}
}
}
|
package projects.tanks.client.battlefield.gui.models.statistics
{
import projects.tanks.client.battleservice.model.team.BattleTeamType;
public class UserStat
{
public var name:String;
public var rank:int;
public var teamType:BattleTeamType;
public var userId:String;
public var kills:int;
public var deaths:int;
public var score:int;
public var reward:int;
public function UserStat(kills:int, deaths:int, name:String, rank:int, score:int, reward:int, teamType:BattleTeamType, userId:String)
{
super();
this.name = name;
this.rank = rank;
this.teamType = teamType;
this.userId = userId;
this.kills = kills;
this.deaths = deaths;
this.score = score;
this.reward = reward;
}
}
}
|
package assets.combo {
import flash.display.BitmapData;
[Embed(source="/_assets/assets.combo.combo_OFF_LEFT.png")]
public dynamic class combo_OFF_LEFT extends BitmapData {
public function combo_OFF_LEFT(param1:int = 7, param2:int = 30) {
super(param1,param2);
}
}
}
|
package projects.tanks.client.battlefield.models.battle.battlefield.fps {
public class FpsStatisticType {
public static const SOFTWARE:FpsStatisticType = new FpsStatisticType(0,"SOFTWARE");
public static const HARDWARE_CONSTRAINT:FpsStatisticType = new FpsStatisticType(1,"HARDWARE_CONSTRAINT");
public static const HARDWARE_BASELINE:FpsStatisticType = new FpsStatisticType(2,"HARDWARE_BASELINE");
private var _value:int;
private var _name:String;
public function FpsStatisticType(param1:int, param2:String) {
super();
this._value = param1;
this._name = param2;
}
public static function get values() : Vector.<FpsStatisticType> {
var local1:Vector.<FpsStatisticType> = new Vector.<FpsStatisticType>();
local1.push(SOFTWARE);
local1.push(HARDWARE_CONSTRAINT);
local1.push(HARDWARE_BASELINE);
return local1;
}
public function toString() : String {
return "FpsStatisticType [" + this._name + "]";
}
public function get value() : int {
return this._value;
}
public function get name() : String {
return this._name;
}
}
}
|
package projects.tanks.client.panel.model.garage.rankupsupplybonus {
import platform.client.fp10.core.resource.types.ImageResource;
public class RankUpSupplyBonusInfo {
private var _count:int;
private var _preview:ImageResource;
private var _text:String;
public function RankUpSupplyBonusInfo(param1:int = 0, param2:ImageResource = null, param3:String = null) {
super();
this._count = param1;
this._preview = param2;
this._text = param3;
}
public function get count() : int {
return this._count;
}
public function set count(param1:int) : void {
this._count = param1;
}
public function get preview() : ImageResource {
return this._preview;
}
public function set preview(param1:ImageResource) : void {
this._preview = param1;
}
public function get text() : String {
return this._text;
}
public function set text(param1:String) : void {
this._text = param1;
}
public function toString() : String {
var local1:String = "RankUpSupplyBonusInfo [";
local1 += "count = " + this.count + " ";
local1 += "preview = " + this.preview + " ";
local1 += "text = " + this.text + " ";
return local1 + "]";
}
}
}
|
package alternativa.osgi.service.logging {
public class LogLevel {
public static const TRACE:LogLevel = new LogLevel(1,"TRACE");
public static const DEBUG:LogLevel = new LogLevel(2,"DEBUG");
public static const INFO:LogLevel = new LogLevel(3,"INFO");
public static const WARNING:LogLevel = new LogLevel(4,"WARNING");
public static const ERROR:LogLevel = new LogLevel(5,"ERROR");
private var value:int;
private var name:String;
public function LogLevel(param1:int, param2:String) {
super();
this.value = param1;
this.name = param2;
}
public static function byValue(param1:int) : LogLevel {
switch(param1) {
case 1:
return TRACE;
case 2:
return DEBUG;
case 3:
return INFO;
case 4:
return WARNING;
case 5:
return ERROR;
default:
return TRACE;
}
}
public static function byName(param1:String) : LogLevel {
switch(param1) {
case "TRACE":
return LogLevel.TRACE;
case "DEBUG":
return LogLevel.DEBUG;
case "INFO":
return LogLevel.INFO;
case "WARNING":
return LogLevel.WARNING;
case "ERROR":
return LogLevel.ERROR;
default:
return LogLevel.TRACE;
}
}
public function getValue() : int {
return this.value;
}
public function getName() : String {
return this.name;
}
public function toString() : String {
return "[LogLevel " + this.name + " " + this.value + "]";
}
}
}
|
package forms.stat
{
import controls.Label;
import controls.Money;
import controls.Rank;
import controls.rangicons.RangIconSmall;
import controls.statassets.StatLineBackgroundNormal;
import controls.statassets.StatLineBackgroundSelected;
import fl.controls.listClasses.CellRenderer;
import fl.controls.listClasses.ListData;
import flash.display.DisplayObject;
import flash.display.Sprite;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
public class StatListRenderer extends CellRenderer
{
protected var nicon:DisplayObject;
private var sicon:DisplayObject;
public function StatListRenderer()
{
super();
}
override public function set data(value:Object) : void
{
_data = value;
var nr:DisplayObject = new StatLineBackgroundNormal();
var sl:DisplayObject = new StatLineBackgroundSelected();
this.nicon = this.myIcon(_data);
setStyle("upSkin",nr);
setStyle("downSkin",nr);
setStyle("overSkin",nr);
setStyle("selectedUpSkin",sl);
setStyle("selectedOverSkin",sl);
setStyle("selectedDownSkin",sl);
}
override public function set listData(value:ListData) : void
{
_listData = value;
label = _listData.label;
if(this.nicon != null)
{
setStyle("icon",this.nicon);
}
}
protected function bg(_selected:Boolean) : DisplayObject
{
return new Sprite();
}
protected function myIcon(data:Object) : Sprite
{
var infoX:int = 0;
var pos:Label = null;
var info:Label = null;
infoX = 0;
var cont:Sprite = new Sprite();
pos = new Label();
var rangIcon:RangIconSmall = new RangIconSmall(_data.rank);
var rangString:Label = new Label();
var name:Label = new Label();
pos.autoSize = TextFieldAutoSize.NONE;
pos.align = TextFormatAlign.RIGHT;
pos.width = 45;
pos.text = _data.pos < 0 ? " " : _data.pos;
cont.addChild(pos);
if(_data.rank > 0)
{
rangIcon.y = 3;
rangIcon.x = 53;
cont.addChild(rangIcon);
rangString.text = Rank.name(int(_data.rank));
rangString.x = 63;
cont.addChild(rangString);
}
name.autoSize = TextFieldAutoSize.NONE;
name.height = 18;
name.text = _data.callsign;
name.selectable = true;
name.x = 178;
name.width = _width - 520;
cont.addChild(name);
infoX = int(_width - 375);
info = new Label();
info.autoSize = TextFieldAutoSize.NONE;
info.align = TextFormatAlign.RIGHT;
info.width = 60;
info.x = infoX;
info.text = _data.score > -1 ? Money.numToString(_data.score,false) : " ";
cont.addChild(info);
infoX += 60;
info = new Label();
info.autoSize = TextFieldAutoSize.NONE;
info.align = TextFormatAlign.RIGHT;
info.width = 70;
info.x = infoX;
info.text = _data.kills > -1 ? Money.numToString(_data.kills,false) : " ";
cont.addChild(info);
infoX += 70;
info = new Label();
info.autoSize = TextFieldAutoSize.NONE;
info.align = TextFormatAlign.RIGHT;
info.width = 50;
info.x = infoX;
info.text = _data.deaths > -1 ? Money.numToString(_data.deaths,false) : " ";
cont.addChild(info);
infoX += 50;
info = new Label();
info.autoSize = TextFieldAutoSize.NONE;
info.align = TextFormatAlign.RIGHT;
info.width = 40;
info.x = infoX;
info.text = _data.ratio > -1 ? Money.numToString(_data.ratio) : (_data.ratio == -11 ? " " : "—");
cont.addChild(info);
infoX += 40;
info = new Label();
info.autoSize = TextFieldAutoSize.NONE;
info.align = TextFormatAlign.RIGHT;
info.width = 65;
info.x = infoX;
info.htmlText = _data.wealth > -1 ? Money.numToString(_data.wealth,false) : " ";
cont.addChild(info);
infoX += 75;
info = new Label();
info.autoSize = TextFieldAutoSize.NONE;
info.align = TextFormatAlign.RIGHT;
info.width = 69;
info.x = infoX;
info.text = _data.rating > -1 ? Money.numToString(_data.rating) : " ";
cont.addChild(info);
return cont;
}
override protected function drawBackground() : void
{
var styleName:String = !!enabled ? mouseState : "disabled";
if(selected)
{
styleName = "selected" + styleName.substr(0,1).toUpperCase() + styleName.substr(1);
}
styleName += "Skin";
var bg:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue(styleName));
addChildAt(background,0);
if(bg != null && bg != background)
{
removeChild(bg);
}
}
override protected function drawLayout() : void
{
super.drawLayout();
}
override protected function drawIcon() : void
{
var oldIcon:DisplayObject = icon;
var styleName:String = !!enabled ? mouseState : "disabled";
if(selected)
{
styleName = "selected" + styleName.substr(0,1).toUpperCase() + styleName.substr(1);
}
styleName += "Icon";
var iconStyle:Object = getStyleValue(styleName);
if(iconStyle == null)
{
iconStyle = getStyleValue("icon");
}
if(iconStyle != null)
{
icon = getDisplayObjectInstance(iconStyle);
}
if(icon != null)
{
addChildAt(icon,1);
}
if(oldIcon != null && oldIcon != icon && oldIcon.parent == this)
{
removeChild(oldIcon);
}
}
}
}
|
package _codec.projects.tanks.client.garage.models.item.item {
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.item.ItemModelCC;
public class VectorCodecItemModelCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecItemModelCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ItemModelCC,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.<ItemModelCC> = new Vector.<ItemModelCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ItemModelCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ItemModelCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ItemModelCC> = Vector.<ItemModelCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package forms.ranks {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapSmallRank06.png")]
public class DefaultRanksBitmaps_bitmapSmallRank06 extends BitmapAsset {
public function DefaultRanksBitmaps_bitmapSmallRank06() {
super();
}
}
}
|
package com.hurlant.crypto.tls {
import alternativa.osgi.service.clientlog.IClientLog;
import com.hurlant.crypto.hash.MD5;
import com.hurlant.crypto.hash.SHA1;
import com.hurlant.crypto.prng.TLSPRF;
import com.hurlant.crypto.rsa.RSAKey;
import flash.utils.ByteArray;
public class TLSSecurityParameters implements ISecurityParameters {
[Inject]
public static var clientLog:IClientLog;
public static var USER_CERTIFICATE:String;
public static const LOG_CHANNEL:String = "tlsengine";
public static const COMPRESSION_NULL:uint = 0;
public static var IGNORE_CN_MISMATCH:Boolean = true;
public static var ENABLE_USER_CLIENT_CERTIFICATE:Boolean = false;
public static const PROTOCOL_VERSION:uint = 769;
private var cert:ByteArray;
private var key:RSAKey;
private var entity:uint;
private var bulkCipher:uint;
private var cipherType:uint;
private var keySize:uint;
private var keyMaterialLength:uint;
private var IVSize:uint;
private var macAlgorithm:uint;
private var hashSize:uint;
private var compression:uint;
private var masterSecret:ByteArray;
private var clientRandom:ByteArray;
private var serverRandom:ByteArray;
private var ignoreCNMismatch:Boolean = true;
private var trustAllCerts:Boolean = false;
private var trustSelfSigned:Boolean = false;
private var tlsDebug:Boolean = false;
public var keyExchange:uint;
public function TLSSecurityParameters(param1:uint, param2:ByteArray = null, param3:RSAKey = null) {
super();
this.entity = param1;
this.reset();
this.key = param3;
this.cert = param2;
}
public function get version() : uint {
return PROTOCOL_VERSION;
}
public function reset() : void {
this.bulkCipher = BulkCiphers.NULL;
this.cipherType = BulkCiphers.BLOCK_CIPHER;
this.macAlgorithm = MACs.NULL;
this.compression = COMPRESSION_NULL;
this.masterSecret = null;
}
public function getBulkCipher() : uint {
return this.bulkCipher;
}
public function getCipherType() : uint {
return this.cipherType;
}
public function getMacAlgorithm() : uint {
return this.macAlgorithm;
}
public function setCipher(param1:uint) : void {
this.bulkCipher = CipherSuites.getBulkCipher(param1);
this.cipherType = BulkCiphers.getType(this.bulkCipher);
this.keySize = BulkCiphers.getExpandedKeyBytes(this.bulkCipher);
this.keyMaterialLength = BulkCiphers.getKeyBytes(this.bulkCipher);
this.IVSize = BulkCiphers.getIVSize(this.bulkCipher);
this.keyExchange = CipherSuites.getKeyExchange(param1);
this.macAlgorithm = CipherSuites.getMac(param1);
this.hashSize = MACs.getHashSize(this.macAlgorithm);
}
public function setCompression(param1:uint) : void {
this.compression = param1;
}
public function setPreMasterSecret(param1:ByteArray) : void {
var local2:ByteArray = new ByteArray();
local2.writeBytes(this.clientRandom,0,this.clientRandom.length);
local2.writeBytes(this.serverRandom,0,this.serverRandom.length);
var local3:TLSPRF = new TLSPRF(param1,"master secret",local2);
this.masterSecret = new ByteArray();
local3.nextBytes(this.masterSecret,48);
if(this.tlsDebug) {
}
}
public function setClientRandom(param1:ByteArray) : void {
this.clientRandom = param1;
}
public function setServerRandom(param1:ByteArray) : void {
this.serverRandom = param1;
}
public function get useRSA() : Boolean {
return KeyExchanges.useRSA(this.keyExchange);
}
public function computeVerifyData(param1:uint, param2:ByteArray) : ByteArray {
var local3:ByteArray = new ByteArray();
var local4:MD5 = new MD5();
if(this.tlsDebug) {
}
local3.writeBytes(local4.hash(param2),0,local4.getHashSize());
var local5:SHA1 = new SHA1();
local3.writeBytes(local5.hash(param2),0,local5.getHashSize());
if(this.tlsDebug) {
}
var local6:TLSPRF = new TLSPRF(this.masterSecret,param1 == TLSEngine.CLIENT ? "client finished" : "server finished",local3);
var local7:ByteArray = new ByteArray();
local6.nextBytes(local7,12);
if(this.tlsDebug) {
local7.position = 0;
}
return local7;
}
public function computeCertificateVerify(param1:uint, param2:ByteArray) : ByteArray {
var local3:ByteArray = new ByteArray();
var local4:MD5 = new MD5();
local3.writeBytes(local4.hash(param2),0,local4.getHashSize());
var local5:SHA1 = new SHA1();
local3.writeBytes(local5.hash(param2),0,local5.getHashSize());
local3.position = 0;
var local6:ByteArray = new ByteArray();
this.key.sign(local3,local6,local3.bytesAvailable);
local6.position = 0;
return local6;
}
public function getConnectionStates() : Object {
var local1:ByteArray = null;
var local2:TLSPRF = null;
var local3:ByteArray = null;
var local4:ByteArray = null;
var local5:ByteArray = null;
var local6:ByteArray = null;
var local7:ByteArray = null;
var local8:ByteArray = null;
var local9:TLSConnectionState = null;
var local10:TLSConnectionState = null;
if(this.masterSecret != null) {
local1 = new ByteArray();
local1.writeBytes(this.serverRandom,0,this.serverRandom.length);
local1.writeBytes(this.clientRandom,0,this.clientRandom.length);
local2 = new TLSPRF(this.masterSecret,"key expansion",local1);
local3 = new ByteArray();
local2.nextBytes(local3,this.hashSize);
local4 = new ByteArray();
local2.nextBytes(local4,this.hashSize);
local5 = new ByteArray();
local2.nextBytes(local5,this.keyMaterialLength);
local6 = new ByteArray();
local2.nextBytes(local6,this.keyMaterialLength);
local7 = new ByteArray();
local2.nextBytes(local7,this.IVSize);
local8 = new ByteArray();
local2.nextBytes(local8,this.IVSize);
local9 = new TLSConnectionState(this.bulkCipher,this.cipherType,this.macAlgorithm,local3,local5,local7);
local10 = new TLSConnectionState(this.bulkCipher,this.cipherType,this.macAlgorithm,local4,local6,local8);
if(this.entity == TLSEngine.CLIENT) {
return {
"read":local10,
"write":local9
};
}
return {
"read":local9,
"write":local10
};
}
return {
"read":new TLSConnectionState(),
"write":new TLSConnectionState()
};
}
}
}
|
package platform.client.fp10.core.model {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class ObjectLoadPostListenerAdapt implements ObjectLoadPostListener {
private var object:IGameObject;
private var impl:ObjectLoadPostListener;
public function ObjectLoadPostListenerAdapt(param1:IGameObject, param2:ObjectLoadPostListener) {
super();
this.object = param1;
this.impl = param2;
}
public function objectLoadedPost() : void {
try {
Model.object = this.object;
this.impl.objectLoadedPost();
}
finally {
Model.popObject();
}
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.user.tank {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import projects.tanks.client.battlefield.models.user.tank.TankLogicState;
public class CodecTankLogicState implements ICodec {
public function CodecTankLogicState() {
super();
}
public function init(param1:IProtocol) : void {
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:TankLogicState = null;
var local3:int = int(param1.reader.readInt());
switch(local3) {
case 0:
local2 = TankLogicState.NEW;
break;
case 1:
local2 = TankLogicState.OUT_OF_GAME;
break;
case 2:
local2 = TankLogicState.ACTIVATING;
break;
case 3:
local2 = TankLogicState.ACTIVE;
break;
case 4:
local2 = TankLogicState.DEAD;
}
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 alternativa.tanks.models.service {
import alternativa.tanks.gui.IClanNotificationListener;
import alternativa.types.Long;
import flash.events.EventDispatcher;
import flash.utils.Dictionary;
public class ClanNotificationsManager {
private static var incomingIndicators:Vector.<IClanNotificationListener> = new Vector.<IClanNotificationListener>();
private static var acceptedIndicators:Vector.<IClanNotificationListener> = new Vector.<IClanNotificationListener>();
private static var incomingNotifications:Dictionary = new Dictionary();
private static var acceptedNotifications:Dictionary = new Dictionary();
private static var _incomingNotificationsCount:int = 0;
private static var _acceptedNotificationsCount:int = 0;
public static var dispatcher:EventDispatcher = new EventDispatcher();
public function ClanNotificationsManager() {
super();
}
public static function clearListeners() : void {
incomingIndicators = new Vector.<IClanNotificationListener>();
acceptedIndicators = new Vector.<IClanNotificationListener>();
}
public static function incomingNotificationsCount() : int {
return _incomingNotificationsCount;
}
public static function acceptedNotificationsCount() : int {
return _acceptedNotificationsCount;
}
public static function onIncomingNotification(param1:Long) : void {
++_incomingNotificationsCount;
incomingNotifications[param1] = true;
updateAllIndicators(incomingIndicators);
}
public static function onRemoveIncomingNotification(param1:Long) : void {
if(param1 in incomingNotifications) {
--_incomingNotificationsCount;
delete incomingNotifications[param1];
updateAllIndicators(incomingIndicators);
}
}
public static function onAcceptedNotification(param1:Long) : void {
++_acceptedNotificationsCount;
acceptedNotifications[param1] = true;
updateAllIndicators(acceptedIndicators);
}
public static function onRemoveAcceptedNotification(param1:Long) : void {
if(param1 in acceptedNotifications) {
--_acceptedNotificationsCount;
delete acceptedNotifications[param1];
updateAllIndicators(acceptedIndicators);
}
}
public static function userInIncomingNotifications(param1:Long) : Boolean {
return param1 in incomingNotifications;
}
public static function userInAcceptedNotifications(param1:Long) : Boolean {
return param1 in acceptedNotifications;
}
public static function removeAcceptedNotification(param1:Long) : void {
if(userInAcceptedNotifications(param1)) {
dispatcher.dispatchEvent(new ClanNotificationEvent(ClanNotificationEvent.REMOVE_ACCEPTED_NOTIFICATION,param1));
}
}
public static function removeIncomingNotification(param1:Long) : void {
if(userInIncomingNotifications(param1)) {
dispatcher.dispatchEvent(new ClanNotificationEvent(ClanNotificationEvent.REMOVE_INCOMING_NOTIFICATION,param1));
}
}
public static function addIncomingIndicatorListener(param1:IClanNotificationListener) : void {
incomingIndicators.push(param1);
}
public static function addAcceptedIndicatorListener(param1:IClanNotificationListener) : void {
acceptedIndicators.push(param1);
}
private static function updateAllIndicators(param1:Vector.<IClanNotificationListener>) : void {
var local2:IClanNotificationListener = null;
for each(local2 in param1) {
local2.updateNotifications();
}
}
public static function initializeIncomingNotifications(param1:Vector.<Long>) : void {
var local2:Long = null;
_incomingNotificationsCount = 0;
for each(local2 in param1) {
++_incomingNotificationsCount;
incomingNotifications[local2] = true;
}
updateAllIndicators(incomingIndicators);
}
public static function initializeAcceptedNotifications(param1:Vector.<Long>) : void {
var local2:Long = null;
_acceptedNotificationsCount = 0;
for each(local2 in param1) {
++_acceptedNotificationsCount;
acceptedNotifications[local2] = true;
}
updateAllIndicators(acceptedIndicators);
}
public static function acceptedAndIncomingCount() : int {
return acceptedNotificationsCount() + incomingNotificationsCount();
}
}
}
|
package controls {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.TankWindowInner_leftClass.png")]
public class TankWindowInner_leftClass extends BitmapAsset {
public function TankWindowInner_leftClass() {
super();
}
}
}
|
package _codec.projects.tanks.client.clans.license.user {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.clans.license.user.LicenseClanUserCC;
public class CodecLicenseClanUserCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_clanLicense:ICodec;
private var codec_licenseGarageObject:ICodec;
public function CodecLicenseClanUserCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_clanLicense = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_licenseGarageObject = param1.getCodec(new TypeCodecInfo(IGameObject,true));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:LicenseClanUserCC = new LicenseClanUserCC();
local2.clanLicense = this.codec_clanLicense.decode(param1) as Boolean;
local2.licenseGarageObject = this.codec_licenseGarageObject.decode(param1) as IGameObject;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:LicenseClanUserCC = LicenseClanUserCC(param2);
this.codec_clanLicense.encode(param1,local3.clanLicense);
this.codec_licenseGarageObject.encode(param1,local3.licenseGarageObject);
}
}
}
|
package _codec.projects.tanks.client.chat.models.clanchat.clanchat {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.chat.models.clanchat.clanchat.ClanChatCC;
public class CodecClanChatCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_inClan:ICodec;
private var codec_selfName:ICodec;
public function CodecClanChatCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_inClan = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_selfName = param1.getCodec(new TypeCodecInfo(String,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:ClanChatCC = new ClanChatCC();
local2.inClan = this.codec_inClan.decode(param1) as Boolean;
local2.selfName = this.codec_selfName.decode(param1) as String;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:ClanChatCC = ClanChatCC(param2);
this.codec_inClan.encode(param1,local3.inClan);
this.codec_selfName.encode(param1,local3.selfName);
}
}
}
|
package mx.core {
public interface IFlexAsset {
}
}
|
package alternativa.tanks.gui
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class UpgradeIndicator_bitmapUpgradeIconEmpty extends BitmapAsset
{
public function UpgradeIndicator_bitmapUpgradeIconEmpty()
{
super();
}
}
}
|
package forms.friends.list
{
import alternativa.tanks.model.Friend;
import forms.friends.IFriendsListState;
import forms.friends.list.dataprovider.FriendsDataProvider;
import forms.friends.list.renderer.FriendsAcceptedListRenderer;
import forms.friends.list.renderer.HeaderAcceptedList;
public class AcceptedList extends FriendsList implements IFriendsListState
{
public static var SCROLL_ON:Boolean;
private var _header:HeaderAcceptedList;
public function AcceptedList()
{
this._header = new HeaderAcceptedList();
super();
init(FriendsAcceptedListRenderer);
_dataProvider.getItemAtHandler = this.markAsViewed;
addChild(this._header);
}
private function markAsViewed(param1:Object) : void
{
if(!isViewed(param1) && param1.isNew)
{
setAsViewed(param1);
}
}
public function initList() : void
{
_dataProvider.sortOn([FriendsDataProvider.IS_NEW,FriendsDataProvider.ONLINE,FriendsDataProvider.IS_BATTLE,FriendsDataProvider.UID],[Array.NUMERIC | Array.DESCENDING,Array.NUMERIC | Array.DESCENDING,Array.NUMERIC | Array.DESCENDING,Array.CASEINSENSITIVE]);
fillFriendsList(Friend.friends);
_list.scrollToIndex(2);
this.resize(_width,_height);
}
public function addFriends(uid:String, id:int, rank:int, isOnline:Boolean) : void
{
addFriend(uid,id,rank,isOnline);
}
override public function resize(param1:Number, param2:Number) : void
{
_width = param1;
_height = param2;
AcceptedList.SCROLL_ON = _list.verticalScrollBar.visible;
this._header.width = _width;
_list.y = 20;
_list.width = !!AcceptedList.SCROLL_ON ? Number(Number(Number(_width + 6))) : Number(Number(Number(_width)));
_list.height = _height - 20;
}
public function onRemoveFromFriends() : void
{
_dataProvider.removeAll();
_dataProvider.refresh();
this.resize(_width,_height);
}
public function hide() : void
{
if(parent.contains(this))
{
parent.removeChild(this);
_dataProvider.removeAll();
}
}
public function filter(param1:String, param2:String) : void
{
filterByProperty(param1,param2);
this.resize(_width,_height);
}
public function resetFilter() : void
{
_dataProvider.resetFilter();
this.resize(_width,_height);
}
}
}
|
package controls.base {
public class MainPanelGarageButtonBase extends MainPanelButtonBase {
private var iconClass:Class = MainPanelGarageButtonBase_iconClass;
public function MainPanelGarageButtonBase() {
super(this.iconClass);
}
}
}
|
package alternativa.physics.contactislands {
import alternativa.physics.Body;
import alternativa.physics.BodyContact;
public class ContactLevels {
private const contacts:Vector.<BodyContact> = new Vector.<BodyContact>();
public function ContactLevels() {
super();
}
public function init(param1:Vector.<BodyContact>) : void {
var local2:int = int(param1.length);
this.contacts.length = local2;
var local3:int = 0;
while(local3 < local2) {
this.contacts[local3] = param1[local3];
local3++;
}
}
public function clear() : void {
this.contacts.length = 0;
}
public function getStaticLevel(param1:Vector.<BodyContact>, param2:Vector.<Body>) : void {
var local3:int = 0;
var local4:BodyContact = null;
local3 = 0;
while(local3 < this.contacts.length) {
local4 = this.contacts[local3];
if(this.isStaticContact(local4)) {
param1[param1.length] = local4;
param2[param2.length] = this.getNonStaticBody(local4);
this.removeContact(local3);
local3--;
}
local3++;
}
local3 = 0;
while(local3 < this.contacts.length) {
local4 = this.contacts[local3];
if(param2.indexOf(local4.body1) >= 0 && param2.indexOf(local4.body2) >= 0) {
param1[param1.length] = local4;
this.removeContact(local3);
local3--;
}
local3++;
}
}
private function isStaticContact(param1:BodyContact) : Boolean {
return !(param1.body1.movable && param1.body2.movable);
}
private function getNonStaticBody(param1:BodyContact) : Body {
if(param1.body1.movable) {
return param1.body1;
}
return param1.body2;
}
private function removeContact(param1:int) : void {
var local2:int = this.contacts.length - 1;
this.contacts[param1] = this.contacts[local2];
this.contacts.length = local2;
}
public function getNextLevel(param1:Vector.<Body>, param2:Vector.<BodyContact>, param3:Vector.<Body>) : void {
var local4:int = 0;
var local5:BodyContact = null;
local4 = 0;
while(local4 < this.contacts.length) {
local5 = this.contacts[local4];
if(this.isInContactWith(param1,local5)) {
param2[param2.length] = local5;
param3[param3.length] = this.getNextLevelBody(local5,param1);
this.removeContact(local4);
local4--;
}
local4++;
}
local4 = 0;
while(local4 < this.contacts.length) {
local5 = this.contacts[local4];
if(param3.indexOf(local5.body1) >= 0 && param3.indexOf(local5.body2) >= 0) {
param2[param2.length] = local5;
this.removeContact(local4);
local4--;
}
local4++;
}
}
private function isInContactWith(param1:Vector.<Body>, param2:BodyContact) : Boolean {
return param1.indexOf(param2.body1) >= 0 || param1.indexOf(param2.body2) >= 0;
}
private function getNextLevelBody(param1:BodyContact, param2:Vector.<Body>) : Body {
if(param2.indexOf(param1.body1) < 0) {
return param1.body1;
}
return param1.body2;
}
public function hasContacts() : Boolean {
return this.contacts.length > 0;
}
}
}
|
package alternativa.tanks.gui.shop.shopitems.item.kits {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.shop.shopitems.item.kits.SpecialKitIcons_premiumSmallClass.png")]
public class SpecialKitIcons_premiumSmallClass extends BitmapAsset {
public function SpecialKitIcons_premiumSmallClass() {
super();
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.