code stringlengths 57 237k |
|---|
package _codec.projects.tanks.client.panel.model.mobilequest.profile {
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.panel.model.mobilequest.profile.MobileQuestProfileCC;
public class CodecMobileQuestProfileCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_currentStep:ICodec;
private var codec_eventMember:ICodec;
private var codec_remainingTimeInSec:ICodec;
public function CodecMobileQuestProfileCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_currentStep = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_eventMember = param1.getCodec(new TypeCodecInfo(Boolean,false));
this.codec_remainingTimeInSec = param1.getCodec(new TypeCodecInfo(Long,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:MobileQuestProfileCC = new MobileQuestProfileCC();
local2.currentStep = this.codec_currentStep.decode(param1) as int;
local2.eventMember = this.codec_eventMember.decode(param1) as Boolean;
local2.remainingTimeInSec = this.codec_remainingTimeInSec.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:MobileQuestProfileCC = MobileQuestProfileCC(param2);
this.codec_currentStep.encode(param1,local3.currentStep);
this.codec_eventMember.encode(param1,local3.eventMember);
this.codec_remainingTimeInSec.encode(param1,local3.remainingTimeInSec);
}
}
}
|
package alternativa.physics
{
import alternativa.math.Vector3;
import alternativa.physics.collision.CollisionPrimitive;
public class RayHit
{
public var primitive:CollisionPrimitive;
public var position:Vector3;
public var normal:Vector3;
public var t:Number = 0;
public function RayHit()
{
this.position = new Vector3();
this.normal = new Vector3();
super();
}
public function copy(source:RayHit) : void
{
this.primitive = source.primitive;
this.position.vCopy(source.position);
this.normal.vCopy(source.normal);
this.t = source.t;
}
}
}
|
package alternativa.tanks.models.battle.gui.inventory {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.models.battle.gui.inventory.HudInventoryIcon_damageGrayIconClass.png")]
public class HudInventoryIcon_damageGrayIconClass extends BitmapAsset {
public function HudInventoryIcon_damageGrayIconClass() {
super();
}
}
}
|
package alternativa.tanks.model.garage {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class GarageAdapt implements Garage {
private var object:IGameObject;
private var impl:Garage;
public function GarageAdapt(param1:IGameObject, param2:Garage) {
super();
this.object = param1;
this.impl = param2;
}
public function haveAbilityToMount(param1:IGameObject) : Boolean {
var result:Boolean = false;
var item:IGameObject = param1;
try {
Model.object = this.object;
result = Boolean(this.impl.haveAbilityToMount(item));
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.view.battleinfo.renderer {
import controls.cellrenderer.ButtonState;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Graphics;
public class CellRed extends ButtonState {
private static const cellRedLeft:Class = CellRed_cellRedLeft;
private static const cellRedLeftData:BitmapData = Bitmap(new cellRedLeft()).bitmapData;
private static const cellRedCenter:Class = CellRed_cellRedCenter;
private static const cellRedCentreData:BitmapData = Bitmap(new cellRedCenter()).bitmapData;
private static const cellRedRight:Class = CellRed_cellRedRight;
private static const cellRedRightData:BitmapData = Bitmap(new cellRedRight()).bitmapData;
public function CellRed() {
super();
bmpLeft = cellRedLeftData;
bmpCenter = cellRedCentreData;
bmpRight = cellRedRightData;
}
override public function draw() : void {
var local1:Graphics = null;
local1 = l.graphics;
local1.clear();
local1.beginBitmapFill(bmpLeft);
local1.drawRect(0,0,5,20);
local1.endFill();
l.x = 0;
l.y = 0;
local1 = c.graphics;
local1.clear();
local1.beginBitmapFill(bmpCenter);
local1.drawRect(0,0,_width - 10,20);
local1.endFill();
c.x = 5;
c.y = 0;
local1 = r.graphics;
local1.clear();
local1.beginBitmapFill(bmpRight);
local1.drawRect(0,0,5,20);
local1.endFill();
r.x = _width - 5;
r.y = 0;
}
}
}
|
package projects.tanks.client.battlefield.models.tankparts.sfx.shoot.thunder {
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 ThunderShootSFXCC {
private var _explosionMarkTexture:TextureResource;
private var _explosionSize:Number;
private var _explosionSound:SoundResource;
private var _explosionTexture:MultiframeTextureResource;
private var _lightingSFXEntity:LightingSFXEntity;
private var _shotSound:SoundResource;
private var _shotTexture:TextureResource;
public function ThunderShootSFXCC(param1:TextureResource = null, param2:Number = 0, param3:SoundResource = null, param4:MultiframeTextureResource = null, param5:LightingSFXEntity = null, param6:SoundResource = null, param7:TextureResource = null) {
super();
this._explosionMarkTexture = param1;
this._explosionSize = param2;
this._explosionSound = param3;
this._explosionTexture = param4;
this._lightingSFXEntity = param5;
this._shotSound = param6;
this._shotTexture = param7;
}
public function get explosionMarkTexture() : TextureResource {
return this._explosionMarkTexture;
}
public function set explosionMarkTexture(param1:TextureResource) : void {
this._explosionMarkTexture = param1;
}
public function get explosionSize() : Number {
return this._explosionSize;
}
public function set explosionSize(param1:Number) : void {
this._explosionSize = param1;
}
public function get explosionSound() : SoundResource {
return this._explosionSound;
}
public function set explosionSound(param1:SoundResource) : void {
this._explosionSound = param1;
}
public function get explosionTexture() : MultiframeTextureResource {
return this._explosionTexture;
}
public function set explosionTexture(param1:MultiframeTextureResource) : void {
this._explosionTexture = param1;
}
public function get lightingSFXEntity() : LightingSFXEntity {
return this._lightingSFXEntity;
}
public function set lightingSFXEntity(param1:LightingSFXEntity) : void {
this._lightingSFXEntity = param1;
}
public function get shotSound() : SoundResource {
return this._shotSound;
}
public function set shotSound(param1:SoundResource) : void {
this._shotSound = param1;
}
public function get shotTexture() : TextureResource {
return this._shotTexture;
}
public function set shotTexture(param1:TextureResource) : void {
this._shotTexture = param1;
}
public function toString() : String {
var local1:String = "ThunderShootSFXCC [";
local1 += "explosionMarkTexture = " + this.explosionMarkTexture + " ";
local1 += "explosionSize = " + this.explosionSize + " ";
local1 += "explosionSound = " + this.explosionSound + " ";
local1 += "explosionTexture = " + this.explosionTexture + " ";
local1 += "lightingSFXEntity = " + this.lightingSFXEntity + " ";
local1 += "shotSound = " + this.shotSound + " ";
local1 += "shotTexture = " + this.shotTexture + " ";
return local1 + "]";
}
}
}
|
package alternativa.tanks.service.battlecreate {
import flash.events.Event;
public class BattleCreateFormServiceEvent extends Event {
public static const SHOW_FORM:String = "BattleCreateFormServiceEvent.SHOW_FORM";
public static const HIDE_FORM:String = "BattleCreateFormServiceEvent.HIDE_FORM";
public function BattleCreateFormServiceEvent(param1:String) {
super(param1);
}
}
}
|
package alternativa.tanks.models.bonus.common {
import alternativa.engine3d.core.Face;
import alternativa.engine3d.materials.TextureMaterial;
import alternativa.engine3d.objects.Mesh;
import alternativa.tanks.battle.BattleService;
import alternativa.tanks.bonuses.BattleBonus;
import alternativa.tanks.bonuses.BattleBonusData;
import alternativa.tanks.bonuses.Bonus;
import alternativa.tanks.models.bonus.bonuslight.BonusLight;
import alternativa.tanks.models.bonus.bonuslight.IBonusLight;
import alternativa.tanks.models.effects.common.IBonusCommonModel;
import alternativa.types.Long;
import alternativa.utils.TextureMaterialRegistry;
import flash.display.BitmapData;
import platform.client.fp10.core.model.ObjectLoadListener;
import platform.client.fp10.core.model.ObjectUnloadListener;
import platform.client.fp10.core.resource.types.StubBitmapData;
import projects.tanks.client.battlefield.models.bonus.bonus.common.BonusCommonModelBase;
import projects.tanks.client.battlefield.models.bonus.bonus.common.IBonusCommonModelBase;
import projects.tanks.clients.flash.resources.resource.Tanks3DSResource;
[ModelInfo]
public class BonusCommonModel extends BonusCommonModelBase implements IBonusCommonModelBase, ObjectLoadListener, ObjectUnloadListener, IBonusCommonModel {
[Inject]
public static var materialRegistry:TextureMaterialRegistry;
[Inject]
public static var battleService:BattleService;
private static var stubBitmapData:BitmapData;
public function BonusCommonModel() {
super();
}
private static function getMeshFromResource(param1:Tanks3DSResource) : Mesh {
var local2:Mesh = Mesh(param1.objects[0]);
var local3:BitmapData = param1.getTextureForObject(0);
if(local3 == null) {
local3 = getStubBitmapData();
}
var local4:Mesh = Mesh(local2.clone());
var local5:TextureMaterial = materialRegistry.getMaterial(local3);
local5.resolution = 1;
local4.setMaterialToAllFaces(local5);
return local4;
}
private static function getStubBitmapData() : BitmapData {
if(stubBitmapData == null) {
stubBitmapData = new StubBitmapData(65280);
}
return stubBitmapData;
}
[Obfuscation(rename="false")]
public function objectLoaded() : void {
var local1:BattleBonusData = new BattleBonusData();
local1.boxMesh = getMeshFromResource(getInitParam().boxResource);
local1.parachuteOuterMesh = getMeshFromResource(getInitParam().parachuteResource);
local1.parachuteInnerMesh = getMeshFromResource(getInitParam().parachuteInnerResource);
local1.cordsMaterial = materialRegistry.getMaterial(getInitParam().cordResource.data);
local1.cordsMaterial.resolution = 5;
if(getInitParam().pickupSoundResource != null) {
local1.pickupSound = getInitParam().pickupSoundResource.sound;
}
var local2:BonusLight = IBonusLight(object.adapt(IBonusLight)).getBonusLight();
local1.lightColor = local2.getLightColor().getColor();
local1.lightIntensity = local2.getLightColor().getIntensity();
local1.attenuationBegin = local2.getAttenuationBegin();
local1.attenuationEnd = local2.getAttenuationEnd();
putData(BattleBonusData,local1);
}
[Obfuscation(rename="false")]
public function objectUnloaded() : void {
var local1:BattleBonusData = BattleBonusData(getData(BattleBonusData));
materialRegistry.releaseMaterial(this.getMeshMaterial(local1.boxMesh));
materialRegistry.releaseMaterial(this.getMeshMaterial(local1.parachuteInnerMesh));
materialRegistry.releaseMaterial(this.getMeshMaterial(local1.parachuteOuterMesh));
materialRegistry.releaseMaterial(local1.cordsMaterial);
}
private function getMeshMaterial(param1:Mesh) : TextureMaterial {
var local2:Face = param1.faces[0];
return TextureMaterial(local2.material);
}
public function getBonus(param1:Long) : Bonus {
var local2:BattleBonusData = BattleBonusData(getData(BattleBonusData));
var local3:BattleBonus = BattleBonus(battleService.getObjectPool().getObject(BattleBonus));
local3.init(object.id,param1,local2,battleService);
return local3;
}
}
}
|
package alternativa.utils {
public interface IStringBufferIterator {
function hasNext() : Boolean;
function getNext() : String;
}
}
|
package controls {
import assets.input.*;
import flash.display.BitmapData;
import flash.display.Graphics;
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.events.TextEvent;
import flash.events.TimerEvent;
import flash.system.Capabilities;
import flash.text.AntiAliasType;
import flash.text.GridFitType;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
import flash.text.TextFormat;
import flash.utils.Timer;
import flash.utils.getTimer;
import fonts.TanksFontService;
import forms.events.LoginFormEvent;
[Embed(source="/_assets/assets.swf", symbol="symbol17")]
public class TankInput extends Sprite {
private var _timeout:int = 0;
private var _valide:Boolean = true;
private var _value:String = "";
public var _label:Label;
private const format:TextFormat = TanksFontService.getTextFormat(12);
private const bg:Sprite = new Sprite();
private const l:Shape = new Shape();
private const c:Shape = new Shape();
private const r:Shape = new Shape();
private const bmpLeft:InputLeft = new InputLeft(0,0);
private const bmpCenter:InputCenter = new InputCenter(0,0);
private const bmpRight:InputRight = new InputRight(0,0);
private const bmpLeftWrong:InputLeftWrong = new InputLeftWrong(0,0);
private const bmpCenterWrong:InputCenterWrong = new InputCenterWrong(0,0);
private const bmpRightWrong:InputRightWrong = new InputRightWrong(0,0);
private var _width:int;
private var _height:int;
public var textField:TextField;
private var oldtime:int = 0;
private var oldvalue:String = "";
private var timer:Timer;
private var _hidden:Boolean;
public function TankInput() {
super();
removeChildAt(0);
addChild(this.bg);
this.bg.addChild(this.l);
this.bg.addChild(this.c);
this.bg.addChild(this.r);
this._label = new Label();
this._label.x = -10;
this._label.y = 7;
addChild(this._label);
this.oldtime = getTimer();
var local1:String = Capabilities.version;
var local2:RegExp = /^(\w*) (\d*),(\d*),(\d*),(\d*)$/;
var local3:Object = local2.exec(local1);
if(local3 != null && Number(local3[2] + "." + local3[3]) < 10.1) {
this.textField = new TextFieldUtf8();
} else {
this.textField = new TextField();
}
addChild(this.textField);
this.format.color = 16777215;
this.textField.defaultTextFormat = this.format;
this.textField.antiAliasType = AntiAliasType.ADVANCED;
this.textField.gridFitType = GridFitType.PIXEL;
this.textField.embedFonts = TanksFontService.isEmbedFonts();
this.textField.type = TextFieldType.INPUT;
this.textField.x = 3;
this.textField.y = 7;
this.textField.height = 20;
this.textField.addEventListener(Event.CHANGE,this.sendFuckingEvent);
this.width = 212;
}
override public function set width(param1:Number) : void {
this._width = int(param1);
this.textField.width = this._width - 6;
this.draw();
}
override public function set height(param1:Number) : void {
this._height = int(param1);
this.draw();
}
public function set label(param1:String) : void {
this._label.text = param1;
this._label.autoSize = TextFieldAutoSize.RIGHT;
}
public function set align(param1:String) : void {
this.format.align = param1;
this.updateformat();
}
private function updateformat() : void {
this.textField.defaultTextFormat = this.format;
this.textField.setTextFormat(this.format);
}
public function clear() : void {
this.textField.text = "";
this.validValue = true;
}
override public function set tabIndex(param1:int) : void {
this.textField.tabIndex = param1;
}
public function set timeout(param1:int) : void {
this._timeout = param1;
this.textField.addEventListener(KeyboardEvent.KEY_UP,this.listener);
this.timer = new Timer(this._timeout);
this.timer.addEventListener(TimerEvent.TIMER,this.onTimeOut);
this.textField.removeEventListener(TextEvent.TEXT_INPUT,this.sendFuckingEvent);
this.timer.start();
}
public function set restrict(param1:String) : void {
this.textField.restrict = param1;
}
public function set maxChars(param1:int) : void {
this.textField.maxChars = param1;
}
public function get value() : String {
return this._value;
}
public function set value(param1:String) : void {
this.textField.text = this._value = param1;
}
public function set hidden(param1:Boolean) : void {
this._hidden = param1;
this.textField.displayAsPassword = this._hidden;
this.textField.defaultTextFormat = this.format;
this.textField.setTextFormat(this.format);
}
public function set validValue(param1:Boolean) : void {
this._valide = param1;
this.draw();
}
public function get validValue() : Boolean {
return this._valide;
}
private function listener(param1:KeyboardEvent) : void {
var local2:int = getTimer();
this.oldtime = local2;
}
private function sendFuckingEvent(param1:Event) : void {
this._value = this.textField.text;
dispatchEvent(new LoginFormEvent(LoginFormEvent.TEXT_CHANGED));
}
private function onTimeOut(param1:TimerEvent) : void {
var local2:int = getTimer();
if(local2 - this.oldtime > this._timeout && this.oldvalue != this.value) {
this.oldvalue = this.value;
dispatchEvent(new LoginFormEvent(LoginFormEvent.TEXT_CHANGED));
}
this.oldtime = local2;
}
public function hide(param1:Event) : void {
removeEventListener(Event.REMOVED_FROM_STAGE,this.hide);
this.textField.removeEventListener(TextEvent.TEXT_INPUT,this.sendFuckingEvent);
this.textField.removeEventListener(KeyboardEvent.KEY_UP,this.listener);
}
private function draw() : void {
var local1:Graphics = null;
local1 = this.l.graphics;
local1.clear();
local1.beginBitmapFill(this._valide ? this.bmpLeft : this.bmpLeftWrong);
local1.drawRect(0,0,5,30);
local1.endFill();
this.l.x = 0;
this.l.y = 0;
local1 = this.c.graphics;
local1.clear();
local1.beginBitmapFill(this._valide ? this.bmpCenter : this.bmpCenterWrong);
local1.drawRect(0,0,this._width - 10,30);
local1.endFill();
this.c.x = 5;
this.c.y = 0;
local1 = this.r.graphics;
local1.clear();
local1.beginBitmapFill(this._valide ? this.bmpRight : this.bmpRightWrong);
local1.drawRect(0,0,5,30);
local1.endFill();
this.r.x = this._width - 5;
this.r.y = 0;
}
}
}
|
package projects.tanks.client.battlefield.models.user.pause {
import alternativa.osgi.OSGi;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.types.Long;
import platform.client.fp10.core.model.IModel;
import platform.client.fp10.core.model.impl.Model;
public class TankPauseModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:TankPauseModelServer;
private var client:ITankPauseModelBase = ITankPauseModelBase(this);
private var modelId:Long = Long.getLong(1396750689,-217255698);
public function TankPauseModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new TankPauseModelServer(IModel(this));
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
var local3:* = param1;
switch(false ? 0 : 0) {
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package forms.buttons
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class MainPanelSocialNetsButton_iconN extends BitmapAsset
{
public function MainPanelSocialNetsButton_iconN()
{
super();
}
}
}
|
package alternativa.tanks.model.garage.resistance {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.model.garage.resistance.ResistancesIcons_bitmapartilleryResistance_x2.png")]
public class ResistancesIcons_bitmapartilleryResistance_x2 extends BitmapAsset {
public function ResistancesIcons_bitmapartilleryResistance_x2() {
super();
}
}
}
|
package alternativa.tanks.models.battle.battlefield.map {
import alternativa.engine3d.materials.TextureMaterial;
import alternativa.utils.textureutils.TextureByteData;
public interface TexturedPropsCollection {
function getTextureData() : TextureByteData;
function setMaterial(param1:TextureMaterial) : void;
}
}
|
package projects.tanks.client.entrance.model.entrance.notificationtoken {
public interface INotificationTokenModelBase {
}
}
|
package com.alternativaplatform.projects.tanks.client.warfare.models.sfx.flame
{
public interface IFlameThrowingSFXModelBase
{
}
}
|
package projects.tanks.client.battlefield.models.ultimate.effects.dictator {
import platform.client.fp10.core.type.IGameObject;
public interface IDictatorUltimateModelBase {
function showUltimateUsed(param1:Vector.<IGameObject>) : void;
}
}
|
package alternativa.tanks.model.challenge.greenpanel.gray
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class GrayPacket_bg extends BitmapAsset
{
public function GrayPacket_bg()
{
super();
}
}
}
|
package projects.tanks.client.panel.model.tutorialhints {
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 TutorialHintsModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:TutorialHintsModelServer;
private var client:ITutorialHintsModelBase = ITutorialHintsModelBase(this);
private var modelId:Long = Long.getLong(1524013763,797788828);
private var _updateId:Long = Long.getLong(1971461217,-1044767866);
private var _update_tutorialHintsDataCodec:ICodec;
public function TutorialHintsModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new TutorialHintsModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(TutorialHintsCC,false)));
this._update_tutorialHintsDataCodec = this._protocol.getCodec(new TypeCodecInfo(TutorialHintsData,false));
}
protected function getInitParam() : TutorialHintsCC {
return TutorialHintsCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._updateId:
this.client.update(TutorialHintsData(this._update_tutorialHintsDataCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package projects.tanks.client.tanksservices.model.clientrestarttime {
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 OnceADayActionModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function OnceADayActionModelServer(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 _codec.projects.tanks.client.garage.models.item.droppablegold {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.garage.models.item.droppablegold.DroppableGoldItemCC;
public class VectorCodecDroppableGoldItemCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecDroppableGoldItemCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(DroppableGoldItemCC,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.<DroppableGoldItemCC> = new Vector.<DroppableGoldItemCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = DroppableGoldItemCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:DroppableGoldItemCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<DroppableGoldItemCC> = Vector.<DroppableGoldItemCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package alternativa.tanks.model.challenge.greenpanel.gray
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class GrayPacket_left_botom_corner extends BitmapAsset
{
public function GrayPacket_left_botom_corner()
{
super();
}
}
}
|
package alternativa.tanks.models.battle.commonflag {
import alternativa.math.Quaternion;
import alternativa.math.Vector3;
import projects.tanks.client.battlefield.models.battle.pointbased.flag.ClientFlagFlyingData;
import projects.tanks.client.battlefield.models.battle.pointbased.flag.FlagFlyPoint;
import projects.tanks.client.battlefield.models.battle.pointbased.flag.FlyingMode;
public class FlagFlyingData {
private static const TIME_TO_MARK:int = 3000;
private static const APOS:Vector3 = new Vector3();
private static const BPOS:Vector3 = new Vector3();
private static const aQ:Quaternion = new Quaternion();
private static const bQ:Quaternion = new Quaternion();
private var points:Vector.<FlagFlyPoint> = new Vector.<FlagFlyPoint>();
public var isFlying:Boolean = false;
private var time:int = 0;
public var currentPosition:Vector3 = new Vector3();
public var instantSpeed:Number = 0;
private var currentIndex:int = 0;
private var finalPosition:Vector3 = new Vector3();
public var currentOrientation:Quaternion = new Quaternion();
public var isKilled:Boolean;
public function FlagFlyingData() {
super();
}
public function init(param1:ClientFlagFlyingData) : void {
var local2:FlagFlyPoint = null;
this.points.length = 0;
for each(local2 in param1.points) {
this.points.push(local2);
}
this.isFlying = param1.falling;
this.time = param1.currentTime;
this.currentIndex = 0;
this.finalPosition.copyFromVector3d(this.getLastPoint().position);
this.isKilled = false;
this.update(0);
}
public function update(param1:Number) : void {
var local3:FlagFlyPoint = null;
var local4:FlagFlyPoint = null;
var local8:int = 0;
this.time += param1 * 1000;
var local2:FlagFlyPoint = this.getLastPoint();
if(this.time >= local2.time) {
this.currentPosition.copy(this.getFinalPosition());
this.time = local2.time;
this.isFlying = false;
if(local2.mode == FlyingMode.KILL) {
this.isKilled = true;
}
return;
}
if(this.points.length == 2) {
local4 = this.points[0];
local3 = this.points[1];
} else {
local8 = this.currentIndex;
while(local8 < this.points.length - 1) {
local4 = this.points[local8];
local3 = this.points[local8 + 1];
if(local4.time <= this.time && this.time < local3.time) {
this.currentIndex = local8;
break;
}
local8++;
}
}
var local5:int = local3.time - local4.time;
var local6:Number = (this.time - local4.time) / local5;
BPOS.copyFromVector3d(local3.position);
this.currentPosition.copy(BPOS);
APOS.copyFromVector3d(local4.position);
this.currentPosition.subtract(APOS);
this.currentPosition.scale(local6);
this.currentPosition.add(APOS);
aQ.reset(local4.rotation_w,local4.rotation_x,local4.rotation_y,local4.rotation_z).normalize();
bQ.reset(local3.rotation_w,local3.rotation_x,local3.rotation_y,local3.rotation_z).normalize();
this.currentOrientation.slerp(aQ,bQ,local6).normalize();
var local7:Number = BPOS.distanceTo(APOS);
this.instantSpeed = local7 / (local5 * 1000);
}
public function getFinalPosition() : Vector3 {
return this.finalPosition;
}
private function getLastPoint() : FlagFlyPoint {
return this.points[this.points.length - 1];
}
public function isMarked() : Boolean {
return this.time > TIME_TO_MARK;
}
}
}
|
package alternativa.tanks.gui.friends.list.renderer {
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.gui.friends.FriendActionIndicator;
import alternativa.tanks.gui.friends.list.renderer.background.RendererBackGroundIncomingList;
import controls.base.LabelBase;
import fl.controls.listClasses.CellRenderer;
import fl.controls.listClasses.ListData;
import flash.display.DisplayObject;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import forms.ColorConstants;
import forms.userlabel.UserLabel;
import projects.tanks.clients.fp10.libraries.TanksLocale;
import services.contextmenu.IContextMenuService;
public class FriendsIncomingListRenderer extends CellRenderer {
[Inject]
public static var contextMenuService:IContextMenuService;
[Inject]
public static var localeService:ILocaleService;
private var _labelsContainer:DisplayObject;
private var _userLabel:UserLabel;
private var _acceptRequestIndicator:FriendActionIndicator;
private var _rejectRequestIndicator:FriendActionIndicator;
private var _isNewLabel:LabelBase;
public function FriendsIncomingListRenderer() {
super();
}
override public function set data(param1:Object) : void {
_data = param1;
mouseEnabled = false;
mouseChildren = true;
buttonMode = useHandCursor = false;
var local2:RendererBackGroundIncomingList = new RendererBackGroundIncomingList(false);
var local3:RendererBackGroundIncomingList = new RendererBackGroundIncomingList(true);
setStyle("upSkin",local2);
setStyle("downSkin",local2);
setStyle("overSkin",local2);
setStyle("selectedUpSkin",local3);
setStyle("selectedOverSkin",local3);
setStyle("selectedDownSkin",local3);
this._labelsContainer = this.createLabels(_data);
if(this._acceptRequestIndicator == null) {
this._acceptRequestIndicator = new FriendActionIndicator(FriendActionIndicator.YES);
addChild(this._acceptRequestIndicator);
}
this._acceptRequestIndicator.visible = false;
if(this._rejectRequestIndicator == null) {
this._rejectRequestIndicator = new FriendActionIndicator(FriendActionIndicator.NO);
addChild(this._rejectRequestIndicator);
}
this._rejectRequestIndicator.visible = false;
if(this._isNewLabel == null) {
this._isNewLabel = new LabelBase();
this._isNewLabel.text = localeService.getText(TanksLocale.TEXT_FRIENDS_NEW) + "!";
this._isNewLabel.height = 18;
this._isNewLabel.y = -1;
this._isNewLabel.color = ColorConstants.GREEN_LABEL;
addChild(this._isNewLabel);
this._isNewLabel.mouseEnabled = false;
}
this._isNewLabel.visible = _data.isNew;
this.addEventListener(Event.RESIZE,this.onResize,false,0,true);
this.addEventListener(MouseEvent.ROLL_OVER,this.onRollOver,false,0,true);
this.addEventListener(MouseEvent.ROLL_OUT,this.onRollOut,false,0,true);
this.resize();
this._acceptRequestIndicator.addEventListener(MouseEvent.CLICK,this.onClickAcceptRequest,false,0,true);
this._rejectRequestIndicator.addEventListener(MouseEvent.CLICK,this.onClickRejectRequest,false,0,true);
}
private function onResize(param1:Event) : void {
this.resize();
}
private function resize() : void {
this._rejectRequestIndicator.x = _width - this._rejectRequestIndicator.width - 6;
this._acceptRequestIndicator.x = this._rejectRequestIndicator.x - this._acceptRequestIndicator.width - 1;
this._isNewLabel.x = _width - this._isNewLabel.width - 6;
}
private function createLabels(param1:Object) : Sprite {
var local2:Sprite = new Sprite();
if(param1.id != null) {
this._userLabel = new UserLabel(param1.id);
this._userLabel.x = -3;
this._userLabel.y = -1;
local2.addChild(this._userLabel);
this._userLabel.setUidColor(ColorConstants.GREEN_LABEL);
}
return local2;
}
private function onRollOver(param1:MouseEvent) : void {
this._acceptRequestIndicator.visible = true;
this._rejectRequestIndicator.visible = true;
if(Boolean(_data.isNew)) {
this._isNewLabel.visible = false;
}
super.selected = true;
}
private function onRollOut(param1:MouseEvent) : void {
this._acceptRequestIndicator.visible = false;
this._rejectRequestIndicator.visible = false;
if(Boolean(_data.isNew)) {
this._isNewLabel.visible = true;
}
super.selected = false;
}
private function onClickAcceptRequest(param1:MouseEvent) : void {
contextMenuService.acceptRequest(this._userLabel.userId,this._userLabel.uid);
}
private function onClickRejectRequest(param1:MouseEvent) : void {
contextMenuService.rejectRequest(this._userLabel.userId,this._userLabel.uid);
}
override public function set listData(param1:ListData) : void {
_listData = param1;
label = _listData.label;
if(this._labelsContainer != null) {
setStyle("icon",this._labelsContainer);
}
}
override protected function drawBackground() : void {
var local1:String = enabled ? mouseState : "disabled";
if(selected) {
local1 = "selected" + local1.substr(0,1).toUpperCase() + local1.substr(1);
}
local1 += "Skin";
var local2:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue(local1));
addChildAt(background,0);
if(local2 != null && local2 != background) {
removeChild(local2);
}
}
override public function set selected(param1:Boolean) : void {
}
}
}
|
package projects.tanks.client.panel.model.shop.paintpackage {
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 PaintPackageModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function PaintPackageModelServer(param1:IModel) {
super();
this.model = param1;
var local2:ByteArray = new ByteArray();
this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol));
this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap());
}
}
}
|
package projects.tanks.client.garage.models.garage.temperature {
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 TemperatureModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:TemperatureModelServer;
private var client:ITemperatureModelBase = ITemperatureModelBase(this);
private var modelId:Long = Long.getLong(727121853,-769625095);
public function TemperatureModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new TemperatureModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(TemperatureCC,false)));
}
protected function getInitParam() : TemperatureCC {
return TemperatureCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
var local3:* = param1;
switch(false ? 0 : 0) {
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package alternativa.tanks.models.weapons.stream {
import alternativa.math.Vector3;
import alternativa.tanks.battle.objects.tank.Tank;
[ModelInterface]
public interface StreamWeaponCommunication {
function fireStarted(param1:int) : void;
function fireStopped(param1:int) : void;
function targetUpdate(param1:int, param2:Vector3, param3:Tank) : void;
function targetsUpdateDummy(param1:int, param2:Vector3) : void;
}
}
|
package alternativa.tanks.controller.events {
import flash.events.Event;
public class ChangeUidResultEvent extends Event {
public static const PASSWORD_IS_INCORRECT:String = "ChangeUidResultEvent.PASSWORD_IS_INCORRECT";
public function ChangeUidResultEvent(param1:String) {
super(param1);
}
}
}
|
package projects.tanks.client.battlefield.models.bonus.bonus.notification {
public interface IBonusNotificationModelBase {
}
}
|
package forms.ranks {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/forms.ranks.DefaultRanksBitmaps_bitmapBigRank02.png")]
public class DefaultRanksBitmaps_bitmapBigRank02 extends BitmapAsset {
public function DefaultRanksBitmaps_bitmapBigRank02() {
super();
}
}
}
|
package alternativa.tanks.models.battle.gui.gui.statistics.messages {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.models.battle.gui.gui.statistics.messages.ActionOutputLine_aslRedPlayerDropFlagIcon.png")]
public class ActionOutputLine_aslRedPlayerDropFlagIcon extends BitmapAsset {
public function ActionOutputLine_aslRedPlayerDropFlagIcon() {
super();
}
}
}
|
package controls.chat
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class ChatPermissionsLevel_candidate extends BitmapAsset
{
public function ChatPermissionsLevel_candidate()
{
super();
}
}
}
|
package _codec.projects.tanks.client.panel.model.referrals {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.codec.OptionalCodecDecorator;
import alternativa.protocol.impl.LengthCodecHelper;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.panel.model.referrals.ReferralIncomeData;
public class VectorCodecReferralIncomeDataLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecReferralIncomeDataLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ReferralIncomeData,false));
if(this.optionalElement) {
this.elementCodec = new OptionalCodecDecorator(this.elementCodec);
}
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:int = LengthCodecHelper.decodeLength(param1);
var local3:Vector.<ReferralIncomeData> = new Vector.<ReferralIncomeData>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ReferralIncomeData(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ReferralIncomeData = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ReferralIncomeData> = Vector.<ReferralIncomeData>(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.battle.triggers
{
import alternativa.tanks.battle.DeferredAction;
import alternativa.tanks.battle.Trigger;
public class DeferredTriggerDeletion implements DeferredAction
{
private var triggers:Triggers;
private var trigger:Trigger;
public function DeferredTriggerDeletion(param1:Triggers, param2:Trigger)
{
super();
this.triggers = param1;
this.trigger = param2;
}
public function execute() : void
{
this.triggers.remove(this.trigger);
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.inventory.sfx {
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.inventory.sfx.InventorySfxCC;
public class CodecInventorySfxCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_daOffSound:ICodec;
private var codec_daOnSound:ICodec;
private var codec_ddOffSound:ICodec;
private var codec_ddOnSound:ICodec;
private var codec_healingSound:ICodec;
private var codec_nitroOffSound:ICodec;
private var codec_nitroOnSound:ICodec;
private var codec_notReadySound:ICodec;
private var codec_readySound:ICodec;
public function CodecInventorySfxCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_daOffSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_daOnSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_ddOffSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_ddOnSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_healingSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_nitroOffSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_nitroOnSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_notReadySound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_readySound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:InventorySfxCC = new InventorySfxCC();
local2.daOffSound = this.codec_daOffSound.decode(param1) as SoundResource;
local2.daOnSound = this.codec_daOnSound.decode(param1) as SoundResource;
local2.ddOffSound = this.codec_ddOffSound.decode(param1) as SoundResource;
local2.ddOnSound = this.codec_ddOnSound.decode(param1) as SoundResource;
local2.healingSound = this.codec_healingSound.decode(param1) as SoundResource;
local2.nitroOffSound = this.codec_nitroOffSound.decode(param1) as SoundResource;
local2.nitroOnSound = this.codec_nitroOnSound.decode(param1) as SoundResource;
local2.notReadySound = this.codec_notReadySound.decode(param1) as SoundResource;
local2.readySound = this.codec_readySound.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:InventorySfxCC = InventorySfxCC(param2);
this.codec_daOffSound.encode(param1,local3.daOffSound);
this.codec_daOnSound.encode(param1,local3.daOnSound);
this.codec_ddOffSound.encode(param1,local3.ddOffSound);
this.codec_ddOnSound.encode(param1,local3.ddOnSound);
this.codec_healingSound.encode(param1,local3.healingSound);
this.codec_nitroOffSound.encode(param1,local3.nitroOffSound);
this.codec_nitroOnSound.encode(param1,local3.nitroOnSound);
this.codec_notReadySound.encode(param1,local3.notReadySound);
this.codec_readySound.encode(param1,local3.readySound);
}
}
}
|
package _codec.projects.tanks.client.garage.models.item.mobilelootbox.deliverylootbox {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.garage.models.item.mobilelootbox.deliverylootbox.MobileLootBoxDeliveryCC;
public class CodecMobileLootBoxDeliveryCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_periodOfGiveLootBoxInMin:ICodec;
private var codec_remainingTimeToGiveLootBoxInSec:ICodec;
public function CodecMobileLootBoxDeliveryCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_periodOfGiveLootBoxInMin = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_remainingTimeToGiveLootBoxInSec = param1.getCodec(new TypeCodecInfo(int,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:MobileLootBoxDeliveryCC = new MobileLootBoxDeliveryCC();
local2.periodOfGiveLootBoxInMin = this.codec_periodOfGiveLootBoxInMin.decode(param1) as int;
local2.remainingTimeToGiveLootBoxInSec = this.codec_remainingTimeToGiveLootBoxInSec.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:MobileLootBoxDeliveryCC = MobileLootBoxDeliveryCC(param2);
this.codec_periodOfGiveLootBoxInMin.encode(param1,local3.periodOfGiveLootBoxInMin);
this.codec_remainingTimeToGiveLootBoxInSec.encode(param1,local3.remainingTimeToGiveLootBoxInSec);
}
}
}
|
package alternativa.tanks.model.item.discount {
import controls.timer.CountDownTimer;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class DiscountEndTimerEvents implements DiscountEndTimer {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function DiscountEndTimerEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function getEndDiscountTimer() : CountDownTimer {
var result:CountDownTimer = null;
var i:int = 0;
var m:DiscountEndTimer = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = DiscountEndTimer(this.impl[i]);
result = m.getEndDiscountTimer();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package projects.tanks.client.panel.model.bonus
{
import scpacker.Base;
public class BonusModelBase extends Base
{
public function BonusModelBase()
{
super();
}
}
}
|
package alternativa.tanks.models.tank {
import alternativa.tanks.battle.objects.tank.Tank;
import alternativa.tanks.battle.objects.tank.WeaponMount;
import alternativa.tanks.battle.objects.tank.controllers.ChassisController;
import alternativa.tanks.display.usertitle.UserTitle;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battlefield.types.Vector3d;
public class ITankModelAdapt implements ITankModel {
private var object:IGameObject;
private var impl:ITankModel;
public function ITankModelAdapt(param1:IGameObject, param2:ITankModel) {
super();
this.object = param1;
this.impl = param2;
}
public function getTank() : Tank {
var result:Tank = null;
try {
Model.object = this.object;
result = this.impl.getTank();
}
finally {
Model.popObject();
}
return result;
}
public function lockMovementControl(param1:int) : void {
var bits:int = param1;
try {
Model.object = this.object;
this.impl.lockMovementControl(bits);
}
finally {
Model.popObject();
}
}
public function unlockMovementControl(param1:int) : void {
var bits:int = param1;
try {
Model.object = this.object;
this.impl.unlockMovementControl(bits);
}
finally {
Model.popObject();
}
}
public function getWeaponController() : IWeaponController {
var result:IWeaponController = null;
try {
Model.object = this.object;
result = this.impl.getWeaponController();
}
finally {
Model.popObject();
}
return result;
}
public function getChassisController() : ChassisController {
var result:ChassisController = null;
try {
Model.object = this.object;
result = this.impl.getChassisController();
}
finally {
Model.popObject();
}
return result;
}
public function getWeaponMount() : WeaponMount {
var result:WeaponMount = null;
try {
Model.object = this.object;
result = this.impl.getWeaponMount();
}
finally {
Model.popObject();
}
return result;
}
public function getTitle() : UserTitle {
var result:UserTitle = null;
try {
Model.object = this.object;
result = this.impl.getTitle();
}
finally {
Model.popObject();
}
return result;
}
public function getUserInfo() : UserInfo {
var result:UserInfo = null;
try {
Model.object = this.object;
result = this.impl.getUserInfo();
}
finally {
Model.popObject();
}
return result;
}
public function sendStateCorrection(param1:Boolean) : void {
var mandatoryCorrection:Boolean = param1;
try {
Model.object = this.object;
this.impl.sendStateCorrection(mandatoryCorrection);
}
finally {
Model.popObject();
}
}
public function onPrevStateCorrection(param1:Boolean) : void {
var mandatoryCorrection:Boolean = param1;
try {
Model.object = this.object;
this.impl.onPrevStateCorrection(mandatoryCorrection);
}
finally {
Model.popObject();
}
}
public function handleCollisionWithOtherTank(param1:Tank) : void {
var tank:Tank = param1;
try {
Model.object = this.object;
this.impl.handleCollisionWithOtherTank(tank);
}
finally {
Model.popObject();
}
}
public function sendDeathConfirmationCommand() : void {
try {
Model.object = this.object;
this.impl.sendDeathConfirmationCommand();
}
finally {
Model.popObject();
}
}
public function disableStateCorrection() : void {
try {
Model.object = this.object;
this.impl.disableStateCorrection();
}
finally {
Model.popObject();
}
}
public function enableStateCorrection() : void {
try {
Model.object = this.object;
this.impl.enableStateCorrection();
}
finally {
Model.popObject();
}
}
public function die(param1:int) : void {
var respawnDelay:int = param1;
try {
Model.object = this.object;
this.impl.die(respawnDelay);
}
finally {
Model.popObject();
}
}
public function isLocal() : Boolean {
var result:Boolean = false;
try {
Model.object = this.object;
result = Boolean(this.impl.isLocal());
}
finally {
Model.popObject();
}
return result;
}
public function configureTankTitleAsRemote(param1:IGameObject) : void {
var user:IGameObject = param1;
try {
Model.object = this.object;
this.impl.configureTankTitleAsRemote(user);
}
finally {
Model.popObject();
}
}
public function configureRemoteTankTitles() : void {
try {
Model.object = this.object;
this.impl.configureRemoteTankTitles();
}
finally {
Model.popObject();
}
}
public function addTankToBattle() : void {
try {
Model.object = this.object;
this.impl.addTankToBattle();
}
finally {
Model.popObject();
}
}
public function removeTankFromBattle() : void {
try {
Model.object = this.object;
this.impl.removeTankFromBattle();
}
finally {
Model.popObject();
}
}
public function doSetHealth(param1:Number) : void {
var health:Number = param1;
try {
Model.object = this.object;
this.impl.doSetHealth(health);
}
finally {
Model.popObject();
}
}
public function setChassisState(param1:Vector3d, param2:Vector3d, param3:Vector3d, param4:Vector3d, param5:int, param6:int) : void {
var position:Vector3d = param1;
var orientation:Vector3d = param2;
var linearVelocity:Vector3d = param3;
var angularVelocity:Vector3d = param4;
var controlState:int = param5;
var turnSpeedNumber:int = param6;
try {
Model.object = this.object;
this.impl.setChassisState(position,orientation,linearVelocity,angularVelocity,controlState,turnSpeedNumber);
}
finally {
Model.popObject();
}
}
public function getMovementAnticheatTask() : MovementTimeoutAndDistanceAnticheatTask {
var result:MovementTimeoutAndDistanceAnticheatTask = null;
try {
Model.object = this.object;
result = this.impl.getMovementAnticheatTask();
}
finally {
Model.popObject();
}
return result;
}
public function addTankToExclusionSet(param1:Tank) : void {
var tank:Tank = param1;
try {
Model.object = this.object;
this.impl.addTankToExclusionSet(tank);
}
finally {
Model.popObject();
}
}
public function getTankSet() : TankSet {
var result:TankSet = null;
try {
Model.object = this.object;
result = this.impl.getTankSet();
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package projects.tanks.client.battlefield.models.bonus.battle.bonusregions {
import platform.client.fp10.core.resource.types.TextureResource;
import projects.tanks.client.battlefield.models.bonus.bonus.BonusesType;
public class BonusRegionResource {
private var _dropZoneResource:TextureResource;
private var _regionType:BonusesType;
public function BonusRegionResource(param1:TextureResource = null, param2:BonusesType = null) {
super();
this._dropZoneResource = param1;
this._regionType = param2;
}
public function get dropZoneResource() : TextureResource {
return this._dropZoneResource;
}
public function set dropZoneResource(param1:TextureResource) : void {
this._dropZoneResource = param1;
}
public function get regionType() : BonusesType {
return this._regionType;
}
public function set regionType(param1:BonusesType) : void {
this._regionType = param1;
}
public function toString() : String {
var local1:String = "BonusRegionResource [";
local1 += "dropZoneResource = " + this.dropZoneResource + " ";
local1 += "regionType = " + this.regionType + " ";
return local1 + "]";
}
}
}
|
package alternativa.tanks.battle.scene3d.scene3dcontainer {
import alternativa.engine3d.core.Object3D;
public interface Scene3DContainer {
function addChild(param1:Object3D) : void;
function addChildAt(param1:Object3D, param2:int) : void;
function addChildren(param1:Vector.<Object3D>) : void;
function removeChild(param1:Object3D) : void;
}
}
|
package alternativa.tanks.model.challenge
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class ChallengesIcons_battleTypeBitmap extends BitmapAsset
{
public function ChallengesIcons_battleTypeBitmap()
{
super();
}
}
}
|
package alternativa.tanks.controller.commands.partners {
import alternativa.tanks.controller.events.CheckCaptchaAnswerEvent;
import alternativa.tanks.controller.events.partners.PartnerLoginEvent;
import alternativa.tanks.service.ICaptchaService;
import org.robotlegs.mvcs.Command;
import projects.tanks.client.commons.models.captcha.CaptchaLocation;
public class CheckCaptchaPartnetsLoginFormCommand extends Command {
[Inject]
public var captchaService:ICaptchaService;
[Inject]
public var event:PartnerLoginEvent;
public function CheckCaptchaPartnetsLoginFormCommand() {
super();
}
override public function execute() : void {
var local1:PartnerLoginEvent = new PartnerLoginEvent(PartnerLoginEvent.LOGIN_AFTER_CAPTCHA_CHECKED,this.event.callsign,this.event.password,this.event.captchaAnswer);
if(this.captchaService.loginCaptchaEnabled) {
dispatch(new CheckCaptchaAnswerEvent(this.event.captchaAnswer,CaptchaLocation.LOGIN_FORM,local1));
} else {
dispatch(local1);
}
}
}
}
|
package _codec.projects.tanks.client.tanksservices.model.rankloader {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import projects.tanks.client.tanksservices.model.rankloader.RankInfo;
public class CodecRankInfo implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_index:ICodec;
private var codec_name:ICodec;
public function CodecRankInfo() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_index = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_name = param1.getCodec(new TypeCodecInfo(String,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:RankInfo = new RankInfo();
local2.index = this.codec_index.decode(param1) as int;
local2.name = this.codec_name.decode(param1) as String;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:RankInfo = RankInfo(param2);
this.codec_index.encode(param1,local3.index);
this.codec_name.encode(param1,local3.name);
}
}
}
|
package controls.checkbox {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/controls.checkbox.CheckBoxBase_checkboxDownClass.png")]
public class CheckBoxBase_checkboxDownClass extends BitmapAsset {
public function CheckBoxBase_checkboxDownClass() {
super();
}
}
}
|
package controls.rangicons
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class RangsIcon_p19 extends BitmapAsset
{
public function RangsIcon_p19()
{
super();
}
}
}
|
package alternativa.tanks.models.battle.battlefield.map {
import alternativa.engine3d.objects.BSP;
import alternativa.engine3d.primitives.Plane;
public class HelperMesh extends BSP {
public function HelperMesh() {
super();
var local1:Plane = new Plane();
createTree(local1);
z = -20000;
name = "static";
}
}
}
|
package alternativa.tanks.gui.effects {
import alternativa.tanks.service.fps.FPSService;
import flash.display.DisplayObject;
import flash.events.Event;
public class BlinkEffect {
[Inject]
public static var fpsService:FPSService;
private var state:int;
private var displayObject:DisplayObject;
private var peakFramesCoeff:Number = 0.15;
private var betweenPeaksFramesCoeff:Number = 0.3;
public function BlinkEffect(param1:Number = 0.15, param2:Number = 0.3) {
super();
this.peakFramesCoeff = param1;
this.betweenPeaksFramesCoeff = param2;
}
public function start(param1:DisplayObject) : void {
this.stop();
this.displayObject = param1;
this.state = 0;
param1.alpha = 1;
param1.addEventListener(Event.ENTER_FRAME,this.onFrame);
}
public function stop() : void {
if(this.displayObject != null) {
this.displayObject.removeEventListener(Event.ENTER_FRAME,this.onFrame);
this.displayObject.alpha = 1;
this.displayObject = null;
}
}
private function onFrame(param1:Event) : void {
var local2:int = 0;
var local3:int = 0;
local2 = Math.ceil(this.peakFramesCoeff * fpsService.getFps());
local3 = Math.ceil(this.betweenPeaksFramesCoeff * fpsService.getFps());
++this.state;
if(this.state < local2) {
this.displayObject.alpha = 1;
} else if(this.state < local2 + local3) {
this.displayObject.alpha = 1 - (this.state - local2) / local3;
} else if(this.state < local2 + local3 + local2) {
this.displayObject.alpha = 0;
} else if(this.state < local2 + local3 + local2 + local3) {
this.displayObject.alpha = (this.state - local2 - local3 - local2) / local3;
} else {
this.displayObject.alpha = 1;
this.state = 0;
}
}
}
}
|
package alternativa.tanks.model.item.resistance.view {
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.gui.GarageWindowEvent;
import alternativa.tanks.gui.ItemInfoPanel;
import alternativa.tanks.gui.buttons.GarageButton;
import alternativa.tanks.gui.buttons.TimerButton;
import alternativa.tanks.gui.buttons.TimerButtonEvent;
import alternativa.tanks.gui.upgrade.SelectUpgradeWindow;
import alternativa.tanks.gui.upgrade.UpgradeButton;
import alternativa.tanks.model.item.upgradable.UpgradableItem;
import alternativa.tanks.service.delaymountcategory.IDelayMountCategoryService;
import alternativa.tanks.service.garage.GarageService;
import alternativa.tanks.service.item.ItemService;
import alternativa.tanks.service.resistance.ResistanceService;
import alternativa.tanks.tracker.ITrackerService;
import controls.timer.CountDownTimer;
import flash.display.DisplayObjectContainer;
import flash.events.IEventDispatcher;
import flash.events.MouseEvent;
import platform.client.fp10.core.type.AutoClosable;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.clients.fp10.libraries.TanksLocale;
import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.layout.ILobbyLayoutService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.logging.garage.UserGarageActionsService;
import projects.tanks.clients.fp10.libraries.tanksservices.service.userproperties.IUserPropertiesService;
public class ResistancePanel implements AutoClosable {
[Inject]
public static var itemService:ItemService;
[Inject]
public static var localeService:ILocaleService;
[Inject]
public static var garageService:GarageService;
[Inject]
public static var trackerService:ITrackerService;
[Inject]
public static var battleInfoService:IBattleInfoService;
[Inject]
public static var lobbyLayoutService:ILobbyLayoutService;
[Inject]
public static var userGarageActionsService:UserGarageActionsService;
[Inject]
public static var delayMountCategoryService:IDelayMountCategoryService;
[Inject]
public static var resistancesService:ResistanceService;
[Inject]
public static var userPropertiesService:IUserPropertiesService;
private const BUTTON_WIDTH:Number = 120;
private const MARGIN:Number = 11;
private const SPACE:Number = 15;
private var selectWindow:SelectUpgradeWindow;
private var buyButton:GarageButton = new GarageButton();
private var upgradeButton:UpgradeButton = new UpgradeButton();
private var equipButton:TimerButton = new TimerButton();
private var item:IGameObject;
private var garageWindowDispatcher:IEventDispatcher;
public function ResistancePanel() {
super();
this.buyButton.width = this.BUTTON_WIDTH;
this.upgradeButton.width = this.BUTTON_WIDTH;
this.equipButton.width = this.BUTTON_WIDTH;
this.buyButton.x = this.MARGIN;
this.upgradeButton.x = this.buyButton.x + this.BUTTON_WIDTH + this.SPACE;
this.equipButton.x = this.upgradeButton.x + this.BUTTON_WIDTH + this.SPACE;
this.buyButton.setText(localeService.getText(TanksLocale.TEXT_GARAGE_INFO_PANEL_BUTTON_BUY_TEXT));
this.buyButton.addEventListener(MouseEvent.CLICK,this.onButtonBuyClick);
this.upgradeButton.addEventListener(MouseEvent.CLICK,this.onButtonUpgradeClick);
this.equipButton.addEventListener(MouseEvent.CLICK,this.onButtonEquipClick);
}
private function updateButtonsVisibility() : void {
this.buyButton.visible = Boolean(itemService.canBuy(this.item)) || Boolean(itemService.hasNextModification(this.item));
this.upgradeButton.visible = !itemService.canBuy(this.item) && Boolean(itemService.isModificationItem(this.item));
this.equipButton.visible = (!resistancesService.getView().isFull() || resistancesService.isMounted(this.item)) && !itemService.canBuy(this.item);
}
public function onDoubleClick() : * {
if(garageService.getView().isItemInDepot(this.item)) {
if(resistancesService.isMounted(this.item)) {
this.onButtonUpgradeClickInternal();
} else {
this.onButtonEquipClickInternal();
}
} else {
this.onButtonBuyClickInternal();
}
}
private function updateBuyButton(param1:IGameObject) : void {
var local3:int = 0;
var local4:int = 0;
var local5:IGameObject = null;
var local6:int = 0;
var local2:* = itemService.canBuy(param1);
if(this.buyButton.visible) {
local3 = ItemInfoPanel.getRequiredRank(itemService.getMinRankIndex(param1),itemService.getMaxRankIndex(param1));
if(!local2) {
local5 = itemService.getMaxAvailableOrNextNotAvailableModification(param1);
local4 = int(itemService.getPrice(local5));
local6 = int(itemService.getMinRankIndex(local5));
local3 = userPropertiesService.rank >= local6 ? local6 : int(-local6);
} else {
local4 = int(itemService.getPrice(param1));
}
this.updateBuyButtonText(param1,local2);
this.buyButton.setInfo(local4,1,local3,itemService.isPremiumItem(param1));
}
}
private function updateBuyButtonText(param1:IGameObject, param2:Boolean) : void {
var local4:IGameObject = null;
var local3:String = localeService.getText(TanksLocale.TEXT_GARAGE_INFO_PANEL_BUTTON_BUY_TEXT);
if(itemService.isModificationItem(param1)) {
if(param2) {
local4 = itemService.getMaxAvailableModification(param1);
if(local4 == null) {
local4 = param1;
}
} else {
local4 = itemService.getMaxAvailableOrNextNotAvailableModification(param1);
}
this.buyButton.setText(local3 + " M" + itemService.getModificationIndex(local4));
} else {
this.buyButton.setText(local3);
}
}
public function updateActionElements(param1:DisplayObjectContainer, param2:IEventDispatcher, param3:IGameObject) : void {
this.item = param3;
if(Boolean(itemService.canBuy(param3)) || !resistancesService.canBeMount(param3)) {
resistancesService.setOnlyUnmountMode();
} else {
this.setActive();
}
this.garageWindowDispatcher = param2;
param1.addChild(this.buyButton);
param1.addChild(this.equipButton);
param1.addChild(this.upgradeButton);
this.updateButtons();
}
private function onButtonBuyClickInternal() : void {
var local1:IGameObject = !!garageService.getView().isItemInDepot(this.item) ? itemService.getMaxAvailableModification(this.item) : this.item;
garageService.getView().dispatchEvent(new GarageWindowEvent(GarageWindowEvent.BUY_ITEM,local1));
}
private function onButtonBuyClick(param1:MouseEvent) : void {
this.onButtonBuyClickInternal();
}
private function onButtonUpgradeClickInternal() : void {
garageService.getView().getItemInfoPanel().upgradeSelectedItem();
}
private function onButtonUpgradeClick(param1:MouseEvent) : void {
this.onButtonUpgradeClickInternal();
}
private function onButtonEquipClickInternal() : void {
if(this.isItemMounted()) {
resistancesService.unmount(this.item);
} else {
resistancesService.mountIntoFreeSlot(this.item);
}
this.updateButtonsLabels();
}
private function onButtonEquipClick(param1:MouseEvent) : void {
this.onButtonEquipClickInternal();
}
private function isItemMounted() : Boolean {
return resistancesService.isMounted(this.item);
}
private function updateButtons() : void {
this.updateButtonsVisibility();
this.updateButtonsLabels();
this.updateEquipButton();
}
private function updateEquipButton() : void {
if(!itemService.hasItem(this.item)) {
this.equipButton.enabled = false;
this.equipButton.hideTime();
return;
}
this.controlTimerEquipButton();
}
private function updateButtonsLabels() : void {
this.updateBuyButton(this.item);
var local1:UpgradableItem = UpgradableItem(this.item.adapt(UpgradableItem));
if(local1.isUpgrading()) {
this.upgradeButton.setUpgradingButton(local1.getCountDownTimer(),local1.hasSpeedUpDiscount());
} else if(itemService.isFullUpgraded(this.item)) {
this.upgradeButton.setUpgradedButton();
} else {
this.upgradeButton.setUpgradeButton(local1.hasUpgradeDiscount());
}
this.equipButton.label = this.isItemMounted() ? localeService.getText(TanksLocale.TEXT_GARAGE_INFO_PANEL_BUTTON_UNEQUIP_TEXT) : localeService.getText(TanksLocale.TEXT_GARAGE_INFO_PANEL_BUTTON_EQUIP_TEXT);
}
private function controlTimerEquipButton() : void {
var local1:CountDownTimer = null;
if(lobbyLayoutService.inBattle()) {
if(battleInfoService.reArmorEnabled) {
local1 = delayMountCategoryService.getDownTimer(this.item);
if(local1.getRemainingSeconds() > 0) {
this.equipButton.startTimer(local1);
this.equipButton.addEventListener(TimerButtonEvent.TIME_ON_COMPLETE_TIMER_BUTTON,this.onCompletedTimer);
resistancesService.getView().disable();
} else {
this.setActive();
}
} else {
this.equipButton.hideTime();
this.equipButton.enabled = false;
resistancesService.getView().disable();
}
} else {
this.setActive();
}
}
private function setActive() : void {
this.equipButton.hideTime();
this.equipButton.enabled = true;
resistancesService.getView().enable();
}
private function onCompletedTimer(param1:TimerButtonEvent) : void {
this.equipButton.enabled = true;
this.equipButton.removeEventListener(TimerButtonEvent.TIME_ON_COMPLETE_TIMER_BUTTON,this.onCompletedTimer);
resistancesService.getView().enable();
}
public function close() : void {
this.buyButton.removeEventListener(MouseEvent.CLICK,this.onButtonBuyClick);
this.upgradeButton.removeEventListener(MouseEvent.CLICK,this.onButtonUpgradeClick);
this.equipButton.removeEventListener(MouseEvent.CLICK,this.onButtonEquipClick);
this.equipButton.removeEventListener(TimerButtonEvent.TIME_ON_COMPLETE_TIMER_BUTTON,this.onCompletedTimer);
this.equipButton.hideTime();
if(this.selectWindow != null) {
this.selectWindow.destroy();
this.selectWindow = null;
}
}
}
}
|
package projects.tanks.clients.fp10.libraries.tanksservices.service.address.types {
public class ServerNameParts {
private var serverNumber:int;
private var valid:Boolean;
public function ServerNameParts(param1:Boolean, param2:int = 0) {
super();
this.valid = param1;
this.serverNumber = param2;
}
public function isValid() : Boolean {
return this.valid;
}
public function getServerNumber() : int {
return this.serverNumber;
}
}
}
|
package alternativa.tanks.models.sfx.shoot.railgun
{
import alternativa.engine3d.core.Object3D;
import alternativa.math.Vector3;
import alternativa.object.ClientObject;
import alternativa.tanks.sfx.IGraphicEffect;
import alternativa.tanks.sfx.ISound3DEffect;
public interface IRailgunSFXModel
{
function getSFXData(param1:ClientObject) : RailgunShootSFXData;
function createGraphicShotEffect(param1:ClientObject, param2:Vector3, param3:Vector3) : IGraphicEffect;
function createChargeEffect(param1:ClientObject, param2:ClientObject, param3:Vector3, param4:Object3D, param5:int) : IGraphicEffect;
function createSoundShotEffect(param1:ClientObject, param2:ClientObject, param3:Vector3) : ISound3DEffect;
}
}
|
package projects.tanks.clients.flash.commons.services.notification {
import alternativa.types.Long;
import org.osflash.signals.Signal;
public interface INotification {
function show(param1:Signal) : void;
function destroy() : void;
function get userId() : Long;
function get message() : String;
}
}
|
package alternativa.tanks.models.weapon.artillery {
[ModelInterface]
public interface IArtilleryModel {
function getDefaultElevation() : Number;
function getWeapon() : ArtilleryWeapon;
}
}
|
package projects.tanks.client.panel.model.donationalert.user.donation {
public interface IDonationProfileModelBase {
}
}
|
package alternativa.tanks.model.item.resistance.view {
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.gui.shop.components.itemscategory.ItemsCategoryViewGrid;
import alternativa.tanks.service.resistance.ResistanceService;
import base.DiscreteSprite;
import controls.TankWindowInner;
import controls.base.LabelBase;
import forms.ColorConstants;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.clients.fp10.libraries.TanksLocale;
public class MountedResistancesPanel extends DiscreteSprite {
[Inject]
public static var resistanceService:ResistanceService;
[Inject]
public static var localeService:ILocaleService;
private static const VERTICAL_MARGIN:int = 9;
private static const SLOTS:int = 3;
private var background:TankWindowInner;
private var panel:ItemsCategoryViewGrid;
private var cells:Vector.<ResistanceButton>;
private var label:LabelBase;
public function MountedResistancesPanel() {
var local2:ResistanceButton = null;
this.background = new TankWindowInner(164,0,TankWindowInner.GREEN);
this.panel = new ItemsCategoryViewGrid();
this.cells = new Vector.<ResistanceButton>();
this.label = new LabelBase();
super();
var local1:int = 0;
while(local1 < SLOTS) {
local2 = new ResistanceButton(local1);
this.cells.push(local2);
this.panel.addItem(local2);
local1++;
}
this.label.text = localeService.getText(TanksLocale.TEXT_GARAGE_CATEGORY_BUTTON_RESISTANCE_MODULES);
this.label.size = 18;
this.label.color = ColorConstants.GREEN_TEXT;
this.label.y += VERTICAL_MARGIN >> 1;
this.background.addChild(this.label);
this.panel.y = this.label.y + this.label.height + 4;
this.panel.horizontalSpacing = 8;
this.background.addChild(this.panel);
this.background.height += VERTICAL_MARGIN >> 1;
addChild(this.background);
resistanceService.registerView(this);
}
public function resize(param1:Number) : void {
this.render();
this.background.width = param1;
if(this.background.height == 0) {
this.background.height = this.height + VERTICAL_MARGIN;
}
this.panel.x = this.background.width - this.panel.width >> 1;
this.label.x = this.background.width - this.label.width >> 1;
}
public function isFull() : Boolean {
var local1:ResistanceButton = null;
for each(local1 in this.cells) {
if(local1.isFree()) {
return false;
}
}
return true;
}
public function getFreeSlot() : int {
var local1:int = 0;
while(local1 < SLOTS) {
if(this.cells[local1].isFree()) {
return local1;
}
local1++;
}
return -1;
}
private function render() : void {
if(parent != null) {
this.panel.render();
}
}
public function getIndex(param1:IGameObject) : int {
var local2:ResistanceButton = null;
if(param1 == null) {
return -1;
}
for each(local2 in this.cells) {
if(local2.item == param1) {
return local2.getIndex();
}
}
return -1;
}
public function setResistInCell(param1:int, param2:IGameObject) : void {
this.cells[param1].item = param2;
this.cells[param1].setDeviceImageFromItem(param2);
}
public function setAllResist(param1:IGameObject) : void {
var local2:ResistanceButton = null;
for each(local2 in this.cells) {
local2.item = param1;
local2.setDeviceImageFromItem(param1);
}
}
public function unequipResist(param1:IGameObject) : void {
var local2:ResistanceButton = null;
for each(local2 in this.cells) {
if(param1 == local2.item) {
local2.reset();
}
}
}
public function onlyUnmountMode() : * {
var local1:ResistanceButton = null;
for each(local1 in this.cells) {
if(local1.isFree()) {
local1.disable();
}
}
}
public function disable() : void {
var local1:ResistanceButton = null;
for each(local1 in this.cells) {
local1.disable();
}
}
public function enable() : void {
var local1:ResistanceButton = null;
for each(local1 in this.cells) {
local1.enable();
}
}
public function destroy() : void {
resistanceService.unregisterView();
}
}
}
|
package alternativa.tanks.model.payment.shop.kit.view {
import alternativa.tanks.gui.shop.shopitems.item.base.ShopButton;
import alternativa.tanks.gui.shop.shopitems.item.kits.KitPackageButton;
import alternativa.tanks.model.payment.shop.ShopItemView;
import projects.tanks.client.panel.model.shop.kitpackage.view.IKitPackageViewModelBase;
import projects.tanks.client.panel.model.shop.kitpackage.view.KitPackageViewModelBase;
[ModelInfo]
public class KitPackageViewModel extends KitPackageViewModelBase implements IKitPackageViewModelBase, ShopItemView {
public function KitPackageViewModel() {
super();
}
public function getButtonView() : ShopButton {
return new KitPackageButton(object);
}
}
}
|
package alternativa.tanks.models.battle.gui.indicators {
import alternativa.osgi.service.display.IDisplay;
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.services.battlegui.BattleGUIService;
import alternativa.utils.removeDisplayObject;
import controls.base.LabelBase;
import controls.statassets.BlackRoundRect;
import flash.display.Bitmap;
import flash.events.Event;
import flash.text.TextFieldAutoSize;
import projects.tanks.clients.fp10.libraries.TanksLocale;
public class SuicideIndicator extends BlackRoundRect {
[Inject]
public static var display:IDisplay;
[Inject]
public static var battleGUIService:BattleGUIService;
[Inject]
public static var localeService:ILocaleService;
private static const reArmorIconClass:Class = SuicideIndicator_reArmorIconClass;
private static const TIME_REPLACE_PATTERN:String = "{time}";
private var _timeLabel:LabelBase;
private var _throughText:String;
private var _seconds:int;
private var _isShow:Boolean;
public function SuicideIndicator() {
super();
this.init();
}
private function init() : void {
var local6:int = 0;
this._throughText = localeService.getText(TanksLocale.TEXT_REARM_SELFDISTRUCTION);
var local1:int = 33;
var local2:int = 33;
var local3:int = 5;
var local4:int = 16;
var local5:Bitmap = new Bitmap(new reArmorIconClass().bitmapData);
addChild(local5);
local5.y = local1 - 5;
local6 = local5.y + local5.height + 2 * local3;
this._timeLabel = new LabelBase();
this._timeLabel.size = local4;
this._timeLabel.autoSize = TextFieldAutoSize.LEFT;
this._timeLabel.text = this._throughText.replace(TIME_REPLACE_PATTERN," 99:99");
this._timeLabel.y = local6;
addChild(this._timeLabel);
if(width < this._timeLabel.textWidth) {
width = this._timeLabel.textWidth;
}
width += 2 * local2;
local5.x = width - local5.width >> 1;
height = local6 + this._timeLabel.height + local1 - 5;
}
public function set seconds(param1:int) : void {
if(this._seconds == param1) {
return;
}
this._seconds = param1;
var local2:int = this._seconds / 60;
this._seconds -= local2 * 60;
var local3:String = this._seconds < 10 ? "0" + this._seconds : this._seconds.toString();
this._timeLabel.text = this._throughText.replace(TIME_REPLACE_PATTERN,local2 + ":" + local3);
this._timeLabel.x = width - this._timeLabel.width >> 1;
}
public function show(param1:int) : void {
if(this._isShow) {
return;
}
this._isShow = true;
this.seconds = param1;
battleGUIService.getViewportContainer().addChild(this);
this.onResize();
display.stage.addEventListener(Event.RESIZE,this.onResize);
}
private function onResize(param1:Event = null) : void {
this.x = display.stage.stageWidth - this.width >> 1;
this.y = display.stage.stageHeight - this.height >> 1;
}
public function hide() : void {
if(!this._isShow) {
return;
}
this._isShow = false;
removeDisplayObject(this);
display.stage.removeEventListener(Event.RESIZE,this.onResize);
}
public function destroy() : void {
this.hide();
this._timeLabel = null;
}
}
}
|
package alternativa.tanks.model.payment.modes.pricerange {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class PriceRangeAdapt implements PriceRange {
private var object:IGameObject;
private var impl:PriceRange;
public function PriceRangeAdapt(param1:IGameObject, param2:PriceRange) {
super();
this.object = param1;
this.impl = param2;
}
public function priceIsValid(param1:Number) : Boolean {
var result:Boolean = false;
var price:Number = param1;
try {
Model.object = this.object;
result = Boolean(this.impl.priceIsValid(price));
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.models.weapon.streamweapon {
import alternativa.tanks.engine3d.TextureAnimation;
import alternativa.tanks.engine3d.UVFrame;
import alternativa.tanks.sfx.SimplePlane;
internal class StreamWeaponMuzzlePlane extends SimplePlane {
private var uvFrames:Vector.<UVFrame>;
private var numFrames:int;
private var currFrame:Number;
public function StreamWeaponMuzzlePlane() {
super(1,1,0.5,0);
shadowMapAlphaThreshold = 2;
depthMapAlphaThreshold = 2;
useShadowMap = false;
useLight = false;
}
public function init(param1:TextureAnimation) : void {
setMaterialToAllFaces(param1.material);
this.uvFrames = param1.frames;
this.numFrames = this.uvFrames.length;
this.currFrame = 0;
this.setFrame(this.uvFrames[0]);
}
public function clear() : void {
setMaterialToAllFaces(null);
this.uvFrames = null;
this.numFrames = 0;
}
public function update(param1:Number, param2:Number) : void {
this.currFrame += param1 * param2;
if(this.currFrame >= this.numFrames) {
this.currFrame = 0;
}
this.setFrame(this.uvFrames[int(this.currFrame)]);
}
private function setFrame(param1:UVFrame) : void {
a.u = param1.topLeftU;
a.v = param1.topLeftV;
b.u = param1.topLeftU;
b.v = param1.bottomRightV;
c.u = param1.bottomRightU;
c.v = param1.bottomRightV;
d.u = param1.bottomRightU;
d.v = param1.topLeftV;
}
}
}
|
package alternativa.tanks.model.payment.modes.errors {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class ErrorDescriptionEvents implements ErrorDescription {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function ErrorDescriptionEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function showError(param1:int) : void {
var i:int = 0;
var m:ErrorDescription = null;
var errorCode:int = param1;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ErrorDescription(this.impl[i]);
m.showError(errorCode);
i++;
}
}
finally {
Model.popObject();
}
}
public function showUnknownError() : void {
var i:int = 0;
var m:ErrorDescription = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ErrorDescription(this.impl[i]);
m.showUnknownError();
i++;
}
}
finally {
Model.popObject();
}
}
}
}
|
package alternativa.osgi.service.logging {
public interface Logger {
function trace(param1:String, param2:Array = null) : void;
function debug(param1:String, param2:Array = null) : void;
function info(param1:String, param2:Array = null) : void;
function warning(param1:String, param2:Array = null) : void;
function error(param1:String, param2:Array = null) : void;
}
}
|
package alternativa.tanks.model.payment.shop {
import alternativa.tanks.gui.shop.shopitems.item.base.ShopButton;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class ShopItemViewEvents implements ShopItemView {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function ShopItemViewEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function getButtonView() : ShopButton {
var result:ShopButton = null;
var i:int = 0;
var m:ShopItemView = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ShopItemView(this.impl[i]);
result = m.getButtonView();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.models.tank.explosion {
import alternativa.tanks.battle.objects.tank.Tank;
import alternativa.tanks.sfx.LightAnimation;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class ITankExplosionModelEvents implements ITankExplosionModel {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function ITankExplosionModelEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function createExplosionEffects(param1:IGameObject, param2:Tank, param3:LightAnimation) : void {
var i:int = 0;
var m:ITankExplosionModel = null;
var clientObject:IGameObject = param1;
var tank:Tank = param2;
var lighting:LightAnimation = param3;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ITankExplosionModel(this.impl[i]);
m.createExplosionEffects(clientObject,tank,lighting);
i++;
}
}
finally {
Model.popObject();
}
}
}
}
|
package {
import flash.display.Sprite;
import flash.system.Security;
[ExcludeClass]
public class _df26a2971a016a391bfab152f06e612b0aa7ac48059ae92627767f18f9076c02_flash_display_Sprite extends Sprite {
public function _df26a2971a016a391bfab152f06e612b0aa7ac48059ae92627767f18f9076c02_flash_display_Sprite() {
super();
}
public function allowDomainInRSL(... rest) : void {
Security.allowDomain.apply(null,rest);
}
public function allowInsecureDomainInRSL(... rest) : void {
Security.allowInsecureDomain.apply(null,rest);
}
}
}
|
package alternativa.tanks.gui.confirm {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.gui.confirm.DeviceConfirmAlert_devicePlateBitmapClass.png")]
public class DeviceConfirmAlert_devicePlateBitmapClass extends BitmapAsset {
public function DeviceConfirmAlert_devicePlateBitmapClass() {
super();
}
}
}
|
package alternativa.tanks.model.payment.shop.specialkit.view {
import platform.client.fp10.core.type.IGameObject;
public class PayPalKitViewAdapt implements PayPalKitView {
private var object:IGameObject;
private var impl:PayPalKitView;
public function PayPalKitViewAdapt(param1:IGameObject, param2:PayPalKitView) {
super();
this.object = param1;
this.impl = param2;
}
}
}
|
package _codec.projects.tanks.client.panel.model.shop.shopcategory {
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 projects.tanks.client.commons.types.ShopCategoryEnum;
import projects.tanks.client.panel.model.shop.shopcategory.ShopCategoryCC;
public class CodecShopCategoryCC implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_orderIndex:ICodec;
private var codec_type:ICodec;
private var codec_withJumpButton:ICodec;
public function CodecShopCategoryCC() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_orderIndex = param1.getCodec(new TypeCodecInfo(int,false));
this.codec_type = param1.getCodec(new EnumCodecInfo(ShopCategoryEnum,false));
this.codec_withJumpButton = param1.getCodec(new TypeCodecInfo(Boolean,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:ShopCategoryCC = new ShopCategoryCC();
local2.orderIndex = this.codec_orderIndex.decode(param1) as int;
local2.type = this.codec_type.decode(param1) as ShopCategoryEnum;
local2.withJumpButton = this.codec_withJumpButton.decode(param1) as Boolean;
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:ShopCategoryCC = ShopCategoryCC(param2);
this.codec_orderIndex.encode(param1,local3.orderIndex);
this.codec_type.encode(param1,local3.type);
this.codec_withJumpButton.encode(param1,local3.withJumpButton);
}
}
}
|
package controls.rangicons
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class RangsIcon_p13 extends BitmapAsset
{
public function RangsIcon_p13()
{
super();
}
}
}
|
package alternativa.tanks.models.battle.battlefield.keyboard {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.models.battle.battlefield.keyboard.DeviceIcons_selfcoolingIconClass.png")]
public class DeviceIcons_selfcoolingIconClass extends BitmapAsset {
public function DeviceIcons_selfcoolingIconClass() {
super();
}
}
}
|
package alternativa.tanks.models.controlpoints {
import alternativa.math.Vector3;
import alternativa.tanks.battle.BattleService;
import alternativa.tanks.battle.BattleUtils;
import alternativa.tanks.battle.TeamDMTargetEvaluator;
import alternativa.tanks.battle.events.BattleEventDispatcher;
import alternativa.tanks.battle.events.BattleEventSupport;
import alternativa.tanks.battle.events.BattleRestartEvent;
import alternativa.tanks.battle.events.LocalTankActivationEvent;
import alternativa.tanks.battle.events.StateCorrectionEvent;
import alternativa.tanks.battle.events.TankAddedToBattleEvent;
import alternativa.tanks.battle.events.TankLoadedEvent;
import alternativa.tanks.battle.events.TankRemovedFromBattleEvent;
import alternativa.tanks.battle.events.TankUnloadedEvent;
import alternativa.tanks.battle.events.death.TankDeadEvent;
import alternativa.tanks.battle.objects.tank.Tank;
import alternativa.tanks.engine3d.EffectsMaterialRegistry;
import alternativa.tanks.models.battle.battlefield.BattleModel;
import alternativa.tanks.models.battle.battlefield.BattleType;
import alternativa.tanks.models.battle.gui.BattlefieldGUI;
import alternativa.tanks.models.battle.gui.gui.statistics.messages.UserAction;
import alternativa.tanks.models.battle.tdm.TDMCommonTargetEvaluator;
import alternativa.tanks.models.battle.tdm.TDMHealingGunTargetEvaluator;
import alternativa.tanks.models.battle.tdm.TDMRailgunTargetEvaluator;
import alternativa.tanks.models.controlpoints.hud.KeyPoint;
import alternativa.tanks.models.controlpoints.hud.KeyPointView;
import alternativa.tanks.models.controlpoints.hud.marker.KeyPointHUDMarker;
import alternativa.tanks.models.controlpoints.hud.marker.KeyPointHUDMarkers;
import alternativa.tanks.models.controlpoints.hud.panel.KeyPointsHUDPanel;
import alternativa.tanks.models.controlpoints.message.ControlPointMessage;
import alternativa.tanks.models.controlpoints.message.ControlPointMessages;
import alternativa.tanks.models.controlpoints.sfx.AllBeamProperties;
import alternativa.tanks.models.controlpoints.sfx.BeamEffects;
import alternativa.tanks.models.controlpoints.sfx.DominationBeamEffect;
import alternativa.tanks.models.controlpoints.sound.KeyPointSoundEffects;
import alternativa.tanks.models.controlpoints.sound.Sounds;
import alternativa.tanks.models.inventory.IInventoryModel;
import alternativa.tanks.models.inventory.InventoryItemType;
import alternativa.tanks.models.inventory.InventoryLock;
import alternativa.tanks.models.weapon.ricochet.TeamDMRicochetTargetEvaluator;
import alternativa.tanks.services.battlegui.BattleGUIService;
import alternativa.types.Long;
import flash.utils.Dictionary;
import platform.client.fp10.core.model.ObjectLoadListener;
import platform.client.fp10.core.model.ObjectLoadPostListener;
import platform.client.fp10.core.model.ObjectUnloadListener;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.battlefield.models.battle.cp.ClientPointData;
import projects.tanks.client.battlefield.models.battle.cp.ControlPointState;
import projects.tanks.client.battlefield.models.battle.cp.ControlPointsModelBase;
import projects.tanks.client.battlefield.models.battle.cp.IControlPointsModelBase;
import projects.tanks.client.battlefield.models.battle.cp.resources.DominationSounds;
import projects.tanks.client.battleservice.model.battle.team.BattleTeam;
import projects.tanks.clients.fp10.libraries.TanksLocale;
import projects.tanks.clients.fp10.libraries.tanksservices.service.battle.IBattleInfoService;
[ModelInfo]
public class ControlPointsModel extends ControlPointsModelBase implements IControlPointsModelBase, ObjectLoadListener, ObjectLoadPostListener, ObjectUnloadListener, BattleModel, IDominationModel {
[Inject]
public static var battleService:BattleService;
[Inject]
public static var effectsMaterialRegistry:EffectsMaterialRegistry;
[Inject]
public static var battleEventDispatcher:BattleEventDispatcher;
[Inject]
public static var battleGuiService:BattleGUIService;
[Inject]
public static var battleInfoService:IBattleInfoService;
private var targetEvaluators:Vector.<TeamDMTargetEvaluator>;
private var guiModel:BattlefieldGUI;
private var inventoryModel:IInventoryModel;
private var keyPoints:Dictionary = new Dictionary();
private var triggers:Vector.<KeyPointTrigger>;
private var battleEventSupport:BattleEventSupport;
private var keyPointHUDMarkers:KeyPointHUDMarkers;
private var dominationPointsHUDPanel:KeyPointsHUDPanel;
private var localTank:Tank;
private var tanksInBattle:Dictionary;
private var gameObject:IGameObject;
public function ControlPointsModel() {
super();
this.battleEventSupport = new BattleEventSupport(battleEventDispatcher);
this.battleEventSupport.addEventHandler(BattleRestartEvent,this.onBattleRestart);
this.battleEventSupport.addEventHandler(LocalTankActivationEvent,this.onLocalTankActivation);
this.battleEventSupport.addEventHandler(TankLoadedEvent,this.onTankLoaded);
this.battleEventSupport.addEventHandler(TankUnloadedEvent,this.onTankUnloaded);
this.battleEventSupport.addEventHandler(TankDeadEvent,this.onTankDeadEvent);
this.battleEventSupport.addEventHandler(TankAddedToBattleEvent,this.onTankAddedToBattle);
this.battleEventSupport.addEventHandler(TankRemovedFromBattleEvent,this.onTankRemovedFromBattle);
}
private static function getGameObject(param1:IGameObject, param2:Long) : IGameObject {
return param1.space.getObject(param2);
}
private static function getBattleTeam(param1:ControlPointState) : BattleTeam {
if(param1 == ControlPointState.RED) {
return BattleTeam.RED;
}
if(param1 == ControlPointState.BLUE) {
return BattleTeam.BLUE;
}
throw new Error();
}
private function onTankAddedToBattle(param1:TankAddedToBattleEvent) : void {
this.tanksInBattle[param1.tank.getUser()] = param1.tank;
var local2:int = this.getPointOccupationBuffer().takeTankPointId(param1.tank.getUser().id);
if(local2 >= 0) {
this.createBeamEffect(local2,param1.tank,AllBeamProperties(this.getMyData(AllBeamProperties)));
}
}
private function getMyData(param1:Class) : Object {
Model.object = this.gameObject;
var local2:Object = getData(param1);
Model.popObject();
return local2;
}
private function onTankRemovedFromBattle(param1:TankRemovedFromBattleEvent) : void {
var local2:IGameObject = param1.tank.getUser();
this.getBeamEffects().removeEffect(local2);
delete this.tanksInBattle[local2];
}
private function onTankLoaded(param1:TankLoadedEvent) : void {
if(param1.isLocal) {
this.localTank = param1.tank;
this.keyPointHUDMarkers.show();
this.dominationPointsHUDPanel.visible = true;
}
}
private function onTankUnloaded(param1:TankUnloadedEvent) : void {
if(param1.tank == this.localTank) {
this.localTank = null;
}
}
private function onTankDeadEvent(param1:TankDeadEvent) : void {
this.getBeamEffects().removeEffect(param1.victim);
}
private function getBeamEffects() : BeamEffects {
return BeamEffects(this.getMyData(BeamEffects));
}
private function onLocalTankActivation(param1:Object) : void {
var local3:TeamDMTargetEvaluator = null;
var local2:BattleTeam = LocalTankActivationEvent(param1).tank.teamType;
for each(local3 in this.targetEvaluators) {
local3.setLocalTeamType(local2);
}
}
[Obfuscation(rename="false")]
public function objectLoaded() : void {
this.gameObject = Model.object;
this.guiModel = BattlefieldGUI(object.adapt(BattlefieldGUI));
this.inventoryModel = IInventoryModel(object.adapt(IInventoryModel));
this.triggers = new Vector.<KeyPointTrigger>();
this.tanksInBattle = new Dictionary();
this.battleEventSupport.activateHandlers();
putData(PointOccupationBuffer,new PointOccupationBuffer());
}
[Obfuscation(rename="false")]
public function objectLoadedPost() : void {
this.initTargetEvaluators();
this.initKeyPoints();
putData(AllBeamProperties,new AllBeamProperties(effectsMaterialRegistry,getInitParam().resources));
putData(BeamEffects,new BeamEffects());
putData(Sounds,new Sounds(battleService.soundManager,getInitParam().sounds));
}
private function initTargetEvaluators() : void {
this.targetEvaluators = new Vector.<TeamDMTargetEvaluator>();
var local1:TDMCommonTargetEvaluator = new TDMCommonTargetEvaluator();
battleService.setCommonTargetEvaluator(local1);
this.targetEvaluators.push(local1);
var local2:TDMHealingGunTargetEvaluator = new TDMHealingGunTargetEvaluator();
battleService.setHealingGunTargetEvaluator(local2);
this.targetEvaluators.push(local2);
var local3:TDMRailgunTargetEvaluator = new TDMRailgunTargetEvaluator();
battleService.setRailgunTargetEvaluator(local3);
this.targetEvaluators.push(local3);
var local4:TeamDMRicochetTargetEvaluator = new TeamDMRicochetTargetEvaluator();
battleService.setRicochetTargetEvaluator(local4);
this.targetEvaluators.push(local4);
}
private function initKeyPoints() : void {
var local2:ClientPointData = null;
var local3:KeyPoint = null;
var local4:KeyPointTrigger = null;
var local5:PointOccupationBuffer = null;
var local6:Long = null;
this.keyPointHUDMarkers = new KeyPointHUDMarkers(battleService.getBattleScene3D().getCamera());
battleService.getBattleScene3D().addRenderer(this.keyPointHUDMarkers,0);
var local1:Vector.<KeyPoint> = new Vector.<KeyPoint>();
for each(local2 in getInitParam().points) {
local3 = this.createKeyPoint(local2);
this.keyPoints[local2.id] = local3;
battleService.getBattleRunner().addLogicUnit(local3);
local1.push(local3);
local4 = new KeyPointTrigger(local3.getPosition(),BattleUtils.toClientScale(getInitParam().keypointTriggerRadius),BattleUtils.toClientScale(getInitParam().minesRestrictionRadius),local2.id,this,battleService.getBattleRunner().getCollisionDetector(),getInitParam().keypointVisorHeight);
this.triggers.push(local4);
battleService.getBattleRunner().addTrigger(local4);
this.keyPointHUDMarkers.addMarker(new KeyPointHUDMarker(local3));
local5 = this.getPointOccupationBuffer();
for each(local6 in local2.tankIds) {
local5.add(local6,local2.id);
}
}
this.dominationPointsHUDPanel = new KeyPointsHUDPanel(local1);
this.dominationPointsHUDPanel.visible = false;
battleGuiService.getGuiContainer().addChild(this.dominationPointsHUDPanel);
battleService.getBattleScene3D().addRenderer(this.dominationPointsHUDPanel,0);
this.guiModel.addWidget(this.dominationPointsHUDPanel);
if(battleInfoService.isSpectatorMode()) {
this.keyPointHUDMarkers.show();
this.dominationPointsHUDPanel.visible = true;
}
}
private function createKeyPoint(param1:ClientPointData) : KeyPoint {
var local2:KeyPointView = new KeyPointView(param1.name,battleService.getBattleScene3D(),getInitParam().resources);
var local3:Vector3 = BattleUtils.getVector3(param1.position);
var local4:DominationSounds = getInitParam().sounds;
var local5:KeyPointSoundEffects = new KeyPointSoundEffects(battleService,local4.pointScoreIncreasingSound.sound,local4.pointScoreDecreasingSound.sound);
var local6:KeyPoint = new KeyPoint(param1.id,param1.name,local3,battleService,this,local5,local2);
local6.tanksCount = param1.tankIds.length;
local6.setCaptureState(param1.state);
local6.setServerProgressData(param1.score,param1.scoreChangeRate);
return local6;
}
private function getPointOccupationBuffer() : PointOccupationBuffer {
return PointOccupationBuffer(this.getMyData(PointOccupationBuffer));
}
[Obfuscation(rename="false")]
public function objectUnloaded() : void {
this.targetEvaluators = null;
battleService.setCommonTargetEvaluator(null);
battleService.setHealingGunTargetEvaluator(null);
battleService.setRailgunTargetEvaluator(null);
battleService.setRicochetTargetEvaluator(null);
this.battleEventSupport.deactivateHandlers();
this.dominationPointsHUDPanel.removeFromParent();
this.dominationPointsHUDPanel = null;
this.tanksInBattle = null;
}
[Obfuscation(rename="false")]
public function tankEnteredPointZone(param1:int, param2:Long) : void {
var local3:KeyPoint = this.keyPoints[param1];
++local3.tanksCount;
var local4:Tank = this.tanksInBattle[getGameObject(object,param2)];
if(local4 != null) {
this.createBeamEffect(param1,local4,AllBeamProperties(getData(AllBeamProperties)));
} else {
this.getPointOccupationBuffer().add(param2,param1);
}
}
private function createBeamEffect(param1:int, param2:Tank, param3:AllBeamProperties) : void {
var local4:DominationBeamEffect = DominationBeamEffect(battleService.getObjectPool().getObject(DominationBeamEffect));
var local5:KeyPoint = this.keyPoints[param1];
var local6:Vector3 = new Vector3();
local5.readPosition(local6);
local4.init(param2.getSkin().getTurret3D(),local6,param3.getBeamProperties(param2.teamType),battleService.getExcludedObjects3D());
this.getBeamEffects().addEffect(param2.getUser(),local4);
}
[Obfuscation(rename="false")]
public function tankLeftPointZone(param1:int, param2:Long) : void {
var local3:KeyPoint = this.keyPoints[param1];
--local3.tanksCount;
var local4:Tank = this.tanksInBattle[getGameObject(object,param2)];
if(local4 != null) {
this.getBeamEffects().removeEffect(local4.getUser());
} else {
this.getPointOccupationBuffer().remove(param2);
}
}
public function getBattleType() : BattleType {
return BattleType.DOMINATION;
}
[Obfuscation(rename="false")]
public function setPointProgress(param1:int, param2:Number, param3:Number) : void {
var local4:KeyPoint = this.keyPoints[param1];
local4.setServerProgressData(param2,param3);
}
[Obfuscation(rename="false")]
public function setPointState(param1:int, param2:ControlPointState) : void {
var local3:KeyPoint = this.keyPoints[param1];
var local4:ControlPointState = local3.getCaptureState();
local3.setCaptureState(param2);
if(param2 == ControlPointState.NEUTRAL) {
this.onPointNeutralized(local3,local4);
} else {
this.onPointCaptured(local3);
}
}
private function onPointNeutralized(param1:KeyPoint, param2:ControlPointState) : void {
var local3:BattleTeam = getBattleTeam(param2);
var local4:ControlPointMessage = this.getNeutralizationMessage(local3);
var local5:String = local4.getMessage(param1.getName());
this.guiModel.showBattleMessage(local4.color,local5);
var local6:UserAction = local3 == BattleTeam.BLUE ? UserAction.CP_POINT_BLUE_NEUTRAL : UserAction.CP_POINT_RED_NEUTRAL;
var local7:ControlPointMessage = new ControlPointMessage(0,TanksLocale.TEXT_DOM_POINT);
this.guiModel.showPointBattleLogMessage(local7.getMessage(param1.getName()),local6);
this.getSounds().playNeutralizedSound(local3);
}
private function getNeutralizationMessage(param1:BattleTeam) : ControlPointMessage {
if(this.localTank == null) {
return ControlPointMessages.getLostMessage(param1);
}
if(param1 == this.localTank.teamType) {
return ControlPointMessages.weLostPoint;
}
return ControlPointMessages.enemyLostPoint;
}
private function onPointCaptured(param1:KeyPoint) : void {
var local2:BattleTeam = getBattleTeam(param1.getCaptureState());
var local3:ControlPointMessage = this.getCaptureMessage(local2);
var local4:String = local3.getMessage(param1.getName());
this.guiModel.showBattleMessage(local3.color,local4);
var local5:UserAction = local2 == BattleTeam.BLUE ? UserAction.CP_POINT_NEUTRAL_BLUE : UserAction.CP_POINT_NEUTRAL_RED;
var local6:ControlPointMessage = new ControlPointMessage(0,TanksLocale.TEXT_DOM_POINT);
this.guiModel.showPointBattleLogMessage(local6.getMessage(param1.getName()),local5);
this.getSounds().playCapturingSound(local2);
}
private function getCaptureMessage(param1:BattleTeam) : ControlPointMessage {
if(this.localTank == null) {
return ControlPointMessages.getCaptureMessage(param1);
}
if(param1 == this.localTank.teamType) {
return ControlPointMessages.weCapturedPoint;
}
return ControlPointMessages.enemyCapturedPoint;
}
private function resetPoints() : void {
var local1:KeyPoint = null;
for each(local1 in this.keyPoints) {
local1.reset();
}
}
[Obfuscation(rename="false")]
public function pointCaptureStarted(param1:BattleTeam) : void {
this.getSounds().playCaptureStartSound(param1);
}
[Obfuscation(rename="false")]
public function pointCaptureStopped(param1:BattleTeam) : void {
this.getSounds().playCaptureStopSound(param1);
}
private function getSounds() : Sounds {
return Sounds(getData(Sounds));
}
public function onEnterPointCapturingZone(param1:int) : void {
this.battleEventSupport.dispatchEvent(StateCorrectionEvent.MANDATORY_UPDATE);
}
public function onLeavePointCapturingZone(param1:int) : void {
this.battleEventSupport.dispatchEvent(StateCorrectionEvent.MANDATORY_UPDATE);
}
public function onEnterMineRestrictionZone(param1:int) : void {
this.inventoryModel.lockItem(InventoryItemType.MINE,InventoryLock.FORCED,true);
}
public function onLeaveMineRestrictionZone(param1:int) : void {
this.inventoryModel.lockItem(InventoryItemType.MINE,InventoryLock.FORCED,false);
}
private function onBattleRestart(param1:Object) : void {
this.reset();
}
private function reset() : void {
this.resetPoints();
this.resetTriggers();
}
private function resetTriggers() : void {
var local1:KeyPointTrigger = null;
for each(local1 in this.triggers) {
local1.reset();
}
}
public function forceUpdatePoint(param1:int) : void {
var pointId:int = param1;
Model.object = this.gameObject;
try {
server.forceUpdatePoint(pointId);
}
finally {
Model.popObject();
}
}
[Obfuscation(rename="false")]
public function stopBattle() : void {
this.reset();
}
}
}
|
package com.lorentz.SVG.drawing{
import com.lorentz.SVG.data.path.SVGArcToCommand;
import com.lorentz.SVG.data.path.SVGCurveToCubicCommand;
import com.lorentz.SVG.data.path.SVGCurveToCubicSmoothCommand;
import com.lorentz.SVG.data.path.SVGCurveToQuadraticCommand;
import com.lorentz.SVG.data.path.SVGCurveToQuadraticSmoothCommand;
import com.lorentz.SVG.data.path.SVGLineToCommand;
import com.lorentz.SVG.data.path.SVGLineToHorizontalCommand;
import com.lorentz.SVG.data.path.SVGLineToVerticalCommand;
import com.lorentz.SVG.data.path.SVGMoveToCommand;
import com.lorentz.SVG.data.path.SVGPathCommand;
import flash.geom.Point;
public class SVGPathRenderer {
private var firstPoint:Point;
private var lastControlPoint:Point;
private var commands:Vector.<SVGPathCommand>;
private var _drawer:IDrawer;
public function SVGPathRenderer(commands:Vector.<SVGPathCommand>) {
this.commands = commands;
}
public function render(drawer:IDrawer):void {
_drawer = drawer;
if(_drawer.penX != 0 || _drawer.penY != 0)
_drawer.moveTo(0, 0);
for each(var pathCommand:SVGPathCommand in commands){
switch(pathCommand.type){
case "M" :
case "m" :
moveTo(pathCommand as SVGMoveToCommand);
break;
case "L" :
case "l" :
lineTo(pathCommand as SVGLineToCommand);
break;
case "H" :
case "h" :
lineToHorizontal(pathCommand as SVGLineToHorizontalCommand);
break;
case "V" :
case "v" :
lineToVertical(pathCommand as SVGLineToVerticalCommand);
break;
case "Q" :
case "q" :
curveToQuadratic(pathCommand as SVGCurveToQuadraticCommand);
break;
case "T" :
case "t" :
curveToQuadraticSmooth(pathCommand as SVGCurveToQuadraticSmoothCommand);
break;
case "C" :
case "c" :
curveToCubic(pathCommand as SVGCurveToCubicCommand);
break;
case "S" :
case "s" :
curveToCubicSmooth(pathCommand as SVGCurveToCubicSmoothCommand);
break;
case "A" :
case "a" :
arcTo(pathCommand as SVGArcToCommand);
break;
case "Z" :
case "z" :
closePath();
break;
}
}
}
private function closePath():void {
_drawer.lineTo(firstPoint.x, firstPoint.y);
}
private function moveTo(command:SVGMoveToCommand):void {
var x:Number = command.x;
var y:Number = command.y;
if(!command.absolute){
x += _drawer.penX;
y += _drawer.penY;
}
_drawer.moveTo(x, y);
firstPoint = new Point(x, y);
}
private function lineTo(command:SVGLineToCommand):void {
var x:Number = command.x;
var y:Number = command.y;
if(!command.absolute){
x += _drawer.penX;
y += _drawer.penY;
}
_drawer.lineTo(x, y);
}
private function lineToHorizontal(command:SVGLineToHorizontalCommand):void {
var x:Number = command.x;
if(!command.absolute){
x += _drawer.penX;
}
_drawer.lineTo(x, _drawer.penY);
}
private function lineToVertical(command:SVGLineToVerticalCommand):void {
var y:Number = command.y;
if(!command.absolute){
y += _drawer.penY;
}
_drawer.lineTo(_drawer.penX, y);
}
private function curveToQuadratic(command:SVGCurveToQuadraticCommand):void {
var x1:Number = command.x1;
var y1:Number = command.y1;
var x:Number = command.x;
var y:Number = command.y;
if(!command.absolute){
x1 += _drawer.penX;
y1 += _drawer.penY;
x += _drawer.penX;
y += _drawer.penY;
}
_drawer.curveTo(x1, y1, x, y);
lastControlPoint = new Point(x1, y1);
}
private function curveToQuadraticSmooth(command:SVGCurveToQuadraticSmoothCommand):void {
if(!lastControlPoint){
lastControlPoint = new Point(_drawer.penX, _drawer.penY);
}
var x1:Number = _drawer.penX + (_drawer.penX - lastControlPoint.x);
var y1:Number = _drawer.penY + (_drawer.penY - lastControlPoint.y);
var x:Number = command.x;
var y:Number = command.y;
if(!command.absolute){
x += _drawer.penX;
y += _drawer.penY;
}
_drawer.curveTo(x1, y1, x, y);
lastControlPoint = new Point(x1, y1);
}
private function curveToCubic(command:SVGCurveToCubicCommand):void{
var x1:Number = command.x1;
var y1:Number = command.y1;
var x2:Number = command.x2;
var y2:Number = command.y2;
var x:Number = command.x;
var y:Number = command.y;
if(!command.absolute){
x1 += _drawer.penX;
y1 += _drawer.penY;
x2 += _drawer.penX;
y2 += _drawer.penY;
x += _drawer.penX;
y += _drawer.penY;
}
_drawer.cubicCurveTo(x1, y1, x2, y2, x, y);
lastControlPoint = new Point(x2, y2);
}
private function curveToCubicSmooth(command:SVGCurveToCubicSmoothCommand):void {
if(!lastControlPoint){
lastControlPoint = new Point(_drawer.penX, _drawer.penY);
}
var x1:Number = _drawer.penX + (_drawer.penX - lastControlPoint.x);
var y1:Number = _drawer.penY + (_drawer.penY - lastControlPoint.y);
var x2:Number = command.x2;
var y2:Number = command.y2;
var x:Number = command.x;
var y:Number = command.y;
if(!command.absolute){
x2 += _drawer.penX;
y2 += _drawer.penY;
x += _drawer.penX;
y += _drawer.penY;
}
_drawer.cubicCurveTo(x1, y1, x2, y2, x, y);
lastControlPoint = new Point(x2, y2);
}
private function arcTo(command:SVGArcToCommand):void {
var x:Number = command.x;
var y:Number = command.y;
if(!command.absolute){
x += _drawer.penX;
y += _drawer.penY;
}
_drawer.arcTo(command.rx, command.ry, command.xAxisRotation, command.largeArc, command.sweep, x, y);
}
}
} |
package alternativa.tanks.controller.events {
import flash.events.Event;
public class CaptchaAnswerIsIncorrectEvent extends Event {
public static const EVENT_TYPE:String = "CaptchaAnswerIsIncorrectEvent";
public function CaptchaAnswerIsIncorrectEvent() {
super(EVENT_TYPE);
}
}
}
|
package _codec.projects.tanks.client.chat.types {
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import projects.tanks.client.chat.types.MessageType;
public class CodecMessageType implements ICodec {
public function CodecMessageType() {
super();
}
public function init(param1:IProtocol) : void {
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:MessageType = null;
var local3:int = int(param1.reader.readInt());
switch(local3) {
case 0:
local2 = MessageType.USER;
break;
case 1:
local2 = MessageType.SYSTEM;
break;
case 2:
local2 = MessageType.WARNING;
}
return local2;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:int = int(param2.value);
param1.writer.writeInt(local3);
}
}
}
|
package assets.button {
import flash.display.BitmapData;
[Embed(source="/_assets/assets.button.button_red_DOWN_LEFT.png")]
public dynamic class button_red_DOWN_LEFT extends BitmapData {
public function button_red_DOWN_LEFT(param1:int = 7, param2:int = 30) {
super(param1,param2);
}
}
}
|
package alternativa.tanks.models.battle.gui.inventory {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.models.battle.gui.inventory.HudInventoryIcon_borderClass.png")]
public class HudInventoryIcon_borderClass extends BitmapAsset {
public function HudInventoryIcon_borderClass() {
super();
}
}
}
|
package projects.tanks.client.commons.models.externalauth {
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 ExternalAuthApiModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var _authorizeId:Long = Long.getLong(1041197514,-1066877499);
private var _authorize_snIdCodec:ICodec;
private var _authorize_loginParametersCodec:ICodec;
private var model:IModel;
public function ExternalAuthApiModelServer(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._authorize_snIdCodec = this.protocol.getCodec(new TypeCodecInfo(String,false));
this._authorize_loginParametersCodec = this.protocol.getCodec(new TypeCodecInfo(ExternalAuthParameters,false));
}
public function authorize(param1:String, param2:ExternalAuthParameters) : void {
ByteArray(this.protocolBuffer.writer).position = 0;
ByteArray(this.protocolBuffer.writer).length = 0;
this._authorize_snIdCodec.encode(this.protocolBuffer,param1);
this._authorize_loginParametersCodec.encode(this.protocolBuffer,param2);
ByteArray(this.protocolBuffer.writer).position = 0;
if(Model.object == null) {
throw new Error("Execute method without model context.");
}
var local3:SpaceCommand = new SpaceCommand(Model.object.id,this._authorizeId,this.protocolBuffer);
var local4:IGameObject = Model.object;
var local5:ISpace = local4.space;
local5.commandSender.sendCommand(local3);
this.protocolBuffer.optionalMap.clear();
}
}
}
|
package forms
{
import alternativa.init.Main;
import alternativa.osgi.service.locale.ILocaleService;
import alternativa.tanks.locale.constants.TextConst;
import controls.DefaultButton;
import controls.TankWindow;
import fl.controls.UIScrollBar;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.AntiAliasType;
import flash.text.TextField;
import flash.text.TextFormat;
public class ViewText extends Sprite
{
private var output:TextField;
private var format:TextFormat;
private var scrollBar:UIScrollBar;
public var closeButton:DefaultButton;
public function ViewText()
{
this.output = new TextField();
this.format = new TextFormat("MyriadPro",13);
this.scrollBar = new UIScrollBar();
this.closeButton = new DefaultButton();
super();
addEventListener(Event.ADDED_TO_STAGE,this.doLayout);
}
private function doLayout(e:Event) : void
{
var localeService:ILocaleService = null;
localeService = Main.osgi.getService(ILocaleService) as ILocaleService;
var bg:TankWindow = new TankWindow(400,500);
bg.x = -200;
addChild(bg);
removeEventListener(Event.ADDED_TO_STAGE,this.doLayout);
this.format.color = 16777215;
addChild(this.output);
this.output.background = false;
this.output.multiline = true;
this.output.wordWrap = true;
this.output.x = -165;
this.output.y = 35;
this.output.width = 315;
this.output.height = 375;
this.output.embedFonts = true;
this.output.antiAliasType = AntiAliasType.ADVANCED;
this.output.sharpness = -200;
this.output.defaultTextFormat = this.format;
addChild(this.scrollBar);
this.scrollBar.move(this.output.x + this.output.width,this.output.y);
this.scrollBar.setSize(this.scrollBar.width,this.output.height);
this.scrollBar.scrollTarget = this.output;
addChild(this.closeButton);
this.closeButton.x = -52;
this.closeButton.y = 435;
this.closeButton.label = localeService.getText(TextConst.ALERT_ANSWER_OK);
this.closeButton.addEventListener(MouseEvent.CLICK,this.hide);
stage.addEventListener(Event.RESIZE,this.onResize);
this.onResize(null);
}
private function onResize(e:Event) : void
{
this.x = int(stage.stageWidth / 2);
this.y = int(stage.stageHeight / 2 - this.height / 2);
}
private function hide(e:MouseEvent) : void
{
this.closeButton.removeEventListener(MouseEvent.CLICK,this.hide);
stage.removeEventListener(Event.RESIZE,this.onResize);
this.visible = false;
parent.removeChild(this);
}
public function set text(itext:String) : void
{
this.output.text = itext;
this.scrollBar.update();
if(this.scrollBar.maxScrollPosition == 0)
{
this.scrollBar.visible = false;
}
}
}
}
|
package controls.resultassets
{
import assets.resultwindow.bres_NORMAL_GREEN_PIXEL;
import assets.resultwindow.bres_NORMAL_GREEN_TL;
import controls.statassets.StatLineBase;
public class ResultWindowGreenNormal extends StatLineBase
{
public function ResultWindowGreenNormal()
{
super();
tl = new bres_NORMAL_GREEN_TL(1,1);
px = new bres_NORMAL_GREEN_PIXEL(1,1);
}
}
}
|
package controls.scroller.gray
{
public class ScrollSkinGray
{
[Embed(source="1193.png")]
public static const thumbTop:Class;
[Embed(source="787.png")]
public static const thumbMiddle:Class;
[Embed(source="869.png")]
public static const track:Class;
[Embed(source="1127.png")]
public static const trackTop:Class;
[Embed(source="946.png")]
public static const trackBottom:Class;
public function ScrollSkinGray()
{
super();
}
}
}
|
package projects.tanks.clients.fp10.libraries.tanksservices.service.blockuser {
import flash.net.SharedObject;
import projects.tanks.clients.fp10.libraries.tanksservices.service.storage.IStorageService;
import projects.tanks.clients.fp10.libraries.tanksservices.utils.UidUtil;
public class BlockUserService implements IBlockUserService {
[Inject]
public static var storageService:IStorageService;
private static var so:SharedObject;
public function BlockUserService() {
super();
}
public function getBlockList() : Array {
var local1:Array = null;
so = storageService.getStorage();
local1 = so.data.blocklist;
if(local1 == null) {
local1 = new Array();
}
return local1;
}
public function blockUser(param1:String) : void {
var local2:Array = null;
var local3:String = UidUtil.userNameWithoutClanTag(param1);
so = storageService.getStorage();
local2 = so.data.blocklist;
if(local2 == null) {
local2 = new Array();
}
var local4:int = int(local2.indexOf(local3));
if(local4 > -1) {
local2.splice(local4,1);
}
local2.push(local3);
so.data.blocklist = local2;
}
public function unblockUser(param1:String) : void {
var local2:Array = null;
so = storageService.getStorage();
local2 = so.data.blocklist;
if(local2 == null) {
local2 = new Array();
}
var local3:int = int(local2.indexOf(UidUtil.userNameWithoutClanTag(param1)));
if(local3 > -1) {
local2.splice(local3,1);
}
so.data.blocklist = local2;
}
public function unblockAll() : void {
so = storageService.getStorage();
so.data.blocklist = new Array();
}
public function isBlocked(param1:String) : Boolean {
var local2:Array = null;
var local3:int = 0;
so = storageService.getStorage();
local2 = so.data.blocklist;
if(local2 == null) {
local2 = new Array();
so.data.blocklist = local2;
}
local3 = int(local2.indexOf(UidUtil.userNameWithoutClanTag(param1)));
return local3 > -1;
}
}
}
|
package projects.tanks.client.panel.model.bonus.showing.image {
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 BonusImageShowingModelServer {
private var protocol:IProtocol;
private var protocolBuffer:ProtocolBuffer;
private var model:IModel;
public function BonusImageShowingModelServer(param1:IModel) {
super();
this.model = param1;
var local2:ByteArray = new ByteArray();
this.protocol = IProtocol(OSGi.getInstance().getService(IProtocol));
this.protocolBuffer = new ProtocolBuffer(local2,local2,new OptionalMap());
}
}
}
|
package projects.tanks.client.partners.impl.armorgames {
public interface IArmorGamesLoginModelBase {
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.weapon.streamweapon {
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.tankparts.weapon.streamweapon.StreamWeaponCC;
public class VectorCodecStreamWeaponCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecStreamWeaponCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(StreamWeaponCC,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.<StreamWeaponCC> = new Vector.<StreamWeaponCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = StreamWeaponCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:StreamWeaponCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<StreamWeaponCC> = Vector.<StreamWeaponCC>(param2);
var local5:int = int(local3.length);
LengthCodecHelper.encodeLength(param1,local5);
var local6:int = 0;
while(local6 < local5) {
this.elementCodec.encode(param1,local3[local6]);
local6++;
}
}
}
}
|
package alternativa.tanks.gui.friends.list.renderer {
import controls.base.LabelBase;
import flash.display.Sprite;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormatAlign;
import forms.ColorConstants;
public class ServerNumberButton extends Sprite {
private static const WIDTH:int = 42;
private var _serverNumberLabel:LabelBase;
public function ServerNumberButton() {
super();
this.init();
}
private function init() : void {
graphics.clear();
graphics.beginFill(16711680,0);
graphics.drawRect(0,0,WIDTH,FriendsAcceptedListRenderer.ROW_HEIGHT);
graphics.endFill();
this._serverNumberLabel = new LabelBase();
this._serverNumberLabel.mouseEnabled = false;
this._serverNumberLabel.autoSize = TextFieldAutoSize.NONE;
this._serverNumberLabel.align = TextFormatAlign.RIGHT;
this._serverNumberLabel.color = ColorConstants.GREEN_LABEL;
this._serverNumberLabel.width = WIDTH;
this._serverNumberLabel.height = 18;
addChild(this._serverNumberLabel);
}
public function setText(param1:String, param2:Boolean) : void {
if(param2) {
this._serverNumberLabel.text = param1;
this._serverNumberLabel.y = 0;
} else {
this._serverNumberLabel.y = -1;
this._serverNumberLabel.htmlText = "<u>" + param1 + "</u>";
}
this.selected = param2;
}
public function set selected(param1:Boolean) : void {
if(param1) {
buttonMode = useHandCursor = false;
mouseChildren = false;
mouseEnabled = false;
} else {
buttonMode = useHandCursor = true;
mouseChildren = true;
mouseEnabled = true;
}
}
}
}
|
package alternativa.tanks.controller.commands.socialnetwork {
import alternativa.tanks.controller.events.socialnetwork.FinishExternalRegisterEvent;
import alternativa.tanks.model.EntranceUrlParamsModel;
import alternativa.tanks.service.IEntranceServerFacade;
import org.robotlegs.mvcs.Command;
public class FinishExternalRegisterUserCommand extends Command {
[Inject]
public var event:FinishExternalRegisterEvent;
[Inject]
public var urlParams:EntranceUrlParamsModel;
[Inject]
public var serverFacade:IEntranceServerFacade;
public function FinishExternalRegisterUserCommand() {
super();
}
override public function execute() : void {
this.serverFacade.finishExternalRegisterUser(this.event.uid,this.urlParams.referralHash);
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.battle.pointbased.ctf {
import alternativa.osgi.OSGi;
import alternativa.osgi.service.clientlog.IClientLog;
import alternativa.protocol.ICodec;
import alternativa.protocol.IProtocol;
import alternativa.protocol.ProtocolBuffer;
import alternativa.protocol.info.TypeCodecInfo;
import platform.client.fp10.core.resource.types.SoundResource;
import projects.tanks.client.battlefield.models.battle.pointbased.ctf.CaptureTheFlagSoundFX;
public class CodecCaptureTheFlagSoundFX implements ICodec {
public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog));
private var codec_enemiesWinSound:ICodec;
private var codec_flagDropSound:ICodec;
private var codec_flagDroppedByEnemiesSound:ICodec;
private var codec_flagReturnSound:ICodec;
private var codec_flagReturnedByEnemiesSound:ICodec;
private var codec_flagTakeSound:ICodec;
private var codec_flagTakenByEnemiesSound:ICodec;
private var codec_winSound:ICodec;
public function CodecCaptureTheFlagSoundFX() {
super();
}
public function init(param1:IProtocol) : void {
this.codec_enemiesWinSound = param1.getCodec(new TypeCodecInfo(SoundResource,true));
this.codec_flagDropSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_flagDroppedByEnemiesSound = param1.getCodec(new TypeCodecInfo(SoundResource,true));
this.codec_flagReturnSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_flagReturnedByEnemiesSound = param1.getCodec(new TypeCodecInfo(SoundResource,true));
this.codec_flagTakeSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
this.codec_flagTakenByEnemiesSound = param1.getCodec(new TypeCodecInfo(SoundResource,true));
this.codec_winSound = param1.getCodec(new TypeCodecInfo(SoundResource,false));
}
public function decode(param1:ProtocolBuffer) : Object {
var local2:CaptureTheFlagSoundFX = new CaptureTheFlagSoundFX();
local2.enemiesWinSound = this.codec_enemiesWinSound.decode(param1) as SoundResource;
local2.flagDropSound = this.codec_flagDropSound.decode(param1) as SoundResource;
local2.flagDroppedByEnemiesSound = this.codec_flagDroppedByEnemiesSound.decode(param1) as SoundResource;
local2.flagReturnSound = this.codec_flagReturnSound.decode(param1) as SoundResource;
local2.flagReturnedByEnemiesSound = this.codec_flagReturnedByEnemiesSound.decode(param1) as SoundResource;
local2.flagTakeSound = this.codec_flagTakeSound.decode(param1) as SoundResource;
local2.flagTakenByEnemiesSound = this.codec_flagTakenByEnemiesSound.decode(param1) as SoundResource;
local2.winSound = this.codec_winSound.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:CaptureTheFlagSoundFX = CaptureTheFlagSoundFX(param2);
this.codec_enemiesWinSound.encode(param1,local3.enemiesWinSound);
this.codec_flagDropSound.encode(param1,local3.flagDropSound);
this.codec_flagDroppedByEnemiesSound.encode(param1,local3.flagDroppedByEnemiesSound);
this.codec_flagReturnSound.encode(param1,local3.flagReturnSound);
this.codec_flagReturnedByEnemiesSound.encode(param1,local3.flagReturnedByEnemiesSound);
this.codec_flagTakeSound.encode(param1,local3.flagTakeSound);
this.codec_flagTakenByEnemiesSound.encode(param1,local3.flagTakenByEnemiesSound);
this.codec_winSound.encode(param1,local3.winSound);
}
}
}
|
package alternativa.tanks.model.payment.shop.category {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
import projects.tanks.client.commons.types.ShopCategoryEnum;
public class ShopCategoryEvents implements ShopCategory {
private var object:IGameObject;
private var impl:Vector.<Object>;
public function ShopCategoryEvents(param1:IGameObject, param2:Vector.<Object>) {
super();
this.object = param1;
this.impl = param2;
}
public function getOrderIndex() : int {
var result:int = 0;
var i:int = 0;
var m:ShopCategory = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ShopCategory(this.impl[i]);
result = int(m.getOrderIndex());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function isWithJumpButton() : Boolean {
var result:Boolean = false;
var i:int = 0;
var m:ShopCategory = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ShopCategory(this.impl[i]);
result = Boolean(m.isWithJumpButton());
i++;
}
}
finally {
Model.popObject();
}
return result;
}
public function getType() : ShopCategoryEnum {
var result:ShopCategoryEnum = null;
var i:int = 0;
var m:ShopCategory = null;
try {
Model.object = this.object;
i = 0;
while(i < this.impl.length) {
m = ShopCategory(this.impl[i]);
result = m.getType();
i++;
}
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.models.battlefield.effects
{
import alternativa.engine3d.core.MipMapping;
import alternativa.engine3d.core.Object3D;
import alternativa.engine3d.materials.TextureMaterial;
import alternativa.init.Main;
import alternativa.math.Vector3;
import alternativa.physics.RayHit;
import alternativa.tanks.models.battlefield.BattlefieldModel;
import alternativa.tanks.models.battlefield.IBattleField;
import alternativa.tanks.vehicles.tanks.Tank;
import controls.Label;
import flash.display.BitmapData;
import flash.display.BlendMode;
import flash.filters.GlowFilter;
public class DamageEffect
{
private static const origin:Vector3 = new Vector3();
private static const upDirection:Vector3 = new Vector3(0,0,1);
private static const rayHit:RayHit = new RayHit();
private var battlefield:BattlefieldModel;
public function DamageEffect()
{
super();
this.battlefield = Main.osgi.getService(IBattleField) as BattlefieldModel;
}
public function createEffect(tank:Tank, damage:int) : void
{
var tankObject:Object3D = tank.skin.turretMesh;
this.createLabel(tank.id,350,damage,tankObject);
}
private function createLabel(tankId:int, height:Number, damage:int, tank:Object3D) : void
{
var damageLabel:Label = null;
damageLabel = new Label();
damageLabel.text = damage.toString();
damageLabel.filters = [new GlowFilter(0,0.8,4,4,3)];
damageLabel.textColor = 16777215;
damageLabel.size = 18;
var damageBitmap:BitmapData = new BitmapData(damageLabel.textWidth + 20,damageLabel.textHeight + 10,true,16777215);
damageBitmap.draw(damageLabel);
var damageTexture:TextureMaterial = new TextureMaterial(damageBitmap,false,true,MipMapping.PER_PIXEL,1);
var damageEffect:DamageUpEffect = DamageUpEffect(this.battlefield.getObjectPool().getObject(DamageUpEffect));
damageEffect.init(500,50,30,0,height * 0.8,height * 0.15,0.75,0,0,125,tank,damageTexture,BlendMode.NORMAL);
this.battlefield.addGraphicEffect(damageEffect);
}
}
}
|
package projects.tanks.client.battlefield.models.inventory.item {
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 InventoryItemModelBase extends Model {
private var _protocol:IProtocol = IProtocol(OSGi.getInstance().getService(IProtocol));
protected var server:InventoryItemModelServer;
private var client:IInventoryItemModelBase = IInventoryItemModelBase(this);
private var modelId:Long = Long.getLong(1160724760,1672827267);
private var _updateCountId:Long = Long.getLong(1641742013,1294163764);
private var _updateCount_countCodec:ICodec;
public function InventoryItemModelBase() {
super();
this.initCodecs();
}
protected function initCodecs() : void {
this.server = new InventoryItemModelServer(IModel(this));
var local1:ModelRegistry = ModelRegistry(OSGi.getInstance().getService(ModelRegistry));
local1.registerModelConstructorCodec(this.modelId,this._protocol.getCodec(new TypeCodecInfo(InventoryItemCC,false)));
this._updateCount_countCodec = this._protocol.getCodec(new TypeCodecInfo(int,false));
}
protected function getInitParam() : InventoryItemCC {
return InventoryItemCC(initParams[Model.object]);
}
override public function invoke(param1:Long, param2:ProtocolBuffer) : void {
switch(param1) {
case this._updateCountId:
this.client.updateCount(int(this._updateCount_countCodec.decode(param2)));
}
}
override public function get id() : Long {
return this.modelId;
}
}
}
|
package platform.client.fp10.core.model {
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class ObjectLoadListenerAdapt implements ObjectLoadListener {
private var object:IGameObject;
private var impl:ObjectLoadListener;
public function ObjectLoadListenerAdapt(param1:IGameObject, param2:ObjectLoadListener) {
super();
this.object = param1;
this.impl = param2;
}
public function objectLoaded() : void {
try {
Model.object = this.object;
this.impl.objectLoaded();
}
finally {
Model.popObject();
}
}
}
}
|
package controls.chat
{
import mx.core.BitmapAsset;
[ExcludeClass]
public class ChatPermissionsLevel_tester_gold extends BitmapAsset
{
public function ChatPermissionsLevel_tester_gold()
{
super();
}
}
}
|
package alternativa.tanks.models.clan.outgoing {
import alternativa.tanks.gui.clanmanagement.ClanOutgoingRequestsDialog;
import alternativa.types.Long;
import platform.client.fp10.core.model.impl.Model;
import platform.client.fp10.core.type.IGameObject;
public class IClanOutgoingModelAdapt implements IClanOutgoingModel {
private var object:IGameObject;
private var impl:IClanOutgoingModel;
public function IClanOutgoingModelAdapt(param1:IGameObject, param2:IClanOutgoingModel) {
super();
this.object = param1;
this.impl = param2;
}
public function setClanOutgoingWindow(param1:ClanOutgoingRequestsDialog) : void {
var clanOutgoingWindow:ClanOutgoingRequestsDialog = param1;
try {
Model.object = this.object;
this.impl.setClanOutgoingWindow(clanOutgoingWindow);
}
finally {
Model.popObject();
}
}
public function getUsers() : Vector.<Long> {
var result:Vector.<Long> = null;
try {
Model.object = this.object;
result = this.impl.getUsers();
}
finally {
Model.popObject();
}
return result;
}
}
}
|
package alternativa.tanks.gui.notinclan.clanslist {
import alternativa.types.Long;
import flash.events.Event;
import flash.events.EventDispatcher;
public class ClansListEvent extends Event {
private static var dispatcher:EventDispatcher;
public static const REMOVE:String = "ClansListEvent.REMOVE";
public static const ADD:String = "ClansListEvent.ADD";
public static const INCOMING:String = "ClansListEvent.INCOMING";
public static const OUTGOING:String = "ClansListEvent.OUTGOING";
public var clanId:Long;
public function ClansListEvent(param1:String, param2:Long, param3:Boolean = false, param4:Boolean = false) {
super(param1,param3,param4);
this.clanId = param2;
}
public static function getDispatcher() : EventDispatcher {
if(dispatcher == null) {
dispatcher = new EventDispatcher();
}
return dispatcher;
}
}
}
|
package alternativa.engine3d.core
{
import alternativa.engine3d.alternativa3d;
use namespace alternativa3d;
public class VG
{
private static var collector:VG;
alternativa3d var next:VG;
alternativa3d var faceStruct:Face;
alternativa3d var object:Object3D;
alternativa3d var sorting:int;
alternativa3d var debug:int = 0;
alternativa3d var space:int = 0;
alternativa3d var viewAligned:Boolean = false;
alternativa3d var boundMinX:Number;
alternativa3d var boundMinY:Number;
alternativa3d var boundMinZ:Number;
alternativa3d var boundMaxX:Number;
alternativa3d var boundMaxY:Number;
alternativa3d var boundMaxZ:Number;
alternativa3d var boundMin:Number;
alternativa3d var boundMax:Number;
alternativa3d var boundVertexList:Vertex;
alternativa3d var boundPlaneList:Vertex;
alternativa3d var numOccluders:int;
public function VG()
{
this.boundVertexList = Vertex.createList(8);
this.boundPlaneList = Vertex.createList(6);
super();
}
alternativa3d static function create(param1:Object3D, param2:Face, param3:int, param4:int, param5:Boolean) : VG
{
var _loc6_:VG = null;
if(collector != null)
{
_loc6_ = collector;
collector = collector.next;
_loc6_.next = null;
}
else
{
_loc6_ = new VG();
}
_loc6_.object = param1;
_loc6_.faceStruct = param2;
_loc6_.sorting = param3;
_loc6_.debug = param4;
_loc6_.viewAligned = param5;
return _loc6_;
}
alternativa3d function destroy() : void
{
if(this.faceStruct != null)
{
this.destroyFaceStruct(this.faceStruct);
this.faceStruct = null;
}
this.object = null;
this.numOccluders = 0;
this.debug = 0;
this.space = 0;
this.next = collector;
collector = this;
}
private function destroyFaceStruct(param1:Face) : void
{
if(param1.processNegative != null)
{
this.destroyFaceStruct(param1.processNegative);
param1.processNegative = null;
}
if(param1.processPositive != null)
{
this.destroyFaceStruct(param1.processPositive);
param1.processPositive = null;
}
var _loc2_:Face = param1.processNext;
while(_loc2_ != null)
{
param1.processNext = null;
param1 = _loc2_;
_loc2_ = param1.processNext;
}
}
alternativa3d function calculateAABB(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number, param9:Number, param10:Number, param11:Number, param12:Number) : void
{
this.boundMinX = 1e+22;
this.boundMinY = 1e+22;
this.boundMinZ = 1e+22;
this.boundMaxX = -1e+22;
this.boundMaxY = -1e+22;
this.boundMaxZ = -1e+22;
this.calculateAABBStruct(this.faceStruct,++this.object.transformId,param1,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12);
this.space = 1;
}
alternativa3d function calculateOOBB(param1:Object3D) : void
{
var _loc2_:Vertex = null;
var _loc3_:Vertex = null;
var _loc4_:Vertex = null;
var _loc5_:Vertex = null;
var _loc6_:Vertex = null;
var _loc7_:Vertex = null;
var _loc8_:Vertex = null;
var _loc9_:Vertex = null;
var _loc10_:Vertex = null;
var _loc11_:Vertex = null;
var _loc12_:Vertex = null;
var _loc13_:Number = NaN;
var _loc14_:Number = NaN;
var _loc15_:Number = NaN;
var _loc16_:Number = NaN;
var _loc17_:Number = NaN;
var _loc18_:Number = NaN;
var _loc19_:Number = NaN;
var _loc20_:Number = NaN;
var _loc21_:Number = NaN;
var _loc22_:Number = NaN;
var _loc23_:Number = NaN;
var _loc24_:Number = NaN;
var _loc25_:Number = NaN;
var _loc26_:Vertex = null;
var _loc27_:Vertex = null;
var _loc28_:Vertex = null;
var _loc29_:Vertex = null;
if(this.space == 1)
{
this.transformStruct(this.faceStruct,++this.object.transformId,param1.ma,param1.mb,param1.mc,param1.md,param1.me,param1.mf,param1.mg,param1.mh,param1.mi,param1.mj,param1.mk,param1.ml);
}
if(!this.viewAligned)
{
this.boundMinX = 1e+22;
this.boundMinY = 1e+22;
this.boundMinZ = 1e+22;
this.boundMaxX = -1e+22;
this.boundMaxY = -1e+22;
this.boundMaxZ = -1e+22;
this.calculateOOBBStruct(this.faceStruct,++this.object.transformId,this.object.ima,this.object.imb,this.object.imc,this.object.imd,this.object.ime,this.object.imf,this.object.img,this.object.imh,this.object.imi,this.object.imj,this.object.imk,this.object.iml);
if(this.boundMaxX - this.boundMinX < 1)
{
this.boundMaxX = this.boundMinX + 1;
}
if(this.boundMaxY - this.boundMinY < 1)
{
this.boundMaxY = this.boundMinY + 1;
}
if(this.boundMaxZ - this.boundMinZ < 1)
{
this.boundMaxZ = this.boundMinZ + 1;
}
_loc2_ = this.boundVertexList;
_loc2_.x = this.boundMinX;
_loc2_.y = this.boundMinY;
_loc2_.z = this.boundMinZ;
_loc3_ = _loc2_.next;
_loc3_.x = this.boundMaxX;
_loc3_.y = this.boundMinY;
_loc3_.z = this.boundMinZ;
_loc4_ = _loc3_.next;
_loc4_.x = this.boundMinX;
_loc4_.y = this.boundMaxY;
_loc4_.z = this.boundMinZ;
_loc5_ = _loc4_.next;
_loc5_.x = this.boundMaxX;
_loc5_.y = this.boundMaxY;
_loc5_.z = this.boundMinZ;
_loc6_ = _loc5_.next;
_loc6_.x = this.boundMinX;
_loc6_.y = this.boundMinY;
_loc6_.z = this.boundMaxZ;
_loc7_ = _loc6_.next;
_loc7_.x = this.boundMaxX;
_loc7_.y = this.boundMinY;
_loc7_.z = this.boundMaxZ;
_loc8_ = _loc7_.next;
_loc8_.x = this.boundMinX;
_loc8_.y = this.boundMaxY;
_loc8_.z = this.boundMaxZ;
_loc9_ = _loc8_.next;
_loc9_.x = this.boundMaxX;
_loc9_.y = this.boundMaxY;
_loc9_.z = this.boundMaxZ;
_loc10_ = _loc2_;
while(_loc10_ != null)
{
_loc10_.cameraX = this.object.ma * _loc10_.x + this.object.mb * _loc10_.y + this.object.mc * _loc10_.z + this.object.md;
_loc10_.cameraY = this.object.me * _loc10_.x + this.object.mf * _loc10_.y + this.object.mg * _loc10_.z + this.object.mh;
_loc10_.cameraZ = this.object.mi * _loc10_.x + this.object.mj * _loc10_.y + this.object.mk * _loc10_.z + this.object.ml;
_loc10_ = _loc10_.next;
}
_loc11_ = this.boundPlaneList;
_loc12_ = _loc11_.next;
_loc13_ = _loc2_.cameraX;
_loc14_ = _loc2_.cameraY;
_loc15_ = _loc2_.cameraZ;
_loc16_ = _loc3_.cameraX - _loc13_;
_loc17_ = _loc3_.cameraY - _loc14_;
_loc18_ = _loc3_.cameraZ - _loc15_;
_loc19_ = _loc6_.cameraX - _loc13_;
_loc20_ = _loc6_.cameraY - _loc14_;
_loc21_ = _loc6_.cameraZ - _loc15_;
_loc22_ = _loc21_ * _loc17_ - _loc20_ * _loc18_;
_loc23_ = _loc19_ * _loc18_ - _loc21_ * _loc16_;
_loc24_ = _loc20_ * _loc16_ - _loc19_ * _loc17_;
_loc25_ = 1 / Math.sqrt(_loc22_ * _loc22_ + _loc23_ * _loc23_ + _loc24_ * _loc24_);
_loc22_ *= _loc25_;
_loc23_ *= _loc25_;
_loc24_ *= _loc25_;
_loc11_.cameraX = _loc22_;
_loc11_.cameraY = _loc23_;
_loc11_.cameraZ = _loc24_;
_loc11_.offset = _loc13_ * _loc22_ + _loc14_ * _loc23_ + _loc15_ * _loc24_;
_loc12_.cameraX = -_loc22_;
_loc12_.cameraY = -_loc23_;
_loc12_.cameraZ = -_loc24_;
_loc12_.offset = -_loc4_.cameraX * _loc22_ - _loc4_.cameraY * _loc23_ - _loc4_.cameraZ * _loc24_;
_loc26_ = _loc12_.next;
_loc27_ = _loc26_.next;
_loc13_ = _loc2_.cameraX;
_loc14_ = _loc2_.cameraY;
_loc15_ = _loc2_.cameraZ;
_loc16_ = _loc6_.cameraX - _loc13_;
_loc17_ = _loc6_.cameraY - _loc14_;
_loc18_ = _loc6_.cameraZ - _loc15_;
_loc19_ = _loc4_.cameraX - _loc13_;
_loc20_ = _loc4_.cameraY - _loc14_;
_loc21_ = _loc4_.cameraZ - _loc15_;
_loc22_ = _loc21_ * _loc17_ - _loc20_ * _loc18_;
_loc23_ = _loc19_ * _loc18_ - _loc21_ * _loc16_;
_loc24_ = _loc20_ * _loc16_ - _loc19_ * _loc17_;
_loc25_ = 1 / Math.sqrt(_loc22_ * _loc22_ + _loc23_ * _loc23_ + _loc24_ * _loc24_);
_loc22_ *= _loc25_;
_loc23_ *= _loc25_;
_loc24_ *= _loc25_;
_loc26_.cameraX = _loc22_;
_loc26_.cameraY = _loc23_;
_loc26_.cameraZ = _loc24_;
_loc26_.offset = _loc13_ * _loc22_ + _loc14_ * _loc23_ + _loc15_ * _loc24_;
_loc27_.cameraX = -_loc22_;
_loc27_.cameraY = -_loc23_;
_loc27_.cameraZ = -_loc24_;
_loc27_.offset = -_loc3_.cameraX * _loc22_ - _loc3_.cameraY * _loc23_ - _loc3_.cameraZ * _loc24_;
_loc28_ = _loc27_.next;
_loc29_ = _loc28_.next;
_loc13_ = _loc6_.cameraX;
_loc14_ = _loc6_.cameraY;
_loc15_ = _loc6_.cameraZ;
_loc16_ = _loc7_.cameraX - _loc13_;
_loc17_ = _loc7_.cameraY - _loc14_;
_loc18_ = _loc7_.cameraZ - _loc15_;
_loc19_ = _loc8_.cameraX - _loc13_;
_loc20_ = _loc8_.cameraY - _loc14_;
_loc21_ = _loc8_.cameraZ - _loc15_;
_loc22_ = _loc21_ * _loc17_ - _loc20_ * _loc18_;
_loc23_ = _loc19_ * _loc18_ - _loc21_ * _loc16_;
_loc24_ = _loc20_ * _loc16_ - _loc19_ * _loc17_;
_loc25_ = 1 / Math.sqrt(_loc22_ * _loc22_ + _loc23_ * _loc23_ + _loc24_ * _loc24_);
_loc22_ *= _loc25_;
_loc23_ *= _loc25_;
_loc24_ *= _loc25_;
_loc28_.cameraX = _loc22_;
_loc28_.cameraY = _loc23_;
_loc28_.cameraZ = _loc24_;
_loc28_.offset = _loc13_ * _loc22_ + _loc14_ * _loc23_ + _loc15_ * _loc24_;
_loc29_.cameraX = -_loc22_;
_loc29_.cameraY = -_loc23_;
_loc29_.cameraZ = -_loc24_;
_loc29_.offset = -_loc2_.cameraX * _loc22_ - _loc2_.cameraY * _loc23_ - _loc2_.cameraZ * _loc24_;
if(_loc11_.offset < -_loc12_.offset)
{
_loc12_.cameraX = -_loc12_.cameraX;
_loc12_.cameraY = -_loc12_.cameraY;
_loc12_.cameraZ = -_loc12_.cameraZ;
_loc12_.offset = -_loc12_.offset;
_loc11_.cameraX = -_loc11_.cameraX;
_loc11_.cameraY = -_loc11_.cameraY;
_loc11_.cameraZ = -_loc11_.cameraZ;
_loc11_.offset = -_loc11_.offset;
}
if(_loc26_.offset < -_loc27_.offset)
{
_loc26_.cameraX = -_loc26_.cameraX;
_loc26_.cameraY = -_loc26_.cameraY;
_loc26_.cameraZ = -_loc26_.cameraZ;
_loc26_.offset = -_loc26_.offset;
_loc27_.cameraX = -_loc27_.cameraX;
_loc27_.cameraY = -_loc27_.cameraY;
_loc27_.cameraZ = -_loc27_.cameraZ;
_loc27_.offset = -_loc27_.offset;
}
if(_loc29_.offset < -_loc28_.offset)
{
_loc29_.cameraX = -_loc29_.cameraX;
_loc29_.cameraY = -_loc29_.cameraY;
_loc29_.cameraZ = -_loc29_.cameraZ;
_loc29_.offset = -_loc29_.offset;
_loc28_.cameraX = -_loc28_.cameraX;
_loc28_.cameraY = -_loc28_.cameraY;
_loc28_.cameraZ = -_loc28_.cameraZ;
_loc28_.offset = -_loc28_.offset;
}
}
this.space = 2;
}
private function calculateAABBStruct(param1:Face, param2:int, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number, param9:Number, param10:Number, param11:Number, param12:Number, param13:Number, param14:Number) : void
{
var _loc16_:Wrapper = null;
var _loc17_:Vertex = null;
var _loc18_:Number = NaN;
var _loc19_:Number = NaN;
var _loc20_:Number = NaN;
var _loc15_:Face = param1;
while(_loc15_ != null)
{
_loc16_ = _loc15_.wrapper;
while(_loc16_ != null)
{
_loc17_ = _loc16_.vertex;
if(_loc17_.transformId != param2)
{
_loc18_ = _loc17_.cameraX;
_loc19_ = _loc17_.cameraY;
_loc20_ = _loc17_.cameraZ;
_loc17_.cameraX = param3 * _loc18_ + param4 * _loc19_ + param5 * _loc20_ + param6;
_loc17_.cameraY = param7 * _loc18_ + param8 * _loc19_ + param9 * _loc20_ + param10;
_loc17_.cameraZ = param11 * _loc18_ + param12 * _loc19_ + param13 * _loc20_ + param14;
if(_loc17_.cameraX < this.boundMinX)
{
this.boundMinX = _loc17_.cameraX;
}
if(_loc17_.cameraX > this.boundMaxX)
{
this.boundMaxX = _loc17_.cameraX;
}
if(_loc17_.cameraY < this.boundMinY)
{
this.boundMinY = _loc17_.cameraY;
}
if(_loc17_.cameraY > this.boundMaxY)
{
this.boundMaxY = _loc17_.cameraY;
}
if(_loc17_.cameraZ < this.boundMinZ)
{
this.boundMinZ = _loc17_.cameraZ;
}
if(_loc17_.cameraZ > this.boundMaxZ)
{
this.boundMaxZ = _loc17_.cameraZ;
}
_loc17_.transformId = param2;
}
_loc16_ = _loc16_.next;
}
_loc15_ = _loc15_.processNext;
}
if(param1.processNegative != null)
{
this.calculateAABBStruct(param1.processNegative,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12,param13,param14);
}
if(param1.processPositive != null)
{
this.calculateAABBStruct(param1.processPositive,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12,param13,param14);
}
}
private function calculateOOBBStruct(param1:Face, param2:int, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number, param9:Number, param10:Number, param11:Number, param12:Number, param13:Number, param14:Number) : void
{
var _loc16_:Wrapper = null;
var _loc17_:Vertex = null;
var _loc15_:Face = param1;
while(_loc15_ != null)
{
_loc16_ = _loc15_.wrapper;
while(_loc16_ != null)
{
_loc17_ = _loc16_.vertex;
if(_loc17_.transformId != param2)
{
if(_loc17_.x < this.boundMinX)
{
this.boundMinX = _loc17_.x;
}
if(_loc17_.x > this.boundMaxX)
{
this.boundMaxX = _loc17_.x;
}
if(_loc17_.y < this.boundMinY)
{
this.boundMinY = _loc17_.y;
}
if(_loc17_.y > this.boundMaxY)
{
this.boundMaxY = _loc17_.y;
}
if(_loc17_.z < this.boundMinZ)
{
this.boundMinZ = _loc17_.z;
}
if(_loc17_.z > this.boundMaxZ)
{
this.boundMaxZ = _loc17_.z;
}
_loc17_.transformId = param2;
}
_loc16_ = _loc16_.next;
}
_loc15_ = _loc15_.processNext;
}
if(param1.processNegative != null)
{
this.calculateOOBBStruct(param1.processNegative,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12,param13,param14);
}
if(param1.processPositive != null)
{
this.calculateOOBBStruct(param1.processPositive,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12,param13,param14);
}
}
private function updateAABBStruct(param1:Face, param2:int) : void
{
var _loc4_:Wrapper = null;
var _loc5_:Vertex = null;
var _loc3_:Face = param1;
while(_loc3_ != null)
{
_loc4_ = _loc3_.wrapper;
while(_loc4_ != null)
{
_loc5_ = _loc4_.vertex;
if(_loc5_.transformId != param2)
{
if(_loc5_.cameraX < this.boundMinX)
{
this.boundMinX = _loc5_.cameraX;
}
if(_loc5_.cameraX > this.boundMaxX)
{
this.boundMaxX = _loc5_.cameraX;
}
if(_loc5_.cameraY < this.boundMinY)
{
this.boundMinY = _loc5_.cameraY;
}
if(_loc5_.cameraY > this.boundMaxY)
{
this.boundMaxY = _loc5_.cameraY;
}
if(_loc5_.cameraZ < this.boundMinZ)
{
this.boundMinZ = _loc5_.cameraZ;
}
if(_loc5_.cameraZ > this.boundMaxZ)
{
this.boundMaxZ = _loc5_.cameraZ;
}
_loc5_.transformId = param2;
}
_loc4_ = _loc4_.next;
}
_loc3_ = _loc3_.processNext;
}
if(param1.processNegative != null)
{
this.updateAABBStruct(param1.processNegative,param2);
}
if(param1.processPositive != null)
{
this.updateAABBStruct(param1.processPositive,param2);
}
}
alternativa3d function split(param1:Camera3D, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number) : void
{
var _loc8_:VG = null;
var _loc7_:Face = this.faceStruct.create();
this.splitFaceStruct(param1,this.faceStruct,_loc7_,param2,param3,param4,param5,param5 - param6,param5 + param6);
if(_loc7_.processNegative != null)
{
if(collector != null)
{
_loc8_ = collector;
collector = collector.next;
_loc8_.next = null;
}
else
{
_loc8_ = new VG();
}
this.next = _loc8_;
_loc8_.faceStruct = _loc7_.processNegative;
_loc7_.processNegative = null;
_loc8_.object = this.object;
_loc8_.sorting = this.sorting;
_loc8_.debug = this.debug;
_loc8_.space = this.space;
_loc8_.viewAligned = this.viewAligned;
_loc8_.boundMinX = 1e+22;
_loc8_.boundMinY = 1e+22;
_loc8_.boundMinZ = 1e+22;
_loc8_.boundMaxX = -1e+22;
_loc8_.boundMaxY = -1e+22;
_loc8_.boundMaxZ = -1e+22;
_loc8_.updateAABBStruct(_loc8_.faceStruct,++this.object.transformId);
}
else
{
this.next = null;
}
if(_loc7_.processPositive != null)
{
this.faceStruct = _loc7_.processPositive;
_loc7_.processPositive = null;
this.boundMinX = 1e+22;
this.boundMinY = 1e+22;
this.boundMinZ = 1e+22;
this.boundMaxX = -1e+22;
this.boundMaxY = -1e+22;
this.boundMaxZ = -1e+22;
this.updateAABBStruct(this.faceStruct,++this.object.transformId);
}
else
{
this.faceStruct = null;
}
_loc7_.next = Face.collector;
Face.collector = _loc7_;
}
alternativa3d function crop(param1:Camera3D, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number) : void
{
this.faceStruct = this.cropFaceStruct(param1,this.faceStruct,param2,param3,param4,param5,param5 - param6,param5 + param6);
if(this.faceStruct != null)
{
this.boundMinX = 1e+22;
this.boundMinY = 1e+22;
this.boundMinZ = 1e+22;
this.boundMaxX = -1e+22;
this.boundMaxY = -1e+22;
this.boundMaxZ = -1e+22;
this.updateAABBStruct(this.faceStruct,++this.object.transformId);
}
}
private function splitFaceStruct(param1:Camera3D, param2:Face, param3:Face, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number, param9:Number) : void
{
var _loc10_:Face = null;
var _loc11_:Face = null;
var _loc12_:Wrapper = null;
var _loc13_:Vertex = null;
var _loc14_:Vertex = null;
var _loc15_:Face = null;
var _loc16_:Face = null;
var _loc17_:Face = null;
var _loc18_:Face = null;
var _loc19_:Face = null;
var _loc20_:Face = null;
var _loc21_:Face = null;
var _loc22_:Face = null;
var _loc23_:Face = null;
var _loc24_:Face = null;
var _loc25_:Wrapper = null;
var _loc26_:Wrapper = null;
var _loc27_:Wrapper = null;
var _loc28_:Boolean = false;
var _loc29_:Vertex = null;
var _loc30_:Vertex = null;
var _loc31_:Vertex = null;
var _loc32_:Number = NaN;
var _loc33_:Number = NaN;
var _loc34_:Number = NaN;
var _loc35_:Boolean = false;
var _loc36_:Boolean = false;
var _loc37_:Boolean = false;
var _loc38_:Number = NaN;
var _loc39_:Number = NaN;
if(param2.processNegative != null)
{
this.splitFaceStruct(param1,param2.processNegative,param3,param4,param5,param6,param7,param8,param9);
param2.processNegative = null;
_loc15_ = param3.processNegative;
_loc16_ = param3.processPositive;
}
if(param2.processPositive != null)
{
this.splitFaceStruct(param1,param2.processPositive,param3,param4,param5,param6,param7,param8,param9);
param2.processPositive = null;
_loc17_ = param3.processNegative;
_loc18_ = param3.processPositive;
}
if(param2.wrapper != null)
{
_loc10_ = param2;
while(_loc10_ != null)
{
_loc11_ = _loc10_.processNext;
_loc12_ = _loc10_.wrapper;
_loc29_ = _loc12_.vertex;
_loc12_ = _loc12_.next;
_loc30_ = _loc12_.vertex;
_loc12_ = _loc12_.next;
_loc31_ = _loc12_.vertex;
_loc12_ = _loc12_.next;
_loc32_ = _loc29_.cameraX * param4 + _loc29_.cameraY * param5 + _loc29_.cameraZ * param6;
_loc33_ = _loc30_.cameraX * param4 + _loc30_.cameraY * param5 + _loc30_.cameraZ * param6;
_loc34_ = _loc31_.cameraX * param4 + _loc31_.cameraY * param5 + _loc31_.cameraZ * param6;
_loc35_ = _loc32_ < param8 || _loc33_ < param8 || _loc34_ < param8;
_loc36_ = _loc32_ > param9 || _loc33_ > param9 || _loc34_ > param9;
_loc37_ = _loc32_ < param8 && _loc33_ < param8 && _loc34_ < param8;
while(_loc12_ != null)
{
_loc13_ = _loc12_.vertex;
_loc38_ = _loc13_.cameraX * param4 + _loc13_.cameraY * param5 + _loc13_.cameraZ * param6;
if(_loc38_ < param8)
{
_loc35_ = true;
}
else
{
_loc37_ = false;
if(_loc38_ > param9)
{
_loc36_ = true;
}
}
_loc13_.offset = _loc38_;
_loc12_ = _loc12_.next;
}
if(!_loc35_)
{
if(_loc21_ != null)
{
_loc22_.processNext = _loc10_;
}
else
{
_loc21_ = _loc10_;
}
_loc22_ = _loc10_;
}
else if(!_loc36_)
{
if(_loc37_)
{
if(_loc19_ != null)
{
_loc20_.processNext = _loc10_;
}
else
{
_loc19_ = _loc10_;
}
_loc20_ = _loc10_;
}
else
{
_loc29_.offset = _loc32_;
_loc30_.offset = _loc33_;
_loc31_.offset = _loc34_;
_loc23_ = _loc10_.create();
_loc23_.material = _loc10_.material;
param1.lastFace.next = _loc23_;
param1.lastFace = _loc23_;
_loc25_ = null;
_loc28_ = _loc10_.material != null && _loc10_.material.useVerticesNormals;
_loc12_ = _loc10_.wrapper;
while(_loc12_ != null)
{
_loc30_ = _loc12_.vertex;
if(_loc30_.offset >= param8)
{
_loc14_ = _loc30_.create();
param1.lastVertex.next = _loc14_;
param1.lastVertex = _loc14_;
_loc14_.x = _loc30_.x;
_loc14_.y = _loc30_.y;
_loc14_.z = _loc30_.z;
_loc14_.u = _loc30_.u;
_loc14_.v = _loc30_.v;
_loc14_.cameraX = _loc30_.cameraX;
_loc14_.cameraY = _loc30_.cameraY;
_loc14_.cameraZ = _loc30_.cameraZ;
if(_loc28_)
{
_loc14_.normalX = _loc30_.normalX;
_loc14_.normalY = _loc30_.normalY;
_loc14_.normalZ = _loc30_.normalZ;
}
_loc30_ = _loc14_;
}
_loc27_ = _loc12_.create();
_loc27_.vertex = _loc30_;
if(_loc25_ != null)
{
_loc25_.next = _loc27_;
}
else
{
_loc23_.wrapper = _loc27_;
}
_loc25_ = _loc27_;
_loc12_ = _loc12_.next;
}
if(_loc19_ != null)
{
_loc20_.processNext = _loc23_;
}
else
{
_loc19_ = _loc23_;
}
_loc20_ = _loc23_;
_loc10_.processNext = null;
}
}
else
{
_loc29_.offset = _loc32_;
_loc30_.offset = _loc33_;
_loc31_.offset = _loc34_;
_loc23_ = _loc10_.create();
_loc23_.material = _loc10_.material;
param1.lastFace.next = _loc23_;
param1.lastFace = _loc23_;
_loc24_ = _loc10_.create();
_loc24_.material = _loc10_.material;
param1.lastFace.next = _loc24_;
param1.lastFace = _loc24_;
_loc25_ = null;
_loc26_ = null;
_loc12_ = _loc10_.wrapper.next.next;
while(_loc12_.next != null)
{
_loc12_ = _loc12_.next;
}
_loc29_ = _loc12_.vertex;
_loc32_ = _loc29_.offset;
_loc28_ = _loc10_.material != null && _loc10_.material.useVerticesNormals;
_loc12_ = _loc10_.wrapper;
while(_loc12_ != null)
{
_loc30_ = _loc12_.vertex;
_loc33_ = _loc30_.offset;
if(_loc32_ < param8 && _loc33_ > param9 || _loc32_ > param9 && _loc33_ < param8)
{
_loc39_ = (param7 - _loc32_) / (_loc33_ - _loc32_);
_loc13_ = _loc30_.create();
param1.lastVertex.next = _loc13_;
param1.lastVertex = _loc13_;
_loc13_.x = _loc29_.x + (_loc30_.x - _loc29_.x) * _loc39_;
_loc13_.y = _loc29_.y + (_loc30_.y - _loc29_.y) * _loc39_;
_loc13_.z = _loc29_.z + (_loc30_.z - _loc29_.z) * _loc39_;
_loc13_.u = _loc29_.u + (_loc30_.u - _loc29_.u) * _loc39_;
_loc13_.v = _loc29_.v + (_loc30_.v - _loc29_.v) * _loc39_;
_loc13_.cameraX = _loc29_.cameraX + (_loc30_.cameraX - _loc29_.cameraX) * _loc39_;
_loc13_.cameraY = _loc29_.cameraY + (_loc30_.cameraY - _loc29_.cameraY) * _loc39_;
_loc13_.cameraZ = _loc29_.cameraZ + (_loc30_.cameraZ - _loc29_.cameraZ) * _loc39_;
if(_loc28_)
{
_loc13_.normalX = _loc29_.normalX + (_loc30_.normalX - _loc29_.normalX) * _loc39_;
_loc13_.normalY = _loc29_.normalY + (_loc30_.normalY - _loc29_.normalY) * _loc39_;
_loc13_.normalZ = _loc29_.normalZ + (_loc30_.normalZ - _loc29_.normalZ) * _loc39_;
}
_loc27_ = _loc12_.create();
_loc27_.vertex = _loc13_;
if(_loc25_ != null)
{
_loc25_.next = _loc27_;
}
else
{
_loc23_.wrapper = _loc27_;
}
_loc25_ = _loc27_;
_loc14_ = _loc30_.create();
param1.lastVertex.next = _loc14_;
param1.lastVertex = _loc14_;
_loc14_.x = _loc13_.x;
_loc14_.y = _loc13_.y;
_loc14_.z = _loc13_.z;
_loc14_.u = _loc13_.u;
_loc14_.v = _loc13_.v;
_loc14_.cameraX = _loc13_.cameraX;
_loc14_.cameraY = _loc13_.cameraY;
_loc14_.cameraZ = _loc13_.cameraZ;
if(_loc28_)
{
_loc14_.normalX = _loc13_.normalX;
_loc14_.normalY = _loc13_.normalY;
_loc14_.normalZ = _loc13_.normalZ;
}
_loc27_ = _loc12_.create();
_loc27_.vertex = _loc14_;
if(_loc26_ != null)
{
_loc26_.next = _loc27_;
}
else
{
_loc24_.wrapper = _loc27_;
}
_loc26_ = _loc27_;
}
if(_loc30_.offset < param8)
{
_loc27_ = _loc12_.create();
_loc27_.vertex = _loc30_;
if(_loc25_ != null)
{
_loc25_.next = _loc27_;
}
else
{
_loc23_.wrapper = _loc27_;
}
_loc25_ = _loc27_;
}
else if(_loc30_.offset > param9)
{
_loc27_ = _loc12_.create();
_loc27_.vertex = _loc30_;
if(_loc26_ != null)
{
_loc26_.next = _loc27_;
}
else
{
_loc24_.wrapper = _loc27_;
}
_loc26_ = _loc27_;
}
else
{
_loc27_ = _loc12_.create();
_loc27_.vertex = _loc30_;
if(_loc26_ != null)
{
_loc26_.next = _loc27_;
}
else
{
_loc24_.wrapper = _loc27_;
}
_loc26_ = _loc27_;
_loc14_ = _loc30_.create();
param1.lastVertex.next = _loc14_;
param1.lastVertex = _loc14_;
_loc14_.x = _loc30_.x;
_loc14_.y = _loc30_.y;
_loc14_.z = _loc30_.z;
_loc14_.u = _loc30_.u;
_loc14_.v = _loc30_.v;
_loc14_.cameraX = _loc30_.cameraX;
_loc14_.cameraY = _loc30_.cameraY;
_loc14_.cameraZ = _loc30_.cameraZ;
if(_loc28_)
{
_loc14_.normalX = _loc30_.normalX;
_loc14_.normalY = _loc30_.normalY;
_loc14_.normalZ = _loc30_.normalZ;
}
_loc27_ = _loc12_.create();
_loc27_.vertex = _loc14_;
if(_loc25_ != null)
{
_loc25_.next = _loc27_;
}
else
{
_loc23_.wrapper = _loc27_;
}
_loc25_ = _loc27_;
}
_loc29_ = _loc30_;
_loc32_ = _loc33_;
_loc12_ = _loc12_.next;
}
if(_loc19_ != null)
{
_loc20_.processNext = _loc23_;
}
else
{
_loc19_ = _loc23_;
}
_loc20_ = _loc23_;
if(_loc21_ != null)
{
_loc22_.processNext = _loc24_;
}
else
{
_loc21_ = _loc24_;
}
_loc22_ = _loc24_;
_loc10_.processNext = null;
}
_loc10_ = _loc11_;
}
}
if(_loc19_ != null || _loc15_ != null && _loc17_ != null)
{
if(_loc19_ == null)
{
_loc19_ = param2.create();
param1.lastFace.next = _loc19_;
param1.lastFace = _loc19_;
}
else
{
_loc20_.processNext = null;
}
if(this.sorting == 3)
{
_loc19_.normalX = param2.normalX;
_loc19_.normalY = param2.normalY;
_loc19_.normalZ = param2.normalZ;
_loc19_.offset = param2.offset;
}
_loc19_.processNegative = _loc15_;
_loc19_.processPositive = _loc17_;
param3.processNegative = _loc19_;
}
else
{
param3.processNegative = _loc15_ != null ? _loc15_ : _loc17_;
}
if(_loc21_ != null || _loc16_ != null && _loc18_ != null)
{
if(_loc21_ == null)
{
_loc21_ = param2.create();
param1.lastFace.next = _loc21_;
param1.lastFace = _loc21_;
}
else
{
_loc22_.processNext = null;
}
if(this.sorting == 3)
{
_loc21_.normalX = param2.normalX;
_loc21_.normalY = param2.normalY;
_loc21_.normalZ = param2.normalZ;
_loc21_.offset = param2.offset;
}
_loc21_.processNegative = _loc16_;
_loc21_.processPositive = _loc18_;
param3.processPositive = _loc21_;
}
else
{
param3.processPositive = _loc16_ != null ? _loc16_ : _loc18_;
}
}
private function cropFaceStruct(param1:Camera3D, param2:Face, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number) : Face
{
var _loc9_:Face = null;
var _loc10_:Face = null;
var _loc11_:Wrapper = null;
var _loc12_:Vertex = null;
var _loc13_:Face = null;
var _loc14_:Face = null;
var _loc15_:Face = null;
var _loc16_:Face = null;
var _loc17_:Vertex = null;
var _loc18_:Vertex = null;
var _loc19_:Vertex = null;
var _loc20_:Number = NaN;
var _loc21_:Number = NaN;
var _loc22_:Number = NaN;
var _loc23_:Boolean = false;
var _loc24_:Boolean = false;
var _loc25_:Number = NaN;
var _loc26_:Face = null;
var _loc27_:Wrapper = null;
var _loc28_:Wrapper = null;
var _loc29_:Boolean = false;
var _loc30_:Number = NaN;
if(param2.processNegative != null)
{
_loc13_ = this.cropFaceStruct(param1,param2.processNegative,param3,param4,param5,param6,param7,param8);
param2.processNegative = null;
}
if(param2.processPositive != null)
{
_loc14_ = this.cropFaceStruct(param1,param2.processPositive,param3,param4,param5,param6,param7,param8);
param2.processPositive = null;
}
if(param2.wrapper != null)
{
_loc9_ = param2;
while(_loc9_ != null)
{
_loc10_ = _loc9_.processNext;
_loc11_ = _loc9_.wrapper;
_loc17_ = _loc11_.vertex;
_loc11_ = _loc11_.next;
_loc18_ = _loc11_.vertex;
_loc11_ = _loc11_.next;
_loc19_ = _loc11_.vertex;
_loc11_ = _loc11_.next;
_loc20_ = _loc17_.cameraX * param3 + _loc17_.cameraY * param4 + _loc17_.cameraZ * param5;
_loc21_ = _loc18_.cameraX * param3 + _loc18_.cameraY * param4 + _loc18_.cameraZ * param5;
_loc22_ = _loc19_.cameraX * param3 + _loc19_.cameraY * param4 + _loc19_.cameraZ * param5;
_loc23_ = _loc20_ < param7 || _loc21_ < param7 || _loc22_ < param7;
_loc24_ = _loc20_ > param8 || _loc21_ > param8 || _loc22_ > param8;
while(_loc11_ != null)
{
_loc12_ = _loc11_.vertex;
_loc25_ = _loc12_.cameraX * param3 + _loc12_.cameraY * param4 + _loc12_.cameraZ * param5;
if(_loc25_ < param7)
{
_loc23_ = true;
}
else if(_loc25_ > param8)
{
_loc24_ = true;
}
_loc12_.offset = _loc25_;
_loc11_ = _loc11_.next;
}
if(!_loc24_)
{
_loc9_.processNext = null;
}
else if(!_loc23_)
{
if(_loc15_ != null)
{
_loc16_.processNext = _loc9_;
}
else
{
_loc15_ = _loc9_;
}
_loc16_ = _loc9_;
}
else
{
_loc17_.offset = _loc20_;
_loc18_.offset = _loc21_;
_loc19_.offset = _loc22_;
_loc26_ = _loc9_.create();
_loc26_.material = _loc9_.material;
param1.lastFace.next = _loc26_;
param1.lastFace = _loc26_;
_loc27_ = null;
_loc11_ = _loc9_.wrapper.next.next;
while(_loc11_.next != null)
{
_loc11_ = _loc11_.next;
}
_loc17_ = _loc11_.vertex;
_loc20_ = _loc17_.offset;
_loc29_ = _loc9_.material != null && _loc9_.material.useVerticesNormals;
_loc11_ = _loc9_.wrapper;
while(_loc11_ != null)
{
_loc18_ = _loc11_.vertex;
_loc21_ = _loc18_.offset;
if(_loc20_ < param7 && _loc21_ > param8 || _loc20_ > param8 && _loc21_ < param7)
{
_loc30_ = (param6 - _loc20_) / (_loc21_ - _loc20_);
_loc12_ = _loc18_.create();
param1.lastVertex.next = _loc12_;
param1.lastVertex = _loc12_;
_loc12_.x = _loc17_.x + (_loc18_.x - _loc17_.x) * _loc30_;
_loc12_.y = _loc17_.y + (_loc18_.y - _loc17_.y) * _loc30_;
_loc12_.z = _loc17_.z + (_loc18_.z - _loc17_.z) * _loc30_;
_loc12_.u = _loc17_.u + (_loc18_.u - _loc17_.u) * _loc30_;
_loc12_.v = _loc17_.v + (_loc18_.v - _loc17_.v) * _loc30_;
_loc12_.cameraX = _loc17_.cameraX + (_loc18_.cameraX - _loc17_.cameraX) * _loc30_;
_loc12_.cameraY = _loc17_.cameraY + (_loc18_.cameraY - _loc17_.cameraY) * _loc30_;
_loc12_.cameraZ = _loc17_.cameraZ + (_loc18_.cameraZ - _loc17_.cameraZ) * _loc30_;
if(_loc29_)
{
_loc12_.normalX = _loc17_.normalX + (_loc18_.normalX - _loc17_.normalX) * _loc30_;
_loc12_.normalY = _loc17_.normalY + (_loc18_.normalY - _loc17_.normalY) * _loc30_;
_loc12_.normalZ = _loc17_.normalZ + (_loc18_.normalZ - _loc17_.normalZ) * _loc30_;
}
_loc28_ = _loc11_.create();
_loc28_.vertex = _loc12_;
if(_loc27_ != null)
{
_loc27_.next = _loc28_;
}
else
{
_loc26_.wrapper = _loc28_;
}
_loc27_ = _loc28_;
}
if(_loc21_ >= param7)
{
_loc28_ = _loc11_.create();
_loc28_.vertex = _loc18_;
if(_loc27_ != null)
{
_loc27_.next = _loc28_;
}
else
{
_loc26_.wrapper = _loc28_;
}
_loc27_ = _loc28_;
}
_loc17_ = _loc18_;
_loc20_ = _loc21_;
_loc11_ = _loc11_.next;
}
if(_loc15_ != null)
{
_loc16_.processNext = _loc26_;
}
else
{
_loc15_ = _loc26_;
}
_loc16_ = _loc26_;
_loc9_.processNext = null;
}
_loc9_ = _loc10_;
}
}
if(_loc15_ != null || _loc13_ != null && _loc14_ != null)
{
if(_loc15_ == null)
{
_loc15_ = param2.create();
param1.lastFace.next = _loc15_;
param1.lastFace = _loc15_;
}
else
{
_loc16_.processNext = null;
}
if(this.sorting == 3)
{
_loc15_.normalX = param2.normalX;
_loc15_.normalY = param2.normalY;
_loc15_.normalZ = param2.normalZ;
_loc15_.offset = param2.offset;
}
_loc15_.processNegative = _loc13_;
_loc15_.processPositive = _loc14_;
return _loc15_;
}
return _loc13_ != null ? _loc13_ : _loc14_;
}
alternativa3d function transformStruct(param1:Face, param2:int, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number, param9:Number, param10:Number, param11:Number, param12:Number, param13:Number, param14:Number) : void
{
var _loc16_:Wrapper = null;
var _loc17_:Vertex = null;
var _loc18_:Number = NaN;
var _loc19_:Number = NaN;
var _loc20_:Number = NaN;
var _loc15_:Face = param1;
while(_loc15_ != null)
{
_loc16_ = _loc15_.wrapper;
while(_loc16_ != null)
{
_loc17_ = _loc16_.vertex;
if(_loc17_.transformId != param2)
{
_loc18_ = _loc17_.cameraX;
_loc19_ = _loc17_.cameraY;
_loc20_ = _loc17_.cameraZ;
_loc17_.cameraX = param3 * _loc18_ + param4 * _loc19_ + param5 * _loc20_ + param6;
_loc17_.cameraY = param7 * _loc18_ + param8 * _loc19_ + param9 * _loc20_ + param10;
_loc17_.cameraZ = param11 * _loc18_ + param12 * _loc19_ + param13 * _loc20_ + param14;
_loc17_.transformId = param2;
}
_loc16_ = _loc16_.next;
}
_loc15_ = _loc15_.processNext;
}
if(param1.processNegative != null)
{
this.transformStruct(param1.processNegative,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12,param13,param14);
}
if(param1.processPositive != null)
{
this.transformStruct(param1.processPositive,param2,param3,param4,param5,param6,param7,param8,param9,param10,param11,param12,param13,param14);
}
}
alternativa3d function draw(param1:Camera3D, param2:Number, param3:Object3D) : void
{
var _loc4_:Face = null;
var _loc5_:Face = null;
var _loc6_:Face = null;
var _loc7_:Face = null;
if(this.space == 1)
{
this.transformStruct(this.faceStruct,++this.object.transformId,param3.ma,param3.mb,param3.mc,param3.md,param3.me,param3.mf,param3.mg,param3.mh,param3.mi,param3.mj,param3.mk,param3.ml);
}
if(this.viewAligned)
{
_loc4_ = this.faceStruct;
if(this.debug > 0)
{
if(this.debug & Debug.EDGES)
{
Debug.drawEdges(param1,_loc4_,this.space != 2 ? int(int(16777215)) : int(int(16750848)));
}
if(this.debug & Debug.BOUNDS)
{
if(this.space == 1)
{
Debug.drawBounds(param1,param3,this.boundMinX,this.boundMinY,this.boundMinZ,this.boundMaxX,this.boundMaxY,this.boundMaxZ,10092288);
}
}
}
param1.addTransparent(_loc4_,this.object);
}
else
{
switch(this.sorting)
{
case 0:
_loc4_ = this.faceStruct;
break;
case 1:
_loc4_ = this.faceStruct.processNext != null ? param1.sortByAverageZ(this.faceStruct) : this.faceStruct;
break;
case 2:
_loc4_ = this.faceStruct.processNext != null ? param1.sortByDynamicBSP(this.faceStruct,param2) : this.faceStruct;
break;
case 3:
_loc4_ = this.collectNode(this.faceStruct);
}
if(this.debug > 0)
{
if(this.debug & Debug.EDGES)
{
Debug.drawEdges(param1,_loc4_,16777215);
}
if(this.debug & Debug.BOUNDS)
{
if(this.space == 1)
{
Debug.drawBounds(param1,param3,this.boundMinX,this.boundMinY,this.boundMinZ,this.boundMaxX,this.boundMaxY,this.boundMaxZ,10092288);
}
else if(this.space == 2)
{
Debug.drawBounds(param1,this.object,this.boundMinX,this.boundMinY,this.boundMinZ,this.boundMaxX,this.boundMaxY,this.boundMaxZ,16750848);
}
}
}
_loc7_ = _loc4_;
while(_loc7_ != null)
{
_loc5_ = _loc7_.processNext;
if(_loc5_ == null || _loc5_.material != _loc4_.material)
{
_loc7_.processNext = null;
if(_loc4_.material != null)
{
_loc4_.processNegative = _loc6_;
_loc6_ = _loc4_;
}
else
{
while(_loc4_ != null)
{
_loc7_ = _loc4_.processNext;
_loc4_.processNext = null;
_loc4_ = _loc7_;
}
}
_loc4_ = _loc5_;
}
_loc7_ = _loc5_;
}
_loc4_ = _loc6_;
while(_loc4_ != null)
{
_loc5_ = _loc4_.processNegative;
_loc4_.processNegative = null;
param1.addTransparent(_loc4_,this.object);
_loc4_ = _loc5_;
}
}
this.faceStruct = null;
}
private function collectNode(param1:Face, param2:Face = null) : Face
{
var _loc3_:Face = null;
var _loc4_:Face = null;
var _loc5_:Face = null;
if(param1.offset < 0)
{
_loc4_ = param1.processNegative;
_loc5_ = param1.processPositive;
}
else
{
_loc4_ = param1.processPositive;
_loc5_ = param1.processNegative;
}
param1.processNegative = null;
param1.processPositive = null;
if(_loc5_ != null)
{
param2 = this.collectNode(_loc5_,param2);
}
if(param1.wrapper != null)
{
_loc3_ = param1;
while(_loc3_.processNext != null)
{
_loc3_ = _loc3_.processNext;
}
_loc3_.processNext = param2;
param2 = param1;
}
if(_loc4_ != null)
{
param2 = this.collectNode(_loc4_,param2);
}
return param2;
}
}
}
|
package controls
{
import assets.window.bitmaps.WindowBGTile;
import assets.window.bitmaps.WindowBottom;
import assets.window.bitmaps.WindowLeft;
import assets.window.bitmaps.WindowRight;
import assets.window.bitmaps.WindowTop;
import assets.window.elemets.WindowBottomLeftCorner;
import assets.window.elemets.WindowBottomRightCorner;
import assets.window.elemets.WindowTopLeftCorner;
import assets.window.elemets.WindowTopRightCorner;
import flash.display.Shape;
import flash.display.Sprite;
public class TankWindow2 extends Sprite
{
private var _width:int;
private var _height:int;
private var tl:WindowTopLeftCorner;
private var tr:WindowTopRightCorner;
private var bl:WindowBottomLeftCorner;
private var br:WindowBottomRightCorner;
private var bgBMP:WindowBGTile;
private var topBMP:WindowTop;
private var bottomBMP:WindowBottom;
private var leftBMP:WindowLeft;
private var rightBMP:WindowRight;
public var bg:Sprite;
public var bg1:Sprite;
public var bg2:Sprite;
public var bg3:Sprite;
private var top:Shape;
private var bottom:Shape;
private var left:Shape;
private var right:Shape;
private var mcHeader:TankWindowHeader;
private var _header:int = 0;
public function TankWindow2(width:int = -1, height:int = -1)
{
this.tl = new WindowTopLeftCorner();
this.tr = new WindowTopRightCorner();
this.bl = new WindowBottomLeftCorner();
this.br = new WindowBottomRightCorner();
this.bgBMP = new WindowBGTile(0,0);
this.topBMP = new WindowTop(0,0);
this.bottomBMP = new WindowBottom(0,0);
this.leftBMP = new WindowLeft(0,0);
this.rightBMP = new WindowRight(0,0);
this.bg = new Sprite();
this.bg1 = new Sprite();
this.bg2 = new Sprite();
this.bg3 = new Sprite();
this.top = new Shape();
this.bottom = new Shape();
this.left = new Shape();
this.right = new Shape();
super();
this._width = width;
this._height = height;
this.ConfigUI();
this.draw();
}
override public function set width(w:Number) : void
{
this._width = int(w);
this.draw();
}
override public function get width() : Number
{
return this._width;
}
override public function set height(h:Number) : void
{
this._height = int(h);
this.draw();
}
override public function get height() : Number
{
return this._height;
}
private function ConfigUI() : void
{
this._width = this._width == -1 ? int(scaleX * 100) : int(this._width);
this._height = this._height == -1 ? int(scaleY * 100) : int(this._height);
scaleX = 1;
scaleY = 1;
addChild(this.bg);
addChild(this.bg1);
addChild(this.bg3);
addChild(this.bg2);
addChild(this.top);
addChild(this.bottom);
addChild(this.left);
addChild(this.right);
addChild(this.tl);
addChild(this.tr);
addChild(this.bl);
addChild(this.br);
}
public function set header(value:int) : void
{
this._header = value;
this.mcHeader = new TankWindowHeader(value,Game.currLocale.toLowerCase());
addChild(this.mcHeader);
if(value > 19)
{
this.mcHeader.x = -13;
}
else
{
this.mcHeader.y = -13;
}
this.draw();
}
private function draw() : void
{
this.bg.graphics.clear();
this.bg.graphics.beginBitmapFill(this.bgBMP);
this.bg.graphics.drawRect(7,7,this._width - 14,7);
this.bg.graphics.endFill();
this.bg1.graphics.clear();
this.bg1.graphics.beginBitmapFill(this.bgBMP);
this.bg1.graphics.drawRect(7,7,7,this._height - 14);
this.bg1.graphics.endFill();
this.bg2.graphics.clear();
this.bg2.graphics.beginBitmapFill(this.bgBMP);
this.bg2.graphics.drawRect(this._width - 14,7,7,this._height - 14);
this.bg2.graphics.endFill();
this.bg3.graphics.clear();
this.bg3.graphics.beginBitmapFill(this.bgBMP);
this.bg3.graphics.drawRect(7,this._height - 14,this._width - 14,7);
this.bg3.graphics.endFill();
this.top.graphics.clear();
this.top.graphics.beginBitmapFill(this.topBMP);
this.top.graphics.drawRect(0,0,this._width - 22,11);
this.top.graphics.endFill();
this.top.x = 11;
this.bottom.graphics.clear();
this.bottom.graphics.beginBitmapFill(this.bottomBMP);
this.bottom.graphics.drawRect(0,0,this._width - 22,11);
this.bottom.graphics.endFill();
this.bottom.x = 11;
this.bottom.y = this._height - 11;
this.left.graphics.clear();
this.left.graphics.beginBitmapFill(this.leftBMP);
this.left.graphics.drawRect(0,0,11,this._height - 22);
this.left.graphics.endFill();
this.left.x = 0;
this.left.y = 11;
this.right.graphics.clear();
this.right.graphics.beginBitmapFill(this.rightBMP);
this.right.graphics.drawRect(0,0,11,this._height - 22);
this.right.graphics.endFill();
this.right.x = this._width - 11;
this.right.y = 11;
this.tl.x = 0;
this.tl.y = 0;
this.tr.x = this._width - this.tr.width;
this.tr.y = 0;
this.bl.x = 0;
this.bl.y = this._height - this.bl.height;
this.br.x = this._width - this.br.width;
this.br.y = this._height - this.br.height;
if(this.mcHeader != null)
{
if(this._header > 19)
{
this.mcHeader.y = int(this._height / 2);
}
else
{
this.mcHeader.x = int(this._width / 2);
}
}
}
}
}
|
package _codec.projects.tanks.client.battlefield.models.tankparts.weapons.shotgun.aiming {
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.tankparts.weapons.shotgun.aiming.ShotGunAimingCC;
public class VectorCodecShotGunAimingCCLevel1 implements ICodec {
private var elementCodec:ICodec;
private var optionalElement:Boolean;
public function VectorCodecShotGunAimingCCLevel1(param1:Boolean) {
super();
this.optionalElement = param1;
}
public function init(param1:IProtocol) : void {
this.elementCodec = param1.getCodec(new TypeCodecInfo(ShotGunAimingCC,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.<ShotGunAimingCC> = new Vector.<ShotGunAimingCC>(local2,true);
var local4:int = 0;
while(local4 < local2) {
local3[local4] = ShotGunAimingCC(this.elementCodec.decode(param1));
local4++;
}
return local3;
}
public function encode(param1:ProtocolBuffer, param2:Object) : void {
var local4:ShotGunAimingCC = null;
if(param2 == null) {
throw new Error("Object is null. Use @ProtocolOptional annotation.");
}
var local3:Vector.<ShotGunAimingCC> = Vector.<ShotGunAimingCC>(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.gui.gui.statistics.messages {
import mx.core.BitmapAsset;
[ExcludeClass]
[Embed(source="/_assets/alternativa.tanks.models.battle.gui.gui.statistics.messages.KillMessageOutputLine_nuclearIconClass.png")]
public class KillMessageOutputLine_nuclearIconClass extends BitmapAsset {
public function KillMessageOutputLine_nuclearIconClass() {
super();
}
}
}
|
package alternativa.engine3d.loaders.collada {
public namespace daeAlternativa3DMesh = "http://alternativaplatform.com/a3d/Mesh";
}
|
package alternativa.tanks.model.payment.shop.item {
import alternativa.tanks.model.payment.shop.discount.ShopDiscount;
import platform.client.fp10.core.resource.types.ImageResource;
import projects.tanks.client.panel.model.shop.price.IShopItemModelBase;
import projects.tanks.client.panel.model.shop.price.ShopItemModelBase;
[ModelInfo]
public class ShopItemModel extends ShopItemModelBase implements IShopItemModelBase, ShopItem {
public function ShopItemModel() {
super();
}
public function getPrice() : Number {
return getInitParam().price;
}
public function getPriceWithDiscount() : Number {
return ShopDiscount(object.adapt(ShopDiscount)).applyDiscount(this.getPrice());
}
public function getCurrencyName() : String {
return getInitParam().currencyName;
}
public function getCurrencyRoundingPrecision() : int {
return getInitParam().roundingPrecision;
}
public function getPreview() : ImageResource {
return getInitParam().preview;
}
}
}
|
package projects.tanks.client.battlefield.models.battle.pointbased.assault {
import platform.client.fp10.core.resource.types.SoundResource;
public class AssaultSoundFX {
private var _flagDropSound:SoundResource;
private var _flagReturnSound:SoundResource;
private var _flagTakeSound:SoundResource;
private var _winSound:SoundResource;
public function AssaultSoundFX(param1:SoundResource = null, param2:SoundResource = null, param3:SoundResource = null, param4:SoundResource = null) {
super();
this._flagDropSound = param1;
this._flagReturnSound = param2;
this._flagTakeSound = param3;
this._winSound = param4;
}
public function get flagDropSound() : SoundResource {
return this._flagDropSound;
}
public function set flagDropSound(param1:SoundResource) : void {
this._flagDropSound = param1;
}
public function get flagReturnSound() : SoundResource {
return this._flagReturnSound;
}
public function set flagReturnSound(param1:SoundResource) : void {
this._flagReturnSound = param1;
}
public function get flagTakeSound() : SoundResource {
return this._flagTakeSound;
}
public function set flagTakeSound(param1:SoundResource) : void {
this._flagTakeSound = param1;
}
public function get winSound() : SoundResource {
return this._winSound;
}
public function set winSound(param1:SoundResource) : void {
this._winSound = param1;
}
public function toString() : String {
var local1:String = "AssaultSoundFX [";
local1 += "flagDropSound = " + this.flagDropSound + " ";
local1 += "flagReturnSound = " + this.flagReturnSound + " ";
local1 += "flagTakeSound = " + this.flagTakeSound + " ";
local1 += "winSound = " + this.winSound + " ";
return local1 + "]";
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.