code stringlengths 57 237k |
|---|
package forms.ranks {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapSmallRank21.png")]
public class DefaultRanksBitmaps_bitmapSmallRank21 extends BitmapAsset {
public function DefaultRanksBitmaps_bitmapSmallRank21() {
super();
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.weapons.rocketlauncher.sfx {
import platform.client.fp10.core.resource.types.MultiframeTextureResource;
import platform.client.fp10.core.resource.types.SoundResource;
import platform.client.fp10.core.resource.types.TextureResource;
import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingSFXEntity;
public class RocketLauncherSfxCC {
private var _aimingCompleteSound:SoundResource;
private var _aimingSound:SoundResource;
private var _explosionMarkTexture:TextureResource;
private var _explosionTexture:MultiframeTextureResource;
private var _leftHitSounds:SoundResource;
private var _leftShotSounds:SoundResource;
private var _lightingSFXEntity:LightingSFXEntity;
private var _rightHitSounds:SoundResource;
private var _rightShotSounds:SoundResource;
private var _rocketFlameTexture:TextureResource;
private var _rocketFlightSound:SoundResource;
private var _rocketSmokeTexture:TextureResource;
private var _rocketTexture:TextureResource;
private var _targetLostSound:SoundResource;
public function RocketLauncherSfxCC(param1:SoundResource = null, param2:SoundResource = null, param3:TextureResource = null, param4:MultiframeTextureResource = null, param5:SoundResource = null, param6:SoundResource = null, param7:LightingSFXEntity = null, param8:SoundResource = null, param9:SoundResource = null, param10:TextureResource = null, param11:SoundResource = null, param12:TextureResource = null, param13:TextureResource = null, param14:SoundResource = null) {
super();
this._aimingCompleteSound = param1;
this._aimingSound = param2;
this._explosionMarkTexture = param3;
this._explosionTexture = param4;
this._leftHitSounds = param5;
this._leftShotSounds = param6;
this._lightingSFXEntity = param7;
this._rightHitSounds = param8;
this._rightShotSounds = param9;
this._rocketFlameTexture = param10;
this._rocketFlightSound = param11;
this._rocketSmokeTexture = param12;
this._rocketTexture = param13;
this._targetLostSound = param14;
}
public function get aimingCompleteSound() : SoundResource {
return this._aimingCompleteSound;
}
public function set aimingCompleteSound(param1:SoundResource) : void {
this._aimingCompleteSound = param1;
}
public function get aimingSound() : SoundResource {
return this._aimingSound;
}
public function set aimingSound(param1:SoundResource) : void {
this._aimingSound = param1;
}
public function get explosionMarkTexture() : TextureResource {
return this._explosionMarkTexture;
}
public function set explosionMarkTexture(param1:TextureResource) : void {
this._explosionMarkTexture = param1;
}
public function get explosionTexture() : MultiframeTextureResource {
return this._explosionTexture;
}
public function set explosionTexture(param1:MultiframeTextureResource) : void {
this._explosionTexture = param1;
}
public function get leftHitSounds() : SoundResource {
return this._leftHitSounds;
}
public function set leftHitSounds(param1:SoundResource) : void {
this._leftHitSounds = param1;
}
public function get leftShotSounds() : SoundResource {
return this._leftShotSounds;
}
public function set leftShotSounds(param1:SoundResource) : void {
this._leftShotSounds = param1;
}
public function get lightingSFXEntity() : LightingSFXEntity {
return this._lightingSFXEntity;
}
public function set lightingSFXEntity(param1:LightingSFXEntity) : void {
this._lightingSFXEntity = param1;
}
public function get rightHitSounds() : SoundResource {
return this._rightHitSounds;
}
public function set rightHitSounds(param1:SoundResource) : void {
this._rightHitSounds = param1;
}
public function get rightShotSounds() : SoundResource {
return this._rightShotSounds;
}
public function set rightShotSounds(param1:SoundResource) : void {
this._rightShotSounds = param1;
}
public function get rocketFlameTexture() : TextureResource {
return this._rocketFlameTexture;
}
public function set rocketFlameTexture(param1:TextureResource) : void {
this._rocketFlameTexture = param1;
}
public function get rocketFlightSound() : SoundResource {
return this._rocketFlightSound;
}
public function set rocketFlightSound(param1:SoundResource) : void {
this._rocketFlightSound = param1;
}
public function get rocketSmokeTexture() : TextureResource {
return this._rocketSmokeTexture;
}
public function set rocketSmokeTexture(param1:TextureResource) : void {
this._rocketSmokeTexture = param1;
}
public function get rocketTexture() : TextureResource {
return this._rocketTexture;
}
public function set rocketTexture(param1:TextureResource) : void {
this._rocketTexture = param1;
}
public function get targetLostSound() : SoundResource {
return this._targetLostSound;
}
public function set targetLostSound(param1:SoundResource) : void {
this._targetLostSound = param1;
}
public function toString() : String {
var local1:String = "RocketLauncherSfxCC [";
local1 += "aimingCompleteSound = " + this.aimingCompleteSound + " ";
local1 += "aimingSound = " + this.aimingSound + " ";
local1 += "explosionMarkTexture = " + this.explosionMarkTexture + " ";
local1 += "explosionTexture = " + this.explosionTexture + " ";
local1 += "leftHitSounds = " + this.leftHitSounds + " ";
local1 += "leftShotSounds = " + this.leftShotSounds + " ";
local1 += "lightingSFXEntity = " + this.lightingSFXEntity + " ";
local1 += "rightHitSounds = " + this.rightHitSounds + " ";
local1 += "rightShotSounds = " + this.rightShotSounds + " ";
local1 += "rocketFlameTexture = " + this.rocketFlameTexture + " ";
local1 += "rocketFlightSound = " + this.rocketFlightSound + " ";
local1 += "rocketSmokeTexture = " + this.rocketSmokeTexture + " ";
local1 += "rocketTexture = " + this.rocketTexture + " ";
local1 += "targetLostSound = " + this.targetLostSound + " ";
return local1 + "]";
}
}
}
|
package alternativa.tanks.gui.skins {
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.gui.device.DevicesIcons;
import alternativa.tanks.gui.device.list.DeviceBorder;
import alternativa.tanks.model.item.skins.MountSkin;
import alternativa.tanks.service.garage.GarageService;
import alternativa.tanks.service.item.ItemService;
import alternativa.types.Long;
import base.DiscreteSprite;
import controls.base.ThreeLineBigButton;
import controls.labels.MouseDisabledLabel;
import flash.display.Bitmap;
import flash.events.Event;
import flash.events.MouseEvent;
import forms.ColorConstants;
import platform.client.fp10.core.resource.types.ImageResource;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.clients.fp10.libraries.TanksLocale;
import projects.tanks.clients.fp10.libraries.tanksservices.service.dialogs.gui.DialogEvent;
import utils.preview.IImageResource;
import utils.preview.ImageResourceLoadingWrapper;
public class SkinDescription extends DiscreteSprite implements IImageResource {
[Inject]
public static var itemService:ItemService;
[Inject]
public static var localeService:ILocaleService;
[Inject]
public static var garageService:GarageService;
private static const ICON_SIZE:int = 64;
private static const DESCRIPTION_WIDTH:int = 200;
private var icon:Bitmap = new Bitmap();
public var buyButton:ThreeLineBigButton = new ThreeLineBigButton();
public var mountButton:ThreeLineBigButton = new ThreeLineBigButton();
private var border:DeviceBorder;
private var iconResource:ImageResource;
private var iconLoadListener:ImageResourceLoadingWrapper;
public var skin:IGameObject;
public var item:IGameObject;
public function SkinDescription(param1:IGameObject, param2:IGameObject) {
super();
this.item = param1;
this.skin = param2;
this.icon.x = 30;
this.icon.y = 20;
if(param2 == param1) {
this.icon.bitmapData = DevicesIcons.iconDefaultSkinBitmap;
} else {
this.iconResource = itemService.getPreviewResource(param2);
if(Boolean(this.iconResource.isLazy) && !this.iconResource.isLoaded) {
this.iconLoadListener = new ImageResourceLoadingWrapper(this);
if(!this.iconResource.isLoading) {
this.iconResource.loadLazyResource(this.iconLoadListener);
} else {
this.iconResource.addLazyListener(this.iconLoadListener);
}
} else {
this.icon.bitmapData = this.iconResource.data;
}
}
addChild(this.icon);
var local3:MouseDisabledLabel = new MouseDisabledLabel();
local3.size = 18;
local3.color = ColorConstants.GREEN_TEXT;
local3.width = DESCRIPTION_WIDTH;
local3.wordWrap = true;
local3.x = this.icon.x + ICON_SIZE + 10;
local3.y = 20;
local3.text = param2 == param1 ? localeService.getText(TanksLocale.TEXT_DEVICES_STANDARD_SETTINGS) : itemService.getName(param2);
addChild(local3);
var local4:MouseDisabledLabel = new MouseDisabledLabel();
local4.color = ColorConstants.GREEN_TEXT;
local4.multiline = true;
local4.wordWrap = true;
local4.width = DESCRIPTION_WIDTH;
local4.x = local3.x;
local4.y = local3.y + local3.height + 8;
local4.text = param1 == param2 ? localeService.getText(TanksLocale.TEXT_DEVICES_STANDARD_SETTINGS_DESCRIPTION) : itemService.getDescription(param2);
addChild(local4);
this.border = new DeviceBorder(local4.y + local4.height + 20,true);
this.border.x = 10;
addChild(this.border);
this.mountButton.x = this.border.x + this.border.width - this.mountButton.width - 20;
this.mountButton.y = this.border.height - this.mountButton.height >> 1;
addChild(this.mountButton);
this.buyButton.setText(localeService.getText(TanksLocale.TEXT_GARAGE_BUY_TEXT));
this.buyButton.x = this.mountButton.x;
this.buyButton.y = this.mountButton.y;
this.mountButton.addEventListener(MouseEvent.CLICK,this.onMount);
}
private function onBuy(param1:MouseEvent) : void {
var local2:IGameObject = this.item.space.getObject(Long.getLong(214,886180036));
garageService.getView().showItemInCategory(local2);
dispatchEvent(new Event(DialogEvent.CLOSE));
}
private function onMount(param1:MouseEvent) : void {
MountSkin(this.item.adapt(MountSkin)).mount(this.skin);
dispatchEvent(new Event(Event.CHANGE));
}
public function update() : void {
var local1:Boolean = Boolean(itemService.hasItem(this.skin));
var local2:Boolean = MountSkin(this.item.adapt(MountSkin)).getMountedSkin() == this.skin;
this.buyButton.visible = !local1;
this.mountButton.visible = local1;
this.mountButton.enabled = !local2;
this.mountButton.label = localeService.getText(local2 ? TanksLocale.TEXT_GARAGE_EQUIPPED_TEXT : TanksLocale.TEXT_GARAGE_INFO_PANEL_BUTTON_EQUIP_TEXT);
}
public function destroy() : void {
if(this.iconLoadListener != null) {
this.iconResource.removeLazyListener(this.iconLoadListener);
}
}
public function setPreviewResource(param1:ImageResource) : void {
this.icon.bitmapData = param1.data;
}
}
}
|
package projects.tanks.client.tanksservices.model.uidcheck {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.EnumCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.registry.ModelRegistry;
import platform.client.models.commons.types.ValidationStatus;
public class UidCheckModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:UidCheckModelServer;
private var client:IUidCheckModelBase = IUidCheckModelBase(this);
private var modelId:Long = Long.getLong(1543089237,611543143);
private var _validateResultId:Long = Long.getLong(317069682,-1647554367);
private var _validateResult_statusCodec:ICodec;
public function UidCheckModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new UidCheckModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(UidCheckCC,false)));
this._validateResult_statusCodec = this._protocol.getCodec(new EnumCodecInfo(ValidationStatus,false));
}
protected function getInitParam() : UidCheckCC {
return UidCheckCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._validateResultId:
this.client.validateResult(ValidationStatus(this._validateResult_statusCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.tanks.model.news
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class NewsIcons_shaft extends BitmapAsset
{
public function NewsIcons_shaft()
{
super();
}
}
}
|
package alternativa.tanks.models.weapon.rocketlauncher.weapon.salvo.aim {
import alternativa.engine3d.materials.TextureMaterial;
import alternativa.engine3d.objects.Sprite3D;
import alternativa.math.Vector3;
import alternativa.tanks.battle.BattleService;
import alternativa.tanks.battle.objects.tank.ClientTankState;
import alternativa.tanks.battle.objects.tank.Tank;
import alternativa.tanks.battle.scene3d.Renderer;
import alternativa.tanks.camera.GameCamera;
import alternativa.tanks.models.weapon.rocketlauncher.weapon.salvo.RocketTargetPoint;
import flash.display.BitmapData;
public class RocketLauncherAim implements Renderer {
[Inject]
public static var battleService:BattleService;
private static const position:Vector3 = new Vector3();
private var visible:Boolean;
private var spriteAim:Sprite3D;
private var target:RocketTargetPoint;
private var aimShape:AimShape;
private var soundEffect:AimSoundEffect;
private var weaponStatus:AimWeaponStatus;
private var targetWasLost:Boolean;
public function RocketLauncherAim(param1:RocketTargetPoint, param2:AimWeaponStatus, param3:AimSoundEffect) {
super();
this.target = param1;
this.soundEffect = param3;
this.weaponStatus = param2;
this.aimShape = new AimShape();
var local4:BitmapData = new BitmapData(this.aimShape.width,this.aimShape.height,true,0);
this.aimShape.setTexture(local4);
var local5:TextureMaterial = new TextureMaterial(local4);
local5.uploadEveryFrame = true;
this.spriteAim = new Sprite3D(this.aimShape.width,this.aimShape.height,local5);
this.spriteAim.perspectiveScale = false;
this.spriteAim.useShadowMap = false;
this.spriteAim.useLight = false;
this.spriteAim.depthTest = false;
}
public function show() : void {
if(!this.visible) {
battleService.getBattleScene3D().getFrontContainer().addChild(this.spriteAim);
battleService.getBattleScene3D().addRenderer(this,0);
this.visible = true;
this.targetWasLost = false;
this.soundEffect.playAimingSoundEffect();
}
}
public function hide() : void {
if(this.visible) {
battleService.getBattleScene3D().getFrontContainer().removeChild(this.spriteAim);
battleService.getBattleScene3D().removeRenderer(this,0);
this.visible = false;
this.soundEffect.killAimingSoundEffect();
}
}
public function render(param1:int, param2:int) : void {
var local4:GameCamera = null;
var local5:Vector3 = null;
var local6:Vector3 = null;
var local3:Tank = this.target.getTank();
if(this.target.hasTarget() && local3.state == ClientTankState.ACTIVE) {
this.actualizeEffects();
local4 = battleService.getBattleScene3D().getCamera();
local5 = local4.position;
local6 = local3.interpolatedPosition;
if(local4.fogNear > 0) {
position.diff(local6,local5).setLength(local4.fogNear * 0.5).add(local5);
} else {
position.copy(local6);
}
this.spriteAim.x = position.x;
this.spriteAim.y = position.y;
this.spriteAim.z = position.z;
this.targetWasLost = this.target.isLost();
} else {
this.hide();
}
}
private function actualizeEffects() : void {
this.aimShape.update(this.target.isLost(),1 - this.weaponStatus.getStatus());
if(this.targetWasLost != this.target.isLost()) {
if(this.target.isLost()) {
this.soundEffect.playTargetLostSoundEffect();
} else {
this.soundEffect.playAimingSoundEffect();
}
}
}
}
}
|
package alternativa.tanks.models.tank {
import alternativa.tanks.battle.objects.tank.Tank;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class TankPartResetAdapt implements TankPartReset {
private var object:IGameObject;
private var impl:TankPartReset;
public function TankPartResetAdapt(param1:IGameObject, param2:TankPartReset) {
super();
this.object = param1;
this.impl = param2;
}
public function resetTankPart(param1:Tank) : void {
var tank:Tank = param1;
try {
Model.object = this.object;
this.impl.resetTankPart(tank);
}
finally {
Model.popObject();
}
}
}
}
|
package _codec.projects.tanks.client.battlefield.types {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.EnumCodecInfo;
import projects.tanks.client.battlefield.types.DamageType;
public class VectorCodecDamageTypeLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecDamageTypeLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new EnumCodecInfo(DamageType,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.<DamageType> = new Vector.<DamageType>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = DamageType(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:DamageType = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<DamageType> = Vector.<DamageType>(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.battle.facilities {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class BattleUnloadListenerEvents implements BattleUnloadListener {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function BattleUnloadListenerEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function battleUnload() : void {
var i:int = 0;
var m:BattleUnloadListener = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = BattleUnloadListener(this.impl[i]);
m.battleUnload();
i++;
}
}
finally {
Model.popObject();
}
}
}
}
|
package projects.tanks.client.panel.model.usercountry {
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 UserCountryModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:UserCountryModelServer;
private var client:IUserCountryModelBase = IUserCountryModelBase(this);
private var modelId:Long = Long.getLong(484417400,-1976122270);
private var _requestUserCountryId:Long = Long.getLong(1625272162,1958733747);
private var _requestUserCountry_defaultCountryCodeCodec:ICodec;
private var _showPaymentWindowId:Long = Long.getLong(432115653,1756131906);
public function UserCountryModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new UserCountryModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(UserCountryCC,false)));
this._requestUserCountry_defaultCountryCodeCodec = this._protocol.getCodec(new TypeCodecInfo(String,true));
}
protected function getInitParam() : UserCountryCC {
return UserCountryCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._requestUserCountryId:
this.client.requestUserCountry(String(this._requestUserCountry_defaultCountryCodeCodec.decode(param2)));
break;
case this._showPaymentWindowId:
this.client.showPaymentWindow();
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.gfx.agal {
import flash.utils.ByteArray;
public class SamplerRegister extends Register {
protected var samplerbits:int = 5;
public function SamplerRegister(param1:int) {
super();
this.index = param1;
}
public function dim(param1:SamplerDim) : SamplerRegister {
this.addSamplerOption(param1);
return this;
}
public function type(param1:SamplerType) : SamplerRegister {
this.addSamplerOption(param1);
return this;
}
public function special(param1:SamplerSpecial) : SamplerRegister {
this.addSamplerOption(param1);
return this;
}
public function repeat(param1:SamplerRepeat) : SamplerRegister {
this.addSamplerOption(param1);
return this;
}
public function mipmap(param1:SamplerMipMap) : SamplerRegister {
this.addSamplerOption(param1);
return this;
}
public function filter(param1:SamplerFilter) : SamplerRegister {
this.addSamplerOption(param1);
return this;
}
private function addSamplerOption(param1:SamplerOption) : void {
this.samplerbits = param1.apply(this.samplerbits);
}
override public function writeSource(param1:ByteArray) : void {
param1.writeShort(index);
param1.writeShort(0);
param1.writeUnsignedInt(this.samplerbits);
this.samplerbits = 5;
}
}
}
|
package _codec.projects.tanks.client.tanksservices.model.listener {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import projects.tanks.client.tanksservices.model.listener.UserNotifierCC;
public class CodecUserNotifierCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_currentUserId:ICodec;
public function CodecUserNotifierCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_currentUserId = param1.getCodec(new TypeCodecInfo(Long,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:UserNotifierCC = new UserNotifierCC();
local2.currentUserId = this.codec_currentUserId.decode(param1) as Long;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:UserNotifierCC = UserNotifierCC(param2);
this.codec_currentUserId.encode(param1,local3.currentUserId);
}
}
}
|
package platform.client.fp10.core.network.command.control.server {
import alternativa.osgi.service.network.INetworkService;
import alternativa.types.Long;
import platform.client.fp10.core.network.ControlChannelContext;
import platform.client.fp10.core.network.command.ControlCommand;
import platform.client.fp10.core.network.command.IServerControlCommand;
import platform.client.fp10.core.network.handler.SpaceCommandHandler;
import platform.client.fp10.core.registry.SpaceRegistry;
import platform.client.fp10.core.type.impl.Space;
public class OpenSpaceCommand extends ControlCommand implements IServerControlCommand {
[Inject]
public static var spaceRegistry:SpaceRegistry;
[Inject]
public static var networkService:INetworkService;
private var spaceId:Long;
public function OpenSpaceCommand(param1:Long) {
super(ControlCommand.SV_OPEN_SPACE,"Open space");
this.spaceId = param1;
}
public function execute(param1:ControlChannelContext) : void {
var local2:SpaceCommandHandler = new SpaceCommandHandler(param1.hash);
var local3:Space = new Space(this.spaceId,local2,param1.spaceProtocol,param1.channelProtectionEnabled);
spaceRegistry.addSpace(local3);
local3.connect(networkService.controlServerAddress,networkService.controlServerPorts);
}
}
}
|
package alternativa.tanks.model.challenge
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class ChallengeWindow_noQuestBitmap extends BitmapAsset
{
public function ChallengeWindow_noQuestBitmap()
{
super();
}
}
}
|
package alternativa.tanks.models.battle.battlefield.keyboard {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.keyboard.DeviceIcons_freezehighpressurepumpIconClass.png")]
public class DeviceIcons_freezehighpressurepumpIconClass extends BitmapAsset {
public function DeviceIcons_freezehighpressurepumpIconClass() {
super();
}
}
}
|
package projects.tanks.client.panel.model.socialnetwork.notification {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
public class SNGroupReminderModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:SNGroupReminderModelServer;
private var client:ISNGroupReminderModelBase = ISNGroupReminderModelBase(this);
private var modelId:Long = Long.getLong(490510137,-613242056);
private var _checkIsInGroupId:Long = Long.getLong(427740815,-932994949);
private var _checkIsInGroup_uidCodec:ICodec;
private var _checkIsInGroup_snIdCodec:ICodec;
private var _showCongratulationsWindowId:Long = Long.getLong(191744022,-2101440939);
public function SNGroupReminderModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new SNGroupReminderModelServer(IModel(this));
this._checkIsInGroup_uidCodec = this._protocol.getCodec(new TypeCodecInfo(String,false));
this._checkIsInGroup_snIdCodec = this._protocol.getCodec(new TypeCodecInfo(String,false));
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._checkIsInGroupId:
this.client.checkIsInGroup(String(this._checkIsInGroup_uidCodec.decode(param2)),String(this._checkIsInGroup_snIdCodec.decode(param2)));
break;
case this._showCongratulationsWindowId:
this.client.showCongratulationsWindow();
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.user.tank.commands {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.EnumCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Byte;
import alternativa.types.Float;
import projects.tanks.client.battlefield.models.user.tank.commands.TurretControlType;
import projects.tanks.client.battlefield.models.user.tank.commands.TurretStateCommand;
public class CodecTurretStateCommand implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_controlInput:ICodec;
private var codec_controlType:ICodec;
private var codec_direction:ICodec;
private var codec_rotationSpeedNumber:ICodec;
public function CodecTurretStateCommand() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_controlInput = param1.getCodec(new TypeCodecInfo(Float,false));
this.codec_controlType = param1.getCodec(new EnumCodecInfo(TurretControlType,false));
this.codec_direction = param1.getCodec(new TypeCodecInfo(Float,false));
this.codec_rotationSpeedNumber = param1.getCodec(new TypeCodecInfo(Byte,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:TurretStateCommand = new TurretStateCommand();
local2.controlInput = this.codec_controlInput.decode(param1) as Number;
local2.controlType = this.codec_controlType.decode(param1) as TurretControlType;
local2.direction = this.codec_direction.decode(param1) as Number;
local2.rotationSpeedNumber = this.codec_rotationSpeedNumber.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:TurretStateCommand = TurretStateCommand(param2);
this.codec_controlInput.encode(param1,local3.controlInput);
this.codec_controlType.encode(param1,local3.controlType);
this.codec_direction.encode(param1,local3.direction);
this.codec_rotationSpeedNumber.encode(param1,local3.rotationSpeedNumber);
}
}
}
|
package {
import assets.combo.ComboOverButton;
[Embed(source="/_assets/assets.swf", symbol="symbol1015")]
public dynamic class ComboBox_overSkin extends ComboOverButton {
public function ComboBox_overSkin() {
super();
}
}
}
|
package alternativa.engine3d.loaders.events {
import flash.events.Event;
public class LoaderEvent extends Event {
public static const PART_OPEN:String = "partOpen";
public static const PART_COMPLETE:String = "partComplete";
private var _partsTotal:int;
private var _currentPart:int;
private var _target:Object;
public function LoaderEvent(param1:String, param2:int, param3:int, param4:Object = null) {
super(param1);
this._partsTotal = param2;
this._currentPart = param3;
this._target = param4;
}
public function get partsTotal() : int {
return this._partsTotal;
}
public function get currentPart() : int {
return this._currentPart;
}
override public function get target() : Object {
return this._target;
}
override public function clone() : Event {
return new LoaderEvent(type,this._partsTotal,this._currentPart,this._target);
}
override public function toString() : String {
return "[LoaderEvent type=" + type + ", partsTotal=" + this._partsTotal + ", currentPart=" + this._currentPart + ", target=" + this._target + "]";
}
}
}
|
package alternativa.tanks.gui.friends.list.refferals.referalbuttons {
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.service.referrals.ReferralsService;
import flash.display.BitmapData;
import flash.events.MouseEvent;
import flash.system.System;
import forms.stat.ReferralWindowBigButton;
import projects.tanks.clients.fp10.libraries.TanksLocale;
public class LinkReferralButton extends ReferralWindowBigButton {
[Inject]
public static var localeService:ILocaleService;
[Inject]
public static var referralService:ReferralsService;
private static const bitmapIconLink:Class = LinkReferralButton_bitmapIconLink;
private static const iconLinkBd:BitmapData = new bitmapIconLink().bitmapData;
public function LinkReferralButton() {
super();
icon = iconLinkBd;
label = localeService.getText(TanksLocale.TEXT_COPY_LINK_BUTTON_LABEL);
addEventListener(MouseEvent.CLICK,this.onLinkClick);
}
private function onLinkClick(param1:MouseEvent) : void {
System.setClipboard(referralService.getInviteLink());
label = localeService.getText(TanksLocale.TEXT_LINK_IS_COPIED_BUTTON_LABEL);
}
}
}
|
package alternativa.tanks.models.weapon.turret {
import alternativa.tanks.battle.LogicUnit;
import alternativa.tanks.battle.objects.tank.controllers.Turret;
import alternativa.tanks.utils.MathUtils;
import projects.tanks.client.battlefield.models.user.tank.commands.TurretControlType;
import projects.tanks.client.battlefield.models.user.tank.commands.TurretStateCommand;
public class TurretStateUpdater implements LogicUnit {
private static const MAX_TARGET_DIRECTION_DELTA:Number = MathUtils.toRadians(5);
private static const MAX_DIRECTION_DELTA:Number = Math.PI / 6;
private var turret:Turret;
private const lastSentState:TurretStateCommand = new TurretStateCommand();
private var millisSinceLastUpdate:int;
private var updateCallback:Function;
public function TurretStateUpdater(param1:Turret, param2:Function) {
super();
this.turret = param1;
this.updateCallback = param2;
}
public function reset() : void {
this.millisSinceLastUpdate = 0;
RotatingTurretModel.copyStateFromTurret(this.turret,this.lastSentState);
}
private function sendUpdate() : void {
this.reset();
this.updateCallback();
}
public function runLogic(param1:int, param2:int) : void {
this.millisSinceLastUpdate += param2;
if(this.turretStateChanged()) {
this.sendUpdate();
}
}
private function turretStateChanged() : Boolean {
var local3:Number = NaN;
var local1:TurretControlType = this.lastSentState.controlType;
if(local1 != this.turret.getTurretRealControlType()) {
return true;
}
switch(local1) {
case TurretControlType.ROTATION_DIRECTION:
if(this.lastSentState.controlInput != this.turret.getTurretRealControlInput()) {
return true;
}
break;
default:
local3 = MathUtils.clampAngleDelta(this.turret.getTurretRealControlInput(),this.lastSentState.controlInput);
if(Math.abs(local3) > MAX_TARGET_DIRECTION_DELTA) {
return true;
}
break;
}
var local2:Number = MathUtils.clampAngleDelta(this.turret.getTurretPhysicsDirection(),this.lastSentState.direction);
return Math.abs(local2) > MAX_DIRECTION_DELTA;
}
}
}
|
package alternativa.osgi.service.locale {
import flash.display.BitmapData;
import flash.display.DisplayObjectContainer;
import flash.utils.Dictionary;
public class LocaleService implements ILocaleService {
private var strings:Object = {};
private var images:Object = {};
private var movies:Object = {};
private var booleans:Object = {};
private var numbers:Object = {};
private var ints:Object = {};
private var _language:String;
private var _defaultLanguage:String;
public function LocaleService(param1:String, param2:String) {
super();
this._language = param1;
this._defaultLanguage = param2;
this.strings = new Dictionary();
this.images = new Dictionary();
}
public function setText(param1:String, param2:String) : void {
this.strings[param1] = param2;
}
public function setImage(param1:String, param2:BitmapData) : void {
this.images[param1] = param2;
}
public function setBoolean(param1:String, param2:Boolean) : void {
this.booleans[param1] = param2;
}
public function setNumber(param1:String, param2:Number) : void {
this.numbers[param1] = param2;
}
public function setInt(param1:String, param2:int) : void {
this.ints[param1] = param2;
}
public function getText(param1:String, ... rest) : String {
var local3:String = this.strings[param1];
if(local3 == null) {
return param1;
}
var local4:int = 0;
while(local4 < rest.length) {
local3 = local3.replace("%" + (local4 + 1),rest[local4]);
local4++;
}
return local3;
}
public function getImage(param1:String) : BitmapData {
return this.images[param1];
}
public function getBoolean(param1:String) : Boolean {
return this.booleans[param1];
}
public function getNumber(param1:String) : Number {
return this.numbers[param1];
}
public function getInt(param1:String) : int {
return this.ints[param1];
}
public function get language() : String {
return this._language;
}
public function get defaultLanguage() : String {
return this._defaultLanguage;
}
public function getMovie(param1:String) : DisplayObjectContainer {
return this.movies[param1];
}
public function setMovie(param1:String, param2:DisplayObjectContainer) : void {
this.movies[param1] = param2;
}
public function getTextWithPrefix(param1:String) : Array {
var local3:String = null;
var local2:Array = [];
for(local3 in this.strings) {
if(local3.indexOf(param1) == 0) {
local2.push(this.strings[local3]);
}
}
return local2;
}
}
}
|
package com.lorentz.SVG.display {
public class SVGClipPath extends SVGG {
public function SVGClipPath(){
super();
style.setProperty("fill", "black");
visible = false;
}
}
} |
package alternativa.tanks.vehicles.tanks
{
public class calculateTrackSpeed
{
private static const FORWARD:int = 1;
private static const BACK:int = 2;
private static const LEFT:int = 4;
private static const RIGHT:int = 8;
private static const minSpeed:Number = 0.1;
private static const minASpeed:Number = 0.01;
private var k_V:Number = 0.01;
private var k_aV:Number = 2.49;
private var speedSmoother:Number = 0.3;
private var antiSSFConst:Number = 1.5;
private var trackVelocities:Array;
public function calculateTrackSpeed()
{
this.trackVelocities = new Array();
super();
}
public function calcTrackSpeed(moduleV:Number, moduleaV:Number, controlbits:int, numContacts:int, numCollision:int, maxSpeed:Number, trackID:Number) : Number
{
var desiredSpeedKoef:Number = NaN;
var linearMovementDirection:int = !(controlbits & FORWARD) && !(controlbits & BACK) || controlbits & FORWARD && controlbits & BACK ? int(int(0)) : (!(controlbits & FORWARD) && controlbits & BACK ? int(int(-1)) : int(int(1)));
var angularMovementDirection:int = !(controlbits & LEFT) && !(controlbits & RIGHT) || controlbits & LEFT && controlbits & RIGHT ? int(int(0)) : (!(controlbits & LEFT) && controlbits & RIGHT ? int(int(-1)) : int(int(1)));
var tankState:int = numContacts == 0 ? int(int(-1)) : (numCollision == 0 ? int(int(0)) : int(int(1)));
var isFreezed:Boolean = moduleV < minSpeed * 50 && moduleaV < minASpeed * 500 ? Boolean(Boolean(Boolean(true))) : Boolean(Boolean(Boolean(false)));
var trackSpeed:Number = linearMovementDirection != 0 && angularMovementDirection == 0 ? Number(Number(Number(linearMovementDirection * this.k_V * moduleV))) : (linearMovementDirection == 0 && angularMovementDirection != 0 ? Number(Number(Number(trackID * angularMovementDirection * this.k_aV * moduleaV))) : (linearMovementDirection != 0 && angularMovementDirection < 0 ? Number(Number(Number(Math.pow(3 / 4,linearMovementDirection * trackID) * linearMovementDirection * this.k_V * moduleV))) : (linearMovementDirection != 0 && angularMovementDirection > 0 ? Number(Number(Number(Math.pow(4 / 3,linearMovementDirection * trackID) * linearMovementDirection * this.k_V * moduleV))) : Number(Number(Number(this.trackVelocities[trackID + 1] * (1 - this.speedSmoother)))))));
if(tankState != 0 && (linearMovementDirection != 0 || angularMovementDirection != 0))
{
desiredSpeedKoef = linearMovementDirection != 0 && angularMovementDirection == 0 ? Number(Number(Number(linearMovementDirection * minSpeed))) : (linearMovementDirection == 0 && angularMovementDirection != 0 ? Number(Number(Number(trackID * angularMovementDirection * minASpeed * 10))) : (linearMovementDirection != 0 && angularMovementDirection < 0 ? Number(Number(Number(Math.pow(3 / 4,linearMovementDirection * trackID) * linearMovementDirection * minSpeed))) : (linearMovementDirection != 0 && angularMovementDirection > 0 ? Number(Number(Number(Math.pow(4 / 3,linearMovementDirection * trackID) * linearMovementDirection * minSpeed))) : Number(Number(Number(this.trackVelocities[trackID + 1] * (1 - this.speedSmoother)))))));
trackSpeed = desiredSpeedKoef * (tankState == -1 ? 5 * this.k_V * maxSpeed : (isFreezed == true ? 5 * this.k_V * maxSpeed : 10 * this.k_V * maxSpeed));
}
var actualSpeed:Number = !!isNaN(trackSpeed) ? Number(Number(0)) : Number(Number(trackSpeed));
if(Math.abs(Math.abs(actualSpeed) - 9) < 0.3 || Math.abs(Math.abs(actualSpeed) - 13.5) < 0.3)
{
actualSpeed = this.antiSSFConst * actualSpeed;
}
this.trackVelocities[trackID + 1] = actualSpeed;
return actualSpeed;
}
}
}
|
package alternativa.tanks.model.item.category {
import projects.tanks.client.commons.types.ItemCategoryEnum;
[ModelInterface]
public interface IItemCategory {
function getCategory() : ItemCategoryEnum;
}
}
|
package alternativa {
import flash.display.MovieClip;
public class Alternativa3D extends MovieClip {
public static const version:String = "7.9.0";
public function Alternativa3D() {
super();
}
}
}
|
package alternativa.engine3d.loaders.collada {
public namespace daeAlternativa3DLibrary = "http://alternativaplatform.com/a3d/Library";
}
|
package controls.scroller.red
{
import controls.scroller.ScrollThumbSkin;
public class ScrollThumbSkinRed extends ScrollThumbSkin
{
public function ScrollThumbSkinRed()
{
super();
}
override public function initSkin() : void
{
toppng = new ScrollSkinRed.thumbTop().bitmapData;
midpng = new ScrollSkinRed.thumbMiddle().bitmapData;
}
}
}
|
package projects.tanks.client.garage.models.item.container.lootbox {
import alternativa.osgi.OSGi;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
import projects.tanks.client.garage.models.item.container.ContainerGivenItem;
public class LootBoxModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:LootBoxModelServer;
private var client:ILootBoxModelBase = ILootBoxModelBase(this);
private var modelId:Long = Long.getLong(1980083488,639502934);
private var _openSuccessfulId:Long = Long.getLong(910382979,820768829);
private var _openSuccessful_rewardsCodec:ICodec;
private var _updateCountId:Long = Long.getLong(447542744,65837337);
private var _updateCount_countCodec:ICodec;
public function LootBoxModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new LootBoxModelServer(IModel(this));
this._openSuccessful_rewardsCodec = this._protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(ContainerGivenItem,false),false,1));
this._updateCount_countCodec = this._protocol.getCodec(new TypeCodecInfo(int,false));
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._openSuccessfulId:
this.client.openSuccessful(this._openSuccessful_rewardsCodec.decode(param2) as Vector.<ContainerGivenItem>);
break;
case this._updateCountId:
this.client.updateCount(int(this._updateCount_countCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.tanks.models.weapon.healing {
import alternativa.tanks.battle.objects.tank.Tank;
public interface HealingGun {
function onTargetLost(param1:Tank) : void;
function setBuffedMode(param1:Boolean) : void;
}
}
|
package projects.tanks.client.clans.clan.incoming {
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 ClanIncomingModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function ClanIncomingModelServer(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 scpacker.gui
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class GTanksLoaderWindow_bitmapFuel extends BitmapAsset
{
public function GTanksLoaderWindow_bitmapFuel()
{
super();
}
}
}
|
package _codec.projects.tanks.client.garage.skins.shot {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.CollectionCodecInfo;
import alternativa.protocol.info.TypeCodecInfo;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.garage.skins.shot.AvailableShotSkinsCC;
public class CodecAvailableShotSkinsCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_skins:ICodec;
public function CodecAvailableShotSkinsCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_skins = param1.getCodec(new CollectionCodecInfo(new TypeCodecInfo(IGameObject,false),false,1));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:AvailableShotSkinsCC = new AvailableShotSkinsCC();
local2.skins = this.codec_skins.decode(param1) as Vector.<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:AvailableShotSkinsCC = AvailableShotSkinsCC(param2);
this.codec_skins.encode(param1,local3.skins);
}
}
}
|
package alternativa.tanks.view.icons {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.view.icons.BattleParamsBattleInfoIcons_upgradesClass.png")]
public class BattleParamsBattleInfoIcons_upgradesClass extends BitmapAsset {
public function BattleParamsBattleInfoIcons_upgradesClass() {
super();
}
}
}
|
package projects.tanks.clients.fp10.Prelauncher.locales.DE {
import projects.tanks.clients.fp10.Prelauncher.Locale;
import projects.tanks.clients.fp10.Prelauncher.controls.bottompanel.PartnerLogo.PartnerLogo;
import projects.tanks.clients.fp10.Prelauncher.locales.Locales;
import projects.tanks.clients.fp10.Prelauncher.locales.TextLinkPair;
public class LocaleDE extends Locale {
public function LocaleDE() {
super();
this.name = Locales.DE;
this.playText = "SPIELEN";
this.exitText = "VERLASSEN";
partners.push(PartnerLogo.FB,"https://www.facebook.com/TankiOnlineGer");
partners.push(PartnerLogo.TWITTER,"https://twitter.com/tankionlineger");
partners.push(PartnerLogo.YOUTUBE,"https://www.youtube.com/channel/UCmvpX0vyEJpYkhxjT8kHZvQ");
partners.push(PartnerLogo.INSTAGRAM,"http://instagram.com/tankionlineen");
partners.push(PartnerLogo.GP,"https://plus.google.com/109634410416367176758/");
partners.push(PartnerLogo.TWITCH,"http://www.twitch.tv/tankistarladderde");
this.game = new TextLinkPair("Spiel","http://tankionline.com/de/");
this.materials = new TextLinkPair("Medien","http://tankionline.com/de/media/");
this.tournaments = new TextLinkPair("Turniere","http://tournament.tankionline.com/de/");
this.forum = new TextLinkPair("Forum","http://de.tankiforum.com/");
this.wiki = new TextLinkPair("Wiki","http://de.tankiwiki.com/");
this.ratings = new TextLinkPair("Ratings","http://ratings.tankionline.com/de/");
this.help = new TextLinkPair("Hilfe","http://help.tankionline.com/de/");
this.license = new TextLinkPair("Lizenzvereinbarung","http://tankionline.com/de/eula/");
this.aboutCompany = new TextLinkPair("©2017 Tanki Online Europe Ltd. Alle Rechte vorbehalten.","");
this.techSupport = new TextLinkPair("Bei Fragen kontaktieren Sie unseren Support-Dienst:","");
this.email = new TextLinkPair("help@tankionline.com","mailto:help@tankionline.com");
this.rules = new TextLinkPair("Regeln","http://tankionline.com/de/rules/");
this.confidentialityPolicy = new TextLinkPair("Datenschutz- und Cookie-Richtlinien","http://tankionline.com/de/privacy/");
}
}
}
|
package projects.tanks.client.entrance.model.entrance.objectdetach {
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 EntranceObjectDetachModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function EntranceObjectDetachModelServer(param1:IModel) {
super();
this.model = param1;
var local2:ByteArray = new ByteArray();
this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol));
this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap());
}
}
}
|
package projects.tanks.clients.fp10.libraries.tanksservices.service.dialogwindowdispatcher {
import flash.events.EventDispatcher;
public class DialogWindowsDispatcherService extends EventDispatcher implements IDialogWindowsDispatcherService {
private var _isOpen:Boolean;
public function DialogWindowsDispatcherService() {
super();
}
public function isOpen() : Boolean {
return this._isOpen;
}
public function open() : void {
this._isOpen = true;
dispatchEvent(new DialogWindowsDispatcherServiceEvent(DialogWindowsDispatcherServiceEvent.OPEN));
}
public function close() : void {
this._isOpen = false;
dispatchEvent(new DialogWindowsDispatcherServiceEvent(DialogWindowsDispatcherServiceEvent.CLOSE));
}
public function forciblyClose() : void {
this._isOpen = false;
dispatchEvent(new DialogWindowsDispatcherServiceEvent(DialogWindowsDispatcherServiceEvent.FORCIBLY_CLOSE));
}
}
}
|
package utils
{
import controls.scroller.blue.ScrollSkinBlue;
import controls.scroller.blue.ScrollThumbSkinBlue;
import controls.scroller.gray.ScrollSkinGray;
import controls.scroller.gray.ScrollThumbSkinGray;
import controls.scroller.green.ScrollSkinGreen;
import controls.scroller.green.ScrollThumbSkinGreen;
import controls.scroller.red.ScrollSkinRed;
import controls.scroller.red.ScrollThumbSkinRed;
import fl.core.UIComponent;
public class ScrollStyleUtils
{
public function ScrollStyleUtils()
{
super();
}
public static function setStyle(param1:UIComponent, param2:Class, param3:Class, param4:Class, param5:Class) : void
{
param1.setStyle("downArrowUpSkin",param2);
param1.setStyle("downArrowDownSkin",param2);
param1.setStyle("downArrowOverSkin",param2);
param1.setStyle("downArrowDisabledSkin",param2);
param1.setStyle("upArrowUpSkin",param3);
param1.setStyle("upArrowDownSkin",param3);
param1.setStyle("upArrowOverSkin",param3);
param1.setStyle("upArrowDisabledSkin",param3);
param1.setStyle("trackUpSkin",param4);
param1.setStyle("trackDownSkin",param4);
param1.setStyle("trackOverSkin",param4);
param1.setStyle("trackDisabledSkin",param4);
param1.setStyle("thumbUpSkin",param5);
param1.setStyle("thumbDownSkin",param5);
param1.setStyle("thumbOverSkin",param5);
param1.setStyle("thumbDisabledSkin",param5);
}
public static function setGreenStyle(param1:UIComponent) : void
{
setStyle(param1,ScrollSkinGreen.trackBottom,ScrollSkinGreen.trackTop,ScrollSkinGreen.track,ScrollThumbSkinGreen);
}
public static function setGrayStyle(param1:UIComponent) : void
{
setStyle(param1,ScrollSkinGray.trackBottom,ScrollSkinGray.trackTop,ScrollSkinGray.track,ScrollThumbSkinGray);
}
public static function setBlueStyle(param1:UIComponent) : void
{
setStyle(param1,ScrollSkinBlue.trackBottom,ScrollSkinBlue.trackTop,ScrollSkinBlue.track,ScrollThumbSkinBlue);
}
public static function setRedStyle(param1:UIComponent) : void
{
setStyle(param1,ScrollSkinRed.trackBottom,ScrollSkinRed.trackTop,ScrollSkinRed.track,ScrollThumbSkinRed);
}
}
}
|
package alternativa.tanks.gui.shop.shopitems.item.kits.paypal {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.shop.shopitems.item.kits.paypal.PayPalKitPackageItemIcons_payPalIconClass.png")]
public class PayPalKitPackageItemIcons_payPalIconClass extends BitmapAsset {
public function PayPalKitPackageItemIcons_payPalIconClass() {
super();
}
}
}
|
package alternativa.tanks.models.weapon.terminator {
import alternativa.tanks.battle.objects.tank.tankskin.terminator.TerminatorTurretSkin;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class TerminatorSkinAdapt implements TerminatorSkin {
private var object:IGameObject;
private var impl:TerminatorSkin;
public function TerminatorSkinAdapt(param1:IGameObject, param2:TerminatorSkin) {
super();
this.object = param1;
this.impl = param2;
}
public function getSkin() : TerminatorTurretSkin {
var result:TerminatorTurretSkin = null;
try {
Model.object = this.object;
result = this.impl.getSkin();
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.armor.rankup {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import platform.client.fp10.core.resource.types.SoundResource;
import projects.tanks.client.battlefield.models.tankparts.armor.rankup.TankRankUpEffectCC;
public class CodecTankRankUpEffectCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_rankUpSound:ICodec;
public function CodecTankRankUpEffectCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_rankUpSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:TankRankUpEffectCC = new TankRankUpEffectCC();
local2.rankUpSound = this.codec_rankUpSound.decode(param1) as SoundResource;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:TankRankUpEffectCC = TankRankUpEffectCC(param2);
this.codec_rankUpSound.encode(param1,local3.rankUpSound);
}
}
}
|
package alternativa.tanks.models.battle.ctf {
import alternativa.osgi.service.locale.ILocaleService;
public class FlagMessage {
[Inject]
public static var localeService:ILocaleService;
public var text:String;
public var color:uint;
public function FlagMessage(param1:String, param2:uint) {
super();
this.text = param1;
this.color = param2;
}
public static function fromTextId(param1:String, param2:uint) : FlagMessage {
return new FlagMessage(localeService.getText(param1),param2);
}
}
}
|
package alternativa.tanks.battle.utils {
import alternativa.tanks.battle.BattleRunnerProvider;
import alternativa.tanks.battle.DeferredAction;
import alternativa.tanks.battle.PostPhysicsController;
public class AddPostPhysicsControllerAction extends BattleRunnerProvider implements DeferredAction {
private var controller:PostPhysicsController;
public function AddPostPhysicsControllerAction(param1:PostPhysicsController) {
super();
this.controller = param1;
}
public function execute() : void {
getBattleRunner().addPostPhysicsController(this.controller);
}
}
}
|
package alternativa.tanks.gui
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class ThanksForPurchaseWindow_bitmap extends BitmapAsset
{
public function ThanksForPurchaseWindow_bitmap()
{
super();
}
}
}
|
package alternativa.tanks.model.garage.resistance {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.model.garage.resistance.ResistancesIcons_bitmapallResistance_x2.png")]
public class ResistancesIcons_bitmapallResistance_x2 extends BitmapAsset {
public function ResistancesIcons_bitmapallResistance_x2() {
super();
}
}
}
|
package alternativa.tanks.model.news
{
import controls.Label;
import flash.display.Bitmap;
import flash.display.Sprite;
import flash.text.TextFormatAlign;
public class NewsItem extends Sprite
{
private var date:Label;
private var text:Label;
private var image:Bitmap;
public function NewsItem()
{
this.date = new Label();
this.text = new Label();
super();
this.date.color = 65280;
this.date.x = 10;
this.text.color = 8454016;
this.text.x = 100;
this.text.y = 20;
this.text.multiline = true;
this.text.wordWrap = true;
this.text.align = TextFormatAlign.LEFT;
this.text.width = 365;
addChild(this.date);
addChild(this.text);
}
public function set dataText(value:String) : void
{
this.date.text = value;
}
public function set newText(value:String) : void
{
this.text.htmlText = value;
}
public function set iconId(value:String) : void
{
this.image = new Bitmap(NewsIcons.getIcon(value));
this.image.x = 15;
this.image.y = 20;
addChild(this.image);
}
public function get heigth() : int
{
return this.height;
}
}
}
|
package alternativa.tanks.models.weapon.shaft.states {
public interface ITransitionHandler {
function execute(param1:*) : void;
}
}
|
package alternativa.tanks.models.weapon.turret {
import alternativa.tanks.battle.BattleService;
import alternativa.tanks.battle.BattleUtils;
import alternativa.tanks.battle.objects.tank.Tank;
import alternativa.tanks.battle.objects.tank.WeaponMount;
import alternativa.tanks.battle.objects.tank.controllers.LocalTurretController;
import alternativa.tanks.battle.objects.tank.controllers.Turret;
import alternativa.tanks.models.tank.AddToBattleListener;
import alternativa.tanks.models.tank.InitTankPart;
import alternativa.tanks.models.tank.RemoveFromBattleListener;
import alternativa.tanks.models.tank.WeaponMountProvider;
import alternativa.tanks.models.weapon.common.WeaponCommonData;
import alternativa.tanks.models.weapon.common.asWeaponCommon;
import platform.client.fp10.core.model.ObjectLoadListener;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battlefield.models.tankparts.weapon.turret.IRotatingTurretModelBase;
import projects.tanks.client.battlefield.models.tankparts.weapon.turret.RotatingTurretModelBase;
import projects.tanks.client.battlefield.models.user.tank.commands.TurretControlType;
import projects.tanks.client.battlefield.models.user.tank.commands.TurretStateCommand;
[ModelInfo]
public class RotatingTurretModel extends RotatingTurretModelBase implements IRotatingTurretModelBase, IRotatingTurretModel, ObjectLoadListener, InitTankPart, TurretStateSender, WeaponMountProvider, AddToBattleListener, RemoveFromBattleListener {
[Inject]
public static var battleService:BattleService;
public function RotatingTurretModel() {
super();
}
public static function copyStateFromTurret(param1:Turret, param2:TurretStateCommand) : void {
param2.controlType = param1.getTurretRealControlType();
param2.controlInput = param1.getTurretRealControlInput();
param2.direction = param1.getTurretPhysicsDirection();
param2.rotationSpeedNumber = param1.getTurretTurnSpeedNumber();
}
public function objectLoaded() : void {
this.saveState(getInitParam().turretState);
}
public function createWeaponMount(param1:IGameObject) : WeaponMount {
var local2:WeaponCommonData = asWeaponCommon(object).getCommonData();
var local3:Turret = new Turret(local2.getMaxTurretRotationSpeed(),local2.getTurretRotationAcceleration());
putData(Turret,local3);
this.setTurretState(local3,this.getState());
return local3;
}
public function initTankPart(param1:Tank) : void {
var local2:LocalTurretController = null;
var local3:TurretStateUpdater = null;
putData(Tank,param1);
if(BattleUtils.isLocalTank(param1.user)) {
local2 = new LocalTurretController(param1,this.getTurret());
putData(LocalTurretController,local2);
local3 = new TurretStateUpdater(this.getTurret(),getFunctionWrapper(this.updateStateOnServer));
putData(TurretStateUpdater,local3);
}
}
private function updateStateOnServer() : void {
var local1:Turret = this.getTurret();
var local2:TurretStateCommand = this.getState();
copyStateFromTurret(local1,local2);
var local3:int = int(battleService.getBattleRunner().getPhysicsTime());
var local4:int = this.getTank().incarnation;
server.update(local3,local4,local2);
}
public function getLocalTurretController() : LocalTurretController {
return LocalTurretController(getData(LocalTurretController));
}
public function update(param1:TurretStateCommand) : void {
this.saveState(param1);
var local2:TurretStateCommand = param1;
var local3:Turret = this.getTurret();
if(local2.controlType == TurretControlType.ROTATION_DIRECTION) {
local3.setRemoteDirection(local2.direction);
}
local3.setTurretControlState(local2.controlType,local2.controlInput,local2.rotationSpeedNumber);
}
private function setTurretState(param1:Turret, param2:TurretStateCommand) : void {
if(param2.controlType == TurretControlType.ROTATION_DIRECTION) {
param1.setTurretPhysicsDirection(param2.direction);
}
param1.setTurretControlState(param2.controlType,param2.controlInput,param2.rotationSpeedNumber);
}
public function sendTurretState() : void {
this.getUpdater().reset();
this.updateStateOnServer();
}
public function onAddToBattle() : void {
var local2:TurretStateUpdater = null;
var local1:LocalTurretController = this.getLocalTurretController();
if(local1 != null) {
local1.enable();
local1.onAddToBattle();
local2 = this.getUpdater();
local2.reset();
battleService.getBattleRunner().addLogicUnit(local2);
}
}
public function onRemoveFromBattle() : void {
var local1:TurretStateUpdater = this.getUpdater();
if(local1 != null) {
this.getLocalTurretController().disable();
battleService.getBattleRunner().removeLogicUnit(local1);
} else {
this.getTurret().setTurretControlState(TurretControlType.ROTATION_DIRECTION,0,0);
}
}
public function getTurret() : Turret {
return Turret(getData(Turret));
}
private function getTank() : Tank {
return Tank(getData(Tank));
}
private function saveState(param1:TurretStateCommand) : void {
putData(TurretStateCommand,param1);
}
private function getState() : TurretStateCommand {
return TurretStateCommand(getData(TurretStateCommand));
}
private function getUpdater() : TurretStateUpdater {
return TurretStateUpdater(getData(TurretStateUpdater));
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.sfx.shoot.twins {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import platform.client.fp10.core.resource.types.MultiframeTextureResource;
import platform.client.fp10.core.resource.types.SoundResource;
import platform.client.fp10.core.resource.types.TextureResource;
import projects.tanks.client.battlefield.models.tankparts.sfx.lighting.entity.LightingSFXEntity;
import projects.tanks.client.battlefield.models.tankparts.sfx.shoot.twins.TwinsShootSFXCC;
public class CodecTwinsShootSFXCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_explosionTexture:ICodec;
private var codec_hitMarkTexture:ICodec;
private var codec_lightingSFXEntity:ICodec;
private var codec_muzzleFlashTexture:ICodec;
private var codec_shotSound:ICodec;
private var codec_shotTexture:ICodec;
public function CodecTwinsShootSFXCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_explosionTexture = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false));
this.codec_hitMarkTexture = param1.getCodec(new TypeCodecInfo(TextureResource,false));
this.codec_lightingSFXEntity = param1.getCodec(new TypeCodecInfo(LightingSFXEntity,false));
this.codec_muzzleFlashTexture = param1.getCodec(new TypeCodecInfo(TextureResource,false));
this.codec_shotSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_shotTexture = param1.getCodec(new TypeCodecInfo(MultiframeTextureResource,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:TwinsShootSFXCC = new TwinsShootSFXCC();
local2.explosionTexture = this.codec_explosionTexture.decode(param1) as MultiframeTextureResource;
local2.hitMarkTexture = this.codec_hitMarkTexture.decode(param1) as TextureResource;
local2.lightingSFXEntity = this.codec_lightingSFXEntity.decode(param1) as LightingSFXEntity;
local2.muzzleFlashTexture = this.codec_muzzleFlashTexture.decode(param1) as TextureResource;
local2.shotSound = this.codec_shotSound.decode(param1) as SoundResource;
local2.shotTexture = this.codec_shotTexture.decode(param1) as MultiframeTextureResource;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:TwinsShootSFXCC = TwinsShootSFXCC(param2);
this.codec_explosionTexture.encode(param1,local3.explosionTexture);
this.codec_hitMarkTexture.encode(param1,local3.hitMarkTexture);
this.codec_lightingSFXEntity.encode(param1,local3.lightingSFXEntity);
this.codec_muzzleFlashTexture.encode(param1,local3.muzzleFlashTexture);
this.codec_shotSound.encode(param1,local3.shotSound);
this.codec_shotTexture.encode(param1,local3.shotTexture);
}
}
}
|
package projects.tanks.clients.fp10.models.tankspartnersmodel.china.partner2144 {
import flash.net.URLRequest;
import flash.net.navigateToURL;
import flash.utils.Dictionary;
import platform.client.core.general.socialnetwork.types.LoginParameters;
import platform.client.fp10.core.service.address.AddressService;
import platform.clients.fp10.libraries.alternativapartners.type.IParametersListener;
import platform.clients.fp10.libraries.alternativapartners.type.IPartner;
import projects.tanks.client.partners.impl.china.partner2144.IPartner2144ModelBase;
import projects.tanks.client.partners.impl.china.partner2144.Partner2144ModelBase;
[ModelInfo]
public class Partner2144Model extends Partner2144ModelBase implements IPartner2144ModelBase, IPartner {
[Inject]
public static var addressService:AddressService;
private static const PAYMENT_URL:String = "http://web.2144.cn/orders/index/gid/60";
private var server_id:String;
public function Partner2144Model() {
super();
}
public function getLoginParameters(param1:IParametersListener) : void {
var local2:Dictionary = new Dictionary();
local2["userid"] = addressService.getQueryParameter("userid");
local2["username"] = addressService.getQueryParameter("username");
local2["time"] = addressService.getQueryParameter("time");
local2["server_id"] = addressService.getQueryParameter("server_id");
local2["isAdult"] = addressService.getQueryParameter("isAdult");
local2["flag"] = addressService.getQueryParameter("flag");
param1.onSetParameters(new LoginParameters(local2));
}
public function getFailRedirectUrl() : String {
return "http://web.2144.cn/3Dtk";
}
public function isExternalLoginAllowed() : Boolean {
return false;
}
public function hasPaymentAction() : Boolean {
return true;
}
public function paymentAction() : void {
navigateToURL(new URLRequest(PAYMENT_URL),"_blank");
}
public function hasRatings() : Boolean {
return false;
}
}
}
|
package alternativa.physics.collision {
import alternativa.physics.Body;
public interface IRayCollisionFilter {
function considerBody(param1:Body) : Boolean;
}
}
|
package alternativa.osgi.service.loader
{
public interface ILoaderService
{
function get loadingProgress() : LoadingProgress;
}
}
|
package assets.combo {
import flash.display.BitmapData;
[Embed(source="/_assets/assets.combo.combolist_OVER_LEFT.png")]
public dynamic class combolist_OVER_LEFT extends BitmapData {
public function combolist_OVER_LEFT(param1:int = 5, param2:int = 20) {
super(param1,param2);
}
}
}
|
package alternativa.tanks.models.battlefield
{
public interface IChatListener
{
function chatOpened() : void;
function chatClosed() : void;
}
}
|
package alternativa.tanks.gui.shop.components.window {
import alternativa.model.description.IDescription;
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.gui.shop.events.ShopWindowBackButtonEvent;
import alternativa.tanks.gui.shop.events.ShopWindowJumpButtonEvent;
import alternativa.tanks.model.payment.paymentstate.PaymentState;
import alternativa.tanks.model.payment.paymentstate.PaymentWindowService;
import alternativa.tanks.model.payment.shop.category.ShopCategory;
import alternativa.tanks.model.payment.shop.discount.ShopDiscount;
import alternativa.tanks.model.payment.shop.featuring.ShopItemFeaturing;
import alternativa.tanks.model.payment.shop.itemcategory.ShopItemCategory;
import alternativa.tanks.service.payment.IPaymentService;
import alternativa.types.Long;
import base.DiscreteSprite;
import controls.base.DefaultButtonBase;
import flash.events.MouseEvent;
import flash.utils.Dictionary;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.commons.types.ShopCategoryEnum;
import projects.tanks.clients.fp10.libraries.TanksLocale;
public class ShopWindowNavigationBar extends DiscreteSprite {
[Inject]
public static var paymentService:IPaymentService;
[Inject]
public static var localeService:ILocaleService;
[Inject]
public static var paymentWindowService:PaymentWindowService;
private static const HEIGHT:int = 37;
private static const PADDING_VERTICAL:int = 4;
private static const BUTTON_WIDTH:int = 120;
private static const BUTTON_SPACING:int = 8;
private static const BUTTONS_LEFT_PADDING:int = 11;
private var jumpButtons:Vector.<ShopWindowJumpButton>;
private var backButton:DefaultButtonBase;
private var shopCategoryNameToId:Dictionary;
private var categoriesWithDiscount:Dictionary;
public function ShopWindowNavigationBar(param1:Vector.<IGameObject>, param2:Vector.<IGameObject>) {
super();
this.initCategoryDiscounts(param2);
this.initNavigation(param1);
this.initBackButton();
}
private function initCategoryDiscounts(param1:Vector.<IGameObject>) : void {
var local2:IGameObject = null;
var local3:IGameObject = null;
this.categoriesWithDiscount = new Dictionary();
for each(local2 in param1) {
local3 = ShopItemCategory(local2.adapt(ShopItemCategory)).getCategory();
if(this.needMarkCategory(local3,local2)) {
this.categoriesWithDiscount[local3.id.toString()] = true;
}
}
}
private function needMarkCategory(param1:IGameObject, param2:IGameObject) : Boolean {
if(paymentWindowService.hasBonusForCategory(param1)) {
return true;
}
return Boolean(ShopDiscount(param2.adapt(ShopDiscount)).isEnabled()) && !ShopItemFeaturing(param2.adapt(ShopItemFeaturing)).isHiddenInOriginalCategory();
}
private function initNavigation(param1:Vector.<IGameObject>) : void {
var local2:IGameObject = null;
var local3:ShopCategory = null;
var local4:IDescription = null;
var local5:ShopWindowJumpButton = null;
this.jumpButtons = new Vector.<ShopWindowJumpButton>();
this.shopCategoryNameToId = new Dictionary();
for each(local2 in param1) {
local3 = ShopCategory(local2.adapt(ShopCategory));
if(local3.isWithJumpButton()) {
local4 = IDescription(local2.adapt(IDescription));
local5 = this.addCategoryJumpButton(local2.id,local4.getName());
if(this.hasDiscount(local2.id)) {
local5.activateDiscountsIcon();
}
}
this.shopCategoryNameToId[local3.getType()] = local2.id;
}
}
private function addCategoryJumpButton(param1:Long, param2:String) : ShopWindowJumpButton {
var local3:ShopWindowJumpButton = new ShopWindowJumpButton(param1,param2);
local3.addEventListener(MouseEvent.CLICK,this.onJumpButtonPressed,false,0,true);
local3.width = BUTTON_WIDTH;
addChild(local3);
this.jumpButtons.push(local3);
return local3;
}
private function hasDiscount(param1:Long) : Boolean {
return this.categoriesWithDiscount[param1.toString()];
}
private function onJumpButtonPressed(param1:MouseEvent) : void {
this.navigateToCategoryById((param1.currentTarget as ShopWindowJumpButton).categoryId);
}
public function navigateToCategoryByType(param1:ShopCategoryEnum) : void {
var local2:Long = this.shopCategoryNameToId[param1];
if(Boolean(local2)) {
this.navigateToCategoryById(local2);
}
}
public function navigateToCategoryById(param1:Long) : void {
dispatchEvent(new ShopWindowJumpButtonEvent(ShopWindowJumpButtonEvent.CLICK,param1));
}
private function initBackButton() : void {
this.backButton = new DefaultButtonBase();
this.backButton.tabEnabled = false;
this.backButton.label = localeService.getText(TanksLocale.TEXT_BACK_BUTTON);
this.backButton.visible = false;
this.backButton.addEventListener(MouseEvent.CLICK,this.onBackButtonPressed);
addChild(this.backButton);
}
private function onBackButtonPressed(param1:MouseEvent) : void {
dispatchEvent(new ShopWindowBackButtonEvent(ShopWindowBackButtonEvent.CLICK));
}
public function resize(param1:int) : void {
var local2:int = 0;
var local3:ShopWindowJumpButton = null;
local2 = BUTTONS_LEFT_PADDING;
for each(local3 in this.jumpButtons) {
local3.y = PADDING_VERTICAL;
local3.x = local2;
local2 += local3.width + (local3.activeDiscounts ? 0 : BUTTON_SPACING);
}
this.backButton.y = PADDING_VERTICAL;
this.backButton.x = BUTTONS_LEFT_PADDING;
}
public function switchToState(param1:PaymentState) : void {
this.setJumpButtonsVisible(!paymentWindowService.isStoppedOnPaymentForm() && param1 == PaymentState.ITEM_CHOOSE && !paymentWindowService.isSingleItemPayment());
this.backButton.visible = !paymentWindowService.isStoppedOnPaymentForm() && param1 != PaymentState.ITEM_CHOOSE && (!paymentWindowService.isSingleItemPayment() || param1 != PaymentState.PAYMODE_CHOOSE);
}
private function setJumpButtonsVisible(param1:Boolean) : void {
var local2:ShopWindowJumpButton = null;
for each(local2 in this.jumpButtons) {
local2.visible = param1;
}
}
override public function get height() : Number {
return HEIGHT;
}
public function destroy() : void {
var local1:ShopWindowJumpButton = null;
for each(local1 in this.jumpButtons) {
local1.removeEventListener(MouseEvent.CLICK,this.onJumpButtonPressed);
}
this.backButton.removeEventListener(MouseEvent.CLICK,this.onBackButtonPressed);
this.jumpButtons = null;
}
}
}
|
package utils.preview {
import platform.client.fp10.core.resource.types.ImageResource;
public interface IImageResource {
function setPreviewResource(param1:ImageResource) : void;
}
}
|
package assets.cellrenderer.battlelist {
import flash.display.MovieClip;
[Embed(source="/_assets/assets.swf", symbol="symbol15")]
public class PadlockIcon extends MovieClip {
public function PadlockIcon() {
super();
}
}
}
|
package projects.tanks.client.panel.model.shop.challenges.toclient {
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 ChallengeShopItemsModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:ChallengeShopItemsModelServer;
private var client:IChallengeShopItemsModelBase = IChallengeShopItemsModelBase(this);
private var modelId:Long = Long.getLong(1498317426,618512353);
private var _itemsLoadedId:Long = Long.getLong(1756878835,-70934895);
public function ChallengeShopItemsModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new ChallengeShopItemsModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(ChallengeShopItemsCC,false)));
}
protected function getInitParam() : ChallengeShopItemsCC {
return ChallengeShopItemsCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._itemsLoadedId:
this.client.itemsLoaded();
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package forms.registration {
public class CallsignIconStates {
public static const CALLSIGN_ICON_STATE_OFF:int = 0;
public static const CALLSIGN_ICON_STATE_PROGRESS:int = 1;
public static const CALLSIGN_ICON_STATE_VALID:int = 2;
public static const CALLSIGN_ICON_STATE_INVALID:int = 3;
public function CallsignIconStates() {
super();
}
}
}
|
package alternativa.tanks.models.weapons.stream {
import alternativa.math.Vector3;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battlefield.models.tankparts.weapons.common.discrete.TargetHit;
public class StreamWeaponListenerEvents implements StreamWeaponListener {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function StreamWeaponListenerEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function onStart() : void {
var i:int = 0;
var m:StreamWeaponListener = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = StreamWeaponListener(this.impl[i]);
m.onStart();
i++;
}
}
finally {
Model.popObject();
}
}
public function onStop() : void {
var i:int = 0;
var m:StreamWeaponListener = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = StreamWeaponListener(this.impl[i]);
m.onStop();
i++;
}
}
finally {
Model.popObject();
}
}
public function onTargetsUpdated(param1:Vector3, param2:Vector.<TargetHit>) : void {
var i:int = 0;
var m:StreamWeaponListener = null;
var direction:Vector3 = param1;
var targets:Vector.<TargetHit> = param2;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = StreamWeaponListener(this.impl[i]);
m.onTargetsUpdated(direction,targets);
i++;
}
}
finally {
Model.popObject();
}
}
}
}
|
package alternativa.tanks.servermodels.redirect {
import flash.net.URLRequest;
import flash.net.navigateToURL;
import projects.tanks.client.entrance.model.entrance.redirect.IWarRedirectModelBase;
import projects.tanks.client.entrance.model.entrance.redirect.WarRedirectModelBase;
[ModelInfo]
public class WarRedirectModel extends WarRedirectModelBase implements IWarRedirectModelBase {
public function WarRedirectModel() {
super();
}
public function receiveUrl(param1:String) : void {
navigateToURL(new URLRequest(param1),"_self");
}
}
}
|
package alternativa.tanks.loader {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.loader.ModalLoader_WindowRGBChina.png")]
public class ModalLoader_WindowRGBChina extends BitmapAsset {
public function ModalLoader_WindowRGBChina() {
super();
}
}
}
|
package projects.tanks.client.clans.clan.clanmembersdata {
public interface IClanMembersDataModelBase {
function sendData(param1:UserData) : void;
}
}
|
package alternativa.tanks.service.itempropertyparams.aggregationmodes {
import alternativa.tanks.model.item.upgradable.calculators.CriticalChanceCalculator;
import alternativa.tanks.model.item.upgradable.calculators.PropertyCalculator;
import projects.tanks.client.garage.models.item.upgradeable.types.GaragePropertyParams;
public class CritUpgradeAggregationMode implements UpgradeAggregationMode {
public function CritUpgradeAggregationMode() {
super();
}
public function createValueCalculator(param1:int, param2:GaragePropertyParams) : PropertyCalculator {
return new CriticalChanceCalculator(param1,param2);
}
}
}
|
package alternativa.tanks.models.weapon.machinegun.sfx {
import alternativa.tanks.models.sfx.lighting.LightingSfx;
import platform.client.fp10.core.model.ObjectLoadPostListener;
import projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.sfx.IMachineGunSFXModelBase;
import projects.tanks.client.battlefield.models.tankparts.weapons.machinegun.sfx.MachineGunSFXModelBase;
[ModelInfo]
public class MachineGunSFXModel extends MachineGunSFXModelBase implements IMachineGunSFXModelBase, IMachineGunSFXModel, ObjectLoadPostListener {
public function MachineGunSFXModel() {
super();
}
[Obfuscation(rename="false")]
public function objectLoadedPost() : void {
var local1:MachineGunSFXData = new MachineGunSFXData(getInitParam(),new LightingSfx(getInitParam().lightingSFXEntity));
putData(MachineGunSFXData,local1);
}
public function getSfxData() : MachineGunSFXData {
return MachineGunSFXData(getData(MachineGunSFXData));
}
}
}
|
package alternativa.tanks.sfx
{
import alternativa.math.Vector3;
import flash.events.Event;
import flash.media.Sound;
import flash.media.SoundChannel;
public class EngineSounds
{
public static const SILENT:int = 0;
public static const IDLE:int = 1;
public static const ACCELERATING:int = 2;
public static const MOVING:int = 3;
public static const TURNING:int = 4;
private var mode:int = 0;
private var currentSound3D:Sound3D;
private var idleSound3D:Sound3D;
private var accelerationSound3D:Sound3D;
private var movingSound3D:Sound3D;
private var channel:SoundChannel;
private var fading:Boolean;
private var fadeSpeed:Number = 0.001;
private var fadeLimit:Number = 1;
private var nextSound:Sound3D;
public function EngineSounds(idleSound:Sound, accelerationSound:Sound, movingSound:Sound)
{
super();
var near:Number = SoundOptions.nearRadius;
var far:Number = SoundOptions.farRadius;
var delim:Number = SoundOptions.farDelimiter;
this.idleSound3D = Sound3D.create(idleSound,near,far,delim,2);
this.accelerationSound3D = Sound3D.create(accelerationSound,near,far,delim,1);
this.movingSound3D = Sound3D.create(movingSound,near,far,delim,1);
this.currentSound3D = this.idleSound3D;
}
public function update(millis:int, objectPos:Vector3, soundPos:Vector3, rightAxis:Vector3) : void
{
if(this.mode == SILENT)
{
return;
}
if(this.fading)
{
this.currentSound3D.volume -= this.fadeSpeed * millis;
if(this.currentSound3D.volume < this.fadeLimit)
{
this.fading = false;
this.stop();
this.currentSound3D = this.idleSound3D;
this.currentSound3D.volume = this.mode == IDLE ? Number(Number(2)) : Number(Number(3));
this.currentSound3D.play(0,10000);
}
}
if(this.nextSound != null)
{
this.channel = null;
this.currentSound3D.stop();
this.currentSound3D = this.nextSound;
this.currentSound3D.volume = 1;
this.currentSound3D.play(0,10000);
this.nextSound = null;
}
this.currentSound3D.checkVolume(objectPos,soundPos,rightAxis);
}
public function setSilentMode() : void
{
if(this.mode == SILENT)
{
return;
}
this.mode = SILENT;
this.stop();
}
public function setIdleMode() : void
{
if(this.mode == IDLE)
{
return;
}
if(this.mode == SILENT)
{
this.currentSound3D = this.idleSound3D;
this.currentSound3D.volume = 1;
this.currentSound3D.play(0,1000);
}
else
{
this.fading = true;
this.fadeLimit = 0.2;
}
this.mode = IDLE;
}
public function setAccelerationMode() : void
{
if(this.mode == ACCELERATING || this.mode == MOVING)
{
return;
}
this.fading = false;
this.mode = ACCELERATING;
this.currentSound3D.stop();
this.currentSound3D = this.accelerationSound3D;
this.currentSound3D.volume = 1;
this.channel = this.currentSound3D.play(0,0);
if(this.channel != null)
{
this.channel.addEventListener(Event.SOUND_COMPLETE,this.soundComplete);
}
}
public function setTurningMode() : void
{
if(this.mode == TURNING)
{
return;
}
if(this.mode == IDLE)
{
if(!this.fading)
{
this.currentSound3D.volume = 3;
}
}
else
{
this.fading = true;
}
this.fadeLimit = 0.6;
this.mode = TURNING;
}
public function stop() : void
{
if(this.channel != null)
{
this.channel.removeEventListener(Event.SOUND_COMPLETE,this.soundComplete);
this.channel = null;
}
this.currentSound3D.stop();
}
public function destroy() : void
{
this.stop();
Sound3D.destroy(this.idleSound3D);
this.idleSound3D = null;
Sound3D.destroy(this.accelerationSound3D);
this.accelerationSound3D = null;
Sound3D.destroy(this.movingSound3D);
this.movingSound3D = null;
}
private function soundComplete(e:Event) : void
{
if(this.channel == null || this.mode != ACCELERATING)
{
return;
}
this.channel.removeEventListener(Event.SOUND_COMPLETE,this.soundComplete);
this.mode = MOVING;
this.movingSound3D.volume = this.accelerationSound3D.volume;
this.nextSound = this.movingSound3D;
}
}
}
|
package com.lorentz.SVG.display.base
{
public interface ISVGViewPort extends ISVGPreserveAspectRatio {
function get svgX():String;
function set svgX(value:String):void;
function get svgY():String;
function set svgY(value:String):void;
function get svgWidth():String;
function set svgWidth(value:String):void;
function get svgHeight():String;
function set svgHeight(value:String):void;
function get svgOverflow():String;
function set svgOverflow(value:String):void;
function get viewPortWidth():Number;
function get viewPortHeight():Number;
}
} |
package projects.tanks.client.partners.impl.china.partner2144 {
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 Partner2144ModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function Partner2144ModelServer(param1:IModel) {
super();
this.model = param1;
var local2:ByteArray = new ByteArray();
this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol));
this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap());
}
}
}
|
package alternativa.tanks.camera {
import alternativa.math.Vector3;
import alternativa.tanks.utils.MathUtils;
public class FlyCameraController implements CameraController {
private static const FLY_HEIGHT:Number = 3000;
private static const cameraPosition:Vector3 = new Vector3();
private var p1:Vector3 = new Vector3();
private var p2:Vector3 = new Vector3();
private var p3:Vector3 = new Vector3();
private var p4:Vector3 = new Vector3();
private var totalDistance:Number;
private var distance:Number;
private var acceleration:Number;
private var speed:Number;
private var angleValuesX:AngleValues = new AngleValues();
private var angleValuesZ:AngleValues = new AngleValues();
private var duration:int;
private const targetPosition:Vector3 = new Vector3();
private const targetAngles:Vector3 = new Vector3();
public function FlyCameraController(param1:int) {
super();
this.duration = param1;
}
public function init(param1:Vector3, param2:Vector3) : void {
this.targetPosition.copy(param1);
this.targetAngles.copy(param2);
}
public function activate(param1:GameCamera) : void {
this.p1.copy(param1.position);
this.p2.copy(this.p1);
this.p4.copy(this.targetPosition);
this.p3.copy(this.p4);
this.p2.z = this.p3.z = (this.p1.z > this.p4.z ? this.p1.z : this.p4.z) + FLY_HEIGHT;
var local2:Number = 4000000 / (this.duration * this.duration);
this.angleValuesX.init(MathUtils.clampAngle(param1.rotationX),this.targetAngles.x,local2);
this.angleValuesZ.init(MathUtils.clampAngle(param1.rotationZ),this.targetAngles.z,local2);
var local3:Vector3 = new Vector3();
local3.diff(this.p4,this.p1);
this.totalDistance = local3.length();
this.acceleration = this.totalDistance * local2;
this.distance = 0;
this.speed = 0;
}
public function deactivate() : void {
}
public function update(param1:GameCamera, param2:int, param3:int) : void {
if(this.speed < 0) {
return;
}
if(this.distance > 0.5 * this.totalDistance && this.acceleration > 0) {
this.acceleration = -this.acceleration;
this.angleValuesX.reverseAcceleration();
this.angleValuesZ.reverseAcceleration();
}
var local4:Number = 0.001 * param3;
var local5:Number = this.acceleration * local4;
this.distance += (this.speed + 0.5 * local5) * local4;
this.speed += local5;
if(this.distance > this.totalDistance) {
this.distance = this.totalDistance;
}
this.bezier(this.distance / this.totalDistance,this.p1,this.p2,this.p3,this.p4,cameraPosition);
param1.setPosition(cameraPosition);
param1.rotateBy(this.angleValuesX.update(local4),0,this.angleValuesZ.update(local4));
}
private function bezier(param1:Number, param2:Vector3, param3:Vector3, param4:Vector3, param5:Vector3, param6:Vector3) : void {
var local9:Number = NaN;
var local11:Number = NaN;
var local7:Number = 1 - param1;
var local8:Number = local7 * local7;
local9 = 3 * param1 * local8;
local8 *= local7;
var local10:Number = param1 * param1;
local11 = 3 * local10 * local7;
local10 *= param1;
param6.x = local8 * param2.x + local9 * param3.x + local11 * param4.x + local10 * param5.x;
param6.y = local8 * param2.y + local9 * param3.y + local11 * param4.y + local10 * param5.y;
param6.z = local8 * param2.z + local9 * param3.z + local11 * param4.z + local10 * param5.z;
}
}
}
|
package alternativa.tanks.model.item.upgradable.calculators {
public class LinearPropertyValueCalculator implements PropertyValueCalculator {
protected var calculator:UpgradeLinearCalculator;
public function LinearPropertyValueCalculator(param1:Number, param2:Number, param3:int) {
super();
this.calculator = new UpgradeLinearCalculator(param1,param2,param3);
}
public function getNumberValue(param1:int) : Number {
return this.calculator.getValue(param1);
}
}
}
|
package forms.friends
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class FriendsWindowStateBigButton_ButtonOverLeft extends BitmapAsset
{
public function FriendsWindowStateBigButton_ButtonOverLeft()
{
super();
}
}
}
|
package mx.utils {
import flash.display.DisplayObject;
import flash.utils.getQualifiedClassName;
import mx.core.IRepeaterClient;
import mx.core.mx_internal;
use namespace mx_internal;
public class NameUtil {
mx_internal static const VERSION:String = "4.6.0.23201";
private static var counter:int = 0;
public function NameUtil() {
super();
}
public static function createUniqueName(object:Object) : String {
if(!object) {
return null;
}
var name:String = getQualifiedClassName(object);
var index:int = int(name.indexOf("::"));
if(index != -1) {
name = name.substr(index + 2);
}
var charCode:int = int(name.charCodeAt(name.length - 1));
if(charCode >= 48 && charCode <= 57) {
name += "_";
}
return name + counter++;
}
public static function displayObjectToString(displayObject:DisplayObject) : String {
var result:String = null;
var o:DisplayObject = null;
var s:String = null;
var indices:Array = null;
try {
o = displayObject;
while(o != null) {
if(o.parent && o.stage && o.parent == o.stage) {
break;
}
s = "id" in o && Boolean(o["id"]) ? o["id"] : o.name;
if(o is IRepeaterClient) {
indices = IRepeaterClient(o).instanceIndices;
if(Boolean(indices)) {
s += "[" + indices.join("][") + "]";
}
}
result = result == null ? s : s + "." + result;
o = o.parent;
}
}
catch(e:SecurityError) {
}
return result;
}
public static function getUnqualifiedClassName(object:Object) : String {
var name:String = null;
if(object is String) {
name = object as String;
} else {
name = getQualifiedClassName(object);
}
var index:int = int(name.indexOf("::"));
if(index != -1) {
name = name.substr(index + 2);
}
return name;
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.battle.battlefield.billboard {
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.battlefield.billboard.BillboardCC;
public class VectorCodecBillboardCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecBillboardCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(BillboardCC,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.<BillboardCC> = new Vector.<BillboardCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = BillboardCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:BillboardCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<BillboardCC> = Vector.<BillboardCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package projects.tanks.client.panel.model.garage.availableitems {
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 AvailableItemsModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var _selectId:Long = Long.getLong(2101473515,314990618);
private var _select_itemCodec:ICodec;
private var model:IModel;
public function AvailableItemsModelServer(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._select_itemCodec = this.protocol.getCodec(new TypeCodecInfo(IGameObject,false));
}
public function select(param1:IGameObject) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._select_itemCodec.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._selectId,this.protocolBuffer);
var local3:IGameObject = Model.object;
var local4:ISpace = local3.space;
local4.commandSender.sendCommand(local2);
this.protocolBuffer.optionalMap.clear();
}
}
}
|
package alternativa.tanks.model.garage.resistance {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.model.garage.resistance.ResistancesIcons_allResistanceClass.png")]
public class ResistancesIcons_allResistanceClass extends BitmapAsset {
public function ResistancesIcons_allResistanceClass() {
super();
}
}
}
|
package com.lorentz.SVG.events {
import com.lorentz.SVG.display.base.SVGElement;
import flash.events.Event;
public class SVGEvent extends Event {
public static const INVALIDATE:String = "invalidate";
public static const SYNC_VALIDATED:String = "syncValidated";
public static const ASYNC_VALIDATED:String = "asyncValidated";
public static const VALIDATED:String = "validated";
public static const RENDERED:String = "rendered";
public static const PARSE_START:String = "parseStart";
public static const PARSE_COMPLETE:String = "parseComplete";
public static const ELEMENT_ADDED:String = "elementAdded";
public static const ELEMENT_REMOVED:String = "elementRemoved";
private var _element:SVGElement;
public function get element():SVGElement {
return _element;
}
public function SVGEvent(type:String, element:SVGElement = null, bubbles:Boolean = false, cancelable:Boolean = false){
super(type, bubbles, cancelable);
_element = element;
}
override public function clone():Event{
return new SVGEvent(type, element, bubbles, cancelable);
}
}
} |
package projects.tanks.client.battleservice {
public class Range {
private var _max:int;
private var _min:int;
public function Range(param1:int = 0, param2:int = 0) {
super();
this._max = param1;
this._min = param2;
}
public function get max() : int {
return this._max;
}
public function set max(param1:int) : void {
this._max = param1;
}
public function get min() : int {
return this._min;
}
public function set min(param1:int) : void {
this._min = param1;
}
public function toString() : String {
var local1:String = "Range [";
local1 += "max = " + this.max + " ";
local1 += "min = " + this.min + " ";
return local1 + "]";
}
}
}
|
package alternativa.resource.factory
{
import alternativa.resource.ImageResource;
import alternativa.resource.Resource;
public class ImageResourceFactory implements IResourceFactory
{
public function ImageResourceFactory()
{
super();
}
public function createResource(resourceType:int) : Resource
{
return new ImageResource();
}
}
}
|
package alternativa.tanks.battle.events {
public class MapBuildingCompleteEvent {
public function MapBuildingCompleteEvent() {
super();
}
}
}
|
package forms.friends.list
{
import alternativa.tanks.model.Friend;
import forms.friends.IFriendsListState;
import forms.friends.list.renderer.FriendsOutgoingListRenderer;
public class OutcomingList extends FriendsList implements IFriendsListState
{
public function OutcomingList()
{
super();
init(FriendsOutgoingListRenderer);
_dataProvider.getItemAtHandler = this.markAsViewed;
}
private function markAsViewed(param1:Object) : void
{
if(!isViewed(param1) && param1.isNew)
{
setAsViewed(param1);
}
}
public function initList() : void
{
_dataProvider.sortOn(["uid"],[Array.CASEINSENSITIVE]);
fillOutcomingList(Friend.friends);
_list.scrollToIndex(2);
resize(_width,_height);
}
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(propertyName:String, searchString:String) : void
{
filterByProperty(propertyName,searchString);
resize(_width,_height);
}
public function resetFilter() : void
{
_dataProvider.resetFilter();
resize(_width,_height);
}
}
}
|
package forms.payment {
import alternativa.osgi.service.locale.ILocaleService;
import assets.Diamond;
import controls.statassets.StatHeaderButton;
import flash.display.Sprite;
import projects.tanks.clients.fp10.libraries.TanksLocale;
public class PaymentListHeader extends Sprite {
[Inject]
public static var localeService:ILocaleService;
private static var _withSMSText:Boolean = false;
private var number:StatHeaderButton = new StatHeaderButton();
private var smsText:StatHeaderButton = new StatHeaderButton(false);
private var cost:StatHeaderButton = new StatHeaderButton();
private var crystals:StatHeaderButton = new StatHeaderButton();
private var cr:Diamond = new Diamond();
protected var _width:int = 800;
public function PaymentListHeader() {
super();
this.number.height = this.cost.height = this.smsText.height = this.crystals.height = 18;
this.number.label = localeService.getText(TanksLocale.TEXT_PAYMENT_SMSNUMBERS_NUMBER_HEADER_LABEL_TEXT);
this.smsText.label = localeService.getText(TanksLocale.TEXT_PAYMENT_SMSNUMBERS_SMSTEXT_HEADER_LABEL_TEXT);
this.cost.label = localeService.getText(TanksLocale.TEXT_PAYMENT_SMSNUMBERS_COST_HEADER_LABEL_TEXT);
addChild(this.number);
addChild(this.smsText);
this.smsText.visible = _withSMSText;
addChild(this.cost);
addChild(this.crystals);
addChild(this.cr);
this.number.width = 70;
this.cost.x = 72;
this.cr.y = 5;
this.draw();
}
public function set withSMSText(param1:Boolean) : void {
_withSMSText = param1;
this.draw();
}
override public function set width(param1:Number) : void {
this._width = Math.floor(param1);
this.draw();
}
private function draw() : void {
var local1:int = _withSMSText ? 80 : int((this._width - 70) / 2);
this.smsText.visible = _withSMSText;
this.cost.x = 72;
if(_withSMSText) {
this.smsText.x = 72;
this.smsText.width = this._width - 210;
this.cost.x = 72 + this.smsText.width + 2;
}
this.cost.width = local1;
this.crystals.x = this.cost.x + this.cost.width + 2;
this.crystals.width = int(this._width - this.crystals.x - 3);
this.cr.x = this.crystals.x + this.crystals.width - this.cr.width - 3;
}
}
}
|
package projects.tanks.client.tanksservices.model.reconnect {
public class RemoteEndpointData {
private var _host:String;
private var _ports:Vector.<int>;
public function RemoteEndpointData(param1:String = null, param2:Vector.<int> = null) {
super();
this._host = param1;
this._ports = param2;
}
public function get host() : String {
return this._host;
}
public function set host(param1:String) : void {
this._host = param1;
}
public function get ports() : Vector.<int> {
return this._ports;
}
public function set ports(param1:Vector.<int>) : void {
this._ports = param1;
}
public function toString() : String {
var local1:String = "RemoteEndpointData [";
local1 += "host = " + this.host + " ";
local1 += "ports = " + this.ports + " ";
return local1 + "]";
}
}
}
|
package assets.combo {
import flash.display.BitmapData;
[Embed(source="/_assets/assets.combo.combo_OVER_LEFT.png")]
public dynamic class combo_OVER_LEFT extends BitmapData {
public function combo_OVER_LEFT(param1:int = 7, param2:int = 30) {
super(param1,param2);
}
}
}
|
package scpacker.networking
{
import alternativa.init.Main;
import alternativa.osgi.service.alert.IAlertService;
import alternativa.tanks.bg.IBackgroundService;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;
import flash.events.SecurityErrorEvent;
import flash.net.Socket;
import flash.utils.ByteArray;
import specter.utils.Logger;
public class Network extends NetworkService
{
private var socket:Socket;
private var keys:Array;
private var lastKey:int = 1;
public var AESDecrypter;
public var AESKey:String = "F54BF833E76C15A12B7977CF5858FB96";
public var iv:int = 1;
public var connectionListener:Function;
public function Network()
{
this.keys = new Array(1,2,3,4,5,6,7,8,9);
super();
this.socket = new Socket();
}
public function connect(ip:String, port:int) : void
{
this.socket.connect(ip,port);
this.socket.addEventListener(ProgressEvent.SOCKET_DATA,this.onDataSocket);
this.socket.addEventListener(Event.CONNECT,this.onConnected);
this.socket.addEventListener(Event.CLOSE,this.onCloseConnecting);
this.socket.addEventListener(IOErrorEvent.IO_ERROR,this.ioError);
this.socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR,this.securityError);
}
public function destroy() : void
{
this.socket.removeEventListener(ProgressEvent.SOCKET_DATA,this.onDataSocket);
this.socket.removeEventListener(Event.CONNECT,this.onConnected);
this.socket.removeEventListener(Event.CLOSE,this.onCloseConnecting);
this.socket.removeEventListener(IOErrorEvent.IO_ERROR,this.ioError);
this.socket.removeEventListener(SecurityErrorEvent.SECURITY_ERROR,this.securityError);
}
public function addEventListener(listener:INetworkListener) : void
{
addListener(listener);
}
public function removeEventListener(listener:INetworkListener) : void
{
removeListener(listener);
}
public function send(str:String) : void
{
try
{
var str:String = this.AESDecrypter == null ? this.crypt(str) : this.AESDecrypter.encrypt(str,this.AESKey);
str += DELIM_COMMANDS_SYMBOL;
this.socket.writeUTFBytes(str);
this.socket.flush();
}
catch(e:Error)
{
Logger.warn("Error sending: " + e.message + "\n" + e.getStackTrace());
}
}
private function crypt(request:String) : String
{
var key:int = (this.lastKey + 1) % this.keys.length;
if(key <= 0)
{
key = 1;
}
this.lastKey = key;
var _array:Array = request.split("");
for(var i:int = 0; i < request.length; i++)
{
_array[i] = String.fromCharCode(request.charCodeAt(i) + (key + 1));
}
return key + _array.join("");
}
private function onConnected(e:Event) : void
{
if(this.connectionListener != null)
{
this.connectionListener.call();
}
Logger.log("onConnected()");
}
private function onDataSocket(e:Event) : void
{
var bytes:ByteArray = new ByteArray();
var size:int = this.socket.bytesAvailable;
this.socket.readBytes(bytes,0,size);
var data:String = bytes.readUTFBytes(size);
protocolDecrypt(data,this);
bytes.clear();
this.socket.flush();
}
private function onCloseConnecting(e:Event) : void
{
Logger.log("onCloseConnecting()");
this.socket.close();
var alertService:IAlertService = Main.osgi.getService(IAlertService) as IAlertService;
alertService.showAlert("Connection closed by server!");
for(var i:int = 0; i < Main.mainContainer.numChildren; i++)
{
Main.mainContainer.removeChildAt(1);
}
IBackgroundService(Main.osgi.getService(IBackgroundService)).drawBg();
IBackgroundService(Main.osgi.getService(IBackgroundService)).showBg();
}
private function ioError(e:Event) : void
{
Logger.warn("IO error!");
this.socket.close();
var alertService:IAlertService = Main.osgi.getService(IAlertService) as IAlertService;
alertService.showAlert("Connection to server " + "failed");
for(var i:int = 0; i < Main.mainContainer.numChildren; i++)
{
Main.mainContainer.removeChildAt(1);
}
IBackgroundService(Main.osgi.getService(IBackgroundService)).drawBg();
IBackgroundService(Main.osgi.getService(IBackgroundService)).showBg();
}
private function securityError(e:Event) : void
{
Logger.warn("Security error!");
this.socket.close();
var alertService:IAlertService = Main.osgi.getService(IAlertService) as IAlertService;
alertService.showAlert("Connection to server " + "failed");
for(var i:int = 0; i < Main.mainContainer.numChildren; i++)
{
Main.mainContainer.removeChildAt(1);
}
IBackgroundService(Main.osgi.getService(IBackgroundService)).drawBg();
IBackgroundService(Main.osgi.getService(IBackgroundService)).showBg();
}
public function socketConnected() : Boolean
{
return this.socket.connected;
}
}
}
|
package alternativa.tanks.models.tank.support {
import alternativa.tanks.battle.events.BattleEventDispatcher;
import alternativa.tanks.battle.events.BattleEventListener;
import alternativa.tanks.battle.objects.tank.Tank;
import platform.client.fp10.core.type.AutoClosable;
import projects.tanks.clients.flash.commons.services.autobattleenter.AutomaticEnterExitService;
public class AutoExitSupport implements AutoClosable, BattleEventListener {
[Inject]
public static var battleEventDispatcher:BattleEventDispatcher;
[Inject]
public static var autoEnterExitService:AutomaticEnterExitService;
private var tank:Tank;
public function AutoExitSupport(param1:Tank) {
super();
}
[Obfuscation(rename="false")]
public function close() : void {
}
public function handleBattleEvent(param1:Object) : void {
}
}
}
|
package forms.friends.button.friends
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class RequestCountIndicator_rightIconClass extends BitmapAsset
{
public function RequestCountIndicator_rightIconClass()
{
super();
}
}
}
|
package alternativa.tanks.model.mobilequest {
import projects.tanks.client.panel.model.mobilequest.quest.IMobileQuestModelBase;
import projects.tanks.client.panel.model.mobilequest.quest.MobileQuestModelBase;
[ModelInfo]
public class MobileQuestModel extends MobileQuestModelBase implements IMobileQuestModelBase {
public function MobileQuestModel() {
super();
}
}
}
|
package alternativa.tanks.help
{
import alternativa.init.Main;
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.locale.constants.TextConst;
public class RankBarHelper extends BubbleHelper
{
public function RankBarHelper()
{
super();
var localeService:ILocaleService = ILocaleService(Main.osgi.getService(ILocaleService));
text = localeService.getText(TextConst.HELP_PANEL_RANK_BAR_HELPER_TEXT);
arrowLehgth = int(localeService.getText(TextConst.HELP_PANEL_RANK_BAR_HELPER_ARROW_LENGTH));
arrowAlign = HelperAlign.TOP_LEFT;
_showLimit = 3;
_targetPoint.x = 94;
_targetPoint.y = 25;
}
}
}
|
package controls.chat
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class ChatPermissionsLevel_moder extends BitmapAsset
{
public function ChatPermissionsLevel_moder()
{
super();
}
}
}
|
package alternativa.tanks.models.battle.gui.inventory.cooldown {
import alternativa.tanks.models.battle.gui.inventory.splash.ISplashController;
import alternativa.tanks.models.battle.gui.inventory.splash.SplashColor;
import alternativa.tanks.models.inventory.InventoryItemType;
import flash.utils.getTimer;
import utils.tweener.TweenLite;
public class CooldownController {
private var _view:CooldownIndicator;
private var _finishCallback:Function;
private var _finishFillCallback:Function;
private var _startTime:int;
private var _durationTime:int;
private var _isActive:Boolean;
private var _isFillEffect:Boolean;
private var _fillTween:TweenLite;
private var _addingTween:TweenLite;
private var _isAddingEffect:Boolean;
private var _cooldownProgressData:CooldownProgressData = new CooldownProgressData();
private var _splashController:ISplashController;
private var _effectProgress:Number = 1;
private var _slotNumber:int;
private var _fixProgressTime:* = 0;
private var _fixProgress:* = 0;
private var _lastProgress:* = 0;
private var _lastTime:* = 0;
public function CooldownController(param1:int, param2:CooldownIndicator, param3:ISplashController, param4:Function, param5:Function) {
super();
this._view = param2;
this._slotNumber = param1;
this._splashController = param3;
this._finishCallback = param4;
this._finishFillCallback = param5;
}
public function update(param1:int, param2:Number) : void {
this._effectProgress = param2;
if(!this._isActive) {
return;
}
if(this._isFillEffect) {
return;
}
if(this._isAddingEffect) {
return;
}
if(param1 >= this._startTime) {
this._cooldownProgressData.progress = this.calculateProgress(param1);
this._lastTime = param1;
this._lastProgress = this._cooldownProgressData.progress;
if(this._cooldownProgressData.progress > 1) {
this._cooldownProgressData.progress = 1;
this.finish();
}
}
this.setProgress(this._cooldownProgressData.progress,param2);
}
private function setProgress(param1:Number, param2:Number) : void {
if(param1 < param2) {
this._view.setProgress(param1,param2);
} else {
this._view.setProgress(0,0);
}
}
public function finish() : void {
this._isActive = false;
this._startTime = -1;
this._view.setProgress(0,0);
this._finishCallback.apply();
this._fixProgressTime = 0;
this._fixProgress = 0;
}
private function calculateProgress(param1:int) : Number {
if(this._fixProgressTime != 0) {
return (param1 - this._fixProgressTime) * (1 - this._fixProgress) / this._durationTime + this._fixProgress;
}
return (param1 - this._startTime) / this._durationTime;
}
public function get isActive() : Boolean {
return this._isActive;
}
public function isCooldownStarted() : Boolean {
return this._cooldownProgressData.progress != 0;
}
public function destroy() : void {
if(this._isActive) {
this._isActive = false;
this._isFillEffect = false;
this._isAddingEffect = false;
this._startTime = -1;
this._view.setProgress(0,0);
this._fixProgressTime = 0;
this._fixProgress = 0;
TweenLite.killTweensOf(this._cooldownProgressData);
}
}
public function activate(param1:int, param2:int, param3:Boolean, param4:Boolean) : void {
if(param2 <= 0) {
return;
}
this._isActive = true;
this._startTime = param1;
this._durationTime = param2;
this._fixProgressTime = 0;
this._fixProgress = 0;
this.activateFillMode(param3,param4);
}
private function activateFillMode(param1:Boolean, param2:Boolean) : void {
if(this._isFillEffect) {
return;
}
this._isFillEffect = true;
if(!param1) {
if(this.needActivateWithSplash() && !param2) {
this._splashController.startFlash(SplashColor.getColor(this._slotNumber));
} else {
this._splashController.startFlash(SplashColor.COOLDOWN);
}
}
this._cooldownProgressData.progress = 0;
this._cooldownProgressData.fillProgress = 1;
this._view.setProgress(this._cooldownProgressData.fillProgress,1);
this._fillTween = TweenLite.to(this._cooldownProgressData,InventoryCooldownItem.FILL_EFFECT_TIME_IN_SEC,{
"fillProgress":0,
"onComplete":this.onCompleteFill
});
}
private function needActivateWithSplash() : Boolean {
return this._slotNumber == InventoryItemType.MINE || this._slotNumber == InventoryItemType.GOLD || this._slotNumber == InventoryItemType.ULTIMATE;
}
private function onCompleteFill() : void {
this._cooldownProgressData.fillProgress = 0;
this.setProgress(0,this._effectProgress);
this._finishFillCallback.apply();
this._isFillEffect = false;
}
public function changeTime(param1:int, param2:int, param3:Boolean, param4:Boolean) : void {
var local5:int = 0;
var local6:int = 0;
var local7:int = 0;
var local8:int = 0;
var local9:int = 0;
if(this._isActive) {
local5 = this.getRemainingTime();
local6 = param2 - local5;
if(local6 > InventoryCooldownItem.TOLERANCE_EFFECT_TIME) {
if(this._isFillEffect || this._isAddingEffect) {
if(this._isFillEffect) {
local7 = param2 - (local5 + InventoryCooldownItem.FILL_EFFECT_TIME_IN_SEC * 1000);
}
if(this._isAddingEffect) {
local7 = param2 - (local5 + InventoryCooldownItem.ADDING_EFFECT_TIME_IN_SEC * 1000);
}
if(local7 > InventoryCooldownItem.TOLERANCE_EFFECT_TIME) {
this._durationTime += local7;
}
} else {
this.activateAddingEffect(param1,param2,param3,param4);
}
}
} else {
local8 = param1 + InventoryCooldownItem.FILL_EFFECT_TIME_IN_SEC * 1000;
local9 = param2 - InventoryCooldownItem.FILL_EFFECT_TIME_IN_SEC * 1000;
this.activate(local8,local9,param3,param4);
}
}
public function activateInfinite() : void {
this._isActive = true;
this._startTime = 0;
this._durationTime = int.MAX_VALUE;
this.activateFillMode(true,false);
}
public function setCooldownDuration(param1:int) : * {
this._fixProgressTime = this._lastTime;
this._fixProgress = this._lastProgress;
this._durationTime = param1;
this._startTime = this._lastTime;
}
public function startCooldownNow(param1:int) : void {
this.destroy();
this.activate(param1,this._durationTime,false,false);
}
private function activateAddingEffect(param1:int, param2:int, param3:Boolean, param4:Boolean) : void {
if(this._isAddingEffect) {
this.changeTime(param1,param2,param3,param4);
return;
}
var local5:int = param2 - InventoryCooldownItem.ADDING_EFFECT_TIME_IN_SEC * 1000;
if(local5 > InventoryCooldownItem.TOLERANCE_EFFECT_TIME) {
this._isAddingEffect = true;
if(!param3) {
this._splashController.startFlash(SplashColor.COOLDOWN);
}
this._startTime = param1 + InventoryCooldownItem.ADDING_EFFECT_TIME_IN_SEC * 1000;
this._durationTime = local5;
this._cooldownProgressData.addingProgress = this._cooldownProgressData.progress;
this._addingTween = TweenLite.to(this._cooldownProgressData,InventoryCooldownItem.ADDING_EFFECT_TIME_IN_SEC,{
"addingProgress":0,
"onComplete":this.onCompleteAdding
});
}
}
private function onCompleteAdding() : void {
this._cooldownProgressData.addingProgress = 0;
this.setProgress(0,this._effectProgress);
this._isAddingEffect = false;
}
private function getRemainingTime() : int {
if(this._durationTime == 0 || this._startTime == -1) {
return 0;
}
return this._durationTime - (getTimer() - this._startTime);
}
public function setVisible(param1:Boolean) : void {
this._view.visible = param1;
}
}
}
|
package alternativa.engine3d.primitives {
import alternativa.engine3d.alternativa3d;
import alternativa.engine3d.core.Face;
import alternativa.engine3d.core.Object3D;
import alternativa.engine3d.core.Vertex;
import alternativa.engine3d.core.Wrapper;
import alternativa.engine3d.materials.Material;
import alternativa.engine3d.objects.Mesh;
use namespace alternativa3d;
public class Plane extends Mesh {
public function Plane(param1:Number = 100, param2:Number = 100, param3:uint = 1, param4:uint = 1, param5:Boolean = true, param6:Boolean = false, param7:Boolean = false, param8:Material = null, param9:Material = null) {
var local10:int = 0;
var local11:int = 0;
var local12:int = 0;
super();
if(param3 < 1) {
throw new ArgumentError(param3 + " width segments not enough.");
}
if(param4 < 1) {
throw new ArgumentError(param4 + " length segments not enough.");
}
var local13:int = param3 + 1;
var local14:int = param4 + 1;
var local15:Number = param1 * 0.5;
var local16:Number = param2 * 0.5;
var local17:Number = 1 / param3;
var local18:Number = 1 / param4;
var local19:Number = param1 / param3;
var local20:Number = param2 / param4;
var local21:Vector.<Vertex> = new Vector.<Vertex>();
var local22:int = 0;
local10 = 0;
while(local10 < local13) {
local11 = 0;
while(local11 < local14) {
var local23:* = local22++;
local21[local23] = this.createVertex(local10 * local19 - local15,local11 * local20 - local16,0,local10 * local17,(param4 - local11) * local18);
local11++;
}
local10++;
}
local10 = 0;
while(local10 < local13) {
local11 = 0;
while(local11 < local14) {
if(local10 < param3 && local11 < param4) {
this.createFace(local21[local10 * local14 + local11],local21[(local10 + 1) * local14 + local11],local21[(local10 + 1) * local14 + local11 + 1],local21[local10 * local14 + local11 + 1],0,0,1,0,param6,param7,param9);
}
local11++;
}
local10++;
}
if(param5) {
local22 = 0;
local10 = 0;
while(local10 < local13) {
local11 = 0;
while(local11 < local14) {
local23 = local22++;
local21[local23] = this.createVertex(local10 * local19 - local15,local11 * local20 - local16,0,(param3 - local10) * local17,(param4 - local11) * local18);
local11++;
}
local10++;
}
local10 = 0;
while(local10 < local13) {
local11 = 0;
while(local11 < local14) {
if(local10 < param3 && local11 < param4) {
this.createFace(local21[(local10 + 1) * local14 + local11 + 1],local21[(local10 + 1) * local14 + local11],local21[local10 * local14 + local11],local21[local10 * local14 + local11 + 1],0,0,-1,0,param6,param7,param8);
}
local11++;
}
local10++;
}
}
boundMinX = -local15;
boundMinY = -local16;
boundMinZ = 0;
boundMaxX = local15;
boundMaxY = local16;
boundMaxZ = 0;
}
private function createVertex(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number) : Vertex {
var local6:Vertex = new Vertex();
local6.x = param1;
local6.y = param2;
local6.z = param3;
local6.u = param4;
local6.v = param5;
local6.alternativa3d::next = alternativa3d::vertexList;
alternativa3d::vertexList = local6;
return local6;
}
private function createFace(param1:Vertex, param2:Vertex, param3:Vertex, param4:Vertex, param5:Number, param6:Number, param7:Number, param8:Number, param9:Boolean, param10:Boolean, param11:Material) : void {
var local12:Vertex = null;
var local13:Face = null;
if(param9) {
param5 = -param5;
param6 = -param6;
param7 = -param7;
param8 = -param8;
local12 = param1;
param1 = param4;
param4 = local12;
local12 = param2;
param2 = param3;
param3 = local12;
}
if(param10) {
local13 = new Face();
local13.material = param11;
local13.alternativa3d::wrapper = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::vertex = param1;
local13.alternativa3d::wrapper.alternativa3d::next = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::vertex = param2;
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::vertex = param3;
local13.alternativa3d::normalX = param5;
local13.alternativa3d::normalY = param6;
local13.alternativa3d::normalZ = param7;
local13.alternativa3d::offset = param8;
local13.alternativa3d::next = alternativa3d::faceList;
alternativa3d::faceList = local13;
local13 = new Face();
local13.material = param11;
local13.alternativa3d::wrapper = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::vertex = param1;
local13.alternativa3d::wrapper.alternativa3d::next = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::vertex = param3;
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::vertex = param4;
local13.alternativa3d::normalX = param5;
local13.alternativa3d::normalY = param6;
local13.alternativa3d::normalZ = param7;
local13.alternativa3d::offset = param8;
local13.alternativa3d::next = alternativa3d::faceList;
alternativa3d::faceList = local13;
} else {
local13 = new Face();
local13.material = param11;
local13.alternativa3d::wrapper = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::vertex = param1;
local13.alternativa3d::wrapper.alternativa3d::next = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::vertex = param2;
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::vertex = param3;
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::next = new Wrapper();
local13.alternativa3d::wrapper.alternativa3d::next.alternativa3d::next.alternativa3d::next.alternativa3d::vertex = param4;
local13.alternativa3d::normalX = param5;
local13.alternativa3d::normalY = param6;
local13.alternativa3d::normalZ = param7;
local13.alternativa3d::offset = param8;
local13.alternativa3d::next = alternativa3d::faceList;
alternativa3d::faceList = local13;
}
}
override public function clone() : Object3D {
var local1:Plane = new Plane();
local1.clonePropertiesFrom(this);
return local1;
}
}
}
|
package projects.tanks.clients.fp10.libraries.tanksservices.service.fullscreen {
public interface FullscreenService {
function switchFullscreen() : void;
function isAvailable() : Boolean;
function isFullScreenNow() : Boolean;
function isMouseLockEnabled() : Boolean;
}
}
|
package alternativa.tanks.models.battle.gui.gui.statistics.field.score {
import flash.display.Bitmap;
public class ASScoreIndicator extends SimpleTeamScoreIndicator {
private static var redScoreClass:Class = ASScoreIndicator_redScoreClass;
private static var blueScoreClass:Class = ASScoreIndicator_blueScoreClass;
public function ASScoreIndicator() {
super();
}
override protected function getRedScoreIcon() : Bitmap {
return new redScoreClass();
}
override protected function getBlueScoreIcon() : Bitmap {
return new blueScoreClass();
}
}
}
|
package alternativa.tanks.model.achievement {
import alternativa.tanks.service.achievement.IAchievementService;
import platform.client.fp10.core.model.ObjectLoadPostListener;
import platform.client.fp10.core.model.ObjectUnloadListener;
import projects.tanks.client.achievements.model.Achievement;
import projects.tanks.client.achievements.model.panel.AchievementPanelModelBase;
import projects.tanks.client.achievements.model.panel.IAchievementPanelModelBase;
[ModelInfo]
public class AchievementModel extends AchievementPanelModelBase implements IAchievementPanelModelBase, ObjectUnloadListener, ObjectLoadPostListener {
[Inject]
public static var achievementService:IAchievementService;
public function AchievementModel() {
super();
}
public function completeAchievement(param1:Achievement, param2:String, param3:int) : void {
achievementService.completeAchievement(param1,param2,param3);
}
public function activateAchievement(param1:Achievement) : void {
achievementService.activateAchievement(param1);
}
public function objectLoadedPost() : void {
achievementService.setAchievements(getInitParam().activeAchievements);
}
public function objectUnloaded() : void {
achievementService.hideAllBubbles(true);
}
}
}
|
package com.reygazu.anticheat.variables
{
import com.reygazu.anticheat.managers.CheatManager;
public class SecureNumber
{
private var secureData:SecureObject;
private var fake:Number;
public function SecureNumber(name:String = "Unnamed SecureNumber", _fake:Number = 0)
{
super();
this.fake = _fake;
this.secureData = new SecureObject(name,_fake);
}
public function set value(data:Number) : void
{
if(this.fake != this.secureData.objectValue)
{
CheatManager.getInstance().detectCheat(this.secureData.name,this.fake,this.secureData.objectValue);
}
this.secureData.objectValue = data;
this.fake = data;
}
public function get value() : Number
{
return this.secureData.objectValue as Number;
}
}
}
|
package projects.tanks.client.clans.notifier {
import alternativa.types.Long;
import projects.tanks.client.clans.clan.permissions.ClanAction;
public class ClanNotifierData {
private var _clanAction:Vector.<ClanAction>;
private var _clanId:Long;
private var _clanIncoming:Vector.<Long>;
private var _clanMember:Boolean;
private var _clanName:String;
private var _clanOutgoing:Vector.<Long>;
private var _clanTag:String;
private var _incomingRequestEnabled:Boolean;
private var _minRankForJoinClan:int;
private var _restrictionTimeJoinClan:Long;
private var _userId:Long;
public function ClanNotifierData(param1:Vector.<ClanAction> = null, param2:Long = null, param3:Vector.<Long> = null, param4:Boolean = false, param5:String = null, param6:Vector.<Long> = null, param7:String = null, param8:Boolean = false, param9:int = 0, param10:Long = null, param11:Long = null) {
super();
this._clanAction = param1;
this._clanId = param2;
this._clanIncoming = param3;
this._clanMember = param4;
this._clanName = param5;
this._clanOutgoing = param6;
this._clanTag = param7;
this._incomingRequestEnabled = param8;
this._minRankForJoinClan = param9;
this._restrictionTimeJoinClan = param10;
this._userId = param11;
}
public function get clanAction() : Vector.<ClanAction> {
return this._clanAction;
}
public function set clanAction(param1:Vector.<ClanAction>) : void {
this._clanAction = param1;
}
public function get clanId() : Long {
return this._clanId;
}
public function set clanId(param1:Long) : void {
this._clanId = param1;
}
public function get clanIncoming() : Vector.<Long> {
return this._clanIncoming;
}
public function set clanIncoming(param1:Vector.<Long>) : void {
this._clanIncoming = param1;
}
public function get clanMember() : Boolean {
return this._clanMember;
}
public function set clanMember(param1:Boolean) : void {
this._clanMember = param1;
}
public function get clanName() : String {
return this._clanName;
}
public function set clanName(param1:String) : void {
this._clanName = param1;
}
public function get clanOutgoing() : Vector.<Long> {
return this._clanOutgoing;
}
public function set clanOutgoing(param1:Vector.<Long>) : void {
this._clanOutgoing = param1;
}
public function get clanTag() : String {
return this._clanTag;
}
public function set clanTag(param1:String) : void {
this._clanTag = param1;
}
public function get incomingRequestEnabled() : Boolean {
return this._incomingRequestEnabled;
}
public function set incomingRequestEnabled(param1:Boolean) : void {
this._incomingRequestEnabled = param1;
}
public function get minRankForJoinClan() : int {
return this._minRankForJoinClan;
}
public function set minRankForJoinClan(param1:int) : void {
this._minRankForJoinClan = param1;
}
public function get restrictionTimeJoinClan() : Long {
return this._restrictionTimeJoinClan;
}
public function set restrictionTimeJoinClan(param1:Long) : void {
this._restrictionTimeJoinClan = param1;
}
public function get userId() : Long {
return this._userId;
}
public function set userId(param1:Long) : void {
this._userId = param1;
}
public function toString() : String {
var local1:String = "ClanNotifierData [";
local1 += "clanAction = " + this.clanAction + " ";
local1 += "clanId = " + this.clanId + " ";
local1 += "clanIncoming = " + this.clanIncoming + " ";
local1 += "clanMember = " + this.clanMember + " ";
local1 += "clanName = " + this.clanName + " ";
local1 += "clanOutgoing = " + this.clanOutgoing + " ";
local1 += "clanTag = " + this.clanTag + " ";
local1 += "incomingRequestEnabled = " + this.incomingRequestEnabled + " ";
local1 += "minRankForJoinClan = " + this.minRankForJoinClan + " ";
local1 += "restrictionTimeJoinClan = " + this.restrictionTimeJoinClan + " ";
local1 += "userId = " + this.userId + " ";
return local1 + "]";
}
}
}
|
package alternativa.tanks.utils {
public interface EncryptedNumber {
function setNumber(param1:Number) : void;
function getNumber() : Number;
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import alternativa.types.Byte;
import alternativa.types.Float;
import projects.tanks.client.battlefield.models.tankparts.weapons.artillery.rotation.BarrelElevationCommand;
public class CodecBarrelElevationCommand implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_control:ICodec;
private var codec_elevation:ICodec;
public function CodecBarrelElevationCommand() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_control = param1.getCodec(new TypeCodecInfo(Byte,false));
this.codec_elevation = param1.getCodec(new TypeCodecInfo(Float,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:BarrelElevationCommand = new BarrelElevationCommand();
local2.control = this.codec_control.decode(param1) as int;
local2.elevation = this.codec_elevation.decode(param1) as Number;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:BarrelElevationCommand = BarrelElevationCommand(param2);
this.codec_control.encode(param1,local3.control);
this.codec_elevation.encode(param1,local3.elevation);
}
}
}
|
package alternativa.tanks.models.weapon.freeze
{
import alternativa.object.ClientObject;
public interface IFreezeModel
{
function getFreezeData(param1:ClientObject) : FreezeData;
}
}
|
package alternativa.tanks.model.quest.weekly.gui {
import alternativa.tanks.model.quest.common.gui.window.CommonQuestView;
import controls.base.ThreeLineBigButton;
import projects.tanks.client.panel.model.quest.QuestTypeEnum;
import projects.tanks.client.panel.model.quest.weekly.WeeklyQuestInfo;
public class WeeklyQuestView extends CommonQuestView {
public function WeeklyQuestView(param1:WeeklyQuestInfo) {
super(param1);
}
override protected function createActionButton() : ThreeLineBigButton {
var local1:ThreeLineBigButton = super.createActionButton();
local1.enabled = questInfo.progress >= questInfo.finishCriteria;
return local1;
}
override public function getQuestType() : QuestTypeEnum {
return QuestTypeEnum.WEEKLY;
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.